blob: e4b262f2ca5c0afb9b0744bd28e9f759c3af14d2 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000725CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000726DOCUMENTATION_PATH
727FILTER_PATH
728CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000729LIBRARY_PATH
730EXECUTABLE_PATH
731PERLMAINCC
732XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000733XML_DELEGATE_FALSE
734XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000735xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000736WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000737WMF_DELEGATE_FALSE
738WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000739WEBP_LIBS
740WEBP_DELEGATE_FALSE
741WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000742TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000743TIFF_DELEGATE_FALSE
744TIFF_DELEGATE_TRUE
745CAIRO_DELEGATE_FALSE
746CAIRO_DELEGATE_TRUE
747RSVG_DELEGATE_FALSE
748RSVG_DELEGATE_TRUE
749CAIRO_SVG_LIBS
750CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000751RSVG_LIBS
752RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000753PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754PNG_DELEGATE_FALSE
755PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000756PANGOFT2_DELEGATE_FALSE
757PANGOFT2_DELEGATE_TRUE
758PANGO_DELEGATE_FALSE
759PANGO_DELEGATE_TRUE
760PANGO_LIBS
761PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000762OPENEXR_DELEGATE_FALSE
763OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764OPENEXR_LIBS
765OPENEXR_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000766LZMA_LIBS
cristyfbb0ef02010-12-19 02:32:11 +0000767LZMA_DELEGATE_FALSE
768LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000769LQR_DELEGATE_FALSE
770LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000771LQR_LIBS
772LQR_CFLAGS
773LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000774LCMS_DELEGATE_FALSE
775LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000776JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000777JP2_DELEGATE_FALSE
778JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000779JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000780JPEG_DELEGATE_FALSE
781JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000782JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783JBIG_DELEGATE_FALSE
784JBIG_DELEGATE_TRUE
785GVC_DELEGATE_FALSE
786GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787GVC_LIBS
788GVC_CFLAGS
789GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000790GS_DELEGATE_FALSE
791GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000792FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000793FREETYPE_DELEGATE_FALSE
794FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000795freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000796FONTCONFIG_DELEGATE_FALSE
797FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000798FONTCONFIG_LIBS
799FONTCONFIG_CFLAGS
800FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000801FPX_DELEGATE_FALSE
802FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000803FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804FFTW_DELEGATE_FALSE
805FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807DJVU_DELEGATE_FALSE
808DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000809DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000810DPS_DELEGATE_FALSE
811DPS_DELEGATE_TRUE
812AUTOTRACE_DELEGATE_FALSE
813AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000814AUTOTRACE_LIBS
815AUTOTRACE_CFLAGS
816LIB_DL
817ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818ZLIB_DELEGATE_FALSE
819ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820XEXT_LIBS
821X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822X11_DELEGATE_FALSE
823X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824X_EXTRA_LIBS
825X_LIBS
826X_PRE_LIBS
827X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000828XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000829BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830BZLIB_DELEGATE_FALSE
831BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832CCMALLOCDelegate
833UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834HasUMEM_FALSE
835HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836THREAD_LIBS
837GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838WITH_MAGICK_PLUS_PLUS_FALSE
839WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000841MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000842POW_LIB
843LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000844UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000845UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000846UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000847UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000848UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000850INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000851INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT32_T
856UINT16_T
857INT16_T
858UINT8_T
859INT8_T
860LIBRARY_EXTRA_CPPFLAGS
861MODULE_EXTRA_CPPFLAGS
862LIBSTDCLDFLAGS
863PERL_MAKE_OPTIONS
864QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000865MAINT
866MAINTAINER_MODE_FALSE
867MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868MAGICK_HDRI
869DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000870WITH_LTDL_FALSE
871WITH_LTDL_TRUE
872WITH_MODULES_FALSE
873WITH_MODULES_TRUE
874WITH_SHARED_LIBS_FALSE
875WITH_SHARED_LIBS_TRUE
876LTDLOPEN
877LT_CONFIG_H
878CONVENIENCE_LTDL_FALSE
879CONVENIENCE_LTDL_TRUE
880INSTALL_LTDL_FALSE
881INSTALL_LTDL_TRUE
882ARGZ_H
883sys_symbol_underscore
884LIBADD_DL
885LT_DLPREOPEN
886LIBADD_DLD_LINK
887LIBADD_SHL_LOAD
888LIBADD_DLOPEN
889LT_DLLOADERS
890INCLTDL
891LTDLINCL
892LTDLDEPS
893LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000894LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000895CXXCPP
896OTOOL64
897OTOOL
898LIPO
899NMEDIT
900DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000901MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000902RANLIB
cristyda16f162011-02-19 23:52:17 +0000903ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000904AR
905NM
906ac_ct_DUMPBIN
907DUMPBIN
908LIBTOOL
909OBJDUMP
910DLLTOOL
911AS
cristy3ed852e2009-09-05 21:47:34 +0000912LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000913CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000914CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000915OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000916PTHREAD_CFLAGS
917PTHREAD_LIBS
918PTHREAD_CC
919ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000920WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000921USING_CL_FALSE
922USING_CL_TRUE
923CYGWIN_BUILD_FALSE
924CYGWIN_BUILD_TRUE
925WIN32_NATIVE_BUILD_FALSE
926WIN32_NATIVE_BUILD_TRUE
927WINGDI32_DELEGATE_FALSE
928WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000930PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000931LN_S
cristy3ed852e2009-09-05 21:47:34 +0000932LD
cristy73bd4a52010-10-05 11:24:23 +0000933FGREP
934SED
935am__fastdepCXX_FALSE
936am__fastdepCXX_TRUE
937CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000938ac_ct_CXX
939CXXFLAGS
940CXX
cristya0b81c32010-01-22 02:54:33 +0000941EGREP
942GREP
943CPP
cristy73bd4a52010-10-05 11:24:23 +0000944am__fastdepCC_FALSE
945am__fastdepCC_TRUE
946CCDEPMODE
947AMDEPBACKSLASH
948AMDEP_FALSE
949AMDEP_TRUE
950am__quote
951am__include
952DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000953OBJEXT
954EXEEXT
955ac_ct_CC
956CPPFLAGS
957LDFLAGS
958CFLAGS
959CC
960DIRSEP
961MAGICK_FILTER_MODULE_PATH
962MAGICK_CONFIGURE_BUILD_PATH
963MAGICK_CONFIGURE_SRC_PATH
964MAGICK_CODER_MODULE_PATH
965MAN_DIR
966INFO_DIR
967PERSISTINCLUDE_DIR
968INCLUDE_DIR
969LIB_DIR
970LOCALSTATE_DIR
971SHAREDSTATE_DIR
972SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000973DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000974DATA_DIR
975LIBEXEC_DIR
976SBIN_DIR
977BIN_DIR
978EXEC_PREFIX_DIR
979PREFIX_DIR
980CONFIG_STATUS_DEPENDENCIES
981MAGICK_LIB_VERSION_NUMBER
982MAGICK_LIB_VERSION_TEXT
983MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000984AM_BACKSLASH
985AM_DEFAULT_VERBOSITY
986am__untar
987am__tar
988AMTAR
989am__leading_dot
990SET_MAKE
991AWK
992mkdir_p
993MKDIR_P
994INSTALL_STRIP_PROGRAM
995STRIP
996install_sh
997MAKEINFO
998AUTOHEADER
999AUTOMAKE
1000AUTOCONF
1001ACLOCAL
1002VERSION
1003PACKAGE
1004CYGPATH_W
1005am__isrc
1006INSTALL_DATA
1007INSTALL_SCRIPT
1008INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001009PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001010PACKAGE_RELEASE_DATE
1011PACKAGE_LIB_VERSION_NUMBER
1012PACKAGE_LIB_VERSION
1013PACKAGE_CHANGE_DATE
1014PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001015PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001016MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001017MAGICK_LIBRARY_VERSION_INFO
1018MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001019MAGICK_LIBRARY_AGE
1020MAGICK_LIBRARY_REVISION
1021MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001022MAGICK_TARGET_OS
1023MAGICK_TARGET_VENDOR
1024MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001025target_os
1026target_vendor
1027target_cpu
1028target
1029host_os
1030host_vendor
1031host_cpu
1032host
1033build_os
1034build_vendor
1035build_cpu
1036build
1037CONFIGURE_ARGS
1038DISTCHECK_CONFIG_FLAGS
1039target_alias
1040host_alias
1041build_alias
1042LIBS
1043ECHO_T
1044ECHO_N
1045ECHO_C
1046DEFS
1047mandir
1048localedir
1049libdir
1050psdir
1051pdfdir
1052dvidir
1053htmldir
1054infodir
1055docdir
1056oldincludedir
1057includedir
1058localstatedir
1059sharedstatedir
1060sysconfdir
1061datadir
1062datarootdir
1063libexecdir
1064sbindir
1065bindir
1066program_transform_name
1067prefix
1068exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001069PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001070PACKAGE_BUGREPORT
1071PACKAGE_STRING
1072PACKAGE_VERSION
1073PACKAGE_TARNAME
1074PACKAGE_NAME
1075PATH_SEPARATOR
1076SHELL'
1077ac_subst_files=''
1078ac_user_opts='
1079enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001080enable_silent_rules
1081enable_dependency_tracking
1082with_gnu_ld
1083with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001084enable_bounds_checking
1085enable_osx_universal_binary
1086with_threads
1087enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001088enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001089enable_largefile
cristy74554ef2011-10-27 12:56:11 +00001090with_includedir_arch
1091with_configdir_arch
cristy73bd4a52010-10-05 11:24:23 +00001092enable_shared
1093enable_static
1094with_pic
1095enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001096with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001097enable_libtool_lock
1098with_included_ltdl
1099with_ltdl_include
1100with_ltdl_lib
1101enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001102with_modules
1103enable_delegate_build
1104enable_deprecated
1105enable_installed
1106enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001107enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001108enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001109enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001110enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001111enable_ccmalloc
1112enable_efence
1113enable_prof
1114enable_gprof
1115enable_gcov
1116with_method_prefix
1117with_quantum_depth
1118with_cache
1119with_frozenpaths
1120with_magick_plus_plus
1121with_perl
1122with_perl_options
1123with_umem
1124with_libstdc
1125with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001126with_x
cristy3ed852e2009-09-05 21:47:34 +00001127with_zlib
1128with_autotrace
1129with_dps
1130with_djvu
cristy430a7312010-01-21 20:44:04 +00001131with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001132with_fftw
1133with_fpx
1134with_fontconfig
1135with_freetype
1136with_gslib
1137with_fontpath
1138with_gs_font_dir
1139with_gvc
1140with_jbig
1141with_jpeg
1142with_jp2
1143with_lcms
cristy71203402010-06-18 13:12:03 +00001144with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001145with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001146with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001147with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001148with_pango
cristy3ed852e2009-09-05 21:47:34 +00001149with_png
1150with_rsvg
1151with_tiff
cristyb1860752011-03-14 00:27:46 +00001152with_webp
cristy3ed852e2009-09-05 21:47:34 +00001153with_windows_font_dir
1154with_wmf
1155with_xml
1156'
1157 ac_precious_vars='build_alias
1158host_alias
1159target_alias
1160CC
1161CFLAGS
1162LDFLAGS
1163LIBS
1164CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001165CPP
cristy3ed852e2009-09-05 21:47:34 +00001166CXX
1167CXXFLAGS
1168CCC
cristy73bd4a52010-10-05 11:24:23 +00001169PKG_CONFIG
1170CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001171XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001172AUTOTRACE_CFLAGS
1173AUTOTRACE_LIBS
1174FONTCONFIG_CFLAGS
1175FONTCONFIG_LIBS
1176GVC_CFLAGS
1177GVC_LIBS
1178LQR_CFLAGS
1179LQR_LIBS
1180OPENEXR_CFLAGS
1181OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001182PANGO_CFLAGS
1183PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001184RSVG_CFLAGS
1185RSVG_LIBS
1186CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001187CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001188
1189
1190# Initialize some variables set by options.
1191ac_init_help=
1192ac_init_version=false
1193ac_unrecognized_opts=
1194ac_unrecognized_sep=
1195# The variables have the same names as the options, with
1196# dashes changed to underlines.
1197cache_file=/dev/null
1198exec_prefix=NONE
1199no_create=
1200no_recursion=
1201prefix=NONE
1202program_prefix=NONE
1203program_suffix=NONE
1204program_transform_name=s,x,x,
1205silent=
1206site=
1207srcdir=
1208verbose=
1209x_includes=NONE
1210x_libraries=NONE
1211
1212# Installation directory options.
1213# These are left unexpanded so users can "make install exec_prefix=/foo"
1214# and all the variables that are supposed to be based on exec_prefix
1215# by default will actually change.
1216# Use braces instead of parens because sh, perl, etc. also accept them.
1217# (The list follows the same order as the GNU Coding Standards.)
1218bindir='${exec_prefix}/bin'
1219sbindir='${exec_prefix}/sbin'
1220libexecdir='${exec_prefix}/libexec'
1221datarootdir='${prefix}/share'
1222datadir='${datarootdir}'
1223sysconfdir='${prefix}/etc'
1224sharedstatedir='${prefix}/com'
1225localstatedir='${prefix}/var'
1226includedir='${prefix}/include'
1227oldincludedir='/usr/include'
1228docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229infodir='${datarootdir}/info'
1230htmldir='${docdir}'
1231dvidir='${docdir}'
1232pdfdir='${docdir}'
1233psdir='${docdir}'
1234libdir='${exec_prefix}/lib'
1235localedir='${datarootdir}/locale'
1236mandir='${datarootdir}/man'
1237
1238ac_prev=
1239ac_dashdash=
1240for ac_option
1241do
1242 # If the previous option needs an argument, assign it.
1243 if test -n "$ac_prev"; then
1244 eval $ac_prev=\$ac_option
1245 ac_prev=
1246 continue
1247 fi
1248
1249 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001250 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251 *=) ac_optarg= ;;
1252 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001253 esac
1254
1255 # Accept the important Cygnus configure options, so we can diagnose typos.
1256
1257 case $ac_dashdash$ac_option in
1258 --)
1259 ac_dashdash=yes ;;
1260
1261 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262 ac_prev=bindir ;;
1263 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264 bindir=$ac_optarg ;;
1265
1266 -build | --build | --buil | --bui | --bu)
1267 ac_prev=build_alias ;;
1268 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269 build_alias=$ac_optarg ;;
1270
1271 -cache-file | --cache-file | --cache-fil | --cache-fi \
1272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273 ac_prev=cache_file ;;
1274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276 cache_file=$ac_optarg ;;
1277
1278 --config-cache | -C)
1279 cache_file=config.cache ;;
1280
1281 -datadir | --datadir | --datadi | --datad)
1282 ac_prev=datadir ;;
1283 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284 datadir=$ac_optarg ;;
1285
1286 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287 | --dataroo | --dataro | --datar)
1288 ac_prev=datarootdir ;;
1289 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291 datarootdir=$ac_optarg ;;
1292
1293 -disable-* | --disable-*)
1294 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001297 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1301 *"
1302"enable_$ac_useropt"
1303"*) ;;
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1306 esac
1307 eval enable_$ac_useropt=no ;;
1308
1309 -docdir | --docdir | --docdi | --doc | --do)
1310 ac_prev=docdir ;;
1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312 docdir=$ac_optarg ;;
1313
1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315 ac_prev=dvidir ;;
1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317 dvidir=$ac_optarg ;;
1318
1319 -enable-* | --enable-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001323 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1327 *"
1328"enable_$ac_useropt"
1329"*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval enable_$ac_useropt=\$ac_optarg ;;
1334
1335 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337 | --exec | --exe | --ex)
1338 ac_prev=exec_prefix ;;
1339 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341 | --exec=* | --exe=* | --ex=*)
1342 exec_prefix=$ac_optarg ;;
1343
1344 -gas | --gas | --ga | --g)
1345 # Obsolete; use --with-gas.
1346 with_gas=yes ;;
1347
1348 -help | --help | --hel | --he | -h)
1349 ac_init_help=long ;;
1350 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351 ac_init_help=recursive ;;
1352 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353 ac_init_help=short ;;
1354
1355 -host | --host | --hos | --ho)
1356 ac_prev=host_alias ;;
1357 -host=* | --host=* | --hos=* | --ho=*)
1358 host_alias=$ac_optarg ;;
1359
1360 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1361 ac_prev=htmldir ;;
1362 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1363 | --ht=*)
1364 htmldir=$ac_optarg ;;
1365
1366 -includedir | --includedir | --includedi | --included | --include \
1367 | --includ | --inclu | --incl | --inc)
1368 ac_prev=includedir ;;
1369 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370 | --includ=* | --inclu=* | --incl=* | --inc=*)
1371 includedir=$ac_optarg ;;
1372
1373 -infodir | --infodir | --infodi | --infod | --info | --inf)
1374 ac_prev=infodir ;;
1375 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376 infodir=$ac_optarg ;;
1377
1378 -libdir | --libdir | --libdi | --libd)
1379 ac_prev=libdir ;;
1380 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381 libdir=$ac_optarg ;;
1382
1383 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384 | --libexe | --libex | --libe)
1385 ac_prev=libexecdir ;;
1386 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387 | --libexe=* | --libex=* | --libe=*)
1388 libexecdir=$ac_optarg ;;
1389
1390 -localedir | --localedir | --localedi | --localed | --locale)
1391 ac_prev=localedir ;;
1392 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393 localedir=$ac_optarg ;;
1394
1395 -localstatedir | --localstatedir | --localstatedi | --localstated \
1396 | --localstate | --localstat | --localsta | --localst | --locals)
1397 ac_prev=localstatedir ;;
1398 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400 localstatedir=$ac_optarg ;;
1401
1402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1403 ac_prev=mandir ;;
1404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405 mandir=$ac_optarg ;;
1406
1407 -nfp | --nfp | --nf)
1408 # Obsolete; use --without-fp.
1409 with_fp=no ;;
1410
1411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412 | --no-cr | --no-c | -n)
1413 no_create=yes ;;
1414
1415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1417 no_recursion=yes ;;
1418
1419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421 | --oldin | --oldi | --old | --ol | --o)
1422 ac_prev=oldincludedir ;;
1423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426 oldincludedir=$ac_optarg ;;
1427
1428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1429 ac_prev=prefix ;;
1430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431 prefix=$ac_optarg ;;
1432
1433 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434 | --program-pre | --program-pr | --program-p)
1435 ac_prev=program_prefix ;;
1436 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438 program_prefix=$ac_optarg ;;
1439
1440 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441 | --program-suf | --program-su | --program-s)
1442 ac_prev=program_suffix ;;
1443 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445 program_suffix=$ac_optarg ;;
1446
1447 -program-transform-name | --program-transform-name \
1448 | --program-transform-nam | --program-transform-na \
1449 | --program-transform-n | --program-transform- \
1450 | --program-transform | --program-transfor \
1451 | --program-transfo | --program-transf \
1452 | --program-trans | --program-tran \
1453 | --progr-tra | --program-tr | --program-t)
1454 ac_prev=program_transform_name ;;
1455 -program-transform-name=* | --program-transform-name=* \
1456 | --program-transform-nam=* | --program-transform-na=* \
1457 | --program-transform-n=* | --program-transform-=* \
1458 | --program-transform=* | --program-transfor=* \
1459 | --program-transfo=* | --program-transf=* \
1460 | --program-trans=* | --program-tran=* \
1461 | --progr-tra=* | --program-tr=* | --program-t=*)
1462 program_transform_name=$ac_optarg ;;
1463
1464 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1465 ac_prev=pdfdir ;;
1466 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467 pdfdir=$ac_optarg ;;
1468
1469 -psdir | --psdir | --psdi | --psd | --ps)
1470 ac_prev=psdir ;;
1471 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1472 psdir=$ac_optarg ;;
1473
1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475 | -silent | --silent | --silen | --sile | --sil)
1476 silent=yes ;;
1477
1478 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1479 ac_prev=sbindir ;;
1480 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1481 | --sbi=* | --sb=*)
1482 sbindir=$ac_optarg ;;
1483
1484 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486 | --sharedst | --shareds | --shared | --share | --shar \
1487 | --sha | --sh)
1488 ac_prev=sharedstatedir ;;
1489 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1492 | --sha=* | --sh=*)
1493 sharedstatedir=$ac_optarg ;;
1494
1495 -site | --site | --sit)
1496 ac_prev=site ;;
1497 -site=* | --site=* | --sit=*)
1498 site=$ac_optarg ;;
1499
1500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1501 ac_prev=srcdir ;;
1502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503 srcdir=$ac_optarg ;;
1504
1505 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506 | --syscon | --sysco | --sysc | --sys | --sy)
1507 ac_prev=sysconfdir ;;
1508 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510 sysconfdir=$ac_optarg ;;
1511
1512 -target | --target | --targe | --targ | --tar | --ta | --t)
1513 ac_prev=target_alias ;;
1514 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515 target_alias=$ac_optarg ;;
1516
1517 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1518 verbose=yes ;;
1519
1520 -version | --version | --versio | --versi | --vers | -V)
1521 ac_init_version=: ;;
1522
1523 -with-* | --with-*)
1524 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001527 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1531 *"
1532"with_$ac_useropt"
1533"*) ;;
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1536 esac
1537 eval with_$ac_useropt=\$ac_optarg ;;
1538
1539 -without-* | --without-*)
1540 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541 # Reject names that are not valid shell variable names.
1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001543 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001544 ac_useropt_orig=$ac_useropt
1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546 case $ac_user_opts in
1547 *"
1548"with_$ac_useropt"
1549"*) ;;
1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551 ac_unrecognized_sep=', ';;
1552 esac
1553 eval with_$ac_useropt=no ;;
1554
1555 --x)
1556 # Obsolete; use --with-x.
1557 with_x=yes ;;
1558
1559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560 | --x-incl | --x-inc | --x-in | --x-i)
1561 ac_prev=x_includes ;;
1562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564 x_includes=$ac_optarg ;;
1565
1566 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568 ac_prev=x_libraries ;;
1569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571 x_libraries=$ac_optarg ;;
1572
cristy98dddb52010-11-04 00:30:15 +00001573 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001575 ;;
1576
1577 *=*)
1578 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001580 case $ac_envvar in #(
1581 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001582 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001583 esac
cristy3ed852e2009-09-05 21:47:34 +00001584 eval $ac_envvar=\$ac_optarg
1585 export $ac_envvar ;;
1586
1587 *)
1588 # FIXME: should be removed in autoconf 3.0.
1589 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001592 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001593 ;;
1594
1595 esac
1596done
1597
1598if test -n "$ac_prev"; then
1599 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001600 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001601fi
1602
1603if test -n "$ac_unrecognized_opts"; then
1604 case $enable_option_checking in
1605 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001606 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608 esac
1609fi
1610
1611# Check all directory arguments for consistency.
1612for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613 datadir sysconfdir sharedstatedir localstatedir includedir \
1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615 libdir localedir mandir
1616do
1617 eval ac_val=\$$ac_var
1618 # Remove trailing slashes.
1619 case $ac_val in
1620 */ )
1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622 eval $ac_var=\$ac_val;;
1623 esac
1624 # Be sure to have absolute directory names.
1625 case $ac_val in
1626 [\\/$]* | ?:[\\/]* ) continue;;
1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628 esac
cristy98dddb52010-11-04 00:30:15 +00001629 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001630done
1631
1632# There might be people who depend on the old broken behavior: `$host'
1633# used to hold the argument of --host etc.
1634# FIXME: To remove some day.
1635build=$build_alias
1636host=$host_alias
1637target=$target_alias
1638
1639# FIXME: To remove some day.
1640if test "x$host_alias" != x; then
1641 if test "x$build_alias" = x; then
1642 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001643 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1644 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001645 elif test "x$build_alias" != "x$host_alias"; then
1646 cross_compiling=yes
1647 fi
1648fi
1649
1650ac_tool_prefix=
1651test -n "$host_alias" && ac_tool_prefix=$host_alias-
1652
1653test "$silent" = yes && exec 6>/dev/null
1654
1655
1656ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657ac_ls_di=`ls -di .` &&
1658ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001659 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001660test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001661 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001662
1663
1664# Find the source files, if location was not specified.
1665if test -z "$srcdir"; then
1666 ac_srcdir_defaulted=yes
1667 # Try the directory containing this script, then the parent directory.
1668 ac_confdir=`$as_dirname -- "$as_myself" ||
1669$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670 X"$as_myself" : 'X\(//\)[^/]' \| \
1671 X"$as_myself" : 'X\(//\)$' \| \
1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673$as_echo X"$as_myself" |
1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675 s//\1/
1676 q
1677 }
1678 /^X\(\/\/\)[^/].*/{
1679 s//\1/
1680 q
1681 }
1682 /^X\(\/\/\)$/{
1683 s//\1/
1684 q
1685 }
1686 /^X\(\/\).*/{
1687 s//\1/
1688 q
1689 }
1690 s/.*/./; q'`
1691 srcdir=$ac_confdir
1692 if test ! -r "$srcdir/$ac_unique_file"; then
1693 srcdir=..
1694 fi
1695else
1696 ac_srcdir_defaulted=no
1697fi
1698if test ! -r "$srcdir/$ac_unique_file"; then
1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001700 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001701fi
1702ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1703ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001705 pwd)`
1706# When building in place, set srcdir=.
1707if test "$ac_abs_confdir" = "$ac_pwd"; then
1708 srcdir=.
1709fi
1710# Remove unnecessary trailing slashes from srcdir.
1711# Double slashes in file names in object file debugging info
1712# mess up M-x gdb in Emacs.
1713case $srcdir in
1714*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1715esac
1716for ac_var in $ac_precious_vars; do
1717 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718 eval ac_env_${ac_var}_value=\$${ac_var}
1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1721done
1722
1723#
1724# Report the --help message.
1725#
1726if test "$ac_init_help" = "long"; then
1727 # Omit some internal or obsolete options to make the list less imposing.
1728 # This message is too long to be a string in the A/UX 3.1 sh.
1729 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001730\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001731
1732Usage: $0 [OPTION]... [VAR=VALUE]...
1733
1734To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735VAR=VALUE. See below for descriptions of some of the useful variables.
1736
1737Defaults for the options are specified in brackets.
1738
1739Configuration:
1740 -h, --help display this help and exit
1741 --help=short display options specific to this package
1742 --help=recursive display the short help of all the included packages
1743 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001744 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001745 --cache-file=FILE cache test results in FILE [disabled]
1746 -C, --config-cache alias for \`--cache-file=config.cache'
1747 -n, --no-create do not create output files
1748 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1749
1750Installation directories:
1751 --prefix=PREFIX install architecture-independent files in PREFIX
1752 [$ac_default_prefix]
1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1754 [PREFIX]
1755
1756By default, \`make install' will install all the files in
1757\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1758an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759for instance \`--prefix=\$HOME'.
1760
1761For better control, use the options below.
1762
1763Fine tuning of the installation directories:
1764 --bindir=DIR user executables [EPREFIX/bin]
1765 --sbindir=DIR system admin executables [EPREFIX/sbin]
1766 --libexecdir=DIR program executables [EPREFIX/libexec]
1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1770 --libdir=DIR object code libraries [EPREFIX/lib]
1771 --includedir=DIR C header files [PREFIX/include]
1772 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1775 --infodir=DIR info documentation [DATAROOTDIR/info]
1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1777 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001778 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001779 --htmldir=DIR html documentation [DOCDIR]
1780 --dvidir=DIR dvi documentation [DOCDIR]
1781 --pdfdir=DIR pdf documentation [DOCDIR]
1782 --psdir=DIR ps documentation [DOCDIR]
1783_ACEOF
1784
1785 cat <<\_ACEOF
1786
cristy73bd4a52010-10-05 11:24:23 +00001787Program names:
1788 --program-prefix=PREFIX prepend PREFIX to installed program names
1789 --program-suffix=SUFFIX append SUFFIX to installed program names
1790 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1791
cristy3ed852e2009-09-05 21:47:34 +00001792X features:
1793 --x-includes=DIR X include files are in DIR
1794 --x-libraries=DIR X library files are in DIR
1795
1796System types:
1797 --build=BUILD configure for building on BUILD [guessed]
1798 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1799 --target=TARGET configure for building compilers for TARGET [HOST]
1800_ACEOF
1801fi
1802
1803if test -n "$ac_init_help"; then
1804 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001805 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001806 esac
1807 cat <<\_ACEOF
1808
1809Optional Features:
1810 --disable-option-checking ignore unrecognized --enable/--with options
1811 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1812 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001813 --enable-silent-rules less verbose build output (undo: `make V=1')
1814 --disable-silent-rules verbose build output (undo: `make V=0')
1815 --disable-dependency-tracking speeds up one-time build
1816 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001817 --bounds-checking enable run-time bounds-checking
1818 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001819 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001820 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001821 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001822 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001823 --enable-shared[=PKGS] build shared libraries [default=yes]
1824 --enable-static[=PKGS] build static libraries [default=yes]
1825 --enable-fast-install[=PKGS]
1826 optimize for fast installation [default=yes]
1827 --disable-libtool-lock avoid locking (might break parallel builds)
1828 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001829 --enable-delegate-build look for delegate libraries in build directory
1830 --disable-deprecated exclude deprecated methods in MagickCore and
1831 MagickWand API's
1832 --disable-installed Formally install ImageMagick under PREFIX
1833 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001834 --enable-zero-configuration
1835 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001836 zero-configuration ImageMagick
1837 --enable-hdri accurately represent the wide range of intensity
1838 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001839 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001840 --enable-maintainer-mode enable make rules and dependencies not useful
1841 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001842 --enable-ccmalloc enable 'ccmalloc' memory debug support
1843 --enable-efence enable 'efence' memory debug support
1844 --enable-prof enable 'prof' profiling support
1845 --enable-gprof enable 'gprof' profiling support
1846 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001847 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001848
1849Optional Packages:
1850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001852 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1853 --with-dmalloc use dmalloc, as in
1854 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001855 --without-threads disable threads support
cristy74554ef2011-10-27 12:56:11 +00001856 --includedir-arch=DIR ARCH specific include directory
1857 --configdir-arch=DIR ARCH specific config directory
cristy73bd4a52010-10-05 11:24:23 +00001858 --with-pic try to use only PIC/non-PIC objects [default=use
1859 both]
cristyda16f162011-02-19 23:52:17 +00001860 --with-sysroot=DIR Search for dependent libraries within DIR
1861 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001862 --with-included-ltdl use the GNU ltdl sources included here
1863 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1864 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001865 --with-modules enable building dynamically loadable modules
1866 --with-method-prefix=PREFIX
1867 prefix MagickCore API methods
1868 --with-quantum-depth=DEPTH
1869 number of bits in a pixel quantum (default 16)
1870 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1871 memory)
1872 --with-frozenpaths freeze delegate paths
1873 --without-magick-plus-plus
1874 disable build/install of Magick++
1875 --with-perl enable build/install of PerlMagick
1876 --with-perl-options=OPTIONS
1877 options to pass on command-line when generating
1878 PerlMagick's build file
1879 --with-umem enable umem memory allocation library support
1880 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1881 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001882 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001883 --without-zlib disable ZLIB support
1884 --with-autotrace enable autotrace support
1885 --without-dps disable Display Postscript support
1886 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001887 --with-dejavu-font-dir=DIR
1888 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001889 --without-fftw disable FFTW support
1890 --without-fpx disable FlashPIX support
1891 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001892 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001893 --without-gslib enable Ghostscript library support
1894 --with-fontpath=DIR prepend to default font search path
1895 --with-gs-font-dir=DIR Ghostscript font directory
1896 --without-gvc disable GVC support
1897 --without-jbig disable JBIG support
1898 --without-jpeg disable JPEG support
1899 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001900 --without-lcms disable lcms (v1.1X) support
1901 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001902 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001903 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001904 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001905 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001906 --without-png disable PNG support
1907 --without-rsvg disable RSVG support
1908 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001909 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001910 --with-windows-font-dir=DIR
1911 directory containing MS-Windows fonts
1912 --without-wmf disable WMF support
1913 --without-xml disable XML support
1914
1915Some influential environment variables:
1916 CC C compiler command
1917 CFLAGS C compiler flags
1918 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1919 nonstandard directory <lib dir>
1920 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001921 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001922 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001923 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001924 CXX C++ compiler command
1925 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001926 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001927 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001928 XMKMF Path to xmkmf, Makefile generator for X Window System
1929 AUTOTRACE_CFLAGS
1930 C compiler flags for AUTOTRACE, overriding pkg-config
1931 AUTOTRACE_LIBS
1932 linker flags for AUTOTRACE, overriding pkg-config
1933 FONTCONFIG_CFLAGS
1934 C compiler flags for FONTCONFIG, overriding pkg-config
1935 FONTCONFIG_LIBS
1936 linker flags for FONTCONFIG, overriding pkg-config
1937 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1938 GVC_LIBS linker flags for GVC, overriding pkg-config
1939 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1940 LQR_LIBS linker flags for LQR, overriding pkg-config
1941 OPENEXR_CFLAGS
1942 C compiler flags for OPENEXR, overriding pkg-config
1943 OPENEXR_LIBS
1944 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001945 PANGO_CFLAGS
1946 C compiler flags for PANGO, overriding pkg-config
1947 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001948 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1949 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1950 CAIRO_SVG_CFLAGS
1951 C compiler flags for CAIRO_SVG, overriding pkg-config
1952 CAIRO_SVG_LIBS
1953 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001954
1955Use these variables to override the choices made by `configure' or to help
1956it to find libraries and programs with nonstandard names/locations.
1957
1958Report bugs to <http://www.imagemagick.org>.
1959_ACEOF
1960ac_status=$?
1961fi
1962
1963if test "$ac_init_help" = "recursive"; then
1964 # If there are subdirs, report their specific --help.
1965 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966 test -d "$ac_dir" ||
1967 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1968 continue
1969 ac_builddir=.
1970
1971case "$ac_dir" in
1972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973*)
1974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1975 # A ".." for each directory in $ac_dir_suffix.
1976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1977 case $ac_top_builddir_sub in
1978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1980 esac ;;
1981esac
1982ac_abs_top_builddir=$ac_pwd
1983ac_abs_builddir=$ac_pwd$ac_dir_suffix
1984# for backward compatibility:
1985ac_top_builddir=$ac_top_build_prefix
1986
1987case $srcdir in
1988 .) # We are building in place.
1989 ac_srcdir=.
1990 ac_top_srcdir=$ac_top_builddir_sub
1991 ac_abs_top_srcdir=$ac_pwd ;;
1992 [\\/]* | ?:[\\/]* ) # Absolute name.
1993 ac_srcdir=$srcdir$ac_dir_suffix;
1994 ac_top_srcdir=$srcdir
1995 ac_abs_top_srcdir=$srcdir ;;
1996 *) # Relative name.
1997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1998 ac_top_srcdir=$ac_top_build_prefix$srcdir
1999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2000esac
2001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2002
2003 cd "$ac_dir" || { ac_status=$?; continue; }
2004 # Check for guested configure.
2005 if test -f "$ac_srcdir/configure.gnu"; then
2006 echo &&
2007 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2008 elif test -f "$ac_srcdir/configure"; then
2009 echo &&
2010 $SHELL "$ac_srcdir/configure" --help=recursive
2011 else
2012 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2013 fi || ac_status=$?
2014 cd "$ac_pwd" || { ac_status=$?; break; }
2015 done
2016fi
2017
2018test -n "$ac_init_help" && exit $ac_status
2019if $ac_init_version; then
2020 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002021ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002022generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002023
cristy98dddb52010-11-04 00:30:15 +00002024Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002025This configure script is free software; the Free Software Foundation
2026gives unlimited permission to copy, distribute and modify it.
2027_ACEOF
2028 exit
2029fi
cristy8b350f62009-11-15 23:12:43 +00002030
2031## ------------------------ ##
2032## Autoconf initialization. ##
2033## ------------------------ ##
2034
2035# ac_fn_c_try_compile LINENO
2036# --------------------------
2037# Try to compile conftest.$ac_ext, and return whether this succeeded.
2038ac_fn_c_try_compile ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 rm -f conftest.$ac_objext
2042 if { { ac_try="$ac_compile"
2043case "(($ac_try" in
2044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045 *) ac_try_echo=$ac_try;;
2046esac
2047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048$as_echo "$ac_try_echo"; } >&5
2049 (eval "$ac_compile") 2>conftest.err
2050 ac_status=$?
2051 if test -s conftest.err; then
2052 grep -v '^ *+' conftest.err >conftest.er1
2053 cat conftest.er1 >&5
2054 mv -f conftest.er1 conftest.err
2055 fi
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && {
2058 test -z "$ac_c_werror_flag" ||
2059 test ! -s conftest.err
2060 } && test -s conftest.$ac_objext; then :
2061 ac_retval=0
2062else
2063 $as_echo "$as_me: failed program was:" >&5
2064sed 's/^/| /' conftest.$ac_ext >&5
2065
2066 ac_retval=1
2067fi
cristyda16f162011-02-19 23:52:17 +00002068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002069 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002070
2071} # ac_fn_c_try_compile
2072
cristy95646052009-11-28 23:05:30 +00002073# ac_fn_c_try_cpp LINENO
2074# ----------------------
2075# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076ac_fn_c_try_cpp ()
2077{
2078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079 if { { ac_try="$ac_cpp conftest.$ac_ext"
2080case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083esac
2084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085$as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087 ac_status=$?
2088 if test -s conftest.err; then
2089 grep -v '^ *+' conftest.err >conftest.er1
2090 cat conftest.er1 >&5
2091 mv -f conftest.er1 conftest.err
2092 fi
2093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002094 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2096 test ! -s conftest.err
2097 }; then :
2098 ac_retval=0
2099else
2100 $as_echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_retval=1
2104fi
cristyda16f162011-02-19 23:52:17 +00002105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002106 as_fn_set_status $ac_retval
2107
2108} # ac_fn_c_try_cpp
2109
cristy8b350f62009-11-15 23:12:43 +00002110# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2111# -------------------------------------------------------
2112# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2113# the include files in INCLUDES and setting the cache variable VAR
2114# accordingly.
2115ac_fn_c_check_header_mongrel ()
2116{
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002118 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002121if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002122 $as_echo_n "(cached) " >&6
2123fi
2124eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126$as_echo "$ac_res" >&6; }
2127else
2128 # Is the header compilable?
2129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2130$as_echo_n "checking $2 usability... " >&6; }
2131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132/* end confdefs.h. */
2133$4
2134#include <$2>
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_header_compiler=yes
2138else
2139 ac_header_compiler=no
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2143$as_echo "$ac_header_compiler" >&6; }
2144
2145# Is the header present?
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2147$as_echo_n "checking $2 presence... " >&6; }
2148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150#include <$2>
2151_ACEOF
2152if ac_fn_c_try_cpp "$LINENO"; then :
2153 ac_header_preproc=yes
2154else
2155 ac_header_preproc=no
2156fi
cristyda16f162011-02-19 23:52:17 +00002157rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2159$as_echo "$ac_header_preproc" >&6; }
2160
2161# So? What about this header?
2162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2163 yes:no: )
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2165$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 ;;
2169 no:yes:* )
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2171$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2173$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2175$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2177$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002180( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002181## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002182## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002183 ) | sed "s/^/$as_me: WARNING: /" >&2
2184 ;;
2185esac
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002188if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002189 $as_echo_n "(cached) " >&6
2190else
2191 eval "$3=\$ac_header_compiler"
2192fi
2193eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195$as_echo "$ac_res" >&6; }
2196fi
cristyda16f162011-02-19 23:52:17 +00002197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002198
2199} # ac_fn_c_check_header_mongrel
2200
2201# ac_fn_c_try_run LINENO
2202# ----------------------
2203# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204# that executables *can* be run.
2205ac_fn_c_try_run ()
2206{
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { { ac_try="$ac_link"
2209case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212esac
2213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214$as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_link") 2>&5
2216 ac_status=$?
2217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219 { { case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222esac
2223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224$as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_try") 2>&5
2226 ac_status=$?
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; }; }; then :
2229 ac_retval=0
2230else
2231 $as_echo "$as_me: program exited with status $ac_status" >&5
2232 $as_echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 ac_retval=$ac_status
2236fi
2237 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002238 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002239 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002240
2241} # ac_fn_c_try_run
2242
2243# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2244# -------------------------------------------------------
2245# Tests whether HEADER exists and can be compiled using the include files in
2246# INCLUDES, setting the cache variable VAR accordingly.
2247ac_fn_c_check_header_compile ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002252if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002253 $as_echo_n "(cached) " >&6
2254else
2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256/* end confdefs.h. */
2257$4
2258#include <$2>
2259_ACEOF
2260if ac_fn_c_try_compile "$LINENO"; then :
2261 eval "$3=yes"
2262else
2263 eval "$3=no"
2264fi
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267eval ac_res=\$$3
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002271
2272} # ac_fn_c_check_header_compile
2273
cristya0b81c32010-01-22 02:54:33 +00002274# ac_fn_cxx_try_compile LINENO
2275# ----------------------------
2276# Try to compile conftest.$ac_ext, and return whether this succeeded.
2277ac_fn_cxx_try_compile ()
2278{
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 rm -f conftest.$ac_objext
2281 if { { ac_try="$ac_compile"
2282case "(($ac_try" in
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2285esac
2286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287$as_echo "$ac_try_echo"; } >&5
2288 (eval "$ac_compile") 2>conftest.err
2289 ac_status=$?
2290 if test -s conftest.err; then
2291 grep -v '^ *+' conftest.err >conftest.er1
2292 cat conftest.er1 >&5
2293 mv -f conftest.er1 conftest.err
2294 fi
2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296 test $ac_status = 0; } && {
2297 test -z "$ac_cxx_werror_flag" ||
2298 test ! -s conftest.err
2299 } && test -s conftest.$ac_objext; then :
2300 ac_retval=0
2301else
2302 $as_echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 ac_retval=1
2306fi
cristyda16f162011-02-19 23:52:17 +00002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002308 as_fn_set_status $ac_retval
2309
2310} # ac_fn_cxx_try_compile
2311
cristy8b350f62009-11-15 23:12:43 +00002312# ac_fn_c_try_link LINENO
2313# -----------------------
2314# Try to link conftest.$ac_ext, and return whether this succeeded.
2315ac_fn_c_try_link ()
2316{
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 rm -f conftest.$ac_objext conftest$ac_exeext
2319 if { { ac_try="$ac_link"
2320case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
2324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325$as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_link") 2>conftest.err
2327 ac_status=$?
2328 if test -s conftest.err; then
2329 grep -v '^ *+' conftest.err >conftest.er1
2330 cat conftest.er1 >&5
2331 mv -f conftest.er1 conftest.err
2332 fi
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && {
2335 test -z "$ac_c_werror_flag" ||
2336 test ! -s conftest.err
2337 } && test -s conftest$ac_exeext && {
2338 test "$cross_compiling" = yes ||
2339 $as_test_x conftest$ac_exeext
2340 }; then :
2341 ac_retval=0
2342else
2343 $as_echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 ac_retval=1
2347fi
2348 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2349 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2350 # interfere with the next link command; also delete a directory that is
2351 # left behind by Apple's compiler. We do this before executing the actions.
2352 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002354 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002355
2356} # ac_fn_c_try_link
2357
cristy73bd4a52010-10-05 11:24:23 +00002358# ac_fn_c_check_func LINENO FUNC VAR
2359# ----------------------------------
2360# Tests whether FUNC exists, setting the cache variable VAR accordingly
2361ac_fn_c_check_func ()
2362{
2363 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002366if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002367 $as_echo_n "(cached) " >&6
2368else
2369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370/* end confdefs.h. */
2371/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2373#define $2 innocuous_$2
2374
2375/* System header to define __stub macros and hopefully few prototypes,
2376 which can conflict with char $2 (); below.
2377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 <limits.h> exists even on freestanding compilers. */
2379
2380#ifdef __STDC__
2381# include <limits.h>
2382#else
2383# include <assert.h>
2384#endif
2385
2386#undef $2
2387
2388/* Override any GCC internal prototype to avoid an error.
2389 Use char because int might match the return type of a GCC
2390 builtin and then its argument prototype would still apply. */
2391#ifdef __cplusplus
2392extern "C"
2393#endif
2394char $2 ();
2395/* The GNU C library defines this for functions which it implements
2396 to always fail with ENOSYS. Some functions are actually named
2397 something starting with __ and the normal name is an alias. */
2398#if defined __stub_$2 || defined __stub___$2
2399choke me
2400#endif
2401
2402int
2403main ()
2404{
2405return $2 ();
2406 ;
2407 return 0;
2408}
2409_ACEOF
2410if ac_fn_c_try_link "$LINENO"; then :
2411 eval "$3=yes"
2412else
2413 eval "$3=no"
2414fi
2415rm -f core conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
2417fi
2418eval ac_res=\$$3
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002422
2423} # ac_fn_c_check_func
2424
2425# ac_fn_cxx_try_cpp LINENO
2426# ------------------------
2427# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428ac_fn_cxx_try_cpp ()
2429{
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 if { { ac_try="$ac_cpp conftest.$ac_ext"
2432case "(($ac_try" in
2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434 *) ac_try_echo=$ac_try;;
2435esac
2436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437$as_echo "$ac_try_echo"; } >&5
2438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439 ac_status=$?
2440 if test -s conftest.err; then
2441 grep -v '^ *+' conftest.err >conftest.er1
2442 cat conftest.er1 >&5
2443 mv -f conftest.er1 conftest.err
2444 fi
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002446 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002447 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2448 test ! -s conftest.err
2449 }; then :
2450 ac_retval=0
2451else
2452 $as_echo "$as_me: failed program was:" >&5
2453sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_retval=1
2456fi
cristyda16f162011-02-19 23:52:17 +00002457 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002458 as_fn_set_status $ac_retval
2459
2460} # ac_fn_cxx_try_cpp
2461
2462# ac_fn_cxx_try_link LINENO
2463# -------------------------
2464# Try to link conftest.$ac_ext, and return whether this succeeded.
2465ac_fn_cxx_try_link ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 rm -f conftest.$ac_objext conftest$ac_exeext
2469 if { { ac_try="$ac_link"
2470case "(($ac_try" in
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2473esac
2474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475$as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link") 2>conftest.err
2477 ac_status=$?
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2482 fi
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } && {
2485 test -z "$ac_cxx_werror_flag" ||
2486 test ! -s conftest.err
2487 } && test -s conftest$ac_exeext && {
2488 test "$cross_compiling" = yes ||
2489 $as_test_x conftest$ac_exeext
2490 }; then :
2491 ac_retval=0
2492else
2493 $as_echo "$as_me: failed program was:" >&5
2494sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 ac_retval=1
2497fi
2498 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500 # interfere with the next link command; also delete a directory that is
2501 # left behind by Apple's compiler. We do this before executing the actions.
2502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002504 as_fn_set_status $ac_retval
2505
2506} # ac_fn_cxx_try_link
2507
cristy98dddb52010-11-04 00:30:15 +00002508# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2509# ---------------------------------------------
2510# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2511# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002512ac_fn_c_check_decl ()
2513{
2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002515 as_decl_name=`echo $2|sed 's/ *(.*//'`
2516 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2518$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002519if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002520 $as_echo_n "(cached) " >&6
2521else
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523/* end confdefs.h. */
2524$4
2525int
2526main ()
2527{
cristy98dddb52010-11-04 00:30:15 +00002528#ifndef $as_decl_name
2529#ifdef __cplusplus
2530 (void) $as_decl_use;
2531#else
2532 (void) $as_decl_name;
2533#endif
cristy73bd4a52010-10-05 11:24:23 +00002534#endif
2535
2536 ;
2537 return 0;
2538}
2539_ACEOF
2540if ac_fn_c_try_compile "$LINENO"; then :
2541 eval "$3=yes"
2542else
2543 eval "$3=no"
2544fi
2545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547eval ac_res=\$$3
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002551
2552} # ac_fn_c_check_decl
2553
cristy8b350f62009-11-15 23:12:43 +00002554# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555# -------------------------------------------
2556# Tests whether TYPE exists after having included INCLUDES, setting cache
2557# variable VAR accordingly.
2558ac_fn_c_check_type ()
2559{
2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002563if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002564 $as_echo_n "(cached) " >&6
2565else
2566 eval "$3=no"
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$4
2570int
2571main ()
2572{
2573if (sizeof ($2))
2574 return 0;
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_compile "$LINENO"; then :
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581/* end confdefs.h. */
2582$4
2583int
2584main ()
2585{
2586if (sizeof (($2)))
2587 return 0;
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592if ac_fn_c_try_compile "$LINENO"; then :
2593
2594else
2595 eval "$3=yes"
2596fi
2597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601eval ac_res=\$$3
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002605
2606} # ac_fn_c_check_type
2607
cristy92703d82010-04-26 00:18:18 +00002608# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2609# ----------------------------------------------------
2610# Tries to find if the field MEMBER exists in type AGGR, after including
2611# INCLUDES, setting cache variable VAR accordingly.
2612ac_fn_c_check_member ()
2613{
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2616$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002617if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002618 $as_echo_n "(cached) " >&6
2619else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$5
2623int
2624main ()
2625{
2626static $2 ac_aggr;
2627if (ac_aggr.$3)
2628return 0;
2629 ;
2630 return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634 eval "$4=yes"
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (sizeof ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 eval "$4=no"
2653fi
2654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658eval ac_res=\$$4
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002662
2663} # ac_fn_c_check_member
2664
cristy501c8042011-05-26 17:46:28 +00002665# ac_fn_c_find_intX_t LINENO BITS VAR
2666# -----------------------------------
2667# Finds a signed integer type with width BITS, setting cache variable VAR
2668# accordingly.
2669ac_fn_c_find_intX_t ()
2670{
2671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2673$as_echo_n "checking for int$2_t... " >&6; }
2674if eval \${$3+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676else
2677 eval "$3=no"
2678 # Order is important - never check a type that is potentially smaller
2679 # than half of the expected target width.
2680 for ac_type in int$2_t 'int' 'long int' \
2681 'long long int' 'short int' 'signed char'; do
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683/* end confdefs.h. */
2684$ac_includes_default
2685 enum { N = $2 / 2 - 1 };
2686int
2687main ()
2688{
2689static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2690test_array [0] = 0
2691
2692 ;
2693 return 0;
2694}
2695_ACEOF
2696if ac_fn_c_try_compile "$LINENO"; then :
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698/* end confdefs.h. */
2699$ac_includes_default
2700 enum { N = $2 / 2 - 1 };
2701int
2702main ()
2703{
2704static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2705 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713
2714else
2715 case $ac_type in #(
2716 int$2_t) :
2717 eval "$3=yes" ;; #(
2718 *) :
2719 eval "$3=\$ac_type" ;;
2720esac
2721fi
2722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723fi
2724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 if eval test \"x\$"$3"\" = x"no"; then :
2726
2727else
2728 break
2729fi
2730 done
2731fi
2732eval ac_res=\$$3
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734$as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736
2737} # ac_fn_c_find_intX_t
2738
2739# ac_fn_c_find_uintX_t LINENO BITS VAR
2740# ------------------------------------
2741# Finds an unsigned integer type with width BITS, setting cache variable VAR
2742# accordingly.
2743ac_fn_c_find_uintX_t ()
2744{
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2747$as_echo_n "checking for uint$2_t... " >&6; }
2748if eval \${$3+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750else
2751 eval "$3=no"
2752 # Order is important - never check a type that is potentially smaller
2753 # than half of the expected target width.
2754 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2755 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757/* end confdefs.h. */
2758$ac_includes_default
2759int
2760main ()
2761{
2762static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2763test_array [0] = 0
2764
2765 ;
2766 return 0;
2767}
2768_ACEOF
2769if ac_fn_c_try_compile "$LINENO"; then :
2770 case $ac_type in #(
2771 uint$2_t) :
2772 eval "$3=yes" ;; #(
2773 *) :
2774 eval "$3=\$ac_type" ;;
2775esac
2776fi
2777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 if eval test \"x\$"$3"\" = x"no"; then :
2779
2780else
2781 break
2782fi
2783 done
2784fi
2785eval ac_res=\$$3
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787$as_echo "$ac_res" >&6; }
2788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789
2790} # ac_fn_c_find_uintX_t
2791
cristy8b350f62009-11-15 23:12:43 +00002792# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2793# --------------------------------------------
2794# Tries to find the compile-time value of EXPR in a program that includes
2795# INCLUDES, setting VAR accordingly. Returns whether the value could be
2796# computed
2797ac_fn_c_compute_int ()
2798{
2799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800 if test "$cross_compiling" = yes; then
2801 # Depending upon the size, compute the lo and hi bounds.
2802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$4
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !(($2) >= 0)];
2809test_array [0] = 0
2810
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_lo=0 ac_mid=0
2817 while :; do
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$4
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2825test_array [0] = 0
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_hi=$ac_mid; break
2833else
2834 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2835 if test $ac_lo -le $ac_mid; then
2836 ac_lo= ac_hi=
2837 break
2838 fi
2839 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2840fi
2841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 done
2843else
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845/* end confdefs.h. */
2846$4
2847int
2848main ()
2849{
2850static int test_array [1 - 2 * !(($2) < 0)];
2851test_array [0] = 0
2852
2853 ;
2854 return 0;
2855}
2856_ACEOF
2857if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_hi=-1 ac_mid=-1
2859 while :; do
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2867test_array [0] = 0
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_lo=$ac_mid; break
2875else
2876 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2877 if test $ac_mid -le $ac_hi; then
2878 ac_lo= ac_hi=
2879 break
2880 fi
2881 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2882fi
2883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 done
2885else
2886 ac_lo= ac_hi=
2887fi
2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891# Binary search between lo and hi bounds.
2892while test "x$ac_lo" != "x$ac_hi"; do
2893 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2901test_array [0] = 0
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=$ac_mid
2909else
2910 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913done
2914case $ac_lo in #((
2915?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2916'') ac_retval=1 ;;
2917esac
2918 else
2919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920/* end confdefs.h. */
2921$4
2922static long int longval () { return $2; }
2923static unsigned long int ulongval () { return $2; }
2924#include <stdio.h>
2925#include <stdlib.h>
2926int
2927main ()
2928{
2929
2930 FILE *f = fopen ("conftest.val", "w");
2931 if (! f)
2932 return 1;
2933 if (($2) < 0)
2934 {
2935 long int i = longval ();
2936 if (i != ($2))
2937 return 1;
2938 fprintf (f, "%ld", i);
2939 }
2940 else
2941 {
2942 unsigned long int i = ulongval ();
2943 if (i != ($2))
2944 return 1;
2945 fprintf (f, "%lu", i);
2946 }
2947 /* Do not output a trailing newline, as this causes \r\n confusion
2948 on some platforms. */
2949 return ferror (f) || fclose (f) != 0;
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955if ac_fn_c_try_run "$LINENO"; then :
2956 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2957else
2958 ac_retval=1
2959fi
2960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2961 conftest.$ac_objext conftest.beam conftest.$ac_ext
2962rm -f conftest.val
2963
2964 fi
cristyda16f162011-02-19 23:52:17 +00002965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002966 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002967
2968} # ac_fn_c_compute_int
2969
2970# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2971# ---------------------------------------------------------
2972# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2973# the include files in INCLUDES and setting the cache variable VAR
2974# accordingly.
2975ac_fn_cxx_check_header_mongrel ()
2976{
2977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002978 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2980$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002981if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002982 $as_echo_n "(cached) " >&6
2983fi
2984eval ac_res=\$$3
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986$as_echo "$ac_res" >&6; }
2987else
2988 # Is the header compilable?
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2990$as_echo_n "checking $2 usability... " >&6; }
2991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992/* end confdefs.h. */
2993$4
2994#include <$2>
2995_ACEOF
2996if ac_fn_cxx_try_compile "$LINENO"; then :
2997 ac_header_compiler=yes
2998else
2999 ac_header_compiler=no
3000fi
3001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3003$as_echo "$ac_header_compiler" >&6; }
3004
3005# Is the header present?
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3007$as_echo_n "checking $2 presence... " >&6; }
3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009/* end confdefs.h. */
3010#include <$2>
3011_ACEOF
3012if ac_fn_cxx_try_cpp "$LINENO"; then :
3013 ac_header_preproc=yes
3014else
3015 ac_header_preproc=no
3016fi
cristyda16f162011-02-19 23:52:17 +00003017rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3019$as_echo "$ac_header_preproc" >&6; }
3020
3021# So? What about this header?
3022case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3023 yes:no: )
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3028 ;;
3029 no:yes:* )
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3033$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3037$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003040( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003041## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003042## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003043 ) | sed "s/^/$as_me: WARNING: /" >&2
3044 ;;
3045esac
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003048if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003049 $as_echo_n "(cached) " >&6
3050else
3051 eval "$3=\$ac_header_compiler"
3052fi
3053eval ac_res=\$$3
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3055$as_echo "$ac_res" >&6; }
3056fi
cristyda16f162011-02-19 23:52:17 +00003057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003058
3059} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003060cat >config.log <<_ACEOF
3061This file contains any messages produced by compilers while
3062running configure, to aid debugging if configure makes a mistake.
3063
cristy29eb34e2011-10-16 00:46:08 +00003064It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003065generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003066
3067 $ $0 $@
3068
3069_ACEOF
3070exec 5>>config.log
3071{
3072cat <<_ASUNAME
3073## --------- ##
3074## Platform. ##
3075## --------- ##
3076
3077hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3078uname -m = `(uname -m) 2>/dev/null || echo unknown`
3079uname -r = `(uname -r) 2>/dev/null || echo unknown`
3080uname -s = `(uname -s) 2>/dev/null || echo unknown`
3081uname -v = `(uname -v) 2>/dev/null || echo unknown`
3082
3083/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3084/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3085
3086/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3087/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3088/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3089/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3090/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3091/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3092/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3093
3094_ASUNAME
3095
3096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097for as_dir in $PATH
3098do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo "PATH: $as_dir"
3102 done
cristy3ed852e2009-09-05 21:47:34 +00003103IFS=$as_save_IFS
3104
3105} >&5
3106
3107cat >&5 <<_ACEOF
3108
3109
3110## ----------- ##
3111## Core tests. ##
3112## ----------- ##
3113
3114_ACEOF
3115
3116
3117# Keep a trace of the command line.
3118# Strip out --no-create and --no-recursion so they do not pile up.
3119# Strip out --silent because we don't want to record it for future runs.
3120# Also quote any args containing shell meta-characters.
3121# Make two passes to allow for proper duplicate-argument suppression.
3122ac_configure_args=
3123ac_configure_args0=
3124ac_configure_args1=
3125ac_must_keep_next=false
3126for ac_pass in 1 2
3127do
3128 for ac_arg
3129 do
3130 case $ac_arg in
3131 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3133 | -silent | --silent | --silen | --sile | --sil)
3134 continue ;;
3135 *\'*)
3136 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3137 esac
3138 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003139 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003140 2)
cristy8b350f62009-11-15 23:12:43 +00003141 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003142 if test $ac_must_keep_next = true; then
3143 ac_must_keep_next=false # Got value, back to normal.
3144 else
3145 case $ac_arg in
3146 *=* | --config-cache | -C | -disable-* | --disable-* \
3147 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3148 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3149 | -with-* | --with-* | -without-* | --without-* | --x)
3150 case "$ac_configure_args0 " in
3151 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3152 esac
3153 ;;
3154 -* ) ac_must_keep_next=true ;;
3155 esac
3156 fi
cristy8b350f62009-11-15 23:12:43 +00003157 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003158 ;;
3159 esac
3160 done
3161done
cristy8b350f62009-11-15 23:12:43 +00003162{ ac_configure_args0=; unset ac_configure_args0;}
3163{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003164
3165# When interrupted or exit'd, cleanup temporary files, and complete
3166# config.log. We remove comments because anyway the quotes in there
3167# would cause problems or look ugly.
3168# WARNING: Use '\'' to represent an apostrophe within the trap.
3169# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3170trap 'exit_status=$?
3171 # Save into config.log some information that might help in debugging.
3172 {
3173 echo
3174
cristy98dddb52010-11-04 00:30:15 +00003175 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003176## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003177## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003178 echo
3179 # The following way of writing the cache mishandles newlines in values,
3180(
3181 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3182 eval ac_val=\$$ac_var
3183 case $ac_val in #(
3184 *${as_nl}*)
3185 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003187$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3188 esac
3189 case $ac_var in #(
3190 _ | IFS | as_nl) ;; #(
3191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003192 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003193 esac ;;
3194 esac
3195 done
3196 (set) 2>&1 |
3197 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3198 *${as_nl}ac_space=\ *)
3199 sed -n \
3200 "s/'\''/'\''\\\\'\'''\''/g;
3201 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3202 ;; #(
3203 *)
3204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3205 ;;
3206 esac |
3207 sort
3208)
3209 echo
3210
cristy98dddb52010-11-04 00:30:15 +00003211 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003212## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003213## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003214 echo
3215 for ac_var in $ac_subst_vars
3216 do
3217 eval ac_val=\$$ac_var
3218 case $ac_val in
3219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220 esac
3221 $as_echo "$ac_var='\''$ac_val'\''"
3222 done | sort
3223 echo
3224
3225 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003226 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003227## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003228## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003229 echo
3230 for ac_var in $ac_subst_files
3231 do
3232 eval ac_val=\$$ac_var
3233 case $ac_val in
3234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3235 esac
3236 $as_echo "$ac_var='\''$ac_val'\''"
3237 done | sort
3238 echo
3239 fi
3240
3241 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003242 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003243## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003244## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003245 echo
3246 cat confdefs.h
3247 echo
3248 fi
3249 test "$ac_signal" != 0 &&
3250 $as_echo "$as_me: caught signal $ac_signal"
3251 $as_echo "$as_me: exit $exit_status"
3252 } >&5
3253 rm -f core *.core core.conftest.* &&
3254 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3255 exit $exit_status
3256' 0
3257for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003258 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003259done
3260ac_signal=0
3261
3262# confdefs.h avoids OS command line length limits that DEFS can exceed.
3263rm -f -r conftest* confdefs.h
3264
cristy8b350f62009-11-15 23:12:43 +00003265$as_echo "/* confdefs.h */" > confdefs.h
3266
cristy3ed852e2009-09-05 21:47:34 +00003267# Predefined preprocessor variables.
3268
3269cat >>confdefs.h <<_ACEOF
3270#define PACKAGE_NAME "$PACKAGE_NAME"
3271_ACEOF
3272
cristy3ed852e2009-09-05 21:47:34 +00003273cat >>confdefs.h <<_ACEOF
3274#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3275_ACEOF
3276
cristy3ed852e2009-09-05 21:47:34 +00003277cat >>confdefs.h <<_ACEOF
3278#define PACKAGE_VERSION "$PACKAGE_VERSION"
3279_ACEOF
3280
cristy3ed852e2009-09-05 21:47:34 +00003281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_STRING "$PACKAGE_STRING"
3283_ACEOF
3284
cristy3ed852e2009-09-05 21:47:34 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3287_ACEOF
3288
cristy8b350f62009-11-15 23:12:43 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_URL "$PACKAGE_URL"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293
3294# Let the site file select an alternate cache file if it wants to.
3295# Prefer an explicitly selected file to automatically selected ones.
3296ac_site_file1=NONE
3297ac_site_file2=NONE
3298if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003299 # We do not want a PATH search for config.site.
3300 case $CONFIG_SITE in #((
3301 -*) ac_site_file1=./$CONFIG_SITE;;
3302 */*) ac_site_file1=$CONFIG_SITE;;
3303 *) ac_site_file1=./$CONFIG_SITE;;
3304 esac
cristy3ed852e2009-09-05 21:47:34 +00003305elif test "x$prefix" != xNONE; then
3306 ac_site_file1=$prefix/share/config.site
3307 ac_site_file2=$prefix/etc/config.site
3308else
3309 ac_site_file1=$ac_default_prefix/share/config.site
3310 ac_site_file2=$ac_default_prefix/etc/config.site
3311fi
3312for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3313do
3314 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003315 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003316 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003317$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3318 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003319 . "$ac_site_file" \
3320 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error $? "failed to load site script $ac_site_file
3323See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003324 fi
3325done
3326
3327if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003328 # Some versions of bash will fail to source /dev/null (special files
3329 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3330 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003332$as_echo "$as_me: loading cache $cache_file" >&6;}
3333 case $cache_file in
3334 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3335 *) . "./$cache_file";;
3336 esac
3337 fi
3338else
cristy8b350f62009-11-15 23:12:43 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo "$as_me: creating cache $cache_file" >&6;}
3341 >$cache_file
3342fi
3343
cristycd4c5312009-11-22 01:19:08 +00003344as_fn_append ac_header_list " stdlib.h"
3345as_fn_append ac_header_list " unistd.h"
3346as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003347# Check that the precious variables saved in the cache have kept the same
3348# value.
3349ac_cache_corrupted=false
3350for ac_var in $ac_precious_vars; do
3351 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352 eval ac_new_set=\$ac_env_${ac_var}_set
3353 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354 eval ac_new_val=\$ac_env_${ac_var}_value
3355 case $ac_old_set,$ac_new_set in
3356 set,)
cristy8b350f62009-11-15 23:12:43 +00003357 { $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 +00003358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359 ac_cache_corrupted=: ;;
3360 ,set)
cristy8b350f62009-11-15 23:12:43 +00003361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363 ac_cache_corrupted=: ;;
3364 ,);;
3365 *)
3366 if test "x$ac_old_val" != "x$ac_new_val"; then
3367 # differences in whitespace do not lead to failure.
3368 ac_old_val_w=`echo x $ac_old_val`
3369 ac_new_val_w=`echo x $ac_new_val`
3370 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373 ac_cache_corrupted=:
3374 else
cristy8b350f62009-11-15 23:12:43 +00003375 { $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 +00003376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377 eval $ac_var=\$ac_old_val
3378 fi
cristy8b350f62009-11-15 23:12:43 +00003379 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003380$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003381 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003382$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3383 fi;;
3384 esac
3385 # Pass precious variables to config.status.
3386 if test "$ac_new_set" = set; then
3387 case $ac_new_val in
3388 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389 *) ac_arg=$ac_var=$ac_new_val ;;
3390 esac
3391 case " $ac_configure_args " in
3392 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003393 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003394 esac
3395 fi
3396done
3397if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003402 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003403fi
cristy8b350f62009-11-15 23:12:43 +00003404## -------------------- ##
3405## Main body of script. ##
3406## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003407
3408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415
3416ac_aux_dir=
3417for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003418 if test -f "$ac_dir/install-sh"; then
3419 ac_aux_dir=$ac_dir
3420 ac_install_sh="$ac_aux_dir/install-sh -c"
3421 break
3422 elif test -f "$ac_dir/install.sh"; then
3423 ac_aux_dir=$ac_dir
3424 ac_install_sh="$ac_aux_dir/install.sh -c"
3425 break
3426 elif test -f "$ac_dir/shtool"; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/shtool install -c"
3429 break
3430 fi
cristy3ed852e2009-09-05 21:47:34 +00003431done
3432if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003433 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003434fi
3435
3436# These three variables are undocumented and unsupported,
3437# and are intended to be withdrawn in a future Autoconf release.
3438# They can cause serious problems if a builder's source tree is in a directory
3439# whose full name contains unusual characters.
3440ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3441ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3442ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3443
3444
3445
3446
3447ac_config_headers="$ac_config_headers config/config.h"
3448
cristy24fc1fe2010-10-23 21:13:01 +00003449
cristy4c08aed2011-07-01 19:47:50 +00003450ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003451
cristy4c08aed2011-07-01 19:47:50 +00003452ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003453
3454
3455#
3456# Save initial user-tunable values
3457#
3458USER_LIBS=$LIBS
3459for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3460 eval isset=\${$var+set}
3461 if test "$isset" = 'set'; then
3462 eval val=$`echo $var`
3463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3464 fi
3465done
3466
3467
3468CONFIGURE_ARGS="$0 ${ac_configure_args}"
3469
3470
3471# Source file containing package/library versioning information.
3472. ${srcdir}/version.sh
3473
cristy15a88782010-01-31 23:24:49 +00003474echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003475# Make sure we can run config.sub.
3476$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003477 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003478
cristy8b350f62009-11-15 23:12:43 +00003479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003480$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003481if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003482 $as_echo_n "(cached) " >&6
3483else
3484 ac_build_alias=$build_alias
3485test "x$ac_build_alias" = x &&
3486 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3487test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003488 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003489ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003491
3492fi
cristy8b350f62009-11-15 23:12:43 +00003493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003494$as_echo "$ac_cv_build" >&6; }
3495case $ac_cv_build in
3496*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003497*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003498esac
3499build=$ac_cv_build
3500ac_save_IFS=$IFS; IFS='-'
3501set x $ac_cv_build
3502shift
3503build_cpu=$1
3504build_vendor=$2
3505shift; shift
3506# Remember, the first character of IFS is used to create $*,
3507# except with old shells:
3508build_os=$*
3509IFS=$ac_save_IFS
3510case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3511
3512
cristy8b350f62009-11-15 23:12:43 +00003513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003515if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003516 $as_echo_n "(cached) " >&6
3517else
3518 if test "x$host_alias" = x; then
3519 ac_cv_host=$ac_cv_build
3520else
3521 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003522 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003523fi
3524
3525fi
cristy8b350f62009-11-15 23:12:43 +00003526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003527$as_echo "$ac_cv_host" >&6; }
3528case $ac_cv_host in
3529*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003530*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003531esac
3532host=$ac_cv_host
3533ac_save_IFS=$IFS; IFS='-'
3534set x $ac_cv_host
3535shift
3536host_cpu=$1
3537host_vendor=$2
3538shift; shift
3539# Remember, the first character of IFS is used to create $*,
3540# except with old shells:
3541host_os=$*
3542IFS=$ac_save_IFS
3543case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3544
3545
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003548if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003549 $as_echo_n "(cached) " >&6
3550else
3551 if test "x$target_alias" = x; then
3552 ac_cv_target=$ac_cv_host
3553else
3554 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003556fi
3557
3558fi
cristy8b350f62009-11-15 23:12:43 +00003559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003560$as_echo "$ac_cv_target" >&6; }
3561case $ac_cv_target in
3562*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003563*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003564esac
3565target=$ac_cv_target
3566ac_save_IFS=$IFS; IFS='-'
3567set x $ac_cv_target
3568shift
3569target_cpu=$1
3570target_vendor=$2
3571shift; shift
3572# Remember, the first character of IFS is used to create $*,
3573# except with old shells:
3574target_os=$*
3575IFS=$ac_save_IFS
3576case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3577
3578
3579# The aliases save the names the user supplied, while $host etc.
3580# will get canonicalized.
3581test -n "$target_alias" &&
3582 test "$program_prefix$program_suffix$program_transform_name" = \
3583 NONENONEs,x,x, &&
3584 program_prefix=${target_alias}-
3585
cristy837d6dc2010-02-27 01:16:57 +00003586
3587
3588
cristy19615b82011-04-13 20:02:01 +00003589MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003590
3591
cristy19615b82011-04-13 20:02:01 +00003592MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003593
3594
cristy19615b82011-04-13 20:02:01 +00003595MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003596
3597
cristy3ed852e2009-09-05 21:47:34 +00003598# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003599MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3600
3601MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3602
cristybd4fb6e2011-10-26 13:10:01 +00003603MAGICK_SVN_REVISION=5750
cristyd694ca32011-03-27 21:42:54 +00003604
3605
cristy3ed852e2009-09-05 21:47:34 +00003606
3607
3608# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3610$as_echo_n "checking whether build environment is sane... " >&6; }
3611# Just in case
3612sleep 1
3613echo timestamp > conftest.file
3614# Reject unsafe characters in $srcdir or the absolute working directory
3615# name. Accept space and tab only in the latter.
3616am_lf='
3617'
3618case `pwd` in
3619 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003620 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003621esac
3622case $srcdir in
3623 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003624 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003625esac
cristy3ed852e2009-09-05 21:47:34 +00003626
cristy73bd4a52010-10-05 11:24:23 +00003627# Do `set' in a subshell so we don't clobber the current shell's
3628# arguments. Must try -L first in case configure is actually a
3629# symlink; some systems play weird games with the mod time of symlinks
3630# (eg FreeBSD returns the mod time of the symlink's containing
3631# directory).
3632if (
3633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3634 if test "$*" = "X"; then
3635 # -L didn't work.
3636 set X `ls -t "$srcdir/configure" conftest.file`
3637 fi
3638 rm -f conftest.file
3639 if test "$*" != "X $srcdir/configure conftest.file" \
3640 && test "$*" != "X conftest.file $srcdir/configure"; then
3641
3642 # If neither matched, then we have a broken ls. This can happen
3643 # if, for instance, CONFIG_SHELL is bash and it inherits a
3644 # broken ls alias from the environment. This has actually
3645 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003646 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003647alias in your environment" "$LINENO" 5
3648 fi
3649
3650 test "$2" = conftest.file
3651 )
3652then
3653 # Ok.
3654 :
3655else
cristy98dddb52010-11-04 00:30:15 +00003656 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003657Check your system clock" "$LINENO" 5
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660$as_echo "yes" >&6; }
3661
3662am__api_version='1.11'
3663
3664# Find a good install program. We prefer a C program (faster),
3665# so one script is as good as another. But avoid the broken or
3666# incompatible versions:
3667# SysV /etc/install, /usr/sbin/install
3668# SunOS /usr/etc/install
3669# IRIX /sbin/install
3670# AIX /bin/install
3671# AmigaOS /C/install, which installs bootblocks on floppy discs
3672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675# OS/2's system install, which has a completely different semantic
3676# ./install, which can be erroneously created by make from ./install.sh.
3677# Reject install programs that cannot install multiple files.
3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679$as_echo_n "checking for a BSD-compatible install... " >&6; }
3680if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003681if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003682 $as_echo_n "(cached) " >&6
3683else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685for as_dir in $PATH
3686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 # Account for people who put trailing slashes in PATH elements.
3690case $as_dir/ in #((
3691 ./ | .// | /[cC]/* | \
3692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3694 /usr/ucb/* ) ;;
3695 *)
3696 # OSF1 and SCO ODT 3.0 have their own names for install.
3697 # Don't use installbsd from OSF since it installs stuff as root
3698 # by default.
3699 for ac_prog in ginstall scoinst install; do
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3702 if test $ac_prog = install &&
3703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704 # AIX install. It has an incompatible calling convention.
3705 :
3706 elif test $ac_prog = install &&
3707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708 # program-specific install script used by HP pwplus--don't use.
3709 :
3710 else
3711 rm -rf conftest.one conftest.two conftest.dir
3712 echo one > conftest.one
3713 echo two > conftest.two
3714 mkdir conftest.dir
3715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3716 test -s conftest.one && test -s conftest.two &&
3717 test -s conftest.dir/conftest.one &&
3718 test -s conftest.dir/conftest.two
3719 then
3720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3721 break 3
3722 fi
3723 fi
3724 fi
3725 done
3726 done
3727 ;;
3728esac
3729
3730 done
3731IFS=$as_save_IFS
3732
3733rm -rf conftest.one conftest.two conftest.dir
3734
3735fi
3736 if test "${ac_cv_path_install+set}" = set; then
3737 INSTALL=$ac_cv_path_install
3738 else
3739 # As a last resort, use the slow shell script. Don't cache a
3740 # value for INSTALL within a source directory, because that will
3741 # break other packages using the cache if that directory is
3742 # removed, or if the value is a relative name.
3743 INSTALL=$ac_install_sh
3744 fi
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3747$as_echo "$INSTALL" >&6; }
3748
3749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3750# It thinks the first close brace ends the variable substitution.
3751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3752
3753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3754
3755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3756
3757test "$program_prefix" != NONE &&
3758 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3759# Use a double $ so make ignores it.
3760test "$program_suffix" != NONE &&
3761 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3762# Double any \ or $.
3763# By default was `s,x,x', remove it if useless.
3764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3766
3767# expand $ac_aux_dir to an absolute path
3768am_aux_dir=`cd $ac_aux_dir && pwd`
3769
3770if test x"${MISSING+set}" != xset; then
3771 case $am_aux_dir in
3772 *\ * | *\ *)
3773 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3774 *)
3775 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3776 esac
3777fi
3778# Use eval to expand $SHELL
3779if eval "$MISSING --run true"; then
3780 am_missing_run="$MISSING --run "
3781else
3782 am_missing_run=
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3784$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3785fi
3786
3787if test x"${install_sh}" != xset; then
3788 case $am_aux_dir in
3789 *\ * | *\ *)
3790 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3791 *)
3792 install_sh="\${SHELL} $am_aux_dir/install-sh"
3793 esac
3794fi
3795
3796# Installed binaries are usually stripped using `strip' when the user
3797# run `make install-strip'. However `strip' might not be the right
3798# tool to use in cross-compilation environments, therefore Automake
3799# will honor the `STRIP' environment variable to overrule this program.
3800if test "$cross_compiling" != no; then
3801 if test -n "$ac_tool_prefix"; then
3802 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3803set dummy ${ac_tool_prefix}strip; ac_word=$2
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003806if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003807 $as_echo_n "(cached) " >&6
3808else
3809 if test -n "$STRIP"; then
3810 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829STRIP=$ac_cv_prog_STRIP
3830if test -n "$STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3832$as_echo "$STRIP" >&6; }
3833else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836fi
3837
3838
3839fi
3840if test -z "$ac_cv_prog_STRIP"; then
3841 ac_ct_STRIP=$STRIP
3842 # Extract the first word of "strip", so it can be a program name with args.
3843set dummy strip; ac_word=$2
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003847 $as_echo_n "(cached) " >&6
3848else
3849 if test -n "$ac_ct_STRIP"; then
3850 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_prog_ac_ct_STRIP="strip"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864 done
3865IFS=$as_save_IFS
3866
3867fi
3868fi
3869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3870if test -n "$ac_ct_STRIP"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3872$as_echo "$ac_ct_STRIP" >&6; }
3873else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
3876fi
3877
3878 if test "x$ac_ct_STRIP" = x; then
3879 STRIP=":"
3880 else
3881 case $cross_compiling:$ac_tool_warned in
3882yes:)
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885ac_tool_warned=yes ;;
3886esac
3887 STRIP=$ac_ct_STRIP
3888 fi
3889else
3890 STRIP="$ac_cv_prog_STRIP"
3891fi
3892
3893fi
3894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3895
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3898if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003899 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003900 $as_echo_n "(cached) " >&6
3901else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in mkdir gmkdir; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3911 'mkdir (GNU coreutils) '* | \
3912 'mkdir (coreutils) '* | \
3913 'mkdir (fileutils) '4.1*)
3914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3915 break 3;;
3916 esac
3917 done
3918 done
3919 done
3920IFS=$as_save_IFS
3921
3922fi
3923
3924 test -d ./--version && rmdir ./--version
3925 if test "${ac_cv_path_mkdir+set}" = set; then
3926 MKDIR_P="$ac_cv_path_mkdir -p"
3927 else
3928 # As a last resort, use the slow shell script. Don't cache a
3929 # value for MKDIR_P within a source directory, because that will
3930 # break other packages using the cache if that directory is
3931 # removed, or if the value is a relative name.
3932 MKDIR_P="$ac_install_sh -d"
3933 fi
3934fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3936$as_echo "$MKDIR_P" >&6; }
3937
3938mkdir_p="$MKDIR_P"
3939case $mkdir_p in
3940 [\\/$]* | ?:[\\/]*) ;;
3941 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3942esac
3943
3944for ac_prog in gawk mawk nawk awk
3945do
3946 # Extract the first word of "$ac_prog", so it can be a program name with args.
3947set dummy $ac_prog; ac_word=$2
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003950if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003951 $as_echo_n "(cached) " >&6
3952else
3953 if test -n "$AWK"; then
3954 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_AWK="$ac_prog"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967done
3968 done
3969IFS=$as_save_IFS
3970
3971fi
3972fi
3973AWK=$ac_cv_prog_AWK
3974if test -n "$AWK"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3976$as_echo "$AWK" >&6; }
3977else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
3980fi
3981
3982
3983 test -n "$AWK" && break
3984done
3985
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3987$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3988set x ${MAKE-make}
3989ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003990if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003991 $as_echo_n "(cached) " >&6
3992else
3993 cat >conftest.make <<\_ACEOF
3994SHELL = /bin/sh
3995all:
3996 @echo '@@@%%%=$(MAKE)=@@@%%%'
3997_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003998# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003999case `${MAKE-make} -f conftest.make 2>/dev/null` in
4000 *@@@%%%=?*=@@@%%%*)
4001 eval ac_cv_prog_make_${ac_make}_set=yes;;
4002 *)
4003 eval ac_cv_prog_make_${ac_make}_set=no;;
4004esac
4005rm -f conftest.make
4006fi
4007if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009$as_echo "yes" >&6; }
4010 SET_MAKE=
4011else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014 SET_MAKE="MAKE=${MAKE-make}"
4015fi
4016
4017rm -rf .tst 2>/dev/null
4018mkdir .tst 2>/dev/null
4019if test -d .tst; then
4020 am__leading_dot=.
4021else
4022 am__leading_dot=_
4023fi
4024rmdir .tst 2>/dev/null
4025
cristya448bd22011-10-14 12:38:13 +00004026# Check whether --enable-silent-rules was given.
4027if test "${enable_silent_rules+set}" = set; then :
4028 enableval=$enable_silent_rules;
4029fi
4030
4031case $enable_silent_rules in
4032yes) AM_DEFAULT_VERBOSITY=0;;
4033no) AM_DEFAULT_VERBOSITY=1;;
4034*) AM_DEFAULT_VERBOSITY=1;;
4035esac
4036AM_BACKSLASH='\'
4037
cristy73bd4a52010-10-05 11:24:23 +00004038if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040 # is not polluted with repeated "-I."
4041 am__isrc=' -I$(srcdir)'
4042 # test to see if srcdir already configured
4043 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004045 fi
4046fi
4047
4048# test whether we have cygpath
4049if test -z "$CYGPATH_W"; then
4050 if (cygpath --version) >/dev/null 2>/dev/null; then
4051 CYGPATH_W='cygpath -w'
4052 else
4053 CYGPATH_W=echo
4054 fi
4055fi
4056
4057
4058# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004059 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004060 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004061
4062
cristya448bd22011-10-14 12:38:13 +00004063cat >>confdefs.h <<_ACEOF
4064#define PACKAGE "$PACKAGE"
4065_ACEOF
4066
4067
4068cat >>confdefs.h <<_ACEOF
4069#define VERSION "$VERSION"
4070_ACEOF
4071
cristy73bd4a52010-10-05 11:24:23 +00004072# Some tools Automake needs.
4073
4074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
4076
4077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
4079
4080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
4082
4083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
4085
4086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4087
4088# We need awk for the "check" target. The system "awk" is bad on
4089# some platforms.
4090# Always define AMTAR for backward compatibility.
4091
4092AMTAR=${AMTAR-"${am_missing_run}tar"}
4093
4094am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4095
4096
4097
4098
4099
cristy3ed852e2009-09-05 21:47:34 +00004100
4101# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004102# Check whether --enable-silent-rules was given.
4103if test "${enable_silent_rules+set}" = set; then :
4104 enableval=$enable_silent_rules;
4105fi
4106
4107case $enable_silent_rules in
4108yes) AM_DEFAULT_VERBOSITY=0;;
4109no) AM_DEFAULT_VERBOSITY=1;;
4110*) AM_DEFAULT_VERBOSITY=0;;
4111esac
4112AM_BACKSLASH='\'
4113
cristy3ed852e2009-09-05 21:47:34 +00004114
4115MAGICK_LIB_VERSION="0x"
4116if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4117 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4118fi
4119MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4120if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4121 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122fi
4123MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4124if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4125 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4126fi
4127MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4128
4129
4130# Definition used to define MagickLibVersionText in version.h
4131MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4132
4133
4134# Definition used to define MagickLibVersionNumber in version.h
4135MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4136
4137
4138# Regenerate config.status if ChangeLog or version.sh is updated.
4139CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4140
4141
4142PERLMAINCC=$CC
4143
4144MAGICK_CFLAGS=''
4145MAGICK_CPPFLAGS=$CPPFLAGS_USER
4146MAGICK_PCFLAGS=$CPPFLAGS_USER
4147MAGICK_LDFLAGS=''
4148MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004149MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004150
4151#
4152# Evaluate shell variable equivalents to Makefile directory variables
4153#
4154if test "x$prefix" = xNONE; then
4155 prefix=$ac_default_prefix
4156fi
4157# Let make expand exec_prefix.
4158if test "x$exec_prefix" = xNONE; then
4159 exec_prefix='${prefix}'
4160fi
4161
4162#
4163eval "eval PREFIX_DIR=${prefix}"
4164
4165eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4166
4167eval "eval BIN_DIR=$bindir"
4168
4169eval "eval SBIN_DIR=$sbindir"
4170
4171eval "eval LIBEXEC_DIR=$libexecdir"
4172
4173eval "eval DATA_DIR=$datadir"
4174
cristyd55889c2011-03-27 00:50:24 +00004175eval "eval DOC_DIR=$docdir"
4176
cristy3ed852e2009-09-05 21:47:34 +00004177eval "eval SYSCONF_DIR=$sysconfdir"
4178
4179eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4180
4181eval "eval LOCALSTATE_DIR=$localstatedir"
4182
4183eval "eval LIB_DIR=$libdir"
4184
4185eval "eval INCLUDE_DIR=$includedir"
4186
4187eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4188
4189eval "eval INFO_DIR=$infodir"
4190
4191eval "eval MAN_DIR=$mandir"
4192
4193
4194# Get full paths to source and build directories
4195srcdirfull="`cd $srcdir && pwd`"
4196builddir="`pwd`"
4197
4198#
4199# Compute variables useful for running uninstalled software.
4200#
4201MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4202MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4203MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4204MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4205DIRSEP=':'
4206case "${build_os}" in
4207 mingw* )
4208 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4209 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4210 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4211 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4212 DIRSEP=';'
4213 ;;
4214esac
4215case "${host_os}" in
4216 mingw* )
4217 DIRSEP=';'
4218 ;;
4219esac
4220
4221
4222
4223
4224
4225
cristya0b81c32010-01-22 02:54:33 +00004226
4227#
4228# Enable OS features.
4229#
cristy73bd4a52010-10-05 11:24:23 +00004230DEPDIR="${am__leading_dot}deps"
4231
4232ac_config_commands="$ac_config_commands depfiles"
4233
4234
4235am_make=${MAKE-make}
4236cat > confinc << 'END'
4237am__doit:
4238 @echo this is the am__doit target
4239.PHONY: am__doit
4240END
4241# If we don't find an include directive, just comment out the code.
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4243$as_echo_n "checking for style of include used by $am_make... " >&6; }
4244am__include="#"
4245am__quote=
4246_am_result=none
4247# First try GNU make style include.
4248echo "include confinc" > confmf
4249# Ignore all kinds of additional output from `make'.
4250case `$am_make -s -f confmf 2> /dev/null` in #(
4251*the\ am__doit\ target*)
4252 am__include=include
4253 am__quote=
4254 _am_result=GNU
4255 ;;
4256esac
4257# Now try BSD make style include.
4258if test "$am__include" = "#"; then
4259 echo '.include "confinc"' > confmf
4260 case `$am_make -s -f confmf 2> /dev/null` in #(
4261 *the\ am__doit\ target*)
4262 am__include=.include
4263 am__quote="\""
4264 _am_result=BSD
4265 ;;
4266 esac
4267fi
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4271$as_echo "$_am_result" >&6; }
4272rm -f confinc confmf
4273
4274# Check whether --enable-dependency-tracking was given.
4275if test "${enable_dependency_tracking+set}" = set; then :
4276 enableval=$enable_dependency_tracking;
4277fi
4278
4279if test "x$enable_dependency_tracking" != xno; then
4280 am_depcomp="$ac_aux_dir/depcomp"
4281 AMDEPBACKSLASH='\'
4282fi
4283 if test "x$enable_dependency_tracking" != xno; then
4284 AMDEP_TRUE=
4285 AMDEP_FALSE='#'
4286else
4287 AMDEP_TRUE='#'
4288 AMDEP_FALSE=
4289fi
4290
4291
cristy3ed852e2009-09-05 21:47:34 +00004292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297if test -n "$ac_tool_prefix"; then
4298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4299set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004301$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004302if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004303 $as_echo_n "(cached) " >&6
4304else
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4307else
4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309for as_dir in $PATH
4310do
4311 IFS=$as_save_IFS
4312 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004313 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004317 break 2
4318 fi
4319done
cristy8b350f62009-11-15 23:12:43 +00004320 done
cristy3ed852e2009-09-05 21:47:34 +00004321IFS=$as_save_IFS
4322
4323fi
4324fi
4325CC=$ac_cv_prog_CC
4326if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004328$as_echo "$CC" >&6; }
4329else
cristy8b350f62009-11-15 23:12:43 +00004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004331$as_echo "no" >&6; }
4332fi
4333
4334
4335fi
4336if test -z "$ac_cv_prog_CC"; then
4337 ac_ct_CC=$CC
4338 # Extract the first word of "gcc", so it can be a program name with args.
4339set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004342if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004343 $as_echo_n "(cached) " >&6
4344else
4345 if test -n "$ac_ct_CC"; then
4346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004353 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004357 break 2
4358 fi
4359done
cristy8b350f62009-11-15 23:12:43 +00004360 done
cristy3ed852e2009-09-05 21:47:34 +00004361IFS=$as_save_IFS
4362
4363fi
4364fi
4365ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368$as_echo "$ac_ct_CC" >&6; }
4369else
cristy8b350f62009-11-15 23:12:43 +00004370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371$as_echo "no" >&6; }
4372fi
4373
4374 if test "x$ac_ct_CC" = x; then
4375 CC=""
4376 else
4377 case $cross_compiling:$ac_tool_warned in
4378yes:)
cristy8b350f62009-11-15 23:12:43 +00004379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
4382esac
4383 CC=$ac_ct_CC
4384 fi
4385else
4386 CC="$ac_cv_prog_CC"
4387fi
4388
4389if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4392set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004395if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004396 $as_echo_n "(cached) " >&6
4397else
4398 if test -n "$CC"; then
4399 ac_cv_prog_CC="$CC" # Let the user override the test.
4400else
4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH
4403do
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004406 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004410 break 2
4411 fi
4412done
cristy8b350f62009-11-15 23:12:43 +00004413 done
cristy3ed852e2009-09-05 21:47:34 +00004414IFS=$as_save_IFS
4415
4416fi
4417fi
4418CC=$ac_cv_prog_CC
4419if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004421$as_echo "$CC" >&6; }
4422else
cristy8b350f62009-11-15 23:12:43 +00004423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424$as_echo "no" >&6; }
4425fi
4426
4427
4428 fi
4429fi
4430if test -z "$CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004435if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004436 $as_echo_n "(cached) " >&6
4437else
4438 if test -n "$CC"; then
4439 ac_cv_prog_CC="$CC" # Let the user override the test.
4440else
4441 ac_prog_rejected=no
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004447 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4451 continue
4452 fi
4453 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455 break 2
4456 fi
4457done
cristy8b350f62009-11-15 23:12:43 +00004458 done
cristy3ed852e2009-09-05 21:47:34 +00004459IFS=$as_save_IFS
4460
4461if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_CC
4464 shift
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set CC to just the basename; use the full file name.
4469 shift
4470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4471 fi
4472fi
4473fi
4474fi
4475CC=$ac_cv_prog_CC
4476if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004478$as_echo "$CC" >&6; }
4479else
cristy8b350f62009-11-15 23:12:43 +00004480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$CC"; then
4487 if test -n "$ac_tool_prefix"; then
4488 for ac_prog in cl.exe
4489 do
4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004494if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004495 $as_echo_n "(cached) " >&6
4496else
4497 if test -n "$CC"; then
4498 ac_cv_prog_CC="$CC" # Let the user override the test.
4499else
4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004505 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509 break 2
4510 fi
4511done
cristy8b350f62009-11-15 23:12:43 +00004512 done
cristy3ed852e2009-09-05 21:47:34 +00004513IFS=$as_save_IFS
4514
4515fi
4516fi
4517CC=$ac_cv_prog_CC
4518if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004520$as_echo "$CC" >&6; }
4521else
cristy8b350f62009-11-15 23:12:43 +00004522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004523$as_echo "no" >&6; }
4524fi
4525
4526
4527 test -n "$CC" && break
4528 done
4529fi
4530if test -z "$CC"; then
4531 ac_ct_CC=$CC
4532 for ac_prog in cl.exe
4533do
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004538if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004539 $as_echo_n "(cached) " >&6
4540else
4541 if test -n "$ac_ct_CC"; then
4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4543else
4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545for as_dir in $PATH
4546do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004553 break 2
4554 fi
4555done
cristy8b350f62009-11-15 23:12:43 +00004556 done
cristy3ed852e2009-09-05 21:47:34 +00004557IFS=$as_save_IFS
4558
4559fi
4560fi
4561ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564$as_echo "$ac_ct_CC" >&6; }
4565else
cristy8b350f62009-11-15 23:12:43 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "no" >&6; }
4568fi
4569
4570
4571 test -n "$ac_ct_CC" && break
4572done
4573
4574 if test "x$ac_ct_CC" = x; then
4575 CC=""
4576 else
4577 case $cross_compiling:$ac_tool_warned in
4578yes:)
cristy8b350f62009-11-15 23:12:43 +00004579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581ac_tool_warned=yes ;;
4582esac
4583 CC=$ac_ct_CC
4584 fi
4585fi
4586
4587fi
4588
4589
cristy8b350f62009-11-15 23:12:43 +00004590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004592as_fn_error $? "no acceptable C compiler found in \$PATH
4593See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004594
4595# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004597set X $ac_compile
4598ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004599for ac_option in --version -v -V -qversion; do
4600 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
cristy8b350f62009-11-15 23:12:43 +00004605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606$as_echo "$ac_try_echo"; } >&5
4607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004608 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004609 if test -s conftest.err; then
4610 sed '10a\
4611... rest of stderr output deleted ...
4612 10q' conftest.err >conftest.er1
4613 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004614 fi
cristycd4c5312009-11-22 01:19:08 +00004615 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618done
cristy3ed852e2009-09-05 21:47:34 +00004619
cristy8b350f62009-11-15 23:12:43 +00004620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004621/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004622
cristy3ed852e2009-09-05 21:47:34 +00004623int
4624main ()
4625{
4626
4627 ;
4628 return 0;
4629}
4630_ACEOF
4631ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004632ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004633# Try to create an executable without -o first, disregard a.out.
4634# It will help us diagnose broken compilers, and finding out an intuition
4635# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4637$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004638ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4639
4640# The possible output files:
4641ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4642
4643ac_rmfiles=
4644for ac_file in $ac_files
4645do
4646 case $ac_file in
4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4649 esac
4650done
4651rm -f $ac_rmfiles
4652
cristy8b350f62009-11-15 23:12:43 +00004653if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
cristy8b350f62009-11-15 23:12:43 +00004658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004660 (eval "$ac_link_default") 2>&5
4661 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4665# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4666# in a Makefile. We should not override ac_cv_exeext if it was cached,
4667# so that the user can short-circuit this test for compilers unknown to
4668# Autoconf.
4669for ac_file in $ac_files ''
4670do
4671 test -f "$ac_file" || continue
4672 case $ac_file in
4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4674 ;;
4675 [ab].out )
4676 # We found the default executable, but exeext='' is most
4677 # certainly right.
4678 break;;
4679 *.* )
cristy8b350f62009-11-15 23:12:43 +00004680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004681 then :; else
4682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4683 fi
4684 # We set ac_cv_exeext here because the later test for it is not
4685 # safe: cross compilers may not add the suffix if given an `-o'
4686 # argument, so we may need to know it at that point already.
4687 # Even if this section looks crufty: it has the advantage of
4688 # actually working.
4689 break;;
4690 * )
4691 break;;
4692 esac
4693done
4694test "$ac_cv_exeext" = no && ac_cv_exeext=
4695
4696else
4697 ac_file=''
4698fi
cristy8b350f62009-11-15 23:12:43 +00004699if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701$as_echo "no" >&6; }
4702$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703sed 's/^/| /' conftest.$ac_ext >&5
4704
cristy8b350f62009-11-15 23:12:43 +00004705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004707as_fn_error 77 "C compiler cannot create executables
4708See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004709else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004712fi
cristycd4c5312009-11-22 01:19:08 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4714$as_echo_n "checking for C compiler default output file name... " >&6; }
4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4716$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004717ac_exeext=$ac_cv_exeext
4718
cristycd4c5312009-11-22 01:19:08 +00004719rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004720ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004722$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004723if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004724case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727esac
cristy8b350f62009-11-15 23:12:43 +00004728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004730 (eval "$ac_link") 2>&5
4731 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4735# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4736# work properly (i.e., refer to `conftest.exe'), while it won't with
4737# `rm'.
4738for ac_file in conftest.exe conftest conftest.*; do
4739 test -f "$ac_file" || continue
4740 case $ac_file in
4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4743 break;;
4744 * ) break;;
4745 esac
4746done
4747else
cristy8b350f62009-11-15 23:12:43 +00004748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004750as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4751See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004752fi
cristycd4c5312009-11-22 01:19:08 +00004753rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004755$as_echo "$ac_cv_exeext" >&6; }
4756
4757rm -f conftest.$ac_ext
4758EXEEXT=$ac_cv_exeext
4759ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <stdio.h>
4763int
4764main ()
4765{
4766FILE *f = fopen ("conftest.out", "w");
4767 return ferror (f) || fclose (f) != 0;
4768
4769 ;
4770 return 0;
4771}
4772_ACEOF
4773ac_clean_files="$ac_clean_files conftest.out"
4774# Check that the compiler produces executables we can run. If not, either
4775# the compiler is broken, or we cross compile.
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4777$as_echo_n "checking whether we are cross compiling... " >&6; }
4778if test "$cross_compiling" != yes; then
4779 { { ac_try="$ac_link"
4780case "(($ac_try" in
4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782 *) ac_try_echo=$ac_try;;
4783esac
4784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785$as_echo "$ac_try_echo"; } >&5
4786 (eval "$ac_link") 2>&5
4787 ac_status=$?
4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789 test $ac_status = 0; }
4790 if { ac_try='./conftest$ac_cv_exeext'
4791 { { case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
4797 (eval "$ac_try") 2>&5
4798 ac_status=$?
4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; }; then
4801 cross_compiling=no
4802 else
4803 if test "$cross_compiling" = maybe; then
4804 cross_compiling=yes
4805 else
4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004808as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004809If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004810See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004811 fi
4812 fi
4813fi
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4815$as_echo "$cross_compiling" >&6; }
4816
4817rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4818ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004821if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004822 $as_echo_n "(cached) " >&6
4823else
cristy8b350f62009-11-15 23:12:43 +00004824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004825/* end confdefs.h. */
4826
4827int
4828main ()
4829{
4830
4831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004836if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
cristy8b350f62009-11-15 23:12:43 +00004841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004843 (eval "$ac_compile") 2>&5
4844 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004847 for ac_file in conftest.o conftest.obj conftest.*; do
4848 test -f "$ac_file" || continue;
4849 case $ac_file in
4850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4852 break;;
4853 esac
4854done
4855else
4856 $as_echo "$as_me: failed program was:" >&5
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
cristy8b350f62009-11-15 23:12:43 +00004859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004861as_fn_error $? "cannot compute suffix of object files: cannot compile
4862See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004863fi
cristy3ed852e2009-09-05 21:47:34 +00004864rm -f conftest.$ac_cv_objext conftest.$ac_ext
4865fi
cristy8b350f62009-11-15 23:12:43 +00004866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004867$as_echo "$ac_cv_objext" >&6; }
4868OBJEXT=$ac_cv_objext
4869ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004871$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004872if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 $as_echo_n "(cached) " >&6
4874else
cristy8b350f62009-11-15 23:12:43 +00004875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004876/* end confdefs.h. */
4877
4878int
4879main ()
4880{
4881#ifndef __GNUC__
4882 choke me
4883#endif
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004889if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004890 ac_compiler_gnu=yes
4891else
cristy8b350f62009-11-15 23:12:43 +00004892 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004893fi
cristy3ed852e2009-09-05 21:47:34 +00004894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895ac_cv_c_compiler_gnu=$ac_compiler_gnu
4896
4897fi
cristy8b350f62009-11-15 23:12:43 +00004898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004899$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4900if test $ac_compiler_gnu = yes; then
4901 GCC=yes
4902else
4903 GCC=
4904fi
4905ac_test_CFLAGS=${CFLAGS+set}
4906ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004908$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004909if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004910 $as_echo_n "(cached) " >&6
4911else
4912 ac_save_c_werror_flag=$ac_c_werror_flag
4913 ac_c_werror_flag=yes
4914 ac_cv_prog_cc_g=no
4915 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004917/* end confdefs.h. */
4918
4919int
4920main ()
4921{
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004928 ac_cv_prog_cc_g=yes
4929else
cristy8b350f62009-11-15 23:12:43 +00004930 CFLAGS=""
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004932/* end confdefs.h. */
4933
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004942if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004943
cristy8b350f62009-11-15 23:12:43 +00004944else
4945 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004946 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004948/* end confdefs.h. */
4949
4950int
4951main ()
4952{
4953
4954 ;
4955 return 0;
4956}
4957_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004958if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004959 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962fi
cristy3ed852e2009-09-05 21:47:34 +00004963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964fi
cristy3ed852e2009-09-05 21:47:34 +00004965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag
4967fi
cristy8b350f62009-11-15 23:12:43 +00004968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004969$as_echo "$ac_cv_prog_cc_g" >&6; }
4970if test "$ac_test_CFLAGS" = set; then
4971 CFLAGS=$ac_save_CFLAGS
4972elif test $ac_cv_prog_cc_g = yes; then
4973 if test "$GCC" = yes; then
4974 CFLAGS="-g -O2"
4975 else
4976 CFLAGS="-g"
4977 fi
4978else
4979 if test "$GCC" = yes; then
4980 CFLAGS="-O2"
4981 else
4982 CFLAGS=
4983 fi
4984fi
cristy8b350f62009-11-15 23:12:43 +00004985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004987if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004988 $as_echo_n "(cached) " >&6
4989else
4990 ac_cv_prog_cc_c89=no
4991ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004993/* end confdefs.h. */
4994#include <stdarg.h>
4995#include <stdio.h>
4996#include <sys/types.h>
4997#include <sys/stat.h>
4998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4999struct buf { int x; };
5000FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001static char *e (p, i)
5002 char **p;
5003 int i;
5004{
5005 return p[i];
5006}
5007static char *f (char * (*g) (char **, int), char **p, ...)
5008{
5009 char *s;
5010 va_list v;
5011 va_start (v,p);
5012 s = g (p, va_arg (v,int));
5013 va_end (v);
5014 return s;
5015}
5016
5017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5018 function prototypes and stuff, but not '\xHH' hex character constants.
5019 These don't provoke an error unfortunately, instead are silently treated
5020 as 'x'. The following induces an error, until -std is added to get
5021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5022 array size at least. It's necessary to write '\x00'==0 to get something
5023 that's true only with -std. */
5024int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027 inside strings and character constants. */
5028#define FOO(x) 'x'
5029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031int test (int i, double x);
5032struct s1 {int (*f) (int a);};
5033struct s2 {int (*f) (double a);};
5034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035int argc;
5036char **argv;
5037int
5038main ()
5039{
5040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5041 ;
5042 return 0;
5043}
5044_ACEOF
5045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047do
5048 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005049 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005050 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005051fi
cristy3ed852e2009-09-05 21:47:34 +00005052rm -f core conftest.err conftest.$ac_objext
5053 test "x$ac_cv_prog_cc_c89" != "xno" && break
5054done
5055rm -f conftest.$ac_ext
5056CC=$ac_save_CC
5057
5058fi
5059# AC_CACHE_VAL
5060case "x$ac_cv_prog_cc_c89" in
5061 x)
cristy8b350f62009-11-15 23:12:43 +00005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005063$as_echo "none needed" >&6; } ;;
5064 xno)
cristy8b350f62009-11-15 23:12:43 +00005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005066$as_echo "unsupported" >&6; } ;;
5067 *)
5068 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5071esac
cristy8b350f62009-11-15 23:12:43 +00005072if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005073
cristy8b350f62009-11-15 23:12:43 +00005074fi
cristy3ed852e2009-09-05 21:47:34 +00005075
5076ac_ext=c
5077ac_cpp='$CPP $CPPFLAGS'
5078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005081
cristy73bd4a52010-10-05 11:24:23 +00005082depcc="$CC" am_compiler_list=
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5085$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005086if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005087 $as_echo_n "(cached) " >&6
5088else
5089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5090 # We make a subdir and do the tests there. Otherwise we can end up
5091 # making bogus files that we don't know about and never remove. For
5092 # instance it was reported that on HP-UX the gcc test will end up
5093 # making a dummy file named `D' -- because `-MD' means `put the output
5094 # in D'.
5095 mkdir conftest.dir
5096 # Copy depcomp to subdir because otherwise we won't find it if we're
5097 # using a relative directory.
5098 cp "$am_depcomp" conftest.dir
5099 cd conftest.dir
5100 # We will build objects and dependencies in a subdirectory because
5101 # it helps to detect inapplicable dependency modes. For instance
5102 # both Tru64's cc and ICC support -MD to output dependencies as a
5103 # side effect of compilation, but ICC will put the dependencies in
5104 # the current directory while Tru64 will put them in the object
5105 # directory.
5106 mkdir sub
5107
5108 am_cv_CC_dependencies_compiler_type=none
5109 if test "$am_compiler_list" = ""; then
5110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5111 fi
5112 am__universal=false
5113 case " $depcc " in #(
5114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5115 esac
5116
5117 for depmode in $am_compiler_list; do
5118 # Setup a source with many dependencies, because some compilers
5119 # like to wrap large dependency lists on column 80 (with \), and
5120 # we should not choose a depcomp mode which is confused by this.
5121 #
5122 # We need to recreate these files for each test, as the compiler may
5123 # overwrite some of them when testing with obscure command lines.
5124 # This happens at least with the AIX C compiler.
5125 : > sub/conftest.c
5126 for i in 1 2 3 4 5 6; do
5127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5129 # Solaris 8's {/usr,}/bin/sh.
5130 touch sub/conftst$i.h
5131 done
5132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5133
5134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5135 # mode. It turns out that the SunPro C++ compiler does not properly
5136 # handle `-M -o', and we need to detect this. Also, some Intel
5137 # versions had trouble with output in subdirs
5138 am__obj=sub/conftest.${OBJEXT-o}
5139 am__minus_obj="-o $am__obj"
5140 case $depmode in
5141 gcc)
5142 # This depmode causes a compiler race in universal mode.
5143 test "$am__universal" = false || continue
5144 ;;
5145 nosideeffect)
5146 # after this tag, mechanisms are not by side-effect, so they'll
5147 # only be used when explicitly requested
5148 if test "x$enable_dependency_tracking" = xyes; then
5149 continue
5150 else
5151 break
5152 fi
5153 ;;
5154 msvisualcpp | msvcmsys)
5155 # This compiler won't grok `-c -o', but also, the minuso test has
5156 # not run yet. These depmodes are late enough in the game, and
5157 # so weak that their functioning should not be impacted.
5158 am__obj=conftest.${OBJEXT-o}
5159 am__minus_obj=
5160 ;;
5161 none) break ;;
5162 esac
5163 if depmode=$depmode \
5164 source=sub/conftest.c object=$am__obj \
5165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5167 >/dev/null 2>conftest.err &&
5168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172 # icc doesn't choke on unknown options, it will just issue warnings
5173 # or remarks (even with -Werror). So we grep stderr for any message
5174 # that says an option was ignored or not supported.
5175 # When given -MP, icc 7.0 and 7.1 complain thusly:
5176 # icc: Command line warning: ignoring option '-M'; no argument required
5177 # The diagnosis changed in icc 8.0:
5178 # icc: Command line remark: option '-MP' not supported
5179 if (grep 'ignoring option' conftest.err ||
5180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181 am_cv_CC_dependencies_compiler_type=$depmode
5182 break
5183 fi
5184 fi
5185 done
5186
5187 cd ..
5188 rm -rf conftest.dir
5189else
5190 am_cv_CC_dependencies_compiler_type=none
5191fi
5192
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198 if
5199 test "x$enable_dependency_tracking" != xno \
5200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201 am__fastdepCC_TRUE=
5202 am__fastdepCC_FALSE='#'
5203else
5204 am__fastdepCC_TRUE='#'
5205 am__fastdepCC_FALSE=
5206fi
5207
5208
cristy3ed852e2009-09-05 21:47:34 +00005209
cristya0b81c32010-01-22 02:54:33 +00005210ac_ext=c
5211ac_cpp='$CPP $CPPFLAGS'
5212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5216$as_echo_n "checking how to run the C preprocessor... " >&6; }
5217# On Suns, sometimes $CPP names a directory.
5218if test -n "$CPP" && test -d "$CPP"; then
5219 CPP=
5220fi
5221if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005222 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005223 $as_echo_n "(cached) " >&6
5224else
5225 # Double quotes because CPP needs to be expanded
5226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5227 do
5228 ac_preproc_ok=false
5229for ac_c_preproc_warn_flag in '' yes
5230do
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238/* end confdefs.h. */
5239#ifdef __STDC__
5240# include <limits.h>
5241#else
5242# include <assert.h>
5243#endif
5244 Syntax error
5245_ACEOF
5246if ac_fn_c_try_cpp "$LINENO"; then :
5247
5248else
5249 # Broken: fails on valid input.
5250continue
5251fi
cristyda16f162011-02-19 23:52:17 +00005252rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005253
5254 # OK, works on sane cases. Now check whether nonexistent headers
5255 # can be detected and how.
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257/* end confdefs.h. */
5258#include <ac_nonexistent.h>
5259_ACEOF
5260if ac_fn_c_try_cpp "$LINENO"; then :
5261 # Broken: success on invalid input.
5262continue
5263else
5264 # Passes both tests.
5265ac_preproc_ok=:
5266break
5267fi
cristyda16f162011-02-19 23:52:17 +00005268rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005269
5270done
5271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005272rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005273if $ac_preproc_ok; then :
5274 break
5275fi
5276
5277 done
5278 ac_cv_prog_CPP=$CPP
5279
5280fi
5281 CPP=$ac_cv_prog_CPP
5282else
5283 ac_cv_prog_CPP=$CPP
5284fi
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5286$as_echo "$CPP" >&6; }
5287ac_preproc_ok=false
5288for ac_c_preproc_warn_flag in '' yes
5289do
5290 # Use a header file that comes with gcc, so configuring glibc
5291 # with a fresh cross-compiler works.
5292 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5293 # <limits.h> exists even on freestanding compilers.
5294 # On the NeXT, cc -E runs the code through the compiler's parser,
5295 # not just through cpp. "Syntax error" is here to catch this case.
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h. */
5298#ifdef __STDC__
5299# include <limits.h>
5300#else
5301# include <assert.h>
5302#endif
5303 Syntax error
5304_ACEOF
5305if ac_fn_c_try_cpp "$LINENO"; then :
5306
5307else
5308 # Broken: fails on valid input.
5309continue
5310fi
cristyda16f162011-02-19 23:52:17 +00005311rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005312
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#include <ac_nonexistent.h>
5318_ACEOF
5319if ac_fn_c_try_cpp "$LINENO"; then :
5320 # Broken: success on invalid input.
5321continue
5322else
5323 # Passes both tests.
5324ac_preproc_ok=:
5325break
5326fi
cristyda16f162011-02-19 23:52:17 +00005327rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005328
5329done
5330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005331rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005332if $ac_preproc_ok; then :
5333
5334else
5335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005337as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5338See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005339fi
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5349$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005350if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005351 $as_echo_n "(cached) " >&6
5352else
5353 if test -z "$GREP"; then
5354 ac_path_GREP_found=false
5355 # Loop through the user's path and test for each of PROGNAME-LIST
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_prog in grep ggrep; do
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5364 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5365# Check for GNU ac_path_GREP and select it if it is found.
5366 # Check for GNU $ac_path_GREP
5367case `"$ac_path_GREP" --version 2>&1` in
5368*GNU*)
5369 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5370*)
5371 ac_count=0
5372 $as_echo_n 0123456789 >"conftest.in"
5373 while :
5374 do
5375 cat "conftest.in" "conftest.in" >"conftest.tmp"
5376 mv "conftest.tmp" "conftest.in"
5377 cp "conftest.in" "conftest.nl"
5378 $as_echo 'GREP' >> "conftest.nl"
5379 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381 as_fn_arith $ac_count + 1 && ac_count=$as_val
5382 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5383 # Best one so far, save it but keep looking for a better one
5384 ac_cv_path_GREP="$ac_path_GREP"
5385 ac_path_GREP_max=$ac_count
5386 fi
5387 # 10*(2^10) chars as input seems more than enough
5388 test $ac_count -gt 10 && break
5389 done
5390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391esac
5392
5393 $ac_path_GREP_found && break 3
5394 done
5395 done
5396 done
5397IFS=$as_save_IFS
5398 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005399 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005400 fi
5401else
5402 ac_cv_path_GREP=$GREP
5403fi
5404
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5407$as_echo "$ac_cv_path_GREP" >&6; }
5408 GREP="$ac_cv_path_GREP"
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5412$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005413if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005414 $as_echo_n "(cached) " >&6
5415else
5416 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5417 then ac_cv_path_EGREP="$GREP -E"
5418 else
5419 if test -z "$EGREP"; then
5420 ac_path_EGREP_found=false
5421 # Loop through the user's path and test for each of PROGNAME-LIST
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_prog in egrep; do
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5430 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5431# Check for GNU ac_path_EGREP and select it if it is found.
5432 # Check for GNU $ac_path_EGREP
5433case `"$ac_path_EGREP" --version 2>&1` in
5434*GNU*)
5435 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5436*)
5437 ac_count=0
5438 $as_echo_n 0123456789 >"conftest.in"
5439 while :
5440 do
5441 cat "conftest.in" "conftest.in" >"conftest.tmp"
5442 mv "conftest.tmp" "conftest.in"
5443 cp "conftest.in" "conftest.nl"
5444 $as_echo 'EGREP' >> "conftest.nl"
5445 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447 as_fn_arith $ac_count + 1 && ac_count=$as_val
5448 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5449 # Best one so far, save it but keep looking for a better one
5450 ac_cv_path_EGREP="$ac_path_EGREP"
5451 ac_path_EGREP_max=$ac_count
5452 fi
5453 # 10*(2^10) chars as input seems more than enough
5454 test $ac_count -gt 10 && break
5455 done
5456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457esac
5458
5459 $ac_path_EGREP_found && break 3
5460 done
5461 done
5462 done
5463IFS=$as_save_IFS
5464 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005465 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005466 fi
5467else
5468 ac_cv_path_EGREP=$EGREP
5469fi
5470
5471 fi
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5474$as_echo "$ac_cv_path_EGREP" >&6; }
5475 EGREP="$ac_cv_path_EGREP"
5476
5477
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5479$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005480if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485#include <stdlib.h>
5486#include <stdarg.h>
5487#include <string.h>
5488#include <float.h>
5489
5490int
5491main ()
5492{
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_compile "$LINENO"; then :
5499 ac_cv_header_stdc=yes
5500else
5501 ac_cv_header_stdc=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505if test $ac_cv_header_stdc = yes; then
5506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509#include <string.h>
5510
5511_ACEOF
5512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513 $EGREP "memchr" >/dev/null 2>&1; then :
5514
5515else
5516 ac_cv_header_stdc=no
5517fi
5518rm -f conftest*
5519
5520fi
5521
5522if test $ac_cv_header_stdc = yes; then
5523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525/* end confdefs.h. */
5526#include <stdlib.h>
5527
5528_ACEOF
5529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530 $EGREP "free" >/dev/null 2>&1; then :
5531
5532else
5533 ac_cv_header_stdc=no
5534fi
5535rm -f conftest*
5536
5537fi
5538
5539if test $ac_cv_header_stdc = yes; then
5540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5541 if test "$cross_compiling" = yes; then :
5542 :
5543else
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546#include <ctype.h>
5547#include <stdlib.h>
5548#if ((' ' & 0x0FF) == 0x020)
5549# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5550# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5551#else
5552# define ISLOWER(c) \
5553 (('a' <= (c) && (c) <= 'i') \
5554 || ('j' <= (c) && (c) <= 'r') \
5555 || ('s' <= (c) && (c) <= 'z'))
5556# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5557#endif
5558
5559#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5560int
5561main ()
5562{
5563 int i;
5564 for (i = 0; i < 256; i++)
5565 if (XOR (islower (i), ISLOWER (i))
5566 || toupper (i) != TOUPPER (i))
5567 return 2;
5568 return 0;
5569}
5570_ACEOF
5571if ac_fn_c_try_run "$LINENO"; then :
5572
5573else
5574 ac_cv_header_stdc=no
5575fi
5576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577 conftest.$ac_objext conftest.beam conftest.$ac_ext
5578fi
5579
5580fi
5581fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5583$as_echo "$ac_cv_header_stdc" >&6; }
5584if test $ac_cv_header_stdc = yes; then
5585
5586$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5587
5588fi
5589
5590# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5592 inttypes.h stdint.h unistd.h
5593do :
5594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5596"
cristy98dddb52010-11-04 00:30:15 +00005597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005598 cat >>confdefs.h <<_ACEOF
5599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600_ACEOF
5601
5602fi
5603
5604done
5605
5606
5607
5608 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 +00005609if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005610 MINIX=yes
5611else
5612 MINIX=
5613fi
5614
5615
5616 if test "$MINIX" = yes; then
5617
5618$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5619
5620
5621$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5622
5623
5624$as_echo "#define _MINIX 1" >>confdefs.h
5625
5626 fi
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5630$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005631if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005632 $as_echo_n "(cached) " >&6
5633else
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h. */
5636
5637# define __EXTENSIONS__ 1
5638 $ac_includes_default
5639int
5640main ()
5641{
5642
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_compile "$LINENO"; then :
5648 ac_cv_safe_to_define___extensions__=yes
5649else
5650 ac_cv_safe_to_define___extensions__=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5655$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5656 test $ac_cv_safe_to_define___extensions__ = yes &&
5657 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5658
5659 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5660
5661 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5662
5663 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5664
5665 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5666
5667
5668
5669# Check for programs
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5677set dummy ${ac_tool_prefix}gcc; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005680if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005681 $as_echo_n "(cached) " >&6
5682else
5683 if test -n "$CC"; then
5684 ac_cv_prog_CC="$CC" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689 IFS=$as_save_IFS
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 break 2
5696 fi
5697done
5698 done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703CC=$ac_cv_prog_CC
5704if test -n "$CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706$as_echo "$CC" >&6; }
5707else
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713fi
5714if test -z "$ac_cv_prog_CC"; then
5715 ac_ct_CC=$CC
5716 # Extract the first word of "gcc", so it can be a program name with args.
5717set dummy gcc; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005720if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005721 $as_echo_n "(cached) " >&6
5722else
5723 if test -n "$ac_ct_CC"; then
5724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_ac_ct_CC="gcc"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5736 fi
5737done
5738 done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744if test -n "$ac_ct_CC"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746$as_echo "$ac_ct_CC" >&6; }
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752 if test "x$ac_ct_CC" = x; then
5753 CC=""
5754 else
5755 case $cross_compiling:$ac_tool_warned in
5756yes:)
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759ac_tool_warned=yes ;;
5760esac
5761 CC=$ac_ct_CC
5762 fi
5763else
5764 CC="$ac_cv_prog_CC"
5765fi
5766
5767if test -z "$CC"; then
5768 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}cc; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005773if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005774 $as_echo_n "(cached) " >&6
5775else
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_CC="${ac_tool_prefix}cc"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5789 fi
5790done
5791 done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796CC=$ac_cv_prog_CC
5797if test -n "$CC"; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799$as_echo "$CC" >&6; }
5800else
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806 fi
5807fi
5808if test -z "$CC"; then
5809 # Extract the first word of "cc", so it can be a program name with args.
5810set dummy cc; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005813if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005814 $as_echo_n "(cached) " >&6
5815else
5816 if test -n "$CC"; then
5817 ac_cv_prog_CC="$CC" # Let the user override the test.
5818else
5819 ac_prog_rejected=no
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5828 ac_prog_rejected=yes
5829 continue
5830 fi
5831 ac_cv_prog_CC="cc"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839if test $ac_prog_rejected = yes; then
5840 # We found a bogon in the path, so make sure we never use it.
5841 set dummy $ac_cv_prog_CC
5842 shift
5843 if test $# != 0; then
5844 # We chose a different compiler from the bogus one.
5845 # However, it has the same basename, so the bogon will be chosen
5846 # first if we set CC to just the basename; use the full file name.
5847 shift
5848 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5849 fi
5850fi
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856$as_echo "$CC" >&6; }
5857else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$CC"; then
5865 if test -n "$ac_tool_prefix"; then
5866 for ac_prog in cl.exe
5867 do
5868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005872if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005873 $as_echo_n "(cached) " >&6
5874else
5875 if test -n "$CC"; then
5876 ac_cv_prog_CC="$CC" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889done
5890 done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895CC=$ac_cv_prog_CC
5896if test -n "$CC"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5898$as_echo "$CC" >&6; }
5899else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905 test -n "$CC" && break
5906 done
5907fi
5908if test -z "$CC"; then
5909 ac_ct_CC=$CC
5910 for ac_prog in cl.exe
5911do
5912 # Extract the first word of "$ac_prog", so it can be a program name with args.
5913set dummy $ac_prog; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005916if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005917 $as_echo_n "(cached) " >&6
5918else
5919 if test -n "$ac_ct_CC"; then
5920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929 ac_cv_prog_ac_ct_CC="$ac_prog"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933done
5934 done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939ac_ct_CC=$ac_cv_prog_ac_ct_CC
5940if test -n "$ac_ct_CC"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5942$as_echo "$ac_ct_CC" >&6; }
5943else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948
5949 test -n "$ac_ct_CC" && break
5950done
5951
5952 if test "x$ac_ct_CC" = x; then
5953 CC=""
5954 else
5955 case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961 CC=$ac_ct_CC
5962 fi
5963fi
5964
5965fi
5966
5967
5968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005970as_fn_error $? "no acceptable C compiler found in \$PATH
5971See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005972
5973# Provide some information about the compiler.
5974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5975set X $ac_compile
5976ac_compiler=$2
5977for ac_option in --version -v -V -qversion; do
5978 { { ac_try="$ac_compiler $ac_option >&5"
5979case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984$as_echo "$ac_try_echo"; } >&5
5985 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5986 ac_status=$?
5987 if test -s conftest.err; then
5988 sed '10a\
5989... rest of stderr output deleted ...
5990 10q' conftest.err >conftest.er1
5991 cat conftest.er1 >&5
5992 fi
5993 rm -f conftest.er1 conftest.err
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }
5996done
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5999$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006000if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006001 $as_echo_n "(cached) " >&6
6002else
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h. */
6005
6006int
6007main ()
6008{
6009#ifndef __GNUC__
6010 choke me
6011#endif
6012
6013 ;
6014 return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018 ac_compiler_gnu=yes
6019else
6020 ac_compiler_gnu=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023ac_cv_c_compiler_gnu=$ac_compiler_gnu
6024
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6027$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6028if test $ac_compiler_gnu = yes; then
6029 GCC=yes
6030else
6031 GCC=
6032fi
6033ac_test_CFLAGS=${CFLAGS+set}
6034ac_save_CFLAGS=$CFLAGS
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6036$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006037if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006038 $as_echo_n "(cached) " >&6
6039else
6040 ac_save_c_werror_flag=$ac_c_werror_flag
6041 ac_c_werror_flag=yes
6042 ac_cv_prog_cc_g=no
6043 CFLAGS="-g"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h. */
6046
6047int
6048main ()
6049{
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_prog_cc_g=yes
6057else
6058 CFLAGS=""
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h. */
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071
6072else
6073 ac_c_werror_flag=$ac_save_c_werror_flag
6074 CFLAGS="-g"
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077
6078int
6079main ()
6080{
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087 ac_cv_prog_cc_g=yes
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_c_werror_flag=$ac_save_c_werror_flag
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6097$as_echo "$ac_cv_prog_cc_g" >&6; }
6098if test "$ac_test_CFLAGS" = set; then
6099 CFLAGS=$ac_save_CFLAGS
6100elif test $ac_cv_prog_cc_g = yes; then
6101 if test "$GCC" = yes; then
6102 CFLAGS="-g -O2"
6103 else
6104 CFLAGS="-g"
6105 fi
6106else
6107 if test "$GCC" = yes; then
6108 CFLAGS="-O2"
6109 else
6110 CFLAGS=
6111 fi
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6114$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006115if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006116 $as_echo_n "(cached) " >&6
6117else
6118 ac_cv_prog_cc_c89=no
6119ac_save_CC=$CC
6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h. */
6122#include <stdarg.h>
6123#include <stdio.h>
6124#include <sys/types.h>
6125#include <sys/stat.h>
6126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6127struct buf { int x; };
6128FILE * (*rcsopen) (struct buf *, struct stat *, int);
6129static char *e (p, i)
6130 char **p;
6131 int i;
6132{
6133 return p[i];
6134}
6135static char *f (char * (*g) (char **, int), char **p, ...)
6136{
6137 char *s;
6138 va_list v;
6139 va_start (v,p);
6140 s = g (p, va_arg (v,int));
6141 va_end (v);
6142 return s;
6143}
6144
6145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6146 function prototypes and stuff, but not '\xHH' hex character constants.
6147 These don't provoke an error unfortunately, instead are silently treated
6148 as 'x'. The following induces an error, until -std is added to get
6149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6150 array size at least. It's necessary to write '\x00'==0 to get something
6151 that's true only with -std. */
6152int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6153
6154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6155 inside strings and character constants. */
6156#define FOO(x) 'x'
6157int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6158
6159int test (int i, double x);
6160struct s1 {int (*f) (int a);};
6161struct s2 {int (*f) (double a);};
6162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6163int argc;
6164char **argv;
6165int
6166main ()
6167{
6168return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6169 ;
6170 return 0;
6171}
6172_ACEOF
6173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6175do
6176 CC="$ac_save_CC $ac_arg"
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 ac_cv_prog_cc_c89=$ac_arg
6179fi
6180rm -f core conftest.err conftest.$ac_objext
6181 test "x$ac_cv_prog_cc_c89" != "xno" && break
6182done
6183rm -f conftest.$ac_ext
6184CC=$ac_save_CC
6185
6186fi
6187# AC_CACHE_VAL
6188case "x$ac_cv_prog_cc_c89" in
6189 x)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191$as_echo "none needed" >&6; } ;;
6192 xno)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6194$as_echo "unsupported" >&6; } ;;
6195 *)
6196 CC="$CC $ac_cv_prog_cc_c89"
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6198$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6199esac
6200if test "x$ac_cv_prog_cc_c89" != xno; then :
6201
6202fi
6203
6204ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
cristy73bd4a52010-10-05 11:24:23 +00006210depcc="$CC" am_compiler_list=
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6213$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006214if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006215 $as_echo_n "(cached) " >&6
6216else
6217 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6218 # We make a subdir and do the tests there. Otherwise we can end up
6219 # making bogus files that we don't know about and never remove. For
6220 # instance it was reported that on HP-UX the gcc test will end up
6221 # making a dummy file named `D' -- because `-MD' means `put the output
6222 # in D'.
6223 mkdir conftest.dir
6224 # Copy depcomp to subdir because otherwise we won't find it if we're
6225 # using a relative directory.
6226 cp "$am_depcomp" conftest.dir
6227 cd conftest.dir
6228 # We will build objects and dependencies in a subdirectory because
6229 # it helps to detect inapplicable dependency modes. For instance
6230 # both Tru64's cc and ICC support -MD to output dependencies as a
6231 # side effect of compilation, but ICC will put the dependencies in
6232 # the current directory while Tru64 will put them in the object
6233 # directory.
6234 mkdir sub
6235
6236 am_cv_CC_dependencies_compiler_type=none
6237 if test "$am_compiler_list" = ""; then
6238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6239 fi
6240 am__universal=false
6241 case " $depcc " in #(
6242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6243 esac
6244
6245 for depmode in $am_compiler_list; do
6246 # Setup a source with many dependencies, because some compilers
6247 # like to wrap large dependency lists on column 80 (with \), and
6248 # we should not choose a depcomp mode which is confused by this.
6249 #
6250 # We need to recreate these files for each test, as the compiler may
6251 # overwrite some of them when testing with obscure command lines.
6252 # This happens at least with the AIX C compiler.
6253 : > sub/conftest.c
6254 for i in 1 2 3 4 5 6; do
6255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6256 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6257 # Solaris 8's {/usr,}/bin/sh.
6258 touch sub/conftst$i.h
6259 done
6260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6261
6262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6263 # mode. It turns out that the SunPro C++ compiler does not properly
6264 # handle `-M -o', and we need to detect this. Also, some Intel
6265 # versions had trouble with output in subdirs
6266 am__obj=sub/conftest.${OBJEXT-o}
6267 am__minus_obj="-o $am__obj"
6268 case $depmode in
6269 gcc)
6270 # This depmode causes a compiler race in universal mode.
6271 test "$am__universal" = false || continue
6272 ;;
6273 nosideeffect)
6274 # after this tag, mechanisms are not by side-effect, so they'll
6275 # only be used when explicitly requested
6276 if test "x$enable_dependency_tracking" = xyes; then
6277 continue
6278 else
6279 break
6280 fi
6281 ;;
6282 msvisualcpp | msvcmsys)
6283 # This compiler won't grok `-c -o', but also, the minuso test has
6284 # not run yet. These depmodes are late enough in the game, and
6285 # so weak that their functioning should not be impacted.
6286 am__obj=conftest.${OBJEXT-o}
6287 am__minus_obj=
6288 ;;
6289 none) break ;;
6290 esac
6291 if depmode=$depmode \
6292 source=sub/conftest.c object=$am__obj \
6293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6295 >/dev/null 2>conftest.err &&
6296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6300 # icc doesn't choke on unknown options, it will just issue warnings
6301 # or remarks (even with -Werror). So we grep stderr for any message
6302 # that says an option was ignored or not supported.
6303 # When given -MP, icc 7.0 and 7.1 complain thusly:
6304 # icc: Command line warning: ignoring option '-M'; no argument required
6305 # The diagnosis changed in icc 8.0:
6306 # icc: Command line remark: option '-MP' not supported
6307 if (grep 'ignoring option' conftest.err ||
6308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6309 am_cv_CC_dependencies_compiler_type=$depmode
6310 break
6311 fi
6312 fi
6313 done
6314
6315 cd ..
6316 rm -rf conftest.dir
6317else
6318 am_cv_CC_dependencies_compiler_type=none
6319fi
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6323$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6324CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6325
6326 if
6327 test "x$enable_dependency_tracking" != xno \
6328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6329 am__fastdepCC_TRUE=
6330 am__fastdepCC_FALSE='#'
6331else
6332 am__fastdepCC_TRUE='#'
6333 am__fastdepCC_FALSE=
6334fi
6335
6336
cristy95646052009-11-28 23:05:30 +00006337ac_ext=cpp
6338ac_cpp='$CXXCPP $CPPFLAGS'
6339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6342if test -z "$CXX"; then
6343 if test -n "$CCC"; then
6344 CXX=$CCC
6345 else
6346 if test -n "$ac_tool_prefix"; then
6347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6348 do
6349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006353if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006354 $as_echo_n "(cached) " >&6
6355else
6356 if test -n "$CXX"; then
6357 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371 done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376CXX=$ac_cv_prog_CXX
6377if test -n "$CXX"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6379$as_echo "$CXX" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386 test -n "$CXX" && break
6387 done
6388fi
6389if test -z "$CXX"; then
6390 ac_ct_CXX=$CXX
6391 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6392do
6393 # Extract the first word of "$ac_prog", so it can be a program name with args.
6394set dummy $ac_prog; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006397if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -n "$ac_ct_CXX"; then
6401 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_CXX="$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6421if test -n "$ac_ct_CXX"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6423$as_echo "$ac_ct_CXX" >&6; }
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430 test -n "$ac_ct_CXX" && break
6431done
6432
6433 if test "x$ac_ct_CXX" = x; then
6434 CXX="g++"
6435 else
6436 case $cross_compiling:$ac_tool_warned in
6437yes:)
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440ac_tool_warned=yes ;;
6441esac
6442 CXX=$ac_ct_CXX
6443 fi
6444fi
6445
6446 fi
6447fi
6448# Provide some information about the compiler.
6449$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6450set X $ac_compile
6451ac_compiler=$2
6452for ac_option in --version -v -V -qversion; do
6453 { { ac_try="$ac_compiler $ac_option >&5"
6454case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457esac
6458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6459$as_echo "$ac_try_echo"; } >&5
6460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6461 ac_status=$?
6462 if test -s conftest.err; then
6463 sed '10a\
6464... rest of stderr output deleted ...
6465 10q' conftest.err >conftest.er1
6466 cat conftest.er1 >&5
6467 fi
6468 rm -f conftest.er1 conftest.err
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }
6471done
6472
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6474$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006475if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006476 $as_echo_n "(cached) " >&6
6477else
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h. */
6480
6481int
6482main ()
6483{
6484#ifndef __GNUC__
6485 choke me
6486#endif
6487
6488 ;
6489 return 0;
6490}
6491_ACEOF
6492if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_compiler_gnu=yes
6494else
6495 ac_compiler_gnu=no
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6499
6500fi
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6502$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6503if test $ac_compiler_gnu = yes; then
6504 GXX=yes
6505else
6506 GXX=
6507fi
6508ac_test_CXXFLAGS=${CXXFLAGS+set}
6509ac_save_CXXFLAGS=$CXXFLAGS
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6511$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006512if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006513 $as_echo_n "(cached) " >&6
6514else
6515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516 ac_cxx_werror_flag=yes
6517 ac_cv_prog_cxx_g=no
6518 CXXFLAGS="-g"
6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h. */
6521
6522int
6523main ()
6524{
6525
6526 ;
6527 return 0;
6528}
6529_ACEOF
6530if ac_fn_cxx_try_compile "$LINENO"; then :
6531 ac_cv_prog_cxx_g=yes
6532else
6533 CXXFLAGS=""
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537int
6538main ()
6539{
6540
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_cxx_try_compile "$LINENO"; then :
6546
6547else
6548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549 CXXFLAGS="-g"
6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551/* end confdefs.h. */
6552
6553int
6554main ()
6555{
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561if ac_fn_cxx_try_compile "$LINENO"; then :
6562 ac_cv_prog_cxx_g=yes
6563fi
6564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567fi
6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6570fi
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6572$as_echo "$ac_cv_prog_cxx_g" >&6; }
6573if test "$ac_test_CXXFLAGS" = set; then
6574 CXXFLAGS=$ac_save_CXXFLAGS
6575elif test $ac_cv_prog_cxx_g = yes; then
6576 if test "$GXX" = yes; then
6577 CXXFLAGS="-g -O2"
6578 else
6579 CXXFLAGS="-g"
6580 fi
6581else
6582 if test "$GXX" = yes; then
6583 CXXFLAGS="-O2"
6584 else
6585 CXXFLAGS=
6586 fi
6587fi
6588ac_ext=c
6589ac_cpp='$CPP $CPPFLAGS'
6590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
cristy73bd4a52010-10-05 11:24:23 +00006594depcc="$CXX" am_compiler_list=
6595
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6597$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006598if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006599 $as_echo_n "(cached) " >&6
6600else
6601 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6602 # We make a subdir and do the tests there. Otherwise we can end up
6603 # making bogus files that we don't know about and never remove. For
6604 # instance it was reported that on HP-UX the gcc test will end up
6605 # making a dummy file named `D' -- because `-MD' means `put the output
6606 # in D'.
6607 mkdir conftest.dir
6608 # Copy depcomp to subdir because otherwise we won't find it if we're
6609 # using a relative directory.
6610 cp "$am_depcomp" conftest.dir
6611 cd conftest.dir
6612 # We will build objects and dependencies in a subdirectory because
6613 # it helps to detect inapplicable dependency modes. For instance
6614 # both Tru64's cc and ICC support -MD to output dependencies as a
6615 # side effect of compilation, but ICC will put the dependencies in
6616 # the current directory while Tru64 will put them in the object
6617 # directory.
6618 mkdir sub
6619
6620 am_cv_CXX_dependencies_compiler_type=none
6621 if test "$am_compiler_list" = ""; then
6622 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6623 fi
6624 am__universal=false
6625 case " $depcc " in #(
6626 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6627 esac
6628
6629 for depmode in $am_compiler_list; do
6630 # Setup a source with many dependencies, because some compilers
6631 # like to wrap large dependency lists on column 80 (with \), and
6632 # we should not choose a depcomp mode which is confused by this.
6633 #
6634 # We need to recreate these files for each test, as the compiler may
6635 # overwrite some of them when testing with obscure command lines.
6636 # This happens at least with the AIX C compiler.
6637 : > sub/conftest.c
6638 for i in 1 2 3 4 5 6; do
6639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6641 # Solaris 8's {/usr,}/bin/sh.
6642 touch sub/conftst$i.h
6643 done
6644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6645
6646 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6647 # mode. It turns out that the SunPro C++ compiler does not properly
6648 # handle `-M -o', and we need to detect this. Also, some Intel
6649 # versions had trouble with output in subdirs
6650 am__obj=sub/conftest.${OBJEXT-o}
6651 am__minus_obj="-o $am__obj"
6652 case $depmode in
6653 gcc)
6654 # This depmode causes a compiler race in universal mode.
6655 test "$am__universal" = false || continue
6656 ;;
6657 nosideeffect)
6658 # after this tag, mechanisms are not by side-effect, so they'll
6659 # only be used when explicitly requested
6660 if test "x$enable_dependency_tracking" = xyes; then
6661 continue
6662 else
6663 break
6664 fi
6665 ;;
6666 msvisualcpp | msvcmsys)
6667 # This compiler won't grok `-c -o', but also, the minuso test has
6668 # not run yet. These depmodes are late enough in the game, and
6669 # so weak that their functioning should not be impacted.
6670 am__obj=conftest.${OBJEXT-o}
6671 am__minus_obj=
6672 ;;
6673 none) break ;;
6674 esac
6675 if depmode=$depmode \
6676 source=sub/conftest.c object=$am__obj \
6677 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6678 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6679 >/dev/null 2>conftest.err &&
6680 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6681 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6683 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684 # icc doesn't choke on unknown options, it will just issue warnings
6685 # or remarks (even with -Werror). So we grep stderr for any message
6686 # that says an option was ignored or not supported.
6687 # When given -MP, icc 7.0 and 7.1 complain thusly:
6688 # icc: Command line warning: ignoring option '-M'; no argument required
6689 # The diagnosis changed in icc 8.0:
6690 # icc: Command line remark: option '-MP' not supported
6691 if (grep 'ignoring option' conftest.err ||
6692 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693 am_cv_CXX_dependencies_compiler_type=$depmode
6694 break
6695 fi
6696 fi
6697 done
6698
6699 cd ..
6700 rm -rf conftest.dir
6701else
6702 am_cv_CXX_dependencies_compiler_type=none
6703fi
6704
6705fi
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6707$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6708CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6709
6710 if
6711 test "x$enable_dependency_tracking" != xno \
6712 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6713 am__fastdepCXX_TRUE=
6714 am__fastdepCXX_FALSE='#'
6715else
6716 am__fastdepCXX_TRUE='#'
6717 am__fastdepCXX_FALSE=
6718fi
6719
6720
cristy8b350f62009-11-15 23:12:43 +00006721 case $ac_cv_prog_cc_stdc in #(
6722 no) :
6723 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6724 *) :
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006726$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006727if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006728 $as_echo_n "(cached) " >&6
6729else
6730 ac_cv_prog_cc_c99=no
6731ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006733/* end confdefs.h. */
6734#include <stdarg.h>
6735#include <stdbool.h>
6736#include <stdlib.h>
6737#include <wchar.h>
6738#include <stdio.h>
6739
6740// Check varargs macros. These examples are taken from C99 6.10.3.5.
6741#define debug(...) fprintf (stderr, __VA_ARGS__)
6742#define showlist(...) puts (#__VA_ARGS__)
6743#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6744static void
6745test_varargs_macros (void)
6746{
6747 int x = 1234;
6748 int y = 5678;
6749 debug ("Flag");
6750 debug ("X = %d\n", x);
6751 showlist (The first, second, and third items.);
6752 report (x>y, "x is %d but y is %d", x, y);
6753}
6754
6755// Check long long types.
6756#define BIG64 18446744073709551615ull
6757#define BIG32 4294967295ul
6758#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6759#if !BIG_OK
6760 your preprocessor is broken;
6761#endif
6762#if BIG_OK
6763#else
6764 your preprocessor is broken;
6765#endif
6766static long long int bignum = -9223372036854775807LL;
6767static unsigned long long int ubignum = BIG64;
6768
6769struct incomplete_array
6770{
6771 int datasize;
6772 double data[];
6773};
6774
6775struct named_init {
6776 int number;
6777 const wchar_t *name;
6778 double average;
6779};
6780
6781typedef const char *ccp;
6782
6783static inline int
6784test_restrict (ccp restrict text)
6785{
6786 // See if C++-style comments work.
6787 // Iterate through items via the restricted pointer.
6788 // Also check for declarations in for loops.
6789 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6790 continue;
6791 return 0;
6792}
6793
6794// Check varargs and va_copy.
6795static void
6796test_varargs (const char *format, ...)
6797{
6798 va_list args;
6799 va_start (args, format);
6800 va_list args_copy;
6801 va_copy (args_copy, args);
6802
6803 const char *str;
6804 int number;
6805 float fnumber;
6806
6807 while (*format)
6808 {
6809 switch (*format++)
6810 {
6811 case 's': // string
6812 str = va_arg (args_copy, const char *);
6813 break;
6814 case 'd': // int
6815 number = va_arg (args_copy, int);
6816 break;
6817 case 'f': // float
6818 fnumber = va_arg (args_copy, double);
6819 break;
6820 default:
6821 break;
6822 }
6823 }
6824 va_end (args_copy);
6825 va_end (args);
6826}
6827
6828int
6829main ()
6830{
6831
6832 // Check bool.
6833 _Bool success = false;
6834
6835 // Check restrict.
6836 if (test_restrict ("String literal") == 0)
6837 success = true;
6838 char *restrict newvar = "Another string";
6839
6840 // Check varargs.
6841 test_varargs ("s, d' f .", "string", 65, 34.234);
6842 test_varargs_macros ();
6843
6844 // Check flexible array members.
6845 struct incomplete_array *ia =
6846 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6847 ia->datasize = 10;
6848 for (int i = 0; i < ia->datasize; ++i)
6849 ia->data[i] = i * 1.234;
6850
6851 // Check named initializers.
6852 struct named_init ni = {
6853 .number = 34,
6854 .name = L"Test wide string",
6855 .average = 543.34343,
6856 };
6857
6858 ni.number = 58;
6859
6860 int dynamic_array[ni.number];
6861 dynamic_array[ni.number - 1] = 543;
6862
6863 // work around unused variable warnings
6864 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6865 || dynamic_array[ni.number - 1] != 543);
6866
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6872do
6873 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006874 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006875 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006876fi
cristy3ed852e2009-09-05 21:47:34 +00006877rm -f core conftest.err conftest.$ac_objext
6878 test "x$ac_cv_prog_cc_c99" != "xno" && break
6879done
6880rm -f conftest.$ac_ext
6881CC=$ac_save_CC
6882
6883fi
6884# AC_CACHE_VAL
6885case "x$ac_cv_prog_cc_c99" in
6886 x)
cristy8b350f62009-11-15 23:12:43 +00006887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006888$as_echo "none needed" >&6; } ;;
6889 xno)
cristy8b350f62009-11-15 23:12:43 +00006890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006891$as_echo "unsupported" >&6; } ;;
6892 *)
6893 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006895$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6896esac
cristy8b350f62009-11-15 23:12:43 +00006897if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006898 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6899else
cristy8b350f62009-11-15 23:12:43 +00006900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006902if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006903 $as_echo_n "(cached) " >&6
6904else
6905 ac_cv_prog_cc_c89=no
6906ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006908/* end confdefs.h. */
6909#include <stdarg.h>
6910#include <stdio.h>
6911#include <sys/types.h>
6912#include <sys/stat.h>
6913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6914struct buf { int x; };
6915FILE * (*rcsopen) (struct buf *, struct stat *, int);
6916static char *e (p, i)
6917 char **p;
6918 int i;
6919{
6920 return p[i];
6921}
6922static char *f (char * (*g) (char **, int), char **p, ...)
6923{
6924 char *s;
6925 va_list v;
6926 va_start (v,p);
6927 s = g (p, va_arg (v,int));
6928 va_end (v);
6929 return s;
6930}
6931
6932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6933 function prototypes and stuff, but not '\xHH' hex character constants.
6934 These don't provoke an error unfortunately, instead are silently treated
6935 as 'x'. The following induces an error, until -std is added to get
6936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6937 array size at least. It's necessary to write '\x00'==0 to get something
6938 that's true only with -std. */
6939int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6940
6941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6942 inside strings and character constants. */
6943#define FOO(x) 'x'
6944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6945
6946int test (int i, double x);
6947struct s1 {int (*f) (int a);};
6948struct s2 {int (*f) (double a);};
6949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6950int argc;
6951char **argv;
6952int
6953main ()
6954{
6955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6962do
6963 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006964 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006965 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006966fi
cristy3ed852e2009-09-05 21:47:34 +00006967rm -f core conftest.err conftest.$ac_objext
6968 test "x$ac_cv_prog_cc_c89" != "xno" && break
6969done
6970rm -f conftest.$ac_ext
6971CC=$ac_save_CC
6972
6973fi
6974# AC_CACHE_VAL
6975case "x$ac_cv_prog_cc_c89" in
6976 x)
cristy8b350f62009-11-15 23:12:43 +00006977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006978$as_echo "none needed" >&6; } ;;
6979 xno)
cristy8b350f62009-11-15 23:12:43 +00006980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006981$as_echo "unsupported" >&6; } ;;
6982 *)
6983 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6986esac
cristy8b350f62009-11-15 23:12:43 +00006987if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006988 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6989else
6990 ac_cv_prog_cc_stdc=no
6991fi
6992
cristy3ed852e2009-09-05 21:47:34 +00006993fi
cristy3ed852e2009-09-05 21:47:34 +00006994 ;;
6995esac
cristy8b350f62009-11-15 23:12:43 +00006996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006997$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006998 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006999 $as_echo_n "(cached) " >&6
7000fi
7001
cristy8b350f62009-11-15 23:12:43 +00007002 case $ac_cv_prog_cc_stdc in #(
7003 no) :
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7005$as_echo "unsupported" >&6; } ;; #(
7006 '') :
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7008$as_echo "none needed" >&6; } ;; #(
7009 *) :
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007011$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7012esac
7013
cristy3ed852e2009-09-05 21:47:34 +00007014ac_ext=c
7015ac_cpp='$CPP $CPPFLAGS'
7016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007020$as_echo_n "checking how to run the C preprocessor... " >&6; }
7021# On Suns, sometimes $CPP names a directory.
7022if test -n "$CPP" && test -d "$CPP"; then
7023 CPP=
7024fi
7025if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007026 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 # Double quotes because CPP needs to be expanded
7030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7031 do
7032 ac_preproc_ok=false
7033for ac_c_preproc_warn_flag in '' yes
7034do
7035 # Use a header file that comes with gcc, so configuring glibc
7036 # with a fresh cross-compiler works.
7037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038 # <limits.h> exists even on freestanding compilers.
7039 # On the NeXT, cc -E runs the code through the compiler's parser,
7040 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007042/* end confdefs.h. */
7043#ifdef __STDC__
7044# include <limits.h>
7045#else
7046# include <assert.h>
7047#endif
7048 Syntax error
7049_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007050if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007051
cristy8b350f62009-11-15 23:12:43 +00007052else
cristy3ed852e2009-09-05 21:47:34 +00007053 # Broken: fails on valid input.
7054continue
7055fi
cristyda16f162011-02-19 23:52:17 +00007056rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007057
7058 # OK, works on sane cases. Now check whether nonexistent headers
7059 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007061/* end confdefs.h. */
7062#include <ac_nonexistent.h>
7063_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007064if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007065 # Broken: success on invalid input.
7066continue
7067else
cristy3ed852e2009-09-05 21:47:34 +00007068 # Passes both tests.
7069ac_preproc_ok=:
7070break
7071fi
cristyda16f162011-02-19 23:52:17 +00007072rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007073
7074done
7075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007076rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007077if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007078 break
7079fi
7080
7081 done
7082 ac_cv_prog_CPP=$CPP
7083
7084fi
7085 CPP=$ac_cv_prog_CPP
7086else
7087 ac_cv_prog_CPP=$CPP
7088fi
cristy8b350f62009-11-15 23:12:43 +00007089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo "$CPP" >&6; }
7091ac_preproc_ok=false
7092for ac_c_preproc_warn_flag in '' yes
7093do
7094 # Use a header file that comes with gcc, so configuring glibc
7095 # with a fresh cross-compiler works.
7096 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 # <limits.h> exists even on freestanding compilers.
7098 # On the NeXT, cc -E runs the code through the compiler's parser,
7099 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007101/* end confdefs.h. */
7102#ifdef __STDC__
7103# include <limits.h>
7104#else
7105# include <assert.h>
7106#endif
7107 Syntax error
7108_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007109if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007110
cristy8b350f62009-11-15 23:12:43 +00007111else
cristy3ed852e2009-09-05 21:47:34 +00007112 # Broken: fails on valid input.
7113continue
7114fi
cristyda16f162011-02-19 23:52:17 +00007115rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116
7117 # OK, works on sane cases. Now check whether nonexistent headers
7118 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007120/* end confdefs.h. */
7121#include <ac_nonexistent.h>
7122_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007123if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007124 # Broken: success on invalid input.
7125continue
7126else
cristy3ed852e2009-09-05 21:47:34 +00007127 # Passes both tests.
7128ac_preproc_ok=:
7129break
7130fi
cristyda16f162011-02-19 23:52:17 +00007131rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007132
7133done
7134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007135rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007136if $ac_preproc_ok; then :
7137
cristy3ed852e2009-09-05 21:47:34 +00007138else
cristy8b350f62009-11-15 23:12:43 +00007139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007141as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7142See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007143fi
7144
7145ac_ext=c
7146ac_cpp='$CPP $CPPFLAGS'
7147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
cristy73bd4a52010-10-05 11:24:23 +00007151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7152$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007153if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007154 $as_echo_n "(cached) " >&6
7155else
7156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7157 for ac_i in 1 2 3 4 5 6 7; do
7158 ac_script="$ac_script$as_nl$ac_script"
7159 done
7160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7161 { ac_script=; unset ac_script;}
7162 if test -z "$SED"; then
7163 ac_path_SED_found=false
7164 # Loop through the user's path and test for each of PROGNAME-LIST
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_prog in sed gsed; do
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7173 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7174# Check for GNU ac_path_SED and select it if it is found.
7175 # Check for GNU $ac_path_SED
7176case `"$ac_path_SED" --version 2>&1` in
7177*GNU*)
7178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7179*)
7180 ac_count=0
7181 $as_echo_n 0123456789 >"conftest.in"
7182 while :
7183 do
7184 cat "conftest.in" "conftest.in" >"conftest.tmp"
7185 mv "conftest.tmp" "conftest.in"
7186 cp "conftest.in" "conftest.nl"
7187 $as_echo '' >> "conftest.nl"
7188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7190 as_fn_arith $ac_count + 1 && ac_count=$as_val
7191 if test $ac_count -gt ${ac_path_SED_max-0}; then
7192 # Best one so far, save it but keep looking for a better one
7193 ac_cv_path_SED="$ac_path_SED"
7194 ac_path_SED_max=$ac_count
7195 fi
7196 # 10*(2^10) chars as input seems more than enough
7197 test $ac_count -gt 10 && break
7198 done
7199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7200esac
7201
7202 $ac_path_SED_found && break 3
7203 done
7204 done
7205 done
7206IFS=$as_save_IFS
7207 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007209 fi
7210else
7211 ac_cv_path_SED=$SED
7212fi
7213
7214fi
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7216$as_echo "$ac_cv_path_SED" >&6; }
7217 SED="$ac_cv_path_SED"
7218 rm -f conftest.sed
7219
7220test -z "$SED" && SED=sed
7221Xsed="$SED -e 1s/^X//"
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7234$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007235if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007236 $as_echo_n "(cached) " >&6
7237else
7238 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7239 then ac_cv_path_FGREP="$GREP -F"
7240 else
7241 if test -z "$FGREP"; then
7242 ac_path_FGREP_found=false
7243 # Loop through the user's path and test for each of PROGNAME-LIST
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_prog in fgrep; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7252 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7253# Check for GNU ac_path_FGREP and select it if it is found.
7254 # Check for GNU $ac_path_FGREP
7255case `"$ac_path_FGREP" --version 2>&1` in
7256*GNU*)
7257 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7258*)
7259 ac_count=0
7260 $as_echo_n 0123456789 >"conftest.in"
7261 while :
7262 do
7263 cat "conftest.in" "conftest.in" >"conftest.tmp"
7264 mv "conftest.tmp" "conftest.in"
7265 cp "conftest.in" "conftest.nl"
7266 $as_echo 'FGREP' >> "conftest.nl"
7267 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7269 as_fn_arith $ac_count + 1 && ac_count=$as_val
7270 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7271 # Best one so far, save it but keep looking for a better one
7272 ac_cv_path_FGREP="$ac_path_FGREP"
7273 ac_path_FGREP_max=$ac_count
7274 fi
7275 # 10*(2^10) chars as input seems more than enough
7276 test $ac_count -gt 10 && break
7277 done
7278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7279esac
7280
7281 $ac_path_FGREP_found && break 3
7282 done
7283 done
7284 done
7285IFS=$as_save_IFS
7286 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007287 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007288 fi
7289else
7290 ac_cv_path_FGREP=$FGREP
7291fi
7292
7293 fi
7294fi
7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7296$as_echo "$ac_cv_path_FGREP" >&6; }
7297 FGREP="$ac_cv_path_FGREP"
7298
7299
7300test -z "$GREP" && GREP=grep
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
cristy0c60a692010-11-04 01:09:47 +00007318ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7319ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7320ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7321
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7323$as_echo_n "checking how to print strings... " >&6; }
7324# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007325if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007326 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7327 ECHO='print -r --'
7328elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7329 ECHO='printf %s\n'
7330else
7331 # Use this function as a fallback that always works.
7332 func_fallback_echo ()
7333 {
7334 eval 'cat <<_LTECHO_EOF
7335$1
7336_LTECHO_EOF'
7337 }
7338 ECHO='func_fallback_echo'
7339fi
7340
7341# func_echo_all arg...
7342# Invoke $ECHO with all args, space-separated.
7343func_echo_all ()
7344{
7345 $ECHO ""
7346}
7347
7348case "$ECHO" in
7349 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7350$as_echo "printf" >&6; } ;;
7351 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7352$as_echo "print -r" >&6; } ;;
7353 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7354$as_echo "cat" >&6; } ;;
7355esac
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
cristy73bd4a52010-10-05 11:24:23 +00007370
7371
7372# Check whether --with-gnu-ld was given.
7373if test "${with_gnu_ld+set}" = set; then :
7374 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7375else
7376 with_gnu_ld=no
7377fi
7378
7379ac_prog=ld
7380if test "$GCC" = yes; then
7381 # Check if gcc -print-prog-name=ld gives a path.
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7383$as_echo_n "checking for ld used by $CC... " >&6; }
7384 case $host in
7385 *-*-mingw*)
7386 # gcc leaves a trailing carriage return which upsets mingw
7387 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7388 *)
7389 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7390 esac
7391 case $ac_prog in
7392 # Accept absolute paths.
7393 [\\/]* | ?:[\\/]*)
7394 re_direlt='/[^/][^/]*/\.\./'
7395 # Canonicalize the pathname of ld
7396 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7397 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7398 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7399 done
7400 test -z "$LD" && LD="$ac_prog"
7401 ;;
7402 "")
7403 # If it fails, then pretend we aren't using GCC.
7404 ac_prog=ld
7405 ;;
7406 *)
7407 # If it is relative, then search for the first ld in PATH.
7408 with_gnu_ld=unknown
7409 ;;
7410 esac
7411elif test "$with_gnu_ld" = yes; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7413$as_echo_n "checking for GNU ld... " >&6; }
7414else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7416$as_echo_n "checking for non-GNU ld... " >&6; }
7417fi
cristyda16f162011-02-19 23:52:17 +00007418if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007419 $as_echo_n "(cached) " >&6
7420else
7421 if test -z "$LD"; then
7422 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423 for ac_dir in $PATH; do
7424 IFS="$lt_save_ifs"
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427 lt_cv_path_LD="$ac_dir/$ac_prog"
7428 # Check to see if the program is GNU ld. I'd rather use --version,
7429 # but apparently some variants of GNU ld only accept -v.
7430 # Break only if it was the GNU/non-GNU ld that we prefer.
7431 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7432 *GNU* | *'with BFD'*)
7433 test "$with_gnu_ld" != no && break
7434 ;;
7435 *)
7436 test "$with_gnu_ld" != yes && break
7437 ;;
7438 esac
7439 fi
7440 done
7441 IFS="$lt_save_ifs"
7442else
7443 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7444fi
7445fi
7446
7447LD="$lt_cv_path_LD"
7448if test -n "$LD"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7450$as_echo "$LD" >&6; }
7451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453$as_echo "no" >&6; }
7454fi
cristy98dddb52010-11-04 00:30:15 +00007455test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7457$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007458if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007459 $as_echo_n "(cached) " >&6
7460else
7461 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7462case `$LD -v 2>&1 </dev/null` in
7463*GNU* | *'with BFD'*)
7464 lt_cv_prog_gnu_ld=yes
7465 ;;
7466*)
7467 lt_cv_prog_gnu_ld=no
7468 ;;
7469esac
7470fi
7471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7472$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7473with_gnu_ld=$lt_cv_prog_gnu_ld
7474
7475
7476
7477
7478
7479
7480
7481
7482
cristy3ed852e2009-09-05 21:47:34 +00007483
cristy837d6dc2010-02-27 01:16:57 +00007484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7485$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007486if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007487 $as_echo_n "(cached) " >&6
7488else
7489 ac_cv_prog_cc_c99=no
7490ac_save_CC=$CC
7491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h. */
7493#include <stdarg.h>
7494#include <stdbool.h>
7495#include <stdlib.h>
7496#include <wchar.h>
7497#include <stdio.h>
7498
7499// Check varargs macros. These examples are taken from C99 6.10.3.5.
7500#define debug(...) fprintf (stderr, __VA_ARGS__)
7501#define showlist(...) puts (#__VA_ARGS__)
7502#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7503static void
7504test_varargs_macros (void)
7505{
7506 int x = 1234;
7507 int y = 5678;
7508 debug ("Flag");
7509 debug ("X = %d\n", x);
7510 showlist (The first, second, and third items.);
7511 report (x>y, "x is %d but y is %d", x, y);
7512}
7513
7514// Check long long types.
7515#define BIG64 18446744073709551615ull
7516#define BIG32 4294967295ul
7517#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7518#if !BIG_OK
7519 your preprocessor is broken;
7520#endif
7521#if BIG_OK
7522#else
7523 your preprocessor is broken;
7524#endif
7525static long long int bignum = -9223372036854775807LL;
7526static unsigned long long int ubignum = BIG64;
7527
7528struct incomplete_array
7529{
7530 int datasize;
7531 double data[];
7532};
7533
7534struct named_init {
7535 int number;
7536 const wchar_t *name;
7537 double average;
7538};
7539
7540typedef const char *ccp;
7541
7542static inline int
7543test_restrict (ccp restrict text)
7544{
7545 // See if C++-style comments work.
7546 // Iterate through items via the restricted pointer.
7547 // Also check for declarations in for loops.
7548 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7549 continue;
7550 return 0;
7551}
7552
7553// Check varargs and va_copy.
7554static void
7555test_varargs (const char *format, ...)
7556{
7557 va_list args;
7558 va_start (args, format);
7559 va_list args_copy;
7560 va_copy (args_copy, args);
7561
7562 const char *str;
7563 int number;
7564 float fnumber;
7565
7566 while (*format)
7567 {
7568 switch (*format++)
7569 {
7570 case 's': // string
7571 str = va_arg (args_copy, const char *);
7572 break;
7573 case 'd': // int
7574 number = va_arg (args_copy, int);
7575 break;
7576 case 'f': // float
7577 fnumber = va_arg (args_copy, double);
7578 break;
7579 default:
7580 break;
7581 }
7582 }
7583 va_end (args_copy);
7584 va_end (args);
7585}
7586
7587int
7588main ()
7589{
7590
7591 // Check bool.
7592 _Bool success = false;
7593
7594 // Check restrict.
7595 if (test_restrict ("String literal") == 0)
7596 success = true;
7597 char *restrict newvar = "Another string";
7598
7599 // Check varargs.
7600 test_varargs ("s, d' f .", "string", 65, 34.234);
7601 test_varargs_macros ();
7602
7603 // Check flexible array members.
7604 struct incomplete_array *ia =
7605 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7606 ia->datasize = 10;
7607 for (int i = 0; i < ia->datasize; ++i)
7608 ia->data[i] = i * 1.234;
7609
7610 // Check named initializers.
7611 struct named_init ni = {
7612 .number = 34,
7613 .name = L"Test wide string",
7614 .average = 543.34343,
7615 };
7616
7617 ni.number = 58;
7618
7619 int dynamic_array[ni.number];
7620 dynamic_array[ni.number - 1] = 543;
7621
7622 // work around unused variable warnings
7623 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7624 || dynamic_array[ni.number - 1] != 543);
7625
7626 ;
7627 return 0;
7628}
7629_ACEOF
7630for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7631do
7632 CC="$ac_save_CC $ac_arg"
7633 if ac_fn_c_try_compile "$LINENO"; then :
7634 ac_cv_prog_cc_c99=$ac_arg
7635fi
7636rm -f core conftest.err conftest.$ac_objext
7637 test "x$ac_cv_prog_cc_c99" != "xno" && break
7638done
7639rm -f conftest.$ac_ext
7640CC=$ac_save_CC
7641
7642fi
7643# AC_CACHE_VAL
7644case "x$ac_cv_prog_cc_c99" in
7645 x)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7647$as_echo "none needed" >&6; } ;;
7648 xno)
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7650$as_echo "unsupported" >&6; } ;;
7651 *)
7652 CC="$CC $ac_cv_prog_cc_c99"
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7654$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7655esac
7656if test "x$ac_cv_prog_cc_c99" != xno; then :
7657
7658fi
7659
7660
cristy73bd4a52010-10-05 11:24:23 +00007661if test "x$CC" != xcc; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7663$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7664else
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7666$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7667fi
7668set dummy $CC; ac_cc=`$as_echo "$2" |
7669 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007670if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007671 $as_echo_n "(cached) " >&6
7672else
cristy73bd4a52010-10-05 11:24:23 +00007673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674/* end confdefs.h. */
7675
7676int
7677main ()
7678{
7679
7680 ;
7681 return 0;
7682}
7683_ACEOF
7684# Make sure it works both with $CC and with simple cc.
7685# We do the test twice because some compilers refuse to overwrite an
7686# existing .o file with -o, though they will create one.
7687ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7688rm -f conftest2.*
7689if { { case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692esac
7693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694$as_echo "$ac_try_echo"; } >&5
7695 (eval "$ac_try") 2>&5
7696 ac_status=$?
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } &&
7699 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702esac
7703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704$as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7706 ac_status=$?
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; };
7709then
7710 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7711 if test "x$CC" != xcc; then
7712 # Test first that cc exists at all.
7713 if { ac_try='cc -c conftest.$ac_ext >&5'
7714 { { case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7717esac
7718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7719$as_echo "$ac_try_echo"; } >&5
7720 (eval "$ac_try") 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }; }; then
7724 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7725 rm -f conftest2.*
7726 if { { case "(($ac_try" in
7727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728 *) ac_try_echo=$ac_try;;
7729esac
7730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7731$as_echo "$ac_try_echo"; } >&5
7732 (eval "$ac_try") 2>&5
7733 ac_status=$?
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; } &&
7736 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739esac
7740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741$as_echo "$ac_try_echo"; } >&5
7742 (eval "$ac_try") 2>&5
7743 ac_status=$?
7744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745 test $ac_status = 0; };
7746 then
7747 # cc works too.
7748 :
7749 else
7750 # cc exists but doesn't like -o.
7751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7752 fi
7753 fi
7754 fi
7755else
7756 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7757fi
7758rm -f core conftest*
7759
7760fi
7761if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763$as_echo "yes" >&6; }
7764else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766$as_echo "no" >&6; }
7767
7768$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7769
7770fi
7771
7772# FIXME: we rely on the cache variable name because
7773# there is no other way.
7774set dummy $CC
7775am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7776eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7777if test "$am_t" != yes; then
7778 # Losing compiler, so override with the script.
7779 # FIXME: It is wrong to rewrite CC.
7780 # But if we don't then we get into trouble of one sort or another.
7781 # A longer-term fix would be to have automake use am__CC in this case,
7782 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7783 CC="$am_aux_dir/compile $CC"
7784fi
7785
7786
7787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7788$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007789if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007790 $as_echo_n "(cached) " >&6
7791else
7792 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007793 ac_ext=c
7794ac_cpp='$CPP $CPPFLAGS'
7795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799 ac_save_CFLAGS="$CFLAGS"
7800for 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" #
7801do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804
7805int
7806main ()
7807{
cristy24fc1fe2010-10-23 21:13:01 +00007808
cristy73bd4a52010-10-05 11:24:23 +00007809 ;
7810 return 0;
7811}
7812_ACEOF
7813if ac_fn_c_try_compile "$LINENO"; then :
7814 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7815fi
7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817done
7818 CFLAGS="$ac_save_CFLAGS"
7819 ac_ext=c
7820ac_cpp='$CPP $CPPFLAGS'
7821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826fi
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7828$as_echo "$ac_cv_cflags_warn_all" >&6; }
7829case ".$ac_cv_cflags_warn_all" in
7830 .ok|.ok,*) ;;
7831 .|.no|.no,*)
7832 ;;
7833 *)
7834 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7835 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7836 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7837 ac_status=$?
7838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839 test $ac_status = 0; }
7840 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7841 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7842 ac_status=$?
7843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }
7845 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7846 fi
7847 ;;
nicolas6237c462010-10-05 06:11:49 +00007848esac
cristy3ed852e2009-09-05 21:47:34 +00007849
cristya0b81c32010-01-22 02:54:33 +00007850
7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7852$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7853set x ${MAKE-make}
7854ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007855if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007856 $as_echo_n "(cached) " >&6
7857else
7858 cat >conftest.make <<\_ACEOF
7859SHELL = /bin/sh
7860all:
7861 @echo '@@@%%%=$(MAKE)=@@@%%%'
7862_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007863# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007864case `${MAKE-make} -f conftest.make 2>/dev/null` in
7865 *@@@%%%=?*=@@@%%%*)
7866 eval ac_cv_prog_make_${ac_make}_set=yes;;
7867 *)
7868 eval ac_cv_prog_make_${ac_make}_set=no;;
7869esac
7870rm -f conftest.make
7871fi
7872if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874$as_echo "yes" >&6; }
7875 SET_MAKE=
7876else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879 SET_MAKE="MAKE=${MAKE-make}"
7880fi
7881
cristy8b350f62009-11-15 23:12:43 +00007882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007883$as_echo_n "checking whether ln -s works... " >&6; }
7884LN_S=$as_ln_s
7885if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007887$as_echo "yes" >&6; }
7888else
cristy8b350f62009-11-15 23:12:43 +00007889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007890$as_echo "no, using $LN_S" >&6; }
7891fi
7892
cristy73bd4a52010-10-05 11:24:23 +00007893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7894$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7895
7896# Check whether --with-dmalloc was given.
7897if test "${with_dmalloc+set}" = set; then :
7898 withval=$with_dmalloc; if test "$withval" = yes; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900$as_echo "yes" >&6; }
7901
7902$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7903
7904 LIBS="$LIBS -ldmalloc"
7905 LDFLAGS="$LDFLAGS -g"
7906else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910else
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913fi
7914
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7918$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007919if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007920 $as_echo_n "(cached) " >&6
7921else
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h. */
7924#include <stdlib.h>
7925 static void foo(void) __attribute__ ((unused));
7926 static void
7927 foo(void) {
7928 exit(1);
7929 }
7930
7931int
7932main ()
7933{
7934
7935 ;
7936 return 0;
7937}
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940 ax_cv___attribute__=yes
7941else
7942 ax_cv___attribute__=no
7943
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946
7947fi
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7949$as_echo "$ax_cv___attribute__" >&6; }
7950 if test "$ax_cv___attribute__" = "yes"; then
7951
7952$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7953
7954 fi
7955
7956
7957
7958if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7961set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007964if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007965 $as_echo_n "(cached) " >&6
7966else
7967 case $PKG_CONFIG in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7982 fi
7983done
7984 done
7985IFS=$as_save_IFS
7986
7987 ;;
7988esac
7989fi
7990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7991if test -n "$PKG_CONFIG"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7993$as_echo "$PKG_CONFIG" >&6; }
7994else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996$as_echo "no" >&6; }
7997fi
7998
7999
8000fi
8001if test -z "$ac_cv_path_PKG_CONFIG"; then
8002 ac_pt_PKG_CONFIG=$PKG_CONFIG
8003 # Extract the first word of "pkg-config", so it can be a program name with args.
8004set dummy pkg-config; ac_word=$2
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008007if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008008 $as_echo_n "(cached) " >&6
8009else
8010 case $ac_pt_PKG_CONFIG in
8011 [\\/]* | ?:[\\/]*)
8012 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8013 ;;
8014 *)
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016for as_dir in $PATH
8017do
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8025 fi
8026done
8027 done
8028IFS=$as_save_IFS
8029
8030 ;;
8031esac
8032fi
8033ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8034if test -n "$ac_pt_PKG_CONFIG"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8036$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8037else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042 if test "x$ac_pt_PKG_CONFIG" = x; then
8043 PKG_CONFIG=""
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046yes:)
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049ac_tool_warned=yes ;;
8050esac
8051 PKG_CONFIG=$ac_pt_PKG_CONFIG
8052 fi
8053else
8054 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8055fi
8056
8057fi
8058if test -n "$PKG_CONFIG"; then
8059 _pkg_min_version=0.9.0
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8061$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8062 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064$as_echo "yes" >&6; }
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067$as_echo "no" >&6; }
8068 PKG_CONFIG=""
8069 fi
8070
8071fi
cristy3ed852e2009-09-05 21:47:34 +00008072
8073#
cristy3ed852e2009-09-05 21:47:34 +00008074# Enable run-time checking.
8075#
8076# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008077if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008078 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8079else
8080 enable_bounds_checking='no'
8081fi
8082
8083
8084if test "$enable_bounds_checking" = yes; then
8085
cristy8b350f62009-11-15 23:12:43 +00008086$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008087
8088fi
8089
8090#
8091# Tests for Windows
8092#
8093
8094
cristy73bd4a52010-10-05 11:24:23 +00008095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8096$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008097if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008098 $as_echo_n "(cached) " >&6
8099else
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h. */
8102
8103int
8104main ()
8105{
8106#ifndef _MSC_VER
8107 choke me
8108#endif
8109
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114if ac_fn_c_try_compile "$LINENO"; then :
8115 ax_compiler_ms=yes
8116else
8117 ax_compiler_ms=no
8118fi
8119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120ax_cv_c_compiler_ms=$ax_compiler_ms
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8124$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008125
8126GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008127native_win32_build='no'
8128cygwin_build='no'
8129case "${host_os}" in
8130 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008131 cygwin_build='yes'
8132 GDI32_LIBS='-lgdi32'
8133 ;;
8134 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008135 native_win32_build='yes'
8136 GDI32_LIBS='-lgdi32'
8137 ;;
8138esac
8139if test "${GDI32_LIBS}x" != 'x'; then
8140
cristy8b350f62009-11-15 23:12:43 +00008141$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008142
8143fi
8144
cristy73bd4a52010-10-05 11:24:23 +00008145 if test "${GDI32_LIBS}x" != 'x' ; then
8146 WINGDI32_DELEGATE_TRUE=
8147 WINGDI32_DELEGATE_FALSE='#'
8148else
8149 WINGDI32_DELEGATE_TRUE='#'
8150 WINGDI32_DELEGATE_FALSE=
8151fi
8152
8153 if test "${native_win32_build}" = 'yes' ; then
8154 WIN32_NATIVE_BUILD_TRUE=
8155 WIN32_NATIVE_BUILD_FALSE='#'
8156else
8157 WIN32_NATIVE_BUILD_TRUE='#'
8158 WIN32_NATIVE_BUILD_FALSE=
8159fi
8160
8161 if test "${cygwin_build}" = 'yes' ; then
8162 CYGWIN_BUILD_TRUE=
8163 CYGWIN_BUILD_FALSE='#'
8164else
8165 CYGWIN_BUILD_TRUE='#'
8166 CYGWIN_BUILD_FALSE=
8167fi
8168
8169 if test "x${CC}" = 'xcl.exe' ; then
8170 USING_CL_TRUE=
8171 USING_CL_FALSE='#'
8172else
8173 USING_CL_TRUE='#'
8174 USING_CL_FALSE=
8175fi
8176
cristy3ed852e2009-09-05 21:47:34 +00008177
8178WinPathScript="${srcdirfull}/winpath.sh"
8179
8180
8181#
8182# Compiler flags tweaks
8183#
8184if test "${GCC}" != "yes"; then
8185 case "${host}" in
8186 *-*-hpux* )
8187 # aCC: HP ANSI C++ B3910B A.03.34
8188 CFLAGS="${CFLAGS} -Wp,-H30000"
8189 if test -n "${CXXFLAGS}"; then
8190 CXXFLAGS='-AA'
8191 else
8192 CXXFLAGS="${CXXFLAGS} -AA"
8193 fi
8194 ;;
8195 *-dec-osf5.* )
8196 # Compaq alphaev68-dec-osf5.1 compiler
8197 if test -n "${CXXFLAGS}"; then
8198 CXXFLAGS='-std strict_ansi -noimplicit_include'
8199 else
8200 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8201 fi
8202 esac
8203fi
8204
8205# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008207$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008208if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008209 $as_echo_n "(cached) " >&6
8210else
8211
8212im_cv_ld_lazyload='none'
8213case "${host}" in
8214 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8215 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8216 im_cv_ld_lazyload='-Wl,-zlazyload'
8217 fi
8218 ;;
8219esac
8220
8221fi
cristy8b350f62009-11-15 23:12:43 +00008222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008223$as_echo "$im_cv_ld_lazyload" >&6; }
8224if test "${im_cv_ld_lazyload}" != 'none' ; then
8225 if test -z "${LDFLAGS}" ; then
8226 LDFLAGS="${im_cv_ld_lazyload}"
8227 else
8228 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8229 fi
8230fi
8231
8232case "$host" in
8233*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008234 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008235if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008236 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8237else
8238 build_osxuniversal=no
8239fi
8240
8241
8242 if test "${build_osxuniversal}" != no ; then
8243 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008244 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008245Please re-run configure with these options:
8246 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008247 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008248 fi
8249 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8250 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8251 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8252 fi
8253 ;;
8254esac
8255
8256# Enable support for threads
8257
8258# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008259if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008260 withval=$with_threads; with_threads=$withval
8261else
8262 with_threads='yes'
8263fi
8264
8265
8266have_threads=no
8267if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008268
8269
cristy73bd4a52010-10-05 11:24:23 +00008270ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276ax_pthread_ok=no
8277
8278# We used to check for pthread.h first, but this fails if pthread.h
8279# requires special compiler flags (e.g. on True64 or Sequent).
8280# It gets checked for in the link test anyway.
8281
8282# First of all, check if the user has set any of the PTHREAD_LIBS,
8283# etcetera environment variables, and if threads linking works using
8284# them:
8285if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8286 save_CFLAGS="$CFLAGS"
8287 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8288 save_LIBS="$LIBS"
8289 LIBS="$PTHREAD_LIBS $LIBS"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8291$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h. */
8294
8295/* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
8298#ifdef __cplusplus
8299extern "C"
8300#endif
8301char pthread_join ();
8302int
8303main ()
8304{
8305return pthread_join ();
8306 ;
8307 return 0;
8308}
8309_ACEOF
8310if ac_fn_c_try_link "$LINENO"; then :
8311 ax_pthread_ok=yes
8312fi
8313rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8316$as_echo "$ax_pthread_ok" >&6; }
8317 if test x"$ax_pthread_ok" = xno; then
8318 PTHREAD_LIBS=""
8319 PTHREAD_CFLAGS=""
8320 fi
8321 LIBS="$save_LIBS"
8322 CFLAGS="$save_CFLAGS"
8323fi
8324
8325# We must check for the threads library under a number of different
8326# names; the ordering is very important because some systems
8327# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8328# libraries is broken (non-POSIX).
8329
8330# Create a list of thread flags to try. Items starting with a "-" are
8331# C compiler flags, and other items are library names, except for "none"
8332# which indicates that we try without any flags at all, and "pthread-config"
8333# which is a program returning the flags for the Pth emulation library.
8334
8335ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8336
8337# The ordering *is* (sometimes) important. Some notes on the
8338# individual items follow:
8339
8340# pthreads: AIX (must check this before -lpthread)
8341# none: in case threads are in libc; should be tried before -Kthread and
8342# other compiler flags to prevent continual compiler warnings
8343# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8344# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8345# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8346# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8347# -pthreads: Solaris/gcc
8348# -mthreads: Mingw32/gcc, Lynx/gcc
8349# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8350# doesn't hurt to check since this sometimes defines pthreads too;
8351# also defines -D_REENTRANT)
8352# ... -mt is also the pthreads flag for HP/aCC
8353# pthread: Linux, etcetera
8354# --thread-safe: KAI C++
8355# pthread-config: use pthread-config program (for GNU Pth library)
8356
8357case "${host_cpu}-${host_os}" in
8358 *solaris*)
8359
8360 # On Solaris (at least, for some versions), libc contains stubbed
8361 # (non-functional) versions of the pthreads routines, so link-based
8362 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8363 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8364 # a function called by this macro, so we could check for that, but
8365 # who knows whether they'll stub that too in a future libc.) So,
8366 # we'll just look for -pthreads and -lpthread first:
8367
8368 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8369 ;;
8370
cristya316db12011-10-24 00:49:45 +00008371 *-darwin*)
8372 ax_pthread_flags="-pthread $ax_pthread_flags"
8373 ;;
cristy73bd4a52010-10-05 11:24:23 +00008374esac
8375
8376if test x"$ax_pthread_ok" = xno; then
8377for flag in $ax_pthread_flags; do
8378
8379 case $flag in
8380 none)
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8382$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8383 ;;
8384
8385 -*)
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8387$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8388 PTHREAD_CFLAGS="$flag"
8389 ;;
8390
cristya316db12011-10-24 00:49:45 +00008391 pthread-config)
8392 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008393set dummy pthread-config; ac_word=$2
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008396if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008397 $as_echo_n "(cached) " >&6
8398else
8399 if test -n "$ax_pthread_config"; then
8400 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8401else
8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_ax_pthread_config="yes"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413done
8414 done
8415IFS=$as_save_IFS
8416
8417 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8418fi
8419fi
8420ax_pthread_config=$ac_cv_prog_ax_pthread_config
8421if test -n "$ax_pthread_config"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8423$as_echo "$ax_pthread_config" >&6; }
8424else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
8427fi
8428
8429
cristya316db12011-10-24 00:49:45 +00008430 if test x"$ax_pthread_config" = xno; then continue; fi
8431 PTHREAD_CFLAGS="`pthread-config --cflags`"
8432 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8433 ;;
cristy73bd4a52010-10-05 11:24:23 +00008434
8435 *)
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8437$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8438 PTHREAD_LIBS="-l$flag"
8439 ;;
8440 esac
8441
8442 save_LIBS="$LIBS"
8443 save_CFLAGS="$CFLAGS"
8444 LIBS="$PTHREAD_LIBS $LIBS"
8445 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8446
8447 # Check for various functions. We must include pthread.h,
8448 # since some functions may be macros. (On the Sequent, we
8449 # need a special flag -Kthread to make this header compile.)
8450 # We check for pthread_join because it is in -lpthread on IRIX
8451 # while pthread_create is in libc. We check for pthread_attr_init
8452 # due to DEC craziness with -lpthreads. We check for
8453 # pthread_cleanup_push because it is one of the few pthread
8454 # functions on Solaris that doesn't have a non-functional libc stub.
8455 # We try pthread_create on general principles.
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h. */
8458#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008459 static void routine(void *a) { a = 0; }
8460 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008461int
8462main ()
8463{
8464pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008465 pthread_create(&th, 0, start_routine, 0);
8466 pthread_join(th, 0);
8467 pthread_attr_init(&attr);
8468 pthread_cleanup_push(routine, 0);
8469 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008470 ;
8471 return 0;
8472}
8473_ACEOF
8474if ac_fn_c_try_link "$LINENO"; then :
8475 ax_pthread_ok=yes
8476fi
8477rm -f core conftest.err conftest.$ac_objext \
8478 conftest$ac_exeext conftest.$ac_ext
8479
8480 LIBS="$save_LIBS"
8481 CFLAGS="$save_CFLAGS"
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8484$as_echo "$ax_pthread_ok" >&6; }
8485 if test "x$ax_pthread_ok" = xyes; then
8486 break;
8487 fi
8488
8489 PTHREAD_LIBS=""
8490 PTHREAD_CFLAGS=""
8491done
8492fi
8493
8494# Various other checks:
8495if test "x$ax_pthread_ok" = xyes; then
8496 save_LIBS="$LIBS"
8497 LIBS="$PTHREAD_LIBS $LIBS"
8498 save_CFLAGS="$CFLAGS"
8499 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8500
8501 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008503$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008504 attr_name=unknown
8505 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008507/* end confdefs.h. */
8508#include <pthread.h>
8509int
8510main ()
8511{
cristya316db12011-10-24 00:49:45 +00008512int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008513 ;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_link "$LINENO"; then :
8518 attr_name=$attr; break
8519fi
8520rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008522 done
cristy73bd4a52010-10-05 11:24:23 +00008523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8524$as_echo "$attr_name" >&6; }
8525 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8526
8527cat >>confdefs.h <<_ACEOF
8528#define PTHREAD_CREATE_JOINABLE $attr_name
8529_ACEOF
8530
8531 fi
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8534$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8535 flag=no
8536 case "${host_cpu}-${host_os}" in
8537 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8538 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8539 esac
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8541$as_echo "${flag}" >&6; }
8542 if test "x$flag" != xno; then
8543 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8544 fi
8545
cristya316db12011-10-24 00:49:45 +00008546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8547$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8548if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553/* end confdefs.h. */
8554
8555 #include <pthread.h>
8556int
8557main ()
8558{
8559int i = PTHREAD_PRIO_INHERIT;
8560 ;
8561 return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_link "$LINENO"; then :
8565 ax_cv_PTHREAD_PRIO_INHERIT=yes
8566else
8567 ax_cv_PTHREAD_PRIO_INHERIT=no
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8574$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8575 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8576
8577$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8578
8579fi
8580
cristy73bd4a52010-10-05 11:24:23 +00008581 LIBS="$save_LIBS"
8582 CFLAGS="$save_CFLAGS"
8583
8584 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008585 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008586 for ac_prog in xlc_r cc_r
8587do
8588 # Extract the first word of "$ac_prog", so it can be a program name with args.
8589set dummy $ac_prog; ac_word=$2
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008592if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008593 $as_echo_n "(cached) " >&6
8594else
8595 if test -n "$PTHREAD_CC"; then
8596 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8605 ac_cv_prog_PTHREAD_CC="$ac_prog"
8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607 break 2
8608 fi
8609done
8610 done
8611IFS=$as_save_IFS
8612
8613fi
8614fi
8615PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8616if test -n "$PTHREAD_CC"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8618$as_echo "$PTHREAD_CC" >&6; }
8619else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625 test -n "$PTHREAD_CC" && break
8626done
8627test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8628
8629 else
8630 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008631 fi
cristy73bd4a52010-10-05 11:24:23 +00008632else
8633 PTHREAD_CC="$CC"
8634fi
8635
8636
8637
8638
8639
8640# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8641if test x"$ax_pthread_ok" = xyes; then
8642
8643$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8644
8645 :
8646else
8647 ax_pthread_ok=no
8648
8649fi
8650ac_ext=c
8651ac_cpp='$CPP $CPPFLAGS'
8652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
cristy7acf8fb2010-09-23 19:58:53 +00008657 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008658 have_threads=yes
8659 DEF_THREAD="$PTHREAD_CFLAGS"
8660 CFLAGS="$CFLAGS $DEF_THREAD"
8661 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8662 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008663 { $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 +00008664$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8665 CC="$PTHREAD_CC"
8666 fi
cristy55bf91c2010-09-24 00:29:41 +00008667
8668$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8669
cristy3ed852e2009-09-05 21:47:34 +00008670 fi
8671fi
8672
8673# Enable support for OpenMP
8674if test "$have_threads" != 'yes'; then
8675 ac_cv_prog_c_openmp=unsupported
8676fi
8677
8678 OPENMP_CFLAGS=
8679 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008680if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008681 enableval=$enable_openmp;
8682fi
8683
8684 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008686$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008687if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008688 $as_echo_n "(cached) " >&6
8689else
cristy8b350f62009-11-15 23:12:43 +00008690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008692
8693#ifndef _OPENMP
8694 choke me
8695#endif
8696#include <omp.h>
8697int main () { return omp_get_num_threads (); }
8698
8699_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008700if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008701 ac_cv_prog_c_openmp='none needed'
8702else
cristy8b350f62009-11-15 23:12:43 +00008703 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008704 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8705 ac_save_CFLAGS=$CFLAGS
8706 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008709
8710#ifndef _OPENMP
8711 choke me
8712#endif
8713#include <omp.h>
8714int main () { return omp_get_num_threads (); }
8715
8716_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008717if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008718 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008719fi
cristy8b350f62009-11-15 23:12:43 +00008720rm -f core conftest.err conftest.$ac_objext \
8721 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008722 CFLAGS=$ac_save_CFLAGS
8723 if test "$ac_cv_prog_c_openmp" != unsupported; then
8724 break
8725 fi
8726 done
8727fi
cristy8b350f62009-11-15 23:12:43 +00008728rm -f core conftest.err conftest.$ac_objext \
8729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008730fi
cristy8b350f62009-11-15 23:12:43 +00008731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008732$as_echo "$ac_cv_prog_c_openmp" >&6; }
8733 case $ac_cv_prog_c_openmp in #(
8734 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008735 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008736 *)
cristy8b350f62009-11-15 23:12:43 +00008737 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008738 esac
8739 fi
8740
8741
8742CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8743MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8744
cristy391f1ce2010-09-09 17:23:28 +00008745if test "$enable_openmp" != no; then
8746 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8747 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8748 fi
8749fi
cristy3ed852e2009-09-05 21:47:34 +00008750
cristy736173a2009-09-20 21:18:22 +00008751# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008752
8753
cristy73bd4a52010-10-05 11:24:23 +00008754ac_ext=c
8755ac_cpp='$CPP $CPPFLAGS'
8756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759
8760ax_pthread_ok=no
8761
8762# We used to check for pthread.h first, but this fails if pthread.h
8763# requires special compiler flags (e.g. on True64 or Sequent).
8764# It gets checked for in the link test anyway.
8765
8766# First of all, check if the user has set any of the PTHREAD_LIBS,
8767# etcetera environment variables, and if threads linking works using
8768# them:
8769if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8770 save_CFLAGS="$CFLAGS"
8771 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8772 save_LIBS="$LIBS"
8773 LIBS="$PTHREAD_LIBS $LIBS"
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8775$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h. */
8778
8779/* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8782#ifdef __cplusplus
8783extern "C"
8784#endif
8785char pthread_join ();
8786int
8787main ()
8788{
8789return pthread_join ();
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_link "$LINENO"; then :
8795 ax_pthread_ok=yes
8796fi
8797rm -f core conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8800$as_echo "$ax_pthread_ok" >&6; }
8801 if test x"$ax_pthread_ok" = xno; then
8802 PTHREAD_LIBS=""
8803 PTHREAD_CFLAGS=""
8804 fi
8805 LIBS="$save_LIBS"
8806 CFLAGS="$save_CFLAGS"
8807fi
8808
8809# We must check for the threads library under a number of different
8810# names; the ordering is very important because some systems
8811# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8812# libraries is broken (non-POSIX).
8813
8814# Create a list of thread flags to try. Items starting with a "-" are
8815# C compiler flags, and other items are library names, except for "none"
8816# which indicates that we try without any flags at all, and "pthread-config"
8817# which is a program returning the flags for the Pth emulation library.
8818
8819ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8820
8821# The ordering *is* (sometimes) important. Some notes on the
8822# individual items follow:
8823
8824# pthreads: AIX (must check this before -lpthread)
8825# none: in case threads are in libc; should be tried before -Kthread and
8826# other compiler flags to prevent continual compiler warnings
8827# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8828# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8829# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8830# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8831# -pthreads: Solaris/gcc
8832# -mthreads: Mingw32/gcc, Lynx/gcc
8833# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8834# doesn't hurt to check since this sometimes defines pthreads too;
8835# also defines -D_REENTRANT)
8836# ... -mt is also the pthreads flag for HP/aCC
8837# pthread: Linux, etcetera
8838# --thread-safe: KAI C++
8839# pthread-config: use pthread-config program (for GNU Pth library)
8840
8841case "${host_cpu}-${host_os}" in
8842 *solaris*)
8843
8844 # On Solaris (at least, for some versions), libc contains stubbed
8845 # (non-functional) versions of the pthreads routines, so link-based
8846 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8847 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8848 # a function called by this macro, so we could check for that, but
8849 # who knows whether they'll stub that too in a future libc.) So,
8850 # we'll just look for -pthreads and -lpthread first:
8851
8852 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8853 ;;
8854
cristya316db12011-10-24 00:49:45 +00008855 *-darwin*)
8856 ax_pthread_flags="-pthread $ax_pthread_flags"
8857 ;;
cristy73bd4a52010-10-05 11:24:23 +00008858esac
8859
8860if test x"$ax_pthread_ok" = xno; then
8861for flag in $ax_pthread_flags; do
8862
8863 case $flag in
8864 none)
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8866$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8867 ;;
8868
8869 -*)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8871$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8872 PTHREAD_CFLAGS="$flag"
8873 ;;
8874
cristya316db12011-10-24 00:49:45 +00008875 pthread-config)
8876 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008877set dummy pthread-config; ac_word=$2
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008880if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008881 $as_echo_n "(cached) " >&6
8882else
8883 if test -n "$ax_pthread_config"; then
8884 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8885else
8886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887for as_dir in $PATH
8888do
8889 IFS=$as_save_IFS
8890 test -z "$as_dir" && as_dir=.
8891 for ac_exec_ext in '' $ac_executable_extensions; do
8892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893 ac_cv_prog_ax_pthread_config="yes"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895 break 2
8896 fi
8897done
8898 done
8899IFS=$as_save_IFS
8900
8901 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8902fi
8903fi
8904ax_pthread_config=$ac_cv_prog_ax_pthread_config
8905if test -n "$ax_pthread_config"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8907$as_echo "$ax_pthread_config" >&6; }
8908else
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
8911fi
8912
8913
cristya316db12011-10-24 00:49:45 +00008914 if test x"$ax_pthread_config" = xno; then continue; fi
8915 PTHREAD_CFLAGS="`pthread-config --cflags`"
8916 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8917 ;;
cristy73bd4a52010-10-05 11:24:23 +00008918
8919 *)
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8921$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8922 PTHREAD_LIBS="-l$flag"
8923 ;;
8924 esac
8925
8926 save_LIBS="$LIBS"
8927 save_CFLAGS="$CFLAGS"
8928 LIBS="$PTHREAD_LIBS $LIBS"
8929 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8930
8931 # Check for various functions. We must include pthread.h,
8932 # since some functions may be macros. (On the Sequent, we
8933 # need a special flag -Kthread to make this header compile.)
8934 # We check for pthread_join because it is in -lpthread on IRIX
8935 # while pthread_create is in libc. We check for pthread_attr_init
8936 # due to DEC craziness with -lpthreads. We check for
8937 # pthread_cleanup_push because it is one of the few pthread
8938 # functions on Solaris that doesn't have a non-functional libc stub.
8939 # We try pthread_create on general principles.
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h. */
8942#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008943 static void routine(void *a) { a = 0; }
8944 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008945int
8946main ()
8947{
8948pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008949 pthread_create(&th, 0, start_routine, 0);
8950 pthread_join(th, 0);
8951 pthread_attr_init(&attr);
8952 pthread_cleanup_push(routine, 0);
8953 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008954 ;
8955 return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then :
8959 ax_pthread_ok=yes
8960fi
8961rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963
8964 LIBS="$save_LIBS"
8965 CFLAGS="$save_CFLAGS"
8966
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8968$as_echo "$ax_pthread_ok" >&6; }
8969 if test "x$ax_pthread_ok" = xyes; then
8970 break;
8971 fi
8972
8973 PTHREAD_LIBS=""
8974 PTHREAD_CFLAGS=""
8975done
8976fi
8977
8978# Various other checks:
8979if test "x$ax_pthread_ok" = xyes; then
8980 save_LIBS="$LIBS"
8981 LIBS="$PTHREAD_LIBS $LIBS"
8982 save_CFLAGS="$CFLAGS"
8983 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8984
8985 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008987$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008988 attr_name=unknown
8989 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008991/* end confdefs.h. */
8992#include <pthread.h>
8993int
8994main ()
8995{
cristya316db12011-10-24 00:49:45 +00008996int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008997 ;
8998 return 0;
8999}
9000_ACEOF
9001if ac_fn_c_try_link "$LINENO"; then :
9002 attr_name=$attr; break
9003fi
9004rm -f core conftest.err conftest.$ac_objext \
9005 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009006 done
cristy73bd4a52010-10-05 11:24:23 +00009007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9008$as_echo "$attr_name" >&6; }
9009 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9010
9011cat >>confdefs.h <<_ACEOF
9012#define PTHREAD_CREATE_JOINABLE $attr_name
9013_ACEOF
9014
9015 fi
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9018$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9019 flag=no
9020 case "${host_cpu}-${host_os}" in
9021 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9022 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9023 esac
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9025$as_echo "${flag}" >&6; }
9026 if test "x$flag" != xno; then
9027 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9028 fi
9029
cristya316db12011-10-24 00:49:45 +00009030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9031$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9032if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9033 $as_echo_n "(cached) " >&6
9034else
9035
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h. */
9038
9039 #include <pthread.h>
9040int
9041main ()
9042{
9043int i = PTHREAD_PRIO_INHERIT;
9044 ;
9045 return 0;
9046}
9047_ACEOF
9048if ac_fn_c_try_link "$LINENO"; then :
9049 ax_cv_PTHREAD_PRIO_INHERIT=yes
9050else
9051 ax_cv_PTHREAD_PRIO_INHERIT=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9055
9056fi
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9058$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9059 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9060
9061$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9062
9063fi
9064
cristy73bd4a52010-10-05 11:24:23 +00009065 LIBS="$save_LIBS"
9066 CFLAGS="$save_CFLAGS"
9067
9068 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009069 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009070 for ac_prog in xlc_r cc_r
9071do
9072 # Extract the first word of "$ac_prog", so it can be a program name with args.
9073set dummy $ac_prog; ac_word=$2
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009076if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009077 $as_echo_n "(cached) " >&6
9078else
9079 if test -n "$PTHREAD_CC"; then
9080 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9081else
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089 ac_cv_prog_PTHREAD_CC="$ac_prog"
9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091 break 2
9092 fi
9093done
9094 done
9095IFS=$as_save_IFS
9096
9097fi
9098fi
9099PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9100if test -n "$PTHREAD_CC"; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9102$as_echo "$PTHREAD_CC" >&6; }
9103else
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105$as_echo "no" >&6; }
9106fi
9107
9108
9109 test -n "$PTHREAD_CC" && break
9110done
9111test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9112
9113 else
9114 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009115 fi
cristy73bd4a52010-10-05 11:24:23 +00009116else
9117 PTHREAD_CC="$CC"
9118fi
9119
9120
9121
9122
9123
9124# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9125if test x"$ax_pthread_ok" = xyes; then
9126
9127$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9128
9129 :
9130else
9131 ax_pthread_ok=no
9132
9133fi
9134ac_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
9140
9141
9142# Check whether --enable-opencl was given.
9143if test "${enable_opencl+set}" = set; then :
9144 enableval=$enable_opencl; disable_opencl=$enableval
9145else
9146 disable_opencl='yes'
9147fi
9148
9149
9150if test "$disable_opencl" = 'yes'; then
9151 ac_ext=c
9152ac_cpp='$CPP $CPPFLAGS'
9153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155ac_compiler_gnu=$ac_cv_c_compiler_gnu
9156
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9158$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009159if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009160 $as_echo_n "(cached) " >&6
9161else
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163/* end confdefs.h. */
9164
9165int
9166main ()
9167{
9168#ifndef _MSC_VER
9169 choke me
9170#endif
9171
9172 ;
9173 return 0;
9174}
9175_ACEOF
9176if ac_fn_c_try_compile "$LINENO"; then :
9177 ax_compiler_ms=yes
9178else
9179 ax_compiler_ms=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182ax_cv_c_compiler_ms=$ax_compiler_ms
9183
9184fi
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9186$as_echo "$ax_cv_c_compiler_ms" >&6; }
9187 if test X$ax_compiler_ms = Xno; then :
9188 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9189fi
9190
9191 ax_save_CPPFLAGS=$CPPFLAGS
9192 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9193 for ac_header in CL/cl.h OpenCL/cl.h
9194do :
9195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009197if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009198 cat >>confdefs.h <<_ACEOF
9199#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200_ACEOF
9201
9202fi
9203
9204done
9205
9206 CPPFLAGS=$ax_save_CPPFLAGS
9207
9208 for ac_header in windows.h
9209do :
9210 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009211if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009212 cat >>confdefs.h <<_ACEOF
9213#define HAVE_WINDOWS_H 1
9214_ACEOF
9215
9216fi
9217
9218done
9219
9220
9221
9222
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9224$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009225if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009226 $as_echo_n "(cached) " >&6
9227else
9228 ax_cv_check_cl_libcl=no
9229 case $host_cpu in
9230 x86_64) ax_check_cl_libdir=lib64 ;;
9231 *) ax_check_cl_libdir=lib ;;
9232 esac
9233 ax_save_CPPFLAGS=$CPPFLAGS
9234 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9235 ax_save_LIBS=$LIBS
9236 LIBS=""
9237 ax_check_libs="-lOpenCL -lCL -lclparser"
9238 for ax_lib in $ax_check_libs; do
9239 if test X$ax_compiler_ms = Xyes; then :
9240 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9241else
9242 ax_try_lib=$ax_lib
9243fi
9244 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246/* end confdefs.h. */
9247
9248 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9249 # include <windows.h>
9250 # endif
9251 # ifdef HAVE_CL_CL_H
9252 # include <CL/cl.h>
9253 # elif defined(HAVE_OPENCL_CL_H)
9254 # include <OpenCL/cl.h>
9255 # else
9256 # error no CL.h
9257 # endif
9258int
9259main ()
9260{
9261clCreateContextFromType(0,0,0,0,0)
9262 ;
9263 return 0;
9264}
9265_ACEOF
9266if ac_fn_c_try_link "$LINENO"; then :
9267 ax_cv_check_cl_libcl=$ax_try_lib; break
9268else
9269 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"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271/* end confdefs.h. */
9272
9273 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9274 # include <windows.h>
9275 # endif
9276 # ifdef HAVE_CL_CL_H
9277 # include <CL/cl.h>
9278 # elif defined(HAVE_OPENCL_CL_H)
9279 # include <OpenCL/cl.h>
9280 # else
9281 # error no CL.h
9282 # endif
9283int
9284main ()
9285{
9286clCreateContextFromType(0,0,0,0,0)
9287 ;
9288 return 0;
9289}
9290_ACEOF
9291if ac_fn_c_try_link "$LINENO"; then :
9292 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9293else
cristy78c5a0c2010-12-04 20:00:59 +00009294 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 +00009295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h. */
9297
9298 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9299 # include <windows.h>
9300 # endif
9301 # ifdef HAVE_CL_CL_H
9302 # include <CL/cl.h>
9303 # elif defined(HAVE_OPENCL_CL_H)
9304 # include <OpenCL/cl.h>
9305 # else
9306 # error no CL.h
9307 # endif
9308int
9309main ()
9310{
9311clCreateContextFromType(0,0,0,0,0)
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316if ac_fn_c_try_link "$LINENO"; then :
9317 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9318fi
9319rm -f core conftest.err conftest.$ac_objext \
9320 conftest$ac_exeext conftest.$ac_ext
9321fi
9322rm -f core conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
9324fi
9325rm -f core conftest.err conftest.$ac_objext \
9326 conftest$ac_exeext conftest.$ac_ext
9327 done
9328
9329 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009330 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332/* end confdefs.h. */
9333
9334 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9335 # include <windows.h>
9336 # endif
9337 # ifdef HAVE_CL_CL_H
9338 # include <CL/cl.h>
9339 # elif defined(HAVE_OPENCL_CL_H)
9340 # include <OpenCL/cl.h>
9341 # else
9342 # error no CL.h
9343 # endif
9344int
9345main ()
9346{
9347clCreateContextFromType(0,0,0,0,0)
9348 ;
9349 return 0;
9350}
9351_ACEOF
9352if ac_fn_c_try_link "$LINENO"; then :
9353 ax_cv_check_cl_libcl=$LIBS
9354fi
9355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357fi
9358
9359 LIBS=$ax_save_LIBS
9360 CPPFLAGS=$ax_save_CPPFLAGS
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9363$as_echo "$ax_cv_check_cl_libcl" >&6; }
9364
9365 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9366 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9367else
9368 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9369$as_echo "#define _OPENCL 1" >>confdefs.h
9370
9371fi
9372 ac_ext=c
9373ac_cpp='$CPP $CPPFLAGS'
9374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376ac_compiler_gnu=$ac_cv_c_compiler_gnu
9377
9378fi
9379
9380
9381
9382
cristyc7083c12009-10-14 03:16:55 +00009383CFLAGS="$CL_CFLAGS $CFLAGS"
9384LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009385
cristy391f1ce2010-09-09 17:23:28 +00009386if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009387 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009388 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9389 fi
cristyfd9dcd42010-08-08 18:07:02 +00009390fi
cristy2e8b51d2009-10-17 18:26:15 +00009391
cristy3ed852e2009-09-05 21:47:34 +00009392########
9393#
9394# Check for large file support
9395#
9396########
9397# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009398if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009399 enableval=$enable_largefile;
9400fi
9401
9402if test "$enable_largefile" != no; then
9403
cristy8b350f62009-11-15 23:12:43 +00009404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009405$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009406if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009407 $as_echo_n "(cached) " >&6
9408else
9409 ac_cv_sys_largefile_CC=no
9410 if test "$GCC" != yes; then
9411 ac_save_CC=$CC
9412 while :; do
9413 # IRIX 6.2 and later do not support large files by default,
9414 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009416/* end confdefs.h. */
9417#include <sys/types.h>
9418 /* Check that off_t can represent 2**63 - 1 correctly.
9419 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9420 since some C++ compilers masquerading as C compilers
9421 incorrectly reject 9223372036854775807. */
9422#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9423 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9424 && LARGE_OFF_T % 2147483647 == 1)
9425 ? 1 : -1];
9426int
9427main ()
9428{
9429
9430 ;
9431 return 0;
9432}
9433_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009434 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009435 break
cristy3ed852e2009-09-05 21:47:34 +00009436fi
cristy3ed852e2009-09-05 21:47:34 +00009437rm -f core conftest.err conftest.$ac_objext
9438 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009439 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009440 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009441fi
cristy3ed852e2009-09-05 21:47:34 +00009442rm -f core conftest.err conftest.$ac_objext
9443 break
9444 done
9445 CC=$ac_save_CC
9446 rm -f conftest.$ac_ext
9447 fi
9448fi
cristy8b350f62009-11-15 23:12:43 +00009449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009450$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9451 if test "$ac_cv_sys_largefile_CC" != no; then
9452 CC=$CC$ac_cv_sys_largefile_CC
9453 fi
9454
cristy8b350f62009-11-15 23:12:43 +00009455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009456$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009457if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009458 $as_echo_n "(cached) " >&6
9459else
9460 while :; do
cristy8b350f62009-11-15 23:12:43 +00009461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009462/* end confdefs.h. */
9463#include <sys/types.h>
9464 /* Check that off_t can represent 2**63 - 1 correctly.
9465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9466 since some C++ compilers masquerading as C compilers
9467 incorrectly reject 9223372036854775807. */
9468#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9470 && LARGE_OFF_T % 2147483647 == 1)
9471 ? 1 : -1];
9472int
9473main ()
9474{
9475
9476 ;
9477 return 0;
9478}
9479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009480if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009481 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009482fi
cristy3ed852e2009-09-05 21:47:34 +00009483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009485/* end confdefs.h. */
9486#define _FILE_OFFSET_BITS 64
9487#include <sys/types.h>
9488 /* Check that off_t can represent 2**63 - 1 correctly.
9489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9490 since some C++ compilers masquerading as C compilers
9491 incorrectly reject 9223372036854775807. */
9492#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9494 && LARGE_OFF_T % 2147483647 == 1)
9495 ? 1 : -1];
9496int
9497main ()
9498{
9499
9500 ;
9501 return 0;
9502}
9503_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009504if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009505 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009506fi
cristy3ed852e2009-09-05 21:47:34 +00009507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508 ac_cv_sys_file_offset_bits=unknown
9509 break
9510done
9511fi
cristy8b350f62009-11-15 23:12:43 +00009512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009513$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9514case $ac_cv_sys_file_offset_bits in #(
9515 no | unknown) ;;
9516 *)
9517cat >>confdefs.h <<_ACEOF
9518#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9519_ACEOF
9520;;
9521esac
9522rm -rf conftest*
9523 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009525$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009526if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009527 $as_echo_n "(cached) " >&6
9528else
9529 while :; do
cristy8b350f62009-11-15 23:12:43 +00009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009531/* end confdefs.h. */
9532#include <sys/types.h>
9533 /* Check that off_t can represent 2**63 - 1 correctly.
9534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9535 since some C++ compilers masquerading as C compilers
9536 incorrectly reject 9223372036854775807. */
9537#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9539 && LARGE_OFF_T % 2147483647 == 1)
9540 ? 1 : -1];
9541int
9542main ()
9543{
9544
9545 ;
9546 return 0;
9547}
9548_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009549if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009550 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009551fi
cristy3ed852e2009-09-05 21:47:34 +00009552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009554/* end confdefs.h. */
9555#define _LARGE_FILES 1
9556#include <sys/types.h>
9557 /* Check that off_t can represent 2**63 - 1 correctly.
9558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9559 since some C++ compilers masquerading as C compilers
9560 incorrectly reject 9223372036854775807. */
9561#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9563 && LARGE_OFF_T % 2147483647 == 1)
9564 ? 1 : -1];
9565int
9566main ()
9567{
9568
9569 ;
9570 return 0;
9571}
9572_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009573if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009574 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009575fi
cristy3ed852e2009-09-05 21:47:34 +00009576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577 ac_cv_sys_large_files=unknown
9578 break
9579done
9580fi
cristy8b350f62009-11-15 23:12:43 +00009581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009582$as_echo "$ac_cv_sys_large_files" >&6; }
9583case $ac_cv_sys_large_files in #(
9584 no | unknown) ;;
9585 *)
9586cat >>confdefs.h <<_ACEOF
9587#define _LARGE_FILES $ac_cv_sys_large_files
9588_ACEOF
9589;;
9590esac
9591rm -rf conftest*
9592 fi
9593fi
9594
cristy8b350f62009-11-15 23:12:43 +00009595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009596$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009597if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009598 $as_echo_n "(cached) " >&6
9599else
9600 while :; do
cristy8b350f62009-11-15 23:12:43 +00009601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009602/* end confdefs.h. */
9603#include <sys/types.h> /* for off_t */
9604 #include <stdio.h>
9605int
9606main ()
9607{
9608int (*fp) (FILE *, off_t, int) = fseeko;
9609 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9610 ;
9611 return 0;
9612}
9613_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009614if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009615 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009616fi
cristy8b350f62009-11-15 23:12:43 +00009617rm -f core conftest.err conftest.$ac_objext \
9618 conftest$ac_exeext conftest.$ac_ext
9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009620/* end confdefs.h. */
9621#define _LARGEFILE_SOURCE 1
9622#include <sys/types.h> /* for off_t */
9623 #include <stdio.h>
9624int
9625main ()
9626{
9627int (*fp) (FILE *, off_t, int) = fseeko;
9628 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9629 ;
9630 return 0;
9631}
9632_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009633if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009634 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009635fi
cristy8b350f62009-11-15 23:12:43 +00009636rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009638 ac_cv_sys_largefile_source=unknown
9639 break
9640done
9641fi
cristy8b350f62009-11-15 23:12:43 +00009642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009643$as_echo "$ac_cv_sys_largefile_source" >&6; }
9644case $ac_cv_sys_largefile_source in #(
9645 no | unknown) ;;
9646 *)
9647cat >>confdefs.h <<_ACEOF
9648#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9649_ACEOF
9650;;
9651esac
9652rm -rf conftest*
9653
9654# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9655# in glibc 2.1.3, but that breaks too many other things.
9656# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9657if test $ac_cv_sys_largefile_source != unknown; then
9658
cristy8b350f62009-11-15 23:12:43 +00009659$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009660
9661fi
9662
9663LFS_CPPFLAGS=''
9664if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009665 case $ac_cv_sys_file_offset_bits in
9666 no)
9667 # nothing to do here as the host supports LFS fine
9668 ;;
9669 unknown)
cristy8b350f62009-11-15 23:12:43 +00009670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009671$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009672 if test "$cross_compiling" = yes; then :
9673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009675as_fn_error $? "cannot run test program while cross compiling
9676See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009677else
cristy8b350f62009-11-15 23:12:43 +00009678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009680#include <unistd.h>
9681 main () {
9682 exit(!(sizeof(off_t) == 8));
9683 }
cristyda16f162011-02-19 23:52:17 +00009684int
9685main ()
9686{
9687
9688 ;
9689 return 0;
9690}
cristy3ed852e2009-09-05 21:47:34 +00009691_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009692if ac_fn_c_try_run "$LINENO"; then :
9693 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009694
cristy09b53e12011-10-14 12:47:22 +00009695 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9696$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009697else
cristy09b53e12011-10-14 12:47:22 +00009698 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9699$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009700fi
cristy8b350f62009-11-15 23:12:43 +00009701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9702 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009703fi
9704
cristyc1e0cc12011-09-21 16:41:16 +00009705 ;;
9706 *)
9707 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9708 ;;
9709 esac
cristy3ed852e2009-09-05 21:47:34 +00009710 if test "$ac_cv_sys_large_files" != 'no'; then
9711 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9712 fi
9713 if test "$ac_cv_sys_largefile_source" != 'no'; then
9714 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9715 fi
9716fi
9717
9718
9719#
cristy74554ef2011-10-27 12:56:11 +00009720# ARCH specific include directory
9721#
9722
9723# Check whether --with-includedir-arch was given.
9724if test "${with_includedir_arch+set}" = set; then :
9725 withval=$with_includedir_arch; includedir_arch=$withval
9726else
9727 includedir_arch=$INCLUDE_DIR
9728fi
9729
9730
9731
9732cat >>confdefs.h <<_ACEOF
9733#define INCLUDEDIR_ARCH "$includedir_arch"
9734_ACEOF
9735
9736
9737#
9738# ARCH specific configuration directory
9739#
9740
9741# Check whether --with-configdir-arch was given.
9742if test "${with_configdir_arch+set}" = set; then :
9743 withval=$with_configdir_arch; configdir_arch=$withval
9744else
9745 configdir_arch="${LIB_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
9746fi
9747
9748
9749
9750cat >>confdefs.h <<_ACEOF
9751#define CONFIGDIR_ARCH "$configdir_arch"
9752_ACEOF
9753
9754
9755#
cristy3ed852e2009-09-05 21:47:34 +00009756# Configure libtool & libltdl
9757#
9758# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009759enable_dlopen=yes
9760
9761
9762
9763case `pwd` in
9764 *\ * | *\ *)
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9766$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9767esac
9768
9769
9770
cristyda16f162011-02-19 23:52:17 +00009771macro_version='2.4'
9772macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786ltmain="$ac_aux_dir/ltmain.sh"
9787
cristy0c60a692010-11-04 01:09:47 +00009788# Backslashify metacharacters that are still active within
9789# double-quoted strings.
9790sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9791
9792# Same as above, but do not quote variable references.
9793double_quote_subst='s/\(["`\\]\)/\\\1/g'
9794
9795# Sed substitution to delay expansion of an escaped shell variable in a
9796# double_quote_subst'ed string.
9797delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9798
9799# Sed substitution to delay expansion of an escaped single quote.
9800delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9801
9802# Sed substitution to avoid accidental globbing in evaled expressions
9803no_glob_subst='s/\*/\\\*/g'
9804
cristy73bd4a52010-10-05 11:24:23 +00009805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9806$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009807if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009808 $as_echo_n "(cached) " >&6
9809else
9810 if test -n "$NM"; then
9811 # Let the user override the test.
9812 lt_cv_path_NM="$NM"
9813else
9814 lt_nm_to_check="${ac_tool_prefix}nm"
9815 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9816 lt_nm_to_check="$lt_nm_to_check nm"
9817 fi
9818 for lt_tmp_nm in $lt_nm_to_check; do
9819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9820 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9821 IFS="$lt_save_ifs"
9822 test -z "$ac_dir" && ac_dir=.
9823 tmp_nm="$ac_dir/$lt_tmp_nm"
9824 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9825 # Check to see if the nm accepts a BSD-compat flag.
9826 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9827 # nm: unknown option "B" ignored
9828 # Tru64's nm complains that /dev/null is an invalid object file
9829 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9830 */dev/null* | *'Invalid file or object type'*)
9831 lt_cv_path_NM="$tmp_nm -B"
9832 break
9833 ;;
9834 *)
9835 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9836 */dev/null*)
9837 lt_cv_path_NM="$tmp_nm -p"
9838 break
9839 ;;
9840 *)
9841 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9842 continue # so that we can try to find one that supports BSD flags
9843 ;;
9844 esac
9845 ;;
9846 esac
9847 fi
9848 done
9849 IFS="$lt_save_ifs"
9850 done
9851 : ${lt_cv_path_NM=no}
9852fi
9853fi
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9855$as_echo "$lt_cv_path_NM" >&6; }
9856if test "$lt_cv_path_NM" != "no"; then
9857 NM="$lt_cv_path_NM"
9858else
9859 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009860 if test -n "$DUMPBIN"; then :
9861 # Let the user override the test.
9862 else
9863 if test -n "$ac_tool_prefix"; then
9864 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009865 do
9866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9867set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009870if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$DUMPBIN"; then
9874 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9875else
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887done
9888 done
9889IFS=$as_save_IFS
9890
9891fi
9892fi
9893DUMPBIN=$ac_cv_prog_DUMPBIN
9894if test -n "$DUMPBIN"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9896$as_echo "$DUMPBIN" >&6; }
9897else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899$as_echo "no" >&6; }
9900fi
9901
9902
9903 test -n "$DUMPBIN" && break
9904 done
9905fi
9906if test -z "$DUMPBIN"; then
9907 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009908 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009909do
9910 # Extract the first word of "$ac_prog", so it can be a program name with args.
9911set dummy $ac_prog; ac_word=$2
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009914if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009915 $as_echo_n "(cached) " >&6
9916else
9917 if test -n "$ac_ct_DUMPBIN"; then
9918 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9919else
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929 break 2
9930 fi
9931done
9932 done
9933IFS=$as_save_IFS
9934
9935fi
9936fi
9937ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9938if test -n "$ac_ct_DUMPBIN"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9940$as_echo "$ac_ct_DUMPBIN" >&6; }
9941else
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943$as_echo "no" >&6; }
9944fi
9945
9946
9947 test -n "$ac_ct_DUMPBIN" && break
9948done
9949
9950 if test "x$ac_ct_DUMPBIN" = x; then
9951 DUMPBIN=":"
9952 else
9953 case $cross_compiling:$ac_tool_warned in
9954yes:)
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9957ac_tool_warned=yes ;;
9958esac
9959 DUMPBIN=$ac_ct_DUMPBIN
9960 fi
9961fi
9962
cristy0c60a692010-11-04 01:09:47 +00009963 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9964 *COFF*)
9965 DUMPBIN="$DUMPBIN -symbols"
9966 ;;
9967 *)
9968 DUMPBIN=:
9969 ;;
9970 esac
9971 fi
cristy73bd4a52010-10-05 11:24:23 +00009972
9973 if test "$DUMPBIN" != ":"; then
9974 NM="$DUMPBIN"
9975 fi
9976fi
9977test -z "$NM" && NM=nm
9978
9979
9980
9981
9982
9983
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9985$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009986if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009987 $as_echo_n "(cached) " >&6
9988else
9989 lt_cv_nm_interface="BSD nm"
9990 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009991 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009992 (eval "$ac_compile" 2>conftest.err)
9993 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009994 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009995 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9996 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009997 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009998 cat conftest.out >&5
9999 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10000 lt_cv_nm_interface="MS dumpbin"
10001 fi
10002 rm -f conftest*
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10005$as_echo "$lt_cv_nm_interface" >&6; }
10006
10007# find the maximum length of command line arguments
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10009$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010010if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010011 $as_echo_n "(cached) " >&6
10012else
10013 i=0
10014 teststring="ABCD"
10015
10016 case $build_os in
10017 msdosdjgpp*)
10018 # On DJGPP, this test can blow up pretty badly due to problems in libc
10019 # (any single argument exceeding 2000 bytes causes a buffer overrun
10020 # during glob expansion). Even if it were fixed, the result of this
10021 # check would be larger than it should be.
10022 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10023 ;;
10024
10025 gnu*)
10026 # Under GNU Hurd, this test is not required because there is
10027 # no limit to the length of command line arguments.
10028 # Libtool will interpret -1 as no limit whatsoever
10029 lt_cv_sys_max_cmd_len=-1;
10030 ;;
10031
10032 cygwin* | mingw* | cegcc*)
10033 # On Win9x/ME, this test blows up -- it succeeds, but takes
10034 # about 5 minutes as the teststring grows exponentially.
10035 # Worse, since 9x/ME are not pre-emptively multitasking,
10036 # you end up with a "frozen" computer, even though with patience
10037 # the test eventually succeeds (with a max line length of 256k).
10038 # Instead, let's just punt: use the minimum linelength reported by
10039 # all of the supported platforms: 8192 (on NT/2K/XP).
10040 lt_cv_sys_max_cmd_len=8192;
10041 ;;
10042
cristy0c60a692010-11-04 01:09:47 +000010043 mint*)
10044 # On MiNT this can take a long time and run out of memory.
10045 lt_cv_sys_max_cmd_len=8192;
10046 ;;
10047
cristy73bd4a52010-10-05 11:24:23 +000010048 amigaos*)
10049 # On AmigaOS with pdksh, this test takes hours, literally.
10050 # So we just punt and use a minimum line length of 8192.
10051 lt_cv_sys_max_cmd_len=8192;
10052 ;;
10053
10054 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10055 # This has been around since 386BSD, at least. Likely further.
10056 if test -x /sbin/sysctl; then
10057 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10058 elif test -x /usr/sbin/sysctl; then
10059 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10060 else
10061 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10062 fi
10063 # And add a safety zone
10064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10066 ;;
10067
10068 interix*)
10069 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10070 lt_cv_sys_max_cmd_len=196608
10071 ;;
10072
10073 osf*)
10074 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10075 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10076 # nice to cause kernel panics so lets avoid the loop below.
10077 # First set a reasonable default.
10078 lt_cv_sys_max_cmd_len=16384
10079 #
10080 if test -x /sbin/sysconfig; then
10081 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10082 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10083 esac
10084 fi
10085 ;;
10086 sco3.2v5*)
10087 lt_cv_sys_max_cmd_len=102400
10088 ;;
10089 sysv5* | sco5v6* | sysv4.2uw2*)
10090 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10091 if test -n "$kargmax"; then
10092 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10093 else
10094 lt_cv_sys_max_cmd_len=32768
10095 fi
10096 ;;
10097 *)
10098 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10099 if test -n "$lt_cv_sys_max_cmd_len"; then
10100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10102 else
10103 # Make teststring a little bigger before we do anything with it.
10104 # a 1K string should be a reasonable start.
10105 for i in 1 2 3 4 5 6 7 8 ; do
10106 teststring=$teststring$teststring
10107 done
10108 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10109 # If test is not a shell built-in, we'll probably end up computing a
10110 # maximum length that is only half of the actual maximum length, but
10111 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +000010112 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10113 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010114 test $i != 17 # 1/2 MB should be enough
10115 do
10116 i=`expr $i + 1`
10117 teststring=$teststring$teststring
10118 done
10119 # Only check the string length outside the loop.
10120 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10121 teststring=
10122 # Add a significant safety factor because C++ compilers can tack on
10123 # massive amounts of additional arguments before passing them to the
10124 # linker. It appears as though 1/2 is a usable value.
10125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10126 fi
10127 ;;
10128 esac
10129
10130fi
10131
10132if test -n $lt_cv_sys_max_cmd_len ; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10134$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10135else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10137$as_echo "none" >&6; }
10138fi
10139max_cmd_len=$lt_cv_sys_max_cmd_len
10140
10141
10142
10143
10144
10145
10146: ${CP="cp -f"}
10147: ${MV="mv -f"}
10148: ${RM="rm -f"}
10149
10150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10151$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10152# Try some XSI features
10153xsi_shell=no
10154( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010155 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10156 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010157 && eval 'test $(( 1 + 1 )) -eq 2 \
10158 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10159 && xsi_shell=yes
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10161$as_echo "$xsi_shell" >&6; }
10162
10163
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10165$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10166lt_shell_append=no
10167( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10168 >/dev/null 2>&1 \
10169 && lt_shell_append=yes
10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10171$as_echo "$lt_shell_append" >&6; }
10172
10173
10174if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10175 lt_unset=unset
10176else
10177 lt_unset=false
10178fi
10179
10180
10181
10182
10183
10184# test EBCDIC or ASCII
10185case `echo X|tr X '\101'` in
10186 A) # ASCII based system
10187 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10188 lt_SP2NL='tr \040 \012'
10189 lt_NL2SP='tr \015\012 \040\040'
10190 ;;
10191 *) # EBCDIC based system
10192 lt_SP2NL='tr \100 \n'
10193 lt_NL2SP='tr \r\n \100\100'
10194 ;;
10195esac
10196
10197
10198
10199
10200
10201
10202
10203
10204
cristyda16f162011-02-19 23:52:17 +000010205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10206$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10207if ${lt_cv_to_host_file_cmd+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209else
10210 case $host in
10211 *-*-mingw* )
10212 case $build in
10213 *-*-mingw* ) # actually msys
10214 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10215 ;;
10216 *-*-cygwin* )
10217 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10218 ;;
10219 * ) # otherwise, assume *nix
10220 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10221 ;;
10222 esac
10223 ;;
10224 *-*-cygwin* )
10225 case $build in
10226 *-*-mingw* ) # actually msys
10227 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10228 ;;
10229 *-*-cygwin* )
10230 lt_cv_to_host_file_cmd=func_convert_file_noop
10231 ;;
10232 * ) # otherwise, assume *nix
10233 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10234 ;;
10235 esac
10236 ;;
10237 * ) # unhandled hosts (and "normal" native builds)
10238 lt_cv_to_host_file_cmd=func_convert_file_noop
10239 ;;
10240esac
10241
10242fi
10243
10244to_host_file_cmd=$lt_cv_to_host_file_cmd
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10246$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10247
10248
10249
10250
10251
10252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10253$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10254if ${lt_cv_to_tool_file_cmd+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256else
10257 #assume ordinary cross tools, or native build.
10258lt_cv_to_tool_file_cmd=func_convert_file_noop
10259case $host in
10260 *-*-mingw* )
10261 case $build in
10262 *-*-mingw* ) # actually msys
10263 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10264 ;;
10265 esac
10266 ;;
10267esac
10268
10269fi
10270
10271to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10273$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10274
10275
10276
10277
10278
cristy73bd4a52010-10-05 11:24:23 +000010279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10280$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010281if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010282 $as_echo_n "(cached) " >&6
10283else
10284 lt_cv_ld_reload_flag='-r'
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10287$as_echo "$lt_cv_ld_reload_flag" >&6; }
10288reload_flag=$lt_cv_ld_reload_flag
10289case $reload_flag in
10290"" | " "*) ;;
10291*) reload_flag=" $reload_flag" ;;
10292esac
10293reload_cmds='$LD$reload_flag -o $output$reload_objs'
10294case $host_os in
cristyda16f162011-02-19 23:52:17 +000010295 cygwin* | mingw* | pw32* | cegcc*)
10296 if test "$GCC" != yes; then
10297 reload_cmds=false
10298 fi
10299 ;;
cristy73bd4a52010-10-05 11:24:23 +000010300 darwin*)
10301 if test "$GCC" = yes; then
10302 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10303 else
10304 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10305 fi
10306 ;;
10307esac
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317if test -n "$ac_tool_prefix"; then
10318 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10319set dummy ${ac_tool_prefix}objdump; ac_word=$2
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010322if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010323 $as_echo_n "(cached) " >&6
10324else
10325 if test -n "$OBJDUMP"; then
10326 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10327else
10328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329for as_dir in $PATH
10330do
10331 IFS=$as_save_IFS
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337 break 2
10338 fi
10339done
10340 done
10341IFS=$as_save_IFS
10342
10343fi
10344fi
10345OBJDUMP=$ac_cv_prog_OBJDUMP
10346if test -n "$OBJDUMP"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10348$as_echo "$OBJDUMP" >&6; }
10349else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351$as_echo "no" >&6; }
10352fi
10353
10354
10355fi
10356if test -z "$ac_cv_prog_OBJDUMP"; then
10357 ac_ct_OBJDUMP=$OBJDUMP
10358 # Extract the first word of "objdump", so it can be a program name with args.
10359set dummy objdump; ac_word=$2
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010362if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010363 $as_echo_n "(cached) " >&6
10364else
10365 if test -n "$ac_ct_OBJDUMP"; then
10366 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10367else
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377 break 2
10378 fi
10379done
10380 done
10381IFS=$as_save_IFS
10382
10383fi
10384fi
10385ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10386if test -n "$ac_ct_OBJDUMP"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10388$as_echo "$ac_ct_OBJDUMP" >&6; }
10389else
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
10392fi
10393
10394 if test "x$ac_ct_OBJDUMP" = x; then
10395 OBJDUMP="false"
10396 else
10397 case $cross_compiling:$ac_tool_warned in
10398yes:)
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10401ac_tool_warned=yes ;;
10402esac
10403 OBJDUMP=$ac_ct_OBJDUMP
10404 fi
10405else
10406 OBJDUMP="$ac_cv_prog_OBJDUMP"
10407fi
10408
10409test -z "$OBJDUMP" && OBJDUMP=objdump
10410
10411
10412
10413
10414
10415
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10417$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010418if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010419 $as_echo_n "(cached) " >&6
10420else
10421 lt_cv_file_magic_cmd='$MAGIC_CMD'
10422lt_cv_file_magic_test_file=
10423lt_cv_deplibs_check_method='unknown'
10424# Need to set the preceding variable on all platforms that support
10425# interlibrary dependencies.
10426# 'none' -- dependencies not supported.
10427# `unknown' -- same as none, but documents that we really don't know.
10428# 'pass_all' -- all dependencies passed with no checks.
10429# 'test_compile' -- check by making test program.
10430# 'file_magic [[regex]]' -- check by looking for files in library path
10431# which responds to the $file_magic_cmd with a given extended regex.
10432# If you have `file' or equivalent on your system and you're not sure
10433# whether `pass_all' will *always* work, you probably want this one.
10434
10435case $host_os in
10436aix[4-9]*)
10437 lt_cv_deplibs_check_method=pass_all
10438 ;;
10439
10440beos*)
10441 lt_cv_deplibs_check_method=pass_all
10442 ;;
10443
10444bsdi[45]*)
10445 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10446 lt_cv_file_magic_cmd='/usr/bin/file -L'
10447 lt_cv_file_magic_test_file=/shlib/libc.so
10448 ;;
10449
10450cygwin*)
10451 # func_win32_libid is a shell function defined in ltmain.sh
10452 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10453 lt_cv_file_magic_cmd='func_win32_libid'
10454 ;;
10455
10456mingw* | pw32*)
10457 # Base MSYS/MinGW do not provide the 'file' command needed by
10458 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10459 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010460 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10461 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010462 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10463 lt_cv_file_magic_cmd='func_win32_libid'
10464 else
cristy0c60a692010-11-04 01:09:47 +000010465 # Keep this pattern in sync with the one in func_win32_libid.
10466 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 +000010467 lt_cv_file_magic_cmd='$OBJDUMP -f'
10468 fi
10469 ;;
10470
cristy0c60a692010-11-04 01:09:47 +000010471cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010472 # use the weaker test based on 'objdump'. See mingw*.
10473 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10474 lt_cv_file_magic_cmd='$OBJDUMP -f'
10475 ;;
10476
10477darwin* | rhapsody*)
10478 lt_cv_deplibs_check_method=pass_all
10479 ;;
10480
10481freebsd* | dragonfly*)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10483 case $host_cpu in
10484 i*86 )
10485 # Not sure whether the presence of OpenBSD here was a mistake.
10486 # Let's accept both of them until this is cleared up.
10487 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10488 lt_cv_file_magic_cmd=/usr/bin/file
10489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10490 ;;
10491 esac
10492 else
10493 lt_cv_deplibs_check_method=pass_all
10494 fi
10495 ;;
10496
10497gnu*)
10498 lt_cv_deplibs_check_method=pass_all
10499 ;;
10500
cristy0c60a692010-11-04 01:09:47 +000010501haiku*)
10502 lt_cv_deplibs_check_method=pass_all
10503 ;;
10504
cristy73bd4a52010-10-05 11:24:23 +000010505hpux10.20* | hpux11*)
10506 lt_cv_file_magic_cmd=/usr/bin/file
10507 case $host_cpu in
10508 ia64*)
10509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10510 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10511 ;;
10512 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010513 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 +000010514 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10515 ;;
10516 *)
cristy0c60a692010-11-04 01:09:47 +000010517 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 +000010518 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10519 ;;
10520 esac
10521 ;;
10522
10523interix[3-9]*)
10524 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10526 ;;
10527
10528irix5* | irix6* | nonstopux*)
10529 case $LD in
10530 *-32|*"-32 ") libmagic=32-bit;;
10531 *-n32|*"-n32 ") libmagic=N32;;
10532 *-64|*"-64 ") libmagic=64-bit;;
10533 *) libmagic=never-match;;
10534 esac
10535 lt_cv_deplibs_check_method=pass_all
10536 ;;
10537
10538# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010539linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010540 lt_cv_deplibs_check_method=pass_all
10541 ;;
10542
10543netbsd*)
10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10546 else
10547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10548 fi
10549 ;;
10550
10551newos6*)
10552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10553 lt_cv_file_magic_cmd=/usr/bin/file
10554 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10555 ;;
10556
10557*nto* | *qnx*)
10558 lt_cv_deplibs_check_method=pass_all
10559 ;;
10560
10561openbsd*)
10562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10564 else
10565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10566 fi
10567 ;;
10568
10569osf3* | osf4* | osf5*)
10570 lt_cv_deplibs_check_method=pass_all
10571 ;;
10572
10573rdos*)
10574 lt_cv_deplibs_check_method=pass_all
10575 ;;
10576
10577solaris*)
10578 lt_cv_deplibs_check_method=pass_all
10579 ;;
10580
10581sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582 lt_cv_deplibs_check_method=pass_all
10583 ;;
10584
10585sysv4 | sysv4.3*)
10586 case $host_vendor in
10587 motorola)
10588 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]'
10589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10590 ;;
10591 ncr)
10592 lt_cv_deplibs_check_method=pass_all
10593 ;;
10594 sequent)
10595 lt_cv_file_magic_cmd='/bin/file'
10596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10597 ;;
10598 sni)
10599 lt_cv_file_magic_cmd='/bin/file'
10600 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10601 lt_cv_file_magic_test_file=/lib/libc.so
10602 ;;
10603 siemens)
10604 lt_cv_deplibs_check_method=pass_all
10605 ;;
10606 pc)
10607 lt_cv_deplibs_check_method=pass_all
10608 ;;
10609 esac
10610 ;;
10611
10612tpf*)
10613 lt_cv_deplibs_check_method=pass_all
10614 ;;
10615esac
10616
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10619$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010620
10621file_magic_glob=
10622want_nocaseglob=no
10623if test "$build" = "$host"; then
10624 case $host_os in
10625 mingw* | pw32*)
10626 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10627 want_nocaseglob=yes
10628 else
10629 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10630 fi
10631 ;;
10632 esac
10633fi
10634
cristy73bd4a52010-10-05 11:24:23 +000010635file_magic_cmd=$lt_cv_file_magic_cmd
10636deplibs_check_method=$lt_cv_deplibs_check_method
10637test -z "$deplibs_check_method" && deplibs_check_method=unknown
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
cristyda16f162011-02-19 23:52:17 +000010650
10651
10652
10653
10654
10655
10656
10657
10658
10659
cristy73bd4a52010-10-05 11:24:23 +000010660if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010661 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10662set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010665if ${ac_cv_prog_DLLTOOL+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667else
10668 if test -n "$DLLTOOL"; then
10669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10670else
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680 break 2
10681 fi
10682done
10683 done
10684IFS=$as_save_IFS
10685
10686fi
10687fi
10688DLLTOOL=$ac_cv_prog_DLLTOOL
10689if test -n "$DLLTOOL"; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10691$as_echo "$DLLTOOL" >&6; }
10692else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
10695fi
10696
10697
10698fi
10699if test -z "$ac_cv_prog_DLLTOOL"; then
10700 ac_ct_DLLTOOL=$DLLTOOL
10701 # Extract the first word of "dlltool", so it can be a program name with args.
10702set dummy dlltool; ac_word=$2
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
10705if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10706 $as_echo_n "(cached) " >&6
10707else
10708 if test -n "$ac_ct_DLLTOOL"; then
10709 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10710else
10711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712for as_dir in $PATH
10713do
10714 IFS=$as_save_IFS
10715 test -z "$as_dir" && as_dir=.
10716 for ac_exec_ext in '' $ac_executable_extensions; do
10717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720 break 2
10721 fi
10722done
10723 done
10724IFS=$as_save_IFS
10725
10726fi
10727fi
10728ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10729if test -n "$ac_ct_DLLTOOL"; then
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10731$as_echo "$ac_ct_DLLTOOL" >&6; }
10732else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734$as_echo "no" >&6; }
10735fi
10736
10737 if test "x$ac_ct_DLLTOOL" = x; then
10738 DLLTOOL="false"
10739 else
10740 case $cross_compiling:$ac_tool_warned in
10741yes:)
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744ac_tool_warned=yes ;;
10745esac
10746 DLLTOOL=$ac_ct_DLLTOOL
10747 fi
10748else
10749 DLLTOOL="$ac_cv_prog_DLLTOOL"
10750fi
10751
10752test -z "$DLLTOOL" && DLLTOOL=dlltool
10753
10754
10755
10756
10757
10758
10759
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10761$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10762if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764else
10765 lt_cv_sharedlib_from_linklib_cmd='unknown'
10766
10767case $host_os in
10768cygwin* | mingw* | pw32* | cegcc*)
10769 # two different shell functions defined in ltmain.sh
10770 # decide which to use based on capabilities of $DLLTOOL
10771 case `$DLLTOOL --help 2>&1` in
10772 *--identify-strict*)
10773 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10774 ;;
10775 *)
10776 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10777 ;;
10778 esac
10779 ;;
10780*)
10781 # fallback: assume linklib IS sharedlib
10782 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10783 ;;
10784esac
10785
10786fi
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10788$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10789sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10790test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10791
10792
10793
10794
10795
10796
10797
10798if test -n "$ac_tool_prefix"; then
10799 for ac_prog in ar
10800 do
10801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10802set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804$as_echo_n "checking for $ac_word... " >&6; }
10805if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010806 $as_echo_n "(cached) " >&6
10807else
10808 if test -n "$AR"; then
10809 ac_cv_prog_AR="$AR" # Let the user override the test.
10810else
10811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814 IFS=$as_save_IFS
10815 test -z "$as_dir" && as_dir=.
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 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 +000010818 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820 break 2
10821 fi
10822done
10823 done
10824IFS=$as_save_IFS
10825
10826fi
10827fi
10828AR=$ac_cv_prog_AR
10829if test -n "$AR"; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10831$as_echo "$AR" >&6; }
10832else
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834$as_echo "no" >&6; }
10835fi
10836
10837
cristyda16f162011-02-19 23:52:17 +000010838 test -n "$AR" && break
10839 done
cristy73bd4a52010-10-05 11:24:23 +000010840fi
cristyda16f162011-02-19 23:52:17 +000010841if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010842 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010843 for ac_prog in ar
10844do
10845 # Extract the first word of "$ac_prog", so it can be a program name with args.
10846set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010849if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010850 $as_echo_n "(cached) " >&6
10851else
10852 if test -n "$ac_ct_AR"; then
10853 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10854else
10855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH
10857do
10858 IFS=$as_save_IFS
10859 test -z "$as_dir" && as_dir=.
10860 for ac_exec_ext in '' $ac_executable_extensions; do
10861 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 +000010862 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864 break 2
10865 fi
10866done
10867 done
10868IFS=$as_save_IFS
10869
10870fi
10871fi
10872ac_ct_AR=$ac_cv_prog_ac_ct_AR
10873if test -n "$ac_ct_AR"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10875$as_echo "$ac_ct_AR" >&6; }
10876else
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878$as_echo "no" >&6; }
10879fi
10880
cristyda16f162011-02-19 23:52:17 +000010881
10882 test -n "$ac_ct_AR" && break
10883done
10884
cristy73bd4a52010-10-05 11:24:23 +000010885 if test "x$ac_ct_AR" = x; then
10886 AR="false"
10887 else
10888 case $cross_compiling:$ac_tool_warned in
10889yes:)
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10892ac_tool_warned=yes ;;
10893esac
10894 AR=$ac_ct_AR
10895 fi
cristy73bd4a52010-10-05 11:24:23 +000010896fi
10897
cristyda16f162011-02-19 23:52:17 +000010898: ${AR=ar}
10899: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
cristyda16f162011-02-19 23:52:17 +000010911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10912$as_echo_n "checking for archiver @FILE support... " >&6; }
10913if ${lt_cv_ar_at_file+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915else
10916 lt_cv_ar_at_file=no
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h. */
10919
10920int
10921main ()
10922{
10923
10924 ;
10925 return 0;
10926}
10927_ACEOF
10928if ac_fn_c_try_compile "$LINENO"; then :
10929 echo conftest.$ac_objext > conftest.lst
10930 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10932 (eval $lt_ar_try) 2>&5
10933 ac_status=$?
10934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10935 test $ac_status = 0; }
10936 if test "$ac_status" -eq 0; then
10937 # Ensure the archiver fails upon bogus file names.
10938 rm -f conftest.$ac_objext libconftest.a
10939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10940 (eval $lt_ar_try) 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; }
10944 if test "$ac_status" -ne 0; then
10945 lt_cv_ar_at_file=@
10946 fi
10947 fi
10948 rm -f conftest.* libconftest.a
10949
10950fi
10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952
10953fi
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10955$as_echo "$lt_cv_ar_at_file" >&6; }
10956
10957if test "x$lt_cv_ar_at_file" = xno; then
10958 archiver_list_spec=
10959else
10960 archiver_list_spec=$lt_cv_ar_at_file
10961fi
10962
10963
10964
10965
10966
10967
10968
cristy73bd4a52010-10-05 11:24:23 +000010969if test -n "$ac_tool_prefix"; then
10970 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10971set dummy ${ac_tool_prefix}strip; ac_word=$2
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010974if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010975 $as_echo_n "(cached) " >&6
10976else
10977 if test -n "$STRIP"; then
10978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10979else
10980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989 break 2
10990 fi
10991done
10992 done
10993IFS=$as_save_IFS
10994
10995fi
10996fi
10997STRIP=$ac_cv_prog_STRIP
10998if test -n "$STRIP"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11000$as_echo "$STRIP" >&6; }
11001else
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003$as_echo "no" >&6; }
11004fi
11005
11006
11007fi
11008if test -z "$ac_cv_prog_STRIP"; then
11009 ac_ct_STRIP=$STRIP
11010 # Extract the first word of "strip", so it can be a program name with args.
11011set dummy strip; ac_word=$2
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011014if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011015 $as_echo_n "(cached) " >&6
11016else
11017 if test -n "$ac_ct_STRIP"; then
11018 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11019else
11020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021for as_dir in $PATH
11022do
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027 ac_cv_prog_ac_ct_STRIP="strip"
11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029 break 2
11030 fi
11031done
11032 done
11033IFS=$as_save_IFS
11034
11035fi
11036fi
11037ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11038if test -n "$ac_ct_STRIP"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11040$as_echo "$ac_ct_STRIP" >&6; }
11041else
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
11044fi
11045
11046 if test "x$ac_ct_STRIP" = x; then
11047 STRIP=":"
11048 else
11049 case $cross_compiling:$ac_tool_warned in
11050yes:)
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11053ac_tool_warned=yes ;;
11054esac
11055 STRIP=$ac_ct_STRIP
11056 fi
11057else
11058 STRIP="$ac_cv_prog_STRIP"
11059fi
11060
11061test -z "$STRIP" && STRIP=:
11062
11063
11064
11065
11066
11067
11068if test -n "$ac_tool_prefix"; then
11069 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11070set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011073if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011074 $as_echo_n "(cached) " >&6
11075else
11076 if test -n "$RANLIB"; then
11077 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11078else
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 break 2
11089 fi
11090done
11091 done
11092IFS=$as_save_IFS
11093
11094fi
11095fi
11096RANLIB=$ac_cv_prog_RANLIB
11097if test -n "$RANLIB"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11099$as_echo "$RANLIB" >&6; }
11100else
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
11103fi
11104
11105
11106fi
11107if test -z "$ac_cv_prog_RANLIB"; then
11108 ac_ct_RANLIB=$RANLIB
11109 # Extract the first word of "ranlib", so it can be a program name with args.
11110set dummy ranlib; ac_word=$2
11111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011113if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011114 $as_echo_n "(cached) " >&6
11115else
11116 if test -n "$ac_ct_RANLIB"; then
11117 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11118else
11119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120for as_dir in $PATH
11121do
11122 IFS=$as_save_IFS
11123 test -z "$as_dir" && as_dir=.
11124 for ac_exec_ext in '' $ac_executable_extensions; do
11125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126 ac_cv_prog_ac_ct_RANLIB="ranlib"
11127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 break 2
11129 fi
11130done
11131 done
11132IFS=$as_save_IFS
11133
11134fi
11135fi
11136ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11137if test -n "$ac_ct_RANLIB"; then
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11139$as_echo "$ac_ct_RANLIB" >&6; }
11140else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142$as_echo "no" >&6; }
11143fi
11144
11145 if test "x$ac_ct_RANLIB" = x; then
11146 RANLIB=":"
11147 else
11148 case $cross_compiling:$ac_tool_warned in
11149yes:)
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11152ac_tool_warned=yes ;;
11153esac
11154 RANLIB=$ac_ct_RANLIB
11155 fi
11156else
11157 RANLIB="$ac_cv_prog_RANLIB"
11158fi
11159
11160test -z "$RANLIB" && RANLIB=:
11161
11162
11163
11164
11165
11166
11167# Determine commands to create old-style static archives.
11168old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11169old_postinstall_cmds='chmod 644 $oldlib'
11170old_postuninstall_cmds=
11171
11172if test -n "$RANLIB"; then
11173 case $host_os in
11174 openbsd*)
11175 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11176 ;;
11177 *)
11178 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11179 ;;
11180 esac
11181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11182fi
11183
cristy0c60a692010-11-04 01:09:47 +000011184case $host_os in
11185 darwin*)
11186 lock_old_archive_extraction=yes ;;
11187 *)
11188 lock_old_archive_extraction=no ;;
11189esac
11190
11191
11192
11193
11194
11195
cristy73bd4a52010-10-05 11:24:23 +000011196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229# If no C compiler was specified, use CC.
11230LTCC=${LTCC-"$CC"}
11231
11232# If no C compiler flags were specified, use CFLAGS.
11233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11234
11235# Allow CC to be a program name with arguments.
11236compiler=$CC
11237
11238
11239# Check for command to grab the raw symbol name followed by C symbol from nm.
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11241$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011242if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011243 $as_echo_n "(cached) " >&6
11244else
11245
11246# These are sane defaults that work on at least a few old systems.
11247# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11248
11249# Character class describing NM global symbol codes.
11250symcode='[BCDEGRST]'
11251
11252# Regexp to match symbols that can be accessed directly from C.
11253sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11254
11255# Define system-specific variables.
11256case $host_os in
11257aix*)
11258 symcode='[BCDT]'
11259 ;;
11260cygwin* | mingw* | pw32* | cegcc*)
11261 symcode='[ABCDGISTW]'
11262 ;;
11263hpux*)
11264 if test "$host_cpu" = ia64; then
11265 symcode='[ABCDEGRST]'
11266 fi
11267 ;;
11268irix* | nonstopux*)
11269 symcode='[BCDEGRST]'
11270 ;;
11271osf*)
11272 symcode='[BCDEGQRST]'
11273 ;;
11274solaris*)
11275 symcode='[BDRT]'
11276 ;;
11277sco3.2v5*)
11278 symcode='[DT]'
11279 ;;
11280sysv4.2uw2*)
11281 symcode='[DT]'
11282 ;;
11283sysv5* | sco5v6* | unixware* | OpenUNIX*)
11284 symcode='[ABDT]'
11285 ;;
11286sysv4)
11287 symcode='[DFNSTU]'
11288 ;;
11289esac
11290
11291# If we're using GNU nm, then use its standard symbol codes.
11292case `$NM -V 2>&1` in
11293*GNU* | *'with BFD'*)
11294 symcode='[ABCDGIRSTW]' ;;
11295esac
11296
11297# Transform an extracted symbol line into a proper C declaration.
11298# Some systems (esp. on ia64) link data and code symbols differently,
11299# so use this general approach.
11300lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11301
11302# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011303lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11304lt_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 +000011305
11306# Handle CRLF in mingw tool chain
11307opt_cr=
11308case $build_os in
11309mingw*)
11310 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11311 ;;
11312esac
11313
11314# Try without a prefix underscore, then with it.
11315for ac_symprfx in "" "_"; do
11316
11317 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11318 symxfrm="\\1 $ac_symprfx\\2 \\2"
11319
11320 # Write the raw and C identifiers.
11321 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11322 # Fake it for dumpbin and say T for any non-static function
11323 # and D for any global variable.
11324 # Also find C++ and __fastcall symbols from MSVC++,
11325 # which start with @ or ?.
11326 lt_cv_sys_global_symbol_pipe="$AWK '"\
11327" {last_section=section; section=\$ 3};"\
11328" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11329" \$ 0!~/External *\|/{next};"\
11330" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11331" {if(hide[section]) next};"\
11332" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11333" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11334" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11335" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11336" ' prfx=^$ac_symprfx"
11337 else
11338 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11339 fi
cristyda16f162011-02-19 23:52:17 +000011340 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011341
11342 # Check to see that the pipe works correctly.
11343 pipe_works=no
11344
11345 rm -f conftest*
11346 cat > conftest.$ac_ext <<_LT_EOF
11347#ifdef __cplusplus
11348extern "C" {
11349#endif
11350char nm_test_var;
11351void nm_test_func(void);
11352void nm_test_func(void){}
11353#ifdef __cplusplus
11354}
11355#endif
11356int main(){nm_test_var='a';nm_test_func();return(0);}
11357_LT_EOF
11358
11359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11360 (eval $ac_compile) 2>&5
11361 ac_status=$?
11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363 test $ac_status = 0; }; then
11364 # Now try to grab the symbols.
11365 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11367 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011368 ac_status=$?
11369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370 test $ac_status = 0; } && test -s "$nlist"; then
11371 # Try sorting and uniquifying the output.
11372 if sort "$nlist" | uniq > "$nlist"T; then
11373 mv -f "$nlist"T "$nlist"
11374 else
11375 rm -f "$nlist"T
11376 fi
11377
11378 # Make sure that we snagged all the symbols we need.
11379 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11380 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11381 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011382/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11383#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11384/* DATA imports from DLLs on WIN32 con't be const, because runtime
11385 relocations are performed -- see ld's documentation on pseudo-relocs. */
11386# define LT_DLSYM_CONST
11387#elif defined(__osf__)
11388/* This system does not cope well with relocations in const data. */
11389# define LT_DLSYM_CONST
11390#else
11391# define LT_DLSYM_CONST const
11392#endif
11393
cristy73bd4a52010-10-05 11:24:23 +000011394#ifdef __cplusplus
11395extern "C" {
11396#endif
11397
11398_LT_EOF
11399 # Now generate the symbol file.
11400 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11401
11402 cat <<_LT_EOF >> conftest.$ac_ext
11403
11404/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011405LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011406 const char *name;
11407 void *address;
11408}
11409lt__PROGRAM__LTX_preloaded_symbols[] =
11410{
11411 { "@PROGRAM@", (void *) 0 },
11412_LT_EOF
11413 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11414 cat <<\_LT_EOF >> conftest.$ac_ext
11415 {0, (void *) 0}
11416};
11417
11418/* This works around a problem in FreeBSD linker */
11419#ifdef FREEBSD_WORKAROUND
11420static const void *lt_preloaded_setup() {
11421 return lt__PROGRAM__LTX_preloaded_symbols;
11422}
11423#endif
11424
11425#ifdef __cplusplus
11426}
11427#endif
11428_LT_EOF
11429 # Now try linking the two files.
11430 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011431 lt_globsym_save_LIBS=$LIBS
11432 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011433 LIBS="conftstm.$ac_objext"
11434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11436 (eval $ac_link) 2>&5
11437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11440 pipe_works=yes
11441 fi
cristyda16f162011-02-19 23:52:17 +000011442 LIBS=$lt_globsym_save_LIBS
11443 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011444 else
11445 echo "cannot find nm_test_func in $nlist" >&5
11446 fi
11447 else
11448 echo "cannot find nm_test_var in $nlist" >&5
11449 fi
11450 else
11451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11452 fi
11453 else
11454 echo "$progname: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11456 fi
11457 rm -rf conftest* conftst*
11458
11459 # Do not use the global_symbol_pipe unless it works.
11460 if test "$pipe_works" = yes; then
11461 break
11462 else
11463 lt_cv_sys_global_symbol_pipe=
11464 fi
11465done
11466
11467fi
11468
11469if test -z "$lt_cv_sys_global_symbol_pipe"; then
11470 lt_cv_sys_global_symbol_to_cdecl=
11471fi
11472if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11474$as_echo "failed" >&6; }
11475else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11477$as_echo "ok" >&6; }
11478fi
11479
cristyda16f162011-02-19 23:52:17 +000011480# Response file support.
11481if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11482 nm_file_list_spec='@'
11483elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11484 nm_file_list_spec='@'
11485fi
cristy73bd4a52010-10-05 11:24:23 +000011486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
cristyda16f162011-02-19 23:52:17 +000011507
11508
11509
11510
11511
11512
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11514$as_echo_n "checking for sysroot... " >&6; }
11515
11516# Check whether --with-sysroot was given.
11517if test "${with_sysroot+set}" = set; then :
11518 withval=$with_sysroot;
11519else
11520 with_sysroot=no
11521fi
11522
11523
11524lt_sysroot=
11525case ${with_sysroot} in #(
11526 yes)
11527 if test "$GCC" = yes; then
11528 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11529 fi
11530 ;; #(
11531 /*)
11532 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11533 ;; #(
11534 no|'')
11535 ;; #(
11536 *)
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11538$as_echo "${with_sysroot}" >&6; }
11539 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11540 ;;
11541esac
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11544$as_echo "${lt_sysroot:-no}" >&6; }
11545
11546
11547
11548
11549
cristy73bd4a52010-10-05 11:24:23 +000011550# Check whether --enable-libtool-lock was given.
11551if test "${enable_libtool_lock+set}" = set; then :
11552 enableval=$enable_libtool_lock;
11553fi
11554
11555test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11556
11557# Some flags need to be propagated to the compiler or linker for good
11558# libtool support.
11559case $host in
11560ia64-*-hpux*)
11561 # Find out which ABI we are using.
11562 echo 'int i;' > conftest.$ac_ext
11563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11564 (eval $ac_compile) 2>&5
11565 ac_status=$?
11566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567 test $ac_status = 0; }; then
11568 case `/usr/bin/file conftest.$ac_objext` in
11569 *ELF-32*)
11570 HPUX_IA64_MODE="32"
11571 ;;
11572 *ELF-64*)
11573 HPUX_IA64_MODE="64"
11574 ;;
11575 esac
11576 fi
11577 rm -rf conftest*
11578 ;;
11579*-*-irix6*)
11580 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011581 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11583 (eval $ac_compile) 2>&5
11584 ac_status=$?
11585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586 test $ac_status = 0; }; then
11587 if test "$lt_cv_prog_gnu_ld" = yes; then
11588 case `/usr/bin/file conftest.$ac_objext` in
11589 *32-bit*)
11590 LD="${LD-ld} -melf32bsmip"
11591 ;;
11592 *N32*)
11593 LD="${LD-ld} -melf32bmipn32"
11594 ;;
11595 *64-bit*)
11596 LD="${LD-ld} -melf64bmip"
11597 ;;
11598 esac
11599 else
11600 case `/usr/bin/file conftest.$ac_objext` in
11601 *32-bit*)
11602 LD="${LD-ld} -32"
11603 ;;
11604 *N32*)
11605 LD="${LD-ld} -n32"
11606 ;;
11607 *64-bit*)
11608 LD="${LD-ld} -64"
11609 ;;
11610 esac
11611 fi
11612 fi
11613 rm -rf conftest*
11614 ;;
11615
11616x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11617s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11618 # Find out which ABI we are using.
11619 echo 'int i;' > conftest.$ac_ext
11620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621 (eval $ac_compile) 2>&5
11622 ac_status=$?
11623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624 test $ac_status = 0; }; then
11625 case `/usr/bin/file conftest.o` in
11626 *32-bit*)
11627 case $host in
11628 x86_64-*kfreebsd*-gnu)
11629 LD="${LD-ld} -m elf_i386_fbsd"
11630 ;;
11631 x86_64-*linux*)
11632 LD="${LD-ld} -m elf_i386"
11633 ;;
11634 ppc64-*linux*|powerpc64-*linux*)
11635 LD="${LD-ld} -m elf32ppclinux"
11636 ;;
11637 s390x-*linux*)
11638 LD="${LD-ld} -m elf_s390"
11639 ;;
11640 sparc64-*linux*)
11641 LD="${LD-ld} -m elf32_sparc"
11642 ;;
11643 esac
11644 ;;
11645 *64-bit*)
11646 case $host in
11647 x86_64-*kfreebsd*-gnu)
11648 LD="${LD-ld} -m elf_x86_64_fbsd"
11649 ;;
11650 x86_64-*linux*)
11651 LD="${LD-ld} -m elf_x86_64"
11652 ;;
11653 ppc*-*linux*|powerpc*-*linux*)
11654 LD="${LD-ld} -m elf64ppc"
11655 ;;
11656 s390*-*linux*|s390*-*tpf*)
11657 LD="${LD-ld} -m elf64_s390"
11658 ;;
11659 sparc*-*linux*)
11660 LD="${LD-ld} -m elf64_sparc"
11661 ;;
11662 esac
11663 ;;
11664 esac
11665 fi
11666 rm -rf conftest*
11667 ;;
11668
11669*-*-sco3.2v5*)
11670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11671 SAVE_CFLAGS="$CFLAGS"
11672 CFLAGS="$CFLAGS -belf"
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11674$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011675if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011676 $as_echo_n "(cached) " >&6
11677else
11678 ac_ext=c
11679ac_cpp='$CPP $CPPFLAGS'
11680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685/* end confdefs.h. */
11686
11687int
11688main ()
11689{
11690
11691 ;
11692 return 0;
11693}
11694_ACEOF
11695if ac_fn_c_try_link "$LINENO"; then :
11696 lt_cv_cc_needs_belf=yes
11697else
11698 lt_cv_cc_needs_belf=no
11699fi
11700rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702 ac_ext=c
11703ac_cpp='$CPP $CPPFLAGS'
11704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708fi
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11710$as_echo "$lt_cv_cc_needs_belf" >&6; }
11711 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11712 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11713 CFLAGS="$SAVE_CFLAGS"
11714 fi
11715 ;;
11716sparc*-*solaris*)
11717 # Find out which ABI we are using.
11718 echo 'int i;' > conftest.$ac_ext
11719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11720 (eval $ac_compile) 2>&5
11721 ac_status=$?
11722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723 test $ac_status = 0; }; then
11724 case `/usr/bin/file conftest.o` in
11725 *64-bit*)
11726 case $lt_cv_prog_gnu_ld in
11727 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11728 *)
11729 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11730 LD="${LD-ld} -64"
11731 fi
11732 ;;
11733 esac
11734 ;;
11735 esac
11736 fi
11737 rm -rf conftest*
11738 ;;
11739esac
11740
11741need_locks="$enable_libtool_lock"
11742
cristyda16f162011-02-19 23:52:17 +000011743if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11745set dummy ${ac_tool_prefix}mt; ac_word=$2
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 if test -n "$MANIFEST_TOOL"; then
11752 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11753else
11754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755for as_dir in $PATH
11756do
11757 IFS=$as_save_IFS
11758 test -z "$as_dir" && as_dir=.
11759 for ac_exec_ext in '' $ac_executable_extensions; do
11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 break 2
11764 fi
11765done
11766 done
11767IFS=$as_save_IFS
11768
11769fi
11770fi
11771MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11772if test -n "$MANIFEST_TOOL"; then
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11774$as_echo "$MANIFEST_TOOL" >&6; }
11775else
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777$as_echo "no" >&6; }
11778fi
11779
11780
11781fi
11782if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11783 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11784 # Extract the first word of "mt", so it can be a program name with args.
11785set dummy mt; ac_word=$2
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787$as_echo_n "checking for $ac_word... " >&6; }
11788if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790else
11791 if test -n "$ac_ct_MANIFEST_TOOL"; then
11792 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11793else
11794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795for as_dir in $PATH
11796do
11797 IFS=$as_save_IFS
11798 test -z "$as_dir" && as_dir=.
11799 for ac_exec_ext in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 break 2
11804 fi
11805done
11806 done
11807IFS=$as_save_IFS
11808
11809fi
11810fi
11811ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11812if test -n "$ac_ct_MANIFEST_TOOL"; then
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11814$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11815else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817$as_echo "no" >&6; }
11818fi
11819
11820 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11821 MANIFEST_TOOL=":"
11822 else
11823 case $cross_compiling:$ac_tool_warned in
11824yes:)
11825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11827ac_tool_warned=yes ;;
11828esac
11829 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11830 fi
11831else
11832 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11833fi
11834
11835test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11837$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11838if ${lt_cv_path_mainfest_tool+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840else
11841 lt_cv_path_mainfest_tool=no
11842 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11843 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11844 cat conftest.err >&5
11845 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11846 lt_cv_path_mainfest_tool=yes
11847 fi
11848 rm -f conftest*
11849fi
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11851$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11852if test "x$lt_cv_path_mainfest_tool" != xyes; then
11853 MANIFEST_TOOL=:
11854fi
11855
11856
11857
11858
11859
cristy73bd4a52010-10-05 11:24:23 +000011860
11861 case $host_os in
11862 rhapsody* | darwin*)
11863 if test -n "$ac_tool_prefix"; then
11864 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11865set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011868if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011869 $as_echo_n "(cached) " >&6
11870else
11871 if test -n "$DSYMUTIL"; then
11872 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11873else
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877 IFS=$as_save_IFS
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883 break 2
11884 fi
11885done
11886 done
11887IFS=$as_save_IFS
11888
11889fi
11890fi
11891DSYMUTIL=$ac_cv_prog_DSYMUTIL
11892if test -n "$DSYMUTIL"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11894$as_echo "$DSYMUTIL" >&6; }
11895else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897$as_echo "no" >&6; }
11898fi
11899
11900
11901fi
11902if test -z "$ac_cv_prog_DSYMUTIL"; then
11903 ac_ct_DSYMUTIL=$DSYMUTIL
11904 # Extract the first word of "dsymutil", so it can be a program name with args.
11905set dummy dsymutil; ac_word=$2
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011908if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011909 $as_echo_n "(cached) " >&6
11910else
11911 if test -n "$ac_ct_DSYMUTIL"; then
11912 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926 done
11927IFS=$as_save_IFS
11928
11929fi
11930fi
11931ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11932if test -n "$ac_ct_DSYMUTIL"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11934$as_echo "$ac_ct_DSYMUTIL" >&6; }
11935else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938fi
11939
11940 if test "x$ac_ct_DSYMUTIL" = x; then
11941 DSYMUTIL=":"
11942 else
11943 case $cross_compiling:$ac_tool_warned in
11944yes:)
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11947ac_tool_warned=yes ;;
11948esac
11949 DSYMUTIL=$ac_ct_DSYMUTIL
11950 fi
11951else
11952 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11953fi
11954
11955 if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11957set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011960if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011961 $as_echo_n "(cached) " >&6
11962else
11963 if test -n "$NMEDIT"; then
11964 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11965else
11966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967for as_dir in $PATH
11968do
11969 IFS=$as_save_IFS
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 break 2
11976 fi
11977done
11978 done
11979IFS=$as_save_IFS
11980
11981fi
11982fi
11983NMEDIT=$ac_cv_prog_NMEDIT
11984if test -n "$NMEDIT"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11986$as_echo "$NMEDIT" >&6; }
11987else
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989$as_echo "no" >&6; }
11990fi
11991
11992
11993fi
11994if test -z "$ac_cv_prog_NMEDIT"; then
11995 ac_ct_NMEDIT=$NMEDIT
11996 # Extract the first word of "nmedit", so it can be a program name with args.
11997set dummy nmedit; ac_word=$2
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012000if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012001 $as_echo_n "(cached) " >&6
12002else
12003 if test -n "$ac_ct_NMEDIT"; then
12004 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12005else
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017done
12018 done
12019IFS=$as_save_IFS
12020
12021fi
12022fi
12023ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12024if test -n "$ac_ct_NMEDIT"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12026$as_echo "$ac_ct_NMEDIT" >&6; }
12027else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
12030fi
12031
12032 if test "x$ac_ct_NMEDIT" = x; then
12033 NMEDIT=":"
12034 else
12035 case $cross_compiling:$ac_tool_warned in
12036yes:)
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039ac_tool_warned=yes ;;
12040esac
12041 NMEDIT=$ac_ct_NMEDIT
12042 fi
12043else
12044 NMEDIT="$ac_cv_prog_NMEDIT"
12045fi
12046
12047 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12049set dummy ${ac_tool_prefix}lipo; ac_word=$2
12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012052if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012053 $as_echo_n "(cached) " >&6
12054else
12055 if test -n "$LIPO"; then
12056 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12057else
12058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059for as_dir in $PATH
12060do
12061 IFS=$as_save_IFS
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 break 2
12068 fi
12069done
12070 done
12071IFS=$as_save_IFS
12072
12073fi
12074fi
12075LIPO=$ac_cv_prog_LIPO
12076if test -n "$LIPO"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12078$as_echo "$LIPO" >&6; }
12079else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082fi
12083
12084
12085fi
12086if test -z "$ac_cv_prog_LIPO"; then
12087 ac_ct_LIPO=$LIPO
12088 # Extract the first word of "lipo", so it can be a program name with args.
12089set dummy lipo; ac_word=$2
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012092if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012093 $as_echo_n "(cached) " >&6
12094else
12095 if test -n "$ac_ct_LIPO"; then
12096 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12097else
12098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099for as_dir in $PATH
12100do
12101 IFS=$as_save_IFS
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105 ac_cv_prog_ac_ct_LIPO="lipo"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107 break 2
12108 fi
12109done
12110 done
12111IFS=$as_save_IFS
12112
12113fi
12114fi
12115ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12116if test -n "$ac_ct_LIPO"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12118$as_echo "$ac_ct_LIPO" >&6; }
12119else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124 if test "x$ac_ct_LIPO" = x; then
12125 LIPO=":"
12126 else
12127 case $cross_compiling:$ac_tool_warned in
12128yes:)
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131ac_tool_warned=yes ;;
12132esac
12133 LIPO=$ac_ct_LIPO
12134 fi
12135else
12136 LIPO="$ac_cv_prog_LIPO"
12137fi
12138
12139 if test -n "$ac_tool_prefix"; then
12140 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12141set dummy ${ac_tool_prefix}otool; ac_word=$2
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012144if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012145 $as_echo_n "(cached) " >&6
12146else
12147 if test -n "$OTOOL"; then
12148 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12149else
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159 break 2
12160 fi
12161done
12162 done
12163IFS=$as_save_IFS
12164
12165fi
12166fi
12167OTOOL=$ac_cv_prog_OTOOL
12168if test -n "$OTOOL"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12170$as_echo "$OTOOL" >&6; }
12171else
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
12174fi
12175
12176
12177fi
12178if test -z "$ac_cv_prog_OTOOL"; then
12179 ac_ct_OTOOL=$OTOOL
12180 # Extract the first word of "otool", so it can be a program name with args.
12181set dummy otool; ac_word=$2
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012184if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012185 $as_echo_n "(cached) " >&6
12186else
12187 if test -n "$ac_ct_OTOOL"; then
12188 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12189else
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197 ac_cv_prog_ac_ct_OTOOL="otool"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201done
12202 done
12203IFS=$as_save_IFS
12204
12205fi
12206fi
12207ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12208if test -n "$ac_ct_OTOOL"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12210$as_echo "$ac_ct_OTOOL" >&6; }
12211else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
12214fi
12215
12216 if test "x$ac_ct_OTOOL" = x; then
12217 OTOOL=":"
12218 else
12219 case $cross_compiling:$ac_tool_warned in
12220yes:)
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12223ac_tool_warned=yes ;;
12224esac
12225 OTOOL=$ac_ct_OTOOL
12226 fi
12227else
12228 OTOOL="$ac_cv_prog_OTOOL"
12229fi
12230
12231 if test -n "$ac_tool_prefix"; then
12232 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12233set dummy ${ac_tool_prefix}otool64; ac_word=$2
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012236if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012237 $as_echo_n "(cached) " >&6
12238else
12239 if test -n "$OTOOL64"; then
12240 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12241else
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251 break 2
12252 fi
12253done
12254 done
12255IFS=$as_save_IFS
12256
12257fi
12258fi
12259OTOOL64=$ac_cv_prog_OTOOL64
12260if test -n "$OTOOL64"; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12262$as_echo "$OTOOL64" >&6; }
12263else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
12266fi
12267
12268
12269fi
12270if test -z "$ac_cv_prog_OTOOL64"; then
12271 ac_ct_OTOOL64=$OTOOL64
12272 # Extract the first word of "otool64", so it can be a program name with args.
12273set dummy otool64; ac_word=$2
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012276if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012277 $as_echo_n "(cached) " >&6
12278else
12279 if test -n "$ac_ct_OTOOL64"; then
12280 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289 ac_cv_prog_ac_ct_OTOOL64="otool64"
12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291 break 2
12292 fi
12293done
12294 done
12295IFS=$as_save_IFS
12296
12297fi
12298fi
12299ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12300if test -n "$ac_ct_OTOOL64"; then
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12302$as_echo "$ac_ct_OTOOL64" >&6; }
12303else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306fi
12307
12308 if test "x$ac_ct_OTOOL64" = x; then
12309 OTOOL64=":"
12310 else
12311 case $cross_compiling:$ac_tool_warned in
12312yes:)
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12315ac_tool_warned=yes ;;
12316esac
12317 OTOOL64=$ac_ct_OTOOL64
12318 fi
12319else
12320 OTOOL64="$ac_cv_prog_OTOOL64"
12321fi
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12350$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012351if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012352 $as_echo_n "(cached) " >&6
12353else
12354 lt_cv_apple_cc_single_mod=no
12355 if test -z "${LT_MULTI_MODULE}"; then
12356 # By default we will add the -single_module flag. You can override
12357 # by either setting the environment variable LT_MULTI_MODULE
12358 # non-empty at configure time, or by adding -multi_module to the
12359 # link flags.
12360 rm -rf libconftest.dylib*
12361 echo "int foo(void){return 1;}" > conftest.c
12362 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12363-dynamiclib -Wl,-single_module conftest.c" >&5
12364 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12365 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12366 _lt_result=$?
12367 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12368 lt_cv_apple_cc_single_mod=yes
12369 else
12370 cat conftest.err >&5
12371 fi
12372 rm -rf libconftest.dylib*
12373 rm -f conftest.*
12374 fi
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12377$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12379$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012380if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012381 $as_echo_n "(cached) " >&6
12382else
12383 lt_cv_ld_exported_symbols_list=no
12384 save_LDFLAGS=$LDFLAGS
12385 echo "_main" > conftest.sym
12386 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h. */
12389
12390int
12391main ()
12392{
12393
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398if ac_fn_c_try_link "$LINENO"; then :
12399 lt_cv_ld_exported_symbols_list=yes
12400else
12401 lt_cv_ld_exported_symbols_list=no
12402fi
12403rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LDFLAGS="$save_LDFLAGS"
12406
12407fi
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12409$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12411$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012412if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012413 $as_echo_n "(cached) " >&6
12414else
12415 lt_cv_ld_force_load=no
12416 cat > conftest.c << _LT_EOF
12417int forced_loaded() { return 2;}
12418_LT_EOF
12419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12421 echo "$AR cru libconftest.a conftest.o" >&5
12422 $AR cru libconftest.a conftest.o 2>&5
12423 echo "$RANLIB libconftest.a" >&5
12424 $RANLIB libconftest.a 2>&5
12425 cat > conftest.c << _LT_EOF
12426int main() { return 0;}
12427_LT_EOF
12428 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12429 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12430 _lt_result=$?
12431 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12432 lt_cv_ld_force_load=yes
12433 else
12434 cat conftest.err >&5
12435 fi
12436 rm -f conftest.err libconftest.a conftest conftest.c
12437 rm -rf conftest.dSYM
12438
12439fi
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12441$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012442 case $host_os in
12443 rhapsody* | darwin1.[012])
12444 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12445 darwin1.*)
12446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12447 darwin*) # darwin 5.x on
12448 # if running on 10.5 or later, the deployment target defaults
12449 # to the OS version, if on x86, and 10.4, the deployment
12450 # target defaults to 10.4. Don't you love it?
12451 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12452 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12453 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12454 10.[012]*)
12455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12456 10.*)
12457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12458 esac
12459 ;;
12460 esac
12461 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12462 _lt_dar_single_mod='$single_module'
12463 fi
12464 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12465 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12466 else
12467 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12468 fi
cristy0c60a692010-11-04 01:09:47 +000012469 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012470 _lt_dsymutil='~$DSYMUTIL $lib || :'
12471 else
12472 _lt_dsymutil=
12473 fi
12474 ;;
12475 esac
12476
12477for ac_header in dlfcn.h
12478do :
12479 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12480"
cristyda16f162011-02-19 23:52:17 +000012481if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012482 cat >>confdefs.h <<_ACEOF
12483#define HAVE_DLFCN_H 1
12484_ACEOF
12485
12486fi
12487
12488done
12489
12490
12491
cristy73bd4a52010-10-05 11:24:23 +000012492
cristyda16f162011-02-19 23:52:17 +000012493func_stripname_cnf ()
12494{
12495 case ${2} in
12496 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12497 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12498 esac
12499} # func_stripname_cnf
12500
12501
12502
cristy73bd4a52010-10-05 11:24:23 +000012503
12504
12505# Set options
12506enable_win32_dll=yes
12507
12508case $host in
cristy0c60a692010-11-04 01:09:47 +000012509*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012510 if test -n "$ac_tool_prefix"; then
12511 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12512set dummy ${ac_tool_prefix}as; ac_word=$2
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012515if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012516 $as_echo_n "(cached) " >&6
12517else
12518 if test -n "$AS"; then
12519 ac_cv_prog_AS="$AS" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524 IFS=$as_save_IFS
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528 ac_cv_prog_AS="${ac_tool_prefix}as"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 break 2
12531 fi
12532done
12533 done
12534IFS=$as_save_IFS
12535
12536fi
12537fi
12538AS=$ac_cv_prog_AS
12539if test -n "$AS"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12541$as_echo "$AS" >&6; }
12542else
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
12545fi
12546
12547
12548fi
12549if test -z "$ac_cv_prog_AS"; then
12550 ac_ct_AS=$AS
12551 # Extract the first word of "as", so it can be a program name with args.
12552set dummy as; ac_word=$2
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012555if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012556 $as_echo_n "(cached) " >&6
12557else
12558 if test -n "$ac_ct_AS"; then
12559 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12560else
12561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562for as_dir in $PATH
12563do
12564 IFS=$as_save_IFS
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568 ac_cv_prog_ac_ct_AS="as"
12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570 break 2
12571 fi
12572done
12573 done
12574IFS=$as_save_IFS
12575
12576fi
12577fi
12578ac_ct_AS=$ac_cv_prog_ac_ct_AS
12579if test -n "$ac_ct_AS"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12581$as_echo "$ac_ct_AS" >&6; }
12582else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584$as_echo "no" >&6; }
12585fi
12586
12587 if test "x$ac_ct_AS" = x; then
12588 AS="false"
12589 else
12590 case $cross_compiling:$ac_tool_warned in
12591yes:)
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12594ac_tool_warned=yes ;;
12595esac
12596 AS=$ac_ct_AS
12597 fi
12598else
12599 AS="$ac_cv_prog_AS"
12600fi
12601
12602 if test -n "$ac_tool_prefix"; then
12603 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12604set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012607if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012608 $as_echo_n "(cached) " >&6
12609else
12610 if test -n "$DLLTOOL"; then
12611 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624done
12625 done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630DLLTOOL=$ac_cv_prog_DLLTOOL
12631if test -n "$DLLTOOL"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12633$as_echo "$DLLTOOL" >&6; }
12634else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639
12640fi
12641if test -z "$ac_cv_prog_DLLTOOL"; then
12642 ac_ct_DLLTOOL=$DLLTOOL
12643 # Extract the first word of "dlltool", so it can be a program name with args.
12644set dummy dlltool; ac_word=$2
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012647if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012648 $as_echo_n "(cached) " >&6
12649else
12650 if test -n "$ac_ct_DLLTOOL"; then
12651 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664done
12665 done
12666IFS=$as_save_IFS
12667
12668fi
12669fi
12670ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12671if test -n "$ac_ct_DLLTOOL"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12673$as_echo "$ac_ct_DLLTOOL" >&6; }
12674else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679 if test "x$ac_ct_DLLTOOL" = x; then
12680 DLLTOOL="false"
12681 else
12682 case $cross_compiling:$ac_tool_warned in
12683yes:)
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686ac_tool_warned=yes ;;
12687esac
12688 DLLTOOL=$ac_ct_DLLTOOL
12689 fi
12690else
12691 DLLTOOL="$ac_cv_prog_DLLTOOL"
12692fi
12693
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12696set dummy ${ac_tool_prefix}objdump; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012699if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$OBJDUMP"; then
12703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722OBJDUMP=$ac_cv_prog_OBJDUMP
12723if test -n "$OBJDUMP"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12725$as_echo "$OBJDUMP" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732fi
12733if test -z "$ac_cv_prog_OBJDUMP"; then
12734 ac_ct_OBJDUMP=$OBJDUMP
12735 # Extract the first word of "objdump", so it can be a program name with args.
12736set dummy objdump; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012739if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012740 $as_echo_n "(cached) " >&6
12741else
12742 if test -n "$ac_ct_OBJDUMP"; then
12743 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12744else
12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746for as_dir in $PATH
12747do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756done
12757 done
12758IFS=$as_save_IFS
12759
12760fi
12761fi
12762ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12763if test -n "$ac_ct_OBJDUMP"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12765$as_echo "$ac_ct_OBJDUMP" >&6; }
12766else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
12769fi
12770
12771 if test "x$ac_ct_OBJDUMP" = x; then
12772 OBJDUMP="false"
12773 else
12774 case $cross_compiling:$ac_tool_warned in
12775yes:)
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778ac_tool_warned=yes ;;
12779esac
12780 OBJDUMP=$ac_ct_OBJDUMP
12781 fi
12782else
12783 OBJDUMP="$ac_cv_prog_OBJDUMP"
12784fi
12785
12786 ;;
12787esac
12788
12789test -z "$AS" && AS=as
12790
12791
12792
12793
12794
12795test -z "$DLLTOOL" && DLLTOOL=dlltool
12796
12797
12798
12799
12800
12801test -z "$OBJDUMP" && OBJDUMP=objdump
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811 # Check whether --enable-shared was given.
12812if test "${enable_shared+set}" = set; then :
12813 enableval=$enable_shared; p=${PACKAGE-default}
12814 case $enableval in
12815 yes) enable_shared=yes ;;
12816 no) enable_shared=no ;;
12817 *)
12818 enable_shared=no
12819 # Look at the argument we got. We use all the common list separators.
12820 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12821 for pkg in $enableval; do
12822 IFS="$lt_save_ifs"
12823 if test "X$pkg" = "X$p"; then
12824 enable_shared=yes
12825 fi
12826 done
12827 IFS="$lt_save_ifs"
12828 ;;
12829 esac
12830else
12831 enable_shared=yes
12832fi
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842 # Check whether --enable-static was given.
12843if test "${enable_static+set}" = set; then :
12844 enableval=$enable_static; p=${PACKAGE-default}
12845 case $enableval in
12846 yes) enable_static=yes ;;
12847 no) enable_static=no ;;
12848 *)
12849 enable_static=no
12850 # Look at the argument we got. We use all the common list separators.
12851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12852 for pkg in $enableval; do
12853 IFS="$lt_save_ifs"
12854 if test "X$pkg" = "X$p"; then
12855 enable_static=yes
12856 fi
12857 done
12858 IFS="$lt_save_ifs"
12859 ;;
12860 esac
12861else
12862 enable_static=yes
12863fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874# Check whether --with-pic was given.
12875if test "${with_pic+set}" = set; then :
12876 withval=$with_pic; pic_mode="$withval"
12877else
12878 pic_mode=default
12879fi
12880
12881
12882test -z "$pic_mode" && pic_mode=default
12883
12884
12885
12886
12887
12888
12889
12890 # Check whether --enable-fast-install was given.
12891if test "${enable_fast_install+set}" = set; then :
12892 enableval=$enable_fast_install; p=${PACKAGE-default}
12893 case $enableval in
12894 yes) enable_fast_install=yes ;;
12895 no) enable_fast_install=no ;;
12896 *)
12897 enable_fast_install=no
12898 # Look at the argument we got. We use all the common list separators.
12899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12900 for pkg in $enableval; do
12901 IFS="$lt_save_ifs"
12902 if test "X$pkg" = "X$p"; then
12903 enable_fast_install=yes
12904 fi
12905 done
12906 IFS="$lt_save_ifs"
12907 ;;
12908 esac
12909else
12910 enable_fast_install=yes
12911fi
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923# This can be used to rebuild libtool when needed
12924LIBTOOL_DEPS="$ltmain"
12925
12926# Always use our own libtool.
12927LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
cristy0c60a692010-11-04 01:09:47 +000012953
cristy73bd4a52010-10-05 11:24:23 +000012954test -z "$LN_S" && LN_S="ln -s"
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969if test -n "${ZSH_VERSION+set}" ; then
12970 setopt NO_GLOB_SUBST
12971fi
12972
12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12974$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012975if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012976 $as_echo_n "(cached) " >&6
12977else
12978 rm -f .libs 2>/dev/null
12979mkdir .libs 2>/dev/null
12980if test -d .libs; then
12981 lt_cv_objdir=.libs
12982else
12983 # MS-DOS does not allow filenames that begin with a dot.
12984 lt_cv_objdir=_libs
12985fi
12986rmdir .libs 2>/dev/null
12987fi
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12989$as_echo "$lt_cv_objdir" >&6; }
12990objdir=$lt_cv_objdir
12991
12992
12993
12994
12995
12996cat >>confdefs.h <<_ACEOF
12997#define LT_OBJDIR "$lt_cv_objdir/"
12998_ACEOF
12999
13000
13001
13002
cristy73bd4a52010-10-05 11:24:23 +000013003case $host_os in
13004aix3*)
13005 # AIX sometimes has problems with the GCC collect2 program. For some
13006 # reason, if we set the COLLECT_NAMES environment variable, the problems
13007 # vanish in a puff of smoke.
13008 if test "X${COLLECT_NAMES+set}" != Xset; then
13009 COLLECT_NAMES=
13010 export COLLECT_NAMES
13011 fi
13012 ;;
13013esac
13014
cristy73bd4a52010-10-05 11:24:23 +000013015# Global variables:
13016ofile=libtool
13017can_build_shared=yes
13018
13019# All known linkers require a `.a' archive for static linking (except MSVC,
13020# which needs '.lib').
13021libext=a
13022
13023with_gnu_ld="$lt_cv_prog_gnu_ld"
13024
13025old_CC="$CC"
13026old_CFLAGS="$CFLAGS"
13027
13028# Set sane defaults for various variables
13029test -z "$CC" && CC=cc
13030test -z "$LTCC" && LTCC=$CC
13031test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13032test -z "$LD" && LD=ld
13033test -z "$ac_objext" && ac_objext=o
13034
13035for cc_temp in $compiler""; do
13036 case $cc_temp in
13037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13039 \-*) ;;
13040 *) break;;
13041 esac
13042done
cristy0c60a692010-11-04 01:09:47 +000013043cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013044
13045
13046# Only perform the check for file, if the check method requires it
13047test -z "$MAGIC_CMD" && MAGIC_CMD=file
13048case $deplibs_check_method in
13049file_magic*)
13050 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13052$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013053if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013054 $as_echo_n "(cached) " >&6
13055else
13056 case $MAGIC_CMD in
13057[\\/*] | ?:[\\/]*)
13058 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13059 ;;
13060*)
13061 lt_save_MAGIC_CMD="$MAGIC_CMD"
13062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13064 for ac_dir in $ac_dummy; do
13065 IFS="$lt_save_ifs"
13066 test -z "$ac_dir" && ac_dir=.
13067 if test -f $ac_dir/${ac_tool_prefix}file; then
13068 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13069 if test -n "$file_magic_test_file"; then
13070 case $deplibs_check_method in
13071 "file_magic "*)
13072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13073 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13075 $EGREP "$file_magic_regex" > /dev/null; then
13076 :
13077 else
13078 cat <<_LT_EOF 1>&2
13079
13080*** Warning: the command libtool uses to detect shared libraries,
13081*** $file_magic_cmd, produces output that libtool cannot recognize.
13082*** The result is that libtool may fail to recognize shared libraries
13083*** as such. This will affect the creation of libtool libraries that
13084*** depend on shared libraries, but programs linked with such libtool
13085*** libraries will work regardless of this problem. Nevertheless, you
13086*** may want to report the problem to your system manager and/or to
13087*** bug-libtool@gnu.org
13088
13089_LT_EOF
13090 fi ;;
13091 esac
13092 fi
13093 break
13094 fi
13095 done
13096 IFS="$lt_save_ifs"
13097 MAGIC_CMD="$lt_save_MAGIC_CMD"
13098 ;;
13099esac
13100fi
13101
13102MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13103if test -n "$MAGIC_CMD"; then
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13105$as_echo "$MAGIC_CMD" >&6; }
13106else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
13109fi
13110
13111
13112
13113
13114
13115if test -z "$lt_cv_path_MAGIC_CMD"; then
13116 if test -n "$ac_tool_prefix"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13118$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013119if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013120 $as_echo_n "(cached) " >&6
13121else
13122 case $MAGIC_CMD in
13123[\\/*] | ?:[\\/]*)
13124 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13125 ;;
13126*)
13127 lt_save_MAGIC_CMD="$MAGIC_CMD"
13128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13130 for ac_dir in $ac_dummy; do
13131 IFS="$lt_save_ifs"
13132 test -z "$ac_dir" && ac_dir=.
13133 if test -f $ac_dir/file; then
13134 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13135 if test -n "$file_magic_test_file"; then
13136 case $deplibs_check_method in
13137 "file_magic "*)
13138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13139 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13141 $EGREP "$file_magic_regex" > /dev/null; then
13142 :
13143 else
13144 cat <<_LT_EOF 1>&2
13145
13146*** Warning: the command libtool uses to detect shared libraries,
13147*** $file_magic_cmd, produces output that libtool cannot recognize.
13148*** The result is that libtool may fail to recognize shared libraries
13149*** as such. This will affect the creation of libtool libraries that
13150*** depend on shared libraries, but programs linked with such libtool
13151*** libraries will work regardless of this problem. Nevertheless, you
13152*** may want to report the problem to your system manager and/or to
13153*** bug-libtool@gnu.org
13154
13155_LT_EOF
13156 fi ;;
13157 esac
13158 fi
13159 break
13160 fi
13161 done
13162 IFS="$lt_save_ifs"
13163 MAGIC_CMD="$lt_save_MAGIC_CMD"
13164 ;;
13165esac
13166fi
13167
13168MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13169if test -n "$MAGIC_CMD"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13171$as_echo "$MAGIC_CMD" >&6; }
13172else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174$as_echo "no" >&6; }
13175fi
13176
13177
13178 else
13179 MAGIC_CMD=:
13180 fi
13181fi
13182
13183 fi
13184 ;;
13185esac
13186
13187# Use C for the default configuration in the libtool script
13188
13189lt_save_CC="$CC"
13190ac_ext=c
13191ac_cpp='$CPP $CPPFLAGS'
13192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195
13196
13197# Source file extension for C test sources.
13198ac_ext=c
13199
13200# Object file extension for compiled C test sources.
13201objext=o
13202objext=$objext
13203
13204# Code to be used in simple compile tests
13205lt_simple_compile_test_code="int some_variable = 0;"
13206
13207# Code to be used in simple link tests
13208lt_simple_link_test_code='int main(){return(0);}'
13209
13210
13211
13212
13213
13214
13215
13216# If no C compiler was specified, use CC.
13217LTCC=${LTCC-"$CC"}
13218
13219# If no C compiler flags were specified, use CFLAGS.
13220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13221
13222# Allow CC to be a program name with arguments.
13223compiler=$CC
13224
13225# Save the default compiler, since it gets overwritten when the other
13226# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13227compiler_DEFAULT=$CC
13228
13229# save warnings/boilerplate of simple test code
13230ac_outfile=conftest.$ac_objext
13231echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13233_lt_compiler_boilerplate=`cat conftest.err`
13234$RM conftest*
13235
13236ac_outfile=conftest.$ac_objext
13237echo "$lt_simple_link_test_code" >conftest.$ac_ext
13238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13239_lt_linker_boilerplate=`cat conftest.err`
13240$RM -r conftest*
13241
13242
13243## CAVEAT EMPTOR:
13244## There is no encapsulation within the following macros, do not change
13245## the running order or otherwise move them around unless you know exactly
13246## what you are doing...
13247if test -n "$compiler"; then
13248
13249lt_prog_compiler_no_builtin_flag=
13250
13251if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013252 case $cc_basename in
13253 nvcc*)
13254 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13255 *)
13256 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13257 esac
cristy73bd4a52010-10-05 11:24:23 +000013258
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13260$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013261if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013262 $as_echo_n "(cached) " >&6
13263else
13264 lt_cv_prog_compiler_rtti_exceptions=no
13265 ac_outfile=conftest.$ac_objext
13266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13267 lt_compiler_flag="-fno-rtti -fno-exceptions"
13268 # Insert the option either (1) after the last *FLAGS variable, or
13269 # (2) before a word containing "conftest.", or (3) at the end.
13270 # Note that $ac_compile itself does not contain backslashes and begins
13271 # with a dollar sign (not a hyphen), so the echo should work correctly.
13272 # The option is referenced via a variable to avoid confusing sed.
13273 lt_compile=`echo "$ac_compile" | $SED \
13274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13276 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013278 (eval "$lt_compile" 2>conftest.err)
13279 ac_status=$?
13280 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013282 if (exit $ac_status) && test -s "$ac_outfile"; then
13283 # The compiler can only warn and ignore the option if not recognized
13284 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13288 lt_cv_prog_compiler_rtti_exceptions=yes
13289 fi
13290 fi
13291 $RM conftest*
13292
13293fi
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13295$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13296
13297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13299else
13300 :
13301fi
13302
13303fi
13304
13305
13306
13307
13308
13309
13310 lt_prog_compiler_wl=
13311lt_prog_compiler_pic=
13312lt_prog_compiler_static=
13313
cristy73bd4a52010-10-05 11:24:23 +000013314
13315 if test "$GCC" = yes; then
13316 lt_prog_compiler_wl='-Wl,'
13317 lt_prog_compiler_static='-static'
13318
13319 case $host_os in
13320 aix*)
13321 # All AIX code is PIC.
13322 if test "$host_cpu" = ia64; then
13323 # AIX 5 now supports IA64 processor
13324 lt_prog_compiler_static='-Bstatic'
13325 fi
13326 ;;
13327
13328 amigaos*)
13329 case $host_cpu in
13330 powerpc)
13331 # see comment about AmigaOS4 .so support
13332 lt_prog_compiler_pic='-fPIC'
13333 ;;
13334 m68k)
13335 # FIXME: we need at least 68020 code to build shared libraries, but
13336 # adding the `-m68020' flag to GCC prevents building anything better,
13337 # like `-m68040'.
13338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13339 ;;
13340 esac
13341 ;;
13342
13343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13344 # PIC is the default for these OSes.
13345 ;;
13346
13347 mingw* | cygwin* | pw32* | os2* | cegcc*)
13348 # This hack is so that the source file can tell whether it is being
13349 # built for inclusion in a dll (and should export symbols for example).
13350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13351 # (--disable-auto-import) libraries
13352 lt_prog_compiler_pic='-DDLL_EXPORT'
13353 ;;
13354
13355 darwin* | rhapsody*)
13356 # PIC is the default on this platform
13357 # Common symbols not allowed in MH_DYLIB files
13358 lt_prog_compiler_pic='-fno-common'
13359 ;;
13360
cristy0c60a692010-11-04 01:09:47 +000013361 haiku*)
13362 # PIC is the default for Haiku.
13363 # The "-static" flag exists, but is broken.
13364 lt_prog_compiler_static=
13365 ;;
13366
cristy73bd4a52010-10-05 11:24:23 +000013367 hpux*)
13368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13370 # sets the default TLS model and affects inlining.
13371 case $host_cpu in
13372 hppa*64*)
13373 # +Z the default
13374 ;;
13375 *)
13376 lt_prog_compiler_pic='-fPIC'
13377 ;;
13378 esac
13379 ;;
13380
13381 interix[3-9]*)
13382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13383 # Instead, we relocate shared libraries at runtime.
13384 ;;
13385
13386 msdosdjgpp*)
13387 # Just because we use GCC doesn't mean we suddenly get shared libraries
13388 # on systems that don't support them.
13389 lt_prog_compiler_can_build_shared=no
13390 enable_shared=no
13391 ;;
13392
13393 *nto* | *qnx*)
13394 # QNX uses GNU C++, but need to define -shared option too, otherwise
13395 # it will coredump.
13396 lt_prog_compiler_pic='-fPIC -shared'
13397 ;;
13398
13399 sysv4*MP*)
13400 if test -d /usr/nec; then
13401 lt_prog_compiler_pic=-Kconform_pic
13402 fi
13403 ;;
13404
13405 *)
13406 lt_prog_compiler_pic='-fPIC'
13407 ;;
13408 esac
cristy0c60a692010-11-04 01:09:47 +000013409
13410 case $cc_basename in
13411 nvcc*) # Cuda Compiler Driver 2.2
13412 lt_prog_compiler_wl='-Xlinker '
13413 lt_prog_compiler_pic='-Xcompiler -fPIC'
13414 ;;
13415 esac
cristy73bd4a52010-10-05 11:24:23 +000013416 else
13417 # PORTME Check for flag to pass linker flags through the system compiler.
13418 case $host_os in
13419 aix*)
13420 lt_prog_compiler_wl='-Wl,'
13421 if test "$host_cpu" = ia64; then
13422 # AIX 5 now supports IA64 processor
13423 lt_prog_compiler_static='-Bstatic'
13424 else
13425 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13426 fi
13427 ;;
13428
13429 mingw* | cygwin* | pw32* | os2* | cegcc*)
13430 # This hack is so that the source file can tell whether it is being
13431 # built for inclusion in a dll (and should export symbols for example).
13432 lt_prog_compiler_pic='-DDLL_EXPORT'
13433 ;;
13434
13435 hpux9* | hpux10* | hpux11*)
13436 lt_prog_compiler_wl='-Wl,'
13437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13438 # not for PA HP-UX.
13439 case $host_cpu in
13440 hppa*64*|ia64*)
13441 # +Z the default
13442 ;;
13443 *)
13444 lt_prog_compiler_pic='+Z'
13445 ;;
13446 esac
13447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13448 lt_prog_compiler_static='${wl}-a ${wl}archive'
13449 ;;
13450
13451 irix5* | irix6* | nonstopux*)
13452 lt_prog_compiler_wl='-Wl,'
13453 # PIC (with -KPIC) is the default.
13454 lt_prog_compiler_static='-non_shared'
13455 ;;
13456
cristy0c60a692010-11-04 01:09:47 +000013457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013458 case $cc_basename in
13459 # old Intel for x86_64 which still supported -KPIC.
13460 ecc*)
13461 lt_prog_compiler_wl='-Wl,'
13462 lt_prog_compiler_pic='-KPIC'
13463 lt_prog_compiler_static='-static'
13464 ;;
13465 # icc used to be incompatible with GCC.
13466 # ICC 10 doesn't accept -KPIC any more.
13467 icc* | ifort*)
13468 lt_prog_compiler_wl='-Wl,'
13469 lt_prog_compiler_pic='-fPIC'
13470 lt_prog_compiler_static='-static'
13471 ;;
13472 # Lahey Fortran 8.1.
13473 lf95*)
13474 lt_prog_compiler_wl='-Wl,'
13475 lt_prog_compiler_pic='--shared'
13476 lt_prog_compiler_static='--static'
13477 ;;
cristyda16f162011-02-19 23:52:17 +000013478 nagfor*)
13479 # NAG Fortran compiler
13480 lt_prog_compiler_wl='-Wl,-Wl,,'
13481 lt_prog_compiler_pic='-PIC'
13482 lt_prog_compiler_static='-Bstatic'
13483 ;;
cristy0c60a692010-11-04 01:09:47 +000013484 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013485 # Portland Group compilers (*not* the Pentium gcc compiler,
13486 # which looks to be a dead project)
13487 lt_prog_compiler_wl='-Wl,'
13488 lt_prog_compiler_pic='-fpic'
13489 lt_prog_compiler_static='-Bstatic'
13490 ;;
13491 ccc*)
13492 lt_prog_compiler_wl='-Wl,'
13493 # All Alpha code is PIC.
13494 lt_prog_compiler_static='-non_shared'
13495 ;;
cristy0c60a692010-11-04 01:09:47 +000013496 xl* | bgxl* | bgf* | mpixl*)
13497 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013498 lt_prog_compiler_wl='-Wl,'
13499 lt_prog_compiler_pic='-qpic'
13500 lt_prog_compiler_static='-qstaticlink'
13501 ;;
13502 *)
13503 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013504 *Sun\ F* | *Sun*Fortran*)
13505 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13506 lt_prog_compiler_pic='-KPIC'
13507 lt_prog_compiler_static='-Bstatic'
13508 lt_prog_compiler_wl=''
13509 ;;
cristy73bd4a52010-10-05 11:24:23 +000013510 *Sun\ C*)
13511 # Sun C 5.9
13512 lt_prog_compiler_pic='-KPIC'
13513 lt_prog_compiler_static='-Bstatic'
13514 lt_prog_compiler_wl='-Wl,'
13515 ;;
cristy73bd4a52010-10-05 11:24:23 +000013516 esac
13517 ;;
13518 esac
13519 ;;
13520
13521 newsos6)
13522 lt_prog_compiler_pic='-KPIC'
13523 lt_prog_compiler_static='-Bstatic'
13524 ;;
13525
13526 *nto* | *qnx*)
13527 # QNX uses GNU C++, but need to define -shared option too, otherwise
13528 # it will coredump.
13529 lt_prog_compiler_pic='-fPIC -shared'
13530 ;;
13531
13532 osf3* | osf4* | osf5*)
13533 lt_prog_compiler_wl='-Wl,'
13534 # All OSF/1 code is PIC.
13535 lt_prog_compiler_static='-non_shared'
13536 ;;
13537
13538 rdos*)
13539 lt_prog_compiler_static='-non_shared'
13540 ;;
13541
13542 solaris*)
13543 lt_prog_compiler_pic='-KPIC'
13544 lt_prog_compiler_static='-Bstatic'
13545 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013546 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013547 lt_prog_compiler_wl='-Qoption ld ';;
13548 *)
13549 lt_prog_compiler_wl='-Wl,';;
13550 esac
13551 ;;
13552
13553 sunos4*)
13554 lt_prog_compiler_wl='-Qoption ld '
13555 lt_prog_compiler_pic='-PIC'
13556 lt_prog_compiler_static='-Bstatic'
13557 ;;
13558
13559 sysv4 | sysv4.2uw2* | sysv4.3*)
13560 lt_prog_compiler_wl='-Wl,'
13561 lt_prog_compiler_pic='-KPIC'
13562 lt_prog_compiler_static='-Bstatic'
13563 ;;
13564
13565 sysv4*MP*)
13566 if test -d /usr/nec ;then
13567 lt_prog_compiler_pic='-Kconform_pic'
13568 lt_prog_compiler_static='-Bstatic'
13569 fi
13570 ;;
13571
13572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13573 lt_prog_compiler_wl='-Wl,'
13574 lt_prog_compiler_pic='-KPIC'
13575 lt_prog_compiler_static='-Bstatic'
13576 ;;
13577
13578 unicos*)
13579 lt_prog_compiler_wl='-Wl,'
13580 lt_prog_compiler_can_build_shared=no
13581 ;;
13582
13583 uts4*)
13584 lt_prog_compiler_pic='-pic'
13585 lt_prog_compiler_static='-Bstatic'
13586 ;;
13587
13588 *)
13589 lt_prog_compiler_can_build_shared=no
13590 ;;
13591 esac
13592 fi
13593
13594case $host_os in
13595 # For platforms which do not support PIC, -DPIC is meaningless:
13596 *djgpp*)
13597 lt_prog_compiler_pic=
13598 ;;
13599 *)
13600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13601 ;;
13602esac
cristy73bd4a52010-10-05 11:24:23 +000013603
cristyda16f162011-02-19 23:52:17 +000013604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13605$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13606if ${lt_cv_prog_compiler_pic+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608else
13609 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13612$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13613lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013614
13615#
13616# Check to make sure the PIC flag actually works.
13617#
13618if test -n "$lt_prog_compiler_pic"; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13620$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013621if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013622 $as_echo_n "(cached) " >&6
13623else
13624 lt_cv_prog_compiler_pic_works=no
13625 ac_outfile=conftest.$ac_objext
13626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13627 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13628 # Insert the option either (1) after the last *FLAGS variable, or
13629 # (2) before a word containing "conftest.", or (3) at the end.
13630 # Note that $ac_compile itself does not contain backslashes and begins
13631 # with a dollar sign (not a hyphen), so the echo should work correctly.
13632 # The option is referenced via a variable to avoid confusing sed.
13633 lt_compile=`echo "$ac_compile" | $SED \
13634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13636 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013638 (eval "$lt_compile" 2>conftest.err)
13639 ac_status=$?
13640 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013642 if (exit $ac_status) && test -s "$ac_outfile"; then
13643 # The compiler can only warn and ignore the option if not recognized
13644 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13648 lt_cv_prog_compiler_pic_works=yes
13649 fi
13650 fi
13651 $RM conftest*
13652
13653fi
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13655$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13656
13657if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13658 case $lt_prog_compiler_pic in
13659 "" | " "*) ;;
13660 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13661 esac
13662else
13663 lt_prog_compiler_pic=
13664 lt_prog_compiler_can_build_shared=no
13665fi
13666
13667fi
13668
13669
13670
13671
13672
13673
cristyda16f162011-02-19 23:52:17 +000013674
13675
13676
13677
13678
cristy73bd4a52010-10-05 11:24:23 +000013679#
13680# Check to make sure the static flag actually works.
13681#
13682wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13684$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013685if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013686 $as_echo_n "(cached) " >&6
13687else
13688 lt_cv_prog_compiler_static_works=no
13689 save_LDFLAGS="$LDFLAGS"
13690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13693 # The linker can only warn and ignore the option if not recognized
13694 # So say no if there are warnings
13695 if test -s conftest.err; then
13696 # Append any errors to the config.log.
13697 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13700 if diff conftest.exp conftest.er2 >/dev/null; then
13701 lt_cv_prog_compiler_static_works=yes
13702 fi
13703 else
13704 lt_cv_prog_compiler_static_works=yes
13705 fi
13706 fi
13707 $RM -r conftest*
13708 LDFLAGS="$save_LDFLAGS"
13709
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13712$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13713
13714if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13715 :
13716else
13717 lt_prog_compiler_static=
13718fi
13719
13720
13721
13722
13723
13724
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13727$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013728if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013729 $as_echo_n "(cached) " >&6
13730else
13731 lt_cv_prog_compiler_c_o=no
13732 $RM -r conftest 2>/dev/null
13733 mkdir conftest
13734 cd conftest
13735 mkdir out
13736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13737
13738 lt_compiler_flag="-o out/conftest2.$ac_objext"
13739 # Insert the option either (1) after the last *FLAGS variable, or
13740 # (2) before a word containing "conftest.", or (3) at the end.
13741 # Note that $ac_compile itself does not contain backslashes and begins
13742 # with a dollar sign (not a hyphen), so the echo should work correctly.
13743 lt_compile=`echo "$ac_compile" | $SED \
13744 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013747 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013748 (eval "$lt_compile" 2>out/conftest.err)
13749 ac_status=$?
13750 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13753 then
13754 # The compiler can only warn and ignore the option if not recognized
13755 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013757 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13758 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13759 lt_cv_prog_compiler_c_o=yes
13760 fi
13761 fi
13762 chmod u+w . 2>&5
13763 $RM conftest*
13764 # SGI C++ compiler will create directory out/ii_files/ for
13765 # template instantiation
13766 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13767 $RM out/* && rmdir out
13768 cd ..
13769 $RM -r conftest
13770 $RM conftest*
13771
13772fi
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13774$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13775
13776
13777
13778
13779
13780
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13782$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013783if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013784 $as_echo_n "(cached) " >&6
13785else
13786 lt_cv_prog_compiler_c_o=no
13787 $RM -r conftest 2>/dev/null
13788 mkdir conftest
13789 cd conftest
13790 mkdir out
13791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13792
13793 lt_compiler_flag="-o out/conftest2.$ac_objext"
13794 # Insert the option either (1) after the last *FLAGS variable, or
13795 # (2) before a word containing "conftest.", or (3) at the end.
13796 # Note that $ac_compile itself does not contain backslashes and begins
13797 # with a dollar sign (not a hyphen), so the echo should work correctly.
13798 lt_compile=`echo "$ac_compile" | $SED \
13799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013803 (eval "$lt_compile" 2>out/conftest.err)
13804 ac_status=$?
13805 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013807 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13808 then
13809 # The compiler can only warn and ignore the option if not recognized
13810 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013811 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013812 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13813 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13814 lt_cv_prog_compiler_c_o=yes
13815 fi
13816 fi
13817 chmod u+w . 2>&5
13818 $RM conftest*
13819 # SGI C++ compiler will create directory out/ii_files/ for
13820 # template instantiation
13821 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13822 $RM out/* && rmdir out
13823 cd ..
13824 $RM -r conftest
13825 $RM conftest*
13826
13827fi
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13829$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13830
13831
13832
13833
13834hard_links="nottested"
13835if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13836 # do not overwrite the value of need_locks provided by the user
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13838$as_echo_n "checking if we can lock with hard links... " >&6; }
13839 hard_links=yes
13840 $RM conftest*
13841 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13842 touch conftest.a
13843 ln conftest.a conftest.b 2>&5 || hard_links=no
13844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13846$as_echo "$hard_links" >&6; }
13847 if test "$hard_links" = no; then
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13849$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13850 need_locks=warn
13851 fi
13852else
13853 need_locks=no
13854fi
13855
13856
13857
13858
13859
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13862$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13863
13864 runpath_var=
13865 allow_undefined_flag=
13866 always_export_symbols=no
13867 archive_cmds=
13868 archive_expsym_cmds=
13869 compiler_needs_object=no
13870 enable_shared_with_static_runtimes=no
13871 export_dynamic_flag_spec=
13872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13873 hardcode_automatic=no
13874 hardcode_direct=no
13875 hardcode_direct_absolute=no
13876 hardcode_libdir_flag_spec=
13877 hardcode_libdir_flag_spec_ld=
13878 hardcode_libdir_separator=
13879 hardcode_minus_L=no
13880 hardcode_shlibpath_var=unsupported
13881 inherit_rpath=no
13882 link_all_deplibs=unknown
13883 module_cmds=
13884 module_expsym_cmds=
13885 old_archive_from_new_cmds=
13886 old_archive_from_expsyms_cmds=
13887 thread_safe_flag_spec=
13888 whole_archive_flag_spec=
13889 # include_expsyms should be a list of space-separated symbols to be *always*
13890 # included in the symbol list
13891 include_expsyms=
13892 # exclude_expsyms can be an extended regexp of symbols to exclude
13893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13895 # as well as any symbol that contains `d'.
13896 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13898 # platforms (ab)use it in PIC code, but their linkers get confused if
13899 # the symbol is explicitly referenced. Since portable code cannot
13900 # rely on this symbol name, it's probably fine to never include it in
13901 # preloaded symbol tables.
13902 # Exclude shared library initialization/finalization symbols.
13903 extract_expsyms_cmds=
13904
13905 case $host_os in
13906 cygwin* | mingw* | pw32* | cegcc*)
13907 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13908 # When not using gcc, we currently assume that we are using
13909 # Microsoft Visual C++.
13910 if test "$GCC" != yes; then
13911 with_gnu_ld=no
13912 fi
13913 ;;
13914 interix*)
13915 # we just hope/assume this is gcc and not c89 (= MSVC++)
13916 with_gnu_ld=yes
13917 ;;
13918 openbsd*)
13919 with_gnu_ld=no
13920 ;;
13921 esac
13922
13923 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013924
13925 # On some targets, GNU ld is compatible enough with the native linker
13926 # that we're better off using the native interface for both.
13927 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013928 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013929 case $host_os in
13930 aix*)
13931 # The AIX port of GNU ld has always aspired to compatibility
13932 # with the native linker. However, as the warning in the GNU ld
13933 # block says, versions before 2.19.5* couldn't really create working
13934 # shared libraries, regardless of the interface used.
13935 case `$LD -v 2>&1` in
13936 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13937 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13938 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13939 *)
13940 lt_use_gnu_ld_interface=yes
13941 ;;
13942 esac
13943 ;;
13944 *)
13945 lt_use_gnu_ld_interface=yes
13946 ;;
13947 esac
13948 fi
13949
13950 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013951 # If archive_cmds runs LD, not CC, wlarc should be empty
13952 wlarc='${wl}'
13953
13954 # Set some defaults for GNU ld with shared library support. These
13955 # are reset later if shared libraries are not supported. Putting them
13956 # here allows them to be overridden if necessary.
13957 runpath_var=LD_RUN_PATH
13958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13959 export_dynamic_flag_spec='${wl}--export-dynamic'
13960 # ancient GNU ld didn't support --whole-archive et. al.
13961 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13962 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13963 else
13964 whole_archive_flag_spec=
13965 fi
13966 supports_anon_versioning=no
13967 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013968 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013969 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13970 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13971 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13972 *\ 2.11.*) ;; # other 2.11 versions
13973 *) supports_anon_versioning=yes ;;
13974 esac
13975
13976 # See if GNU ld supports shared libraries.
13977 case $host_os in
13978 aix[3-9]*)
13979 # On AIX/PPC, the GNU linker is very broken
13980 if test "$host_cpu" != ia64; then
13981 ld_shlibs=no
13982 cat <<_LT_EOF 1>&2
13983
cristy0c60a692010-11-04 01:09:47 +000013984*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013985*** to be unable to reliably create shared libraries on AIX.
13986*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013987*** really care for shared libraries, you may want to install binutils
13988*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13989*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013990
13991_LT_EOF
13992 fi
13993 ;;
13994
13995 amigaos*)
13996 case $host_cpu in
13997 powerpc)
13998 # see comment about AmigaOS4 .so support
13999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000 archive_expsym_cmds=''
14001 ;;
14002 m68k)
14003 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)'
14004 hardcode_libdir_flag_spec='-L$libdir'
14005 hardcode_minus_L=yes
14006 ;;
14007 esac
14008 ;;
14009
14010 beos*)
14011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14012 allow_undefined_flag=unsupported
14013 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14014 # support --undefined. This deserves some investigation. FIXME
14015 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14016 else
14017 ld_shlibs=no
14018 fi
14019 ;;
14020
14021 cygwin* | mingw* | pw32* | cegcc*)
14022 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14023 # as there is no search path for DLLs.
14024 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014025 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014026 allow_undefined_flag=unsupported
14027 always_export_symbols=no
14028 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014029 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'
14030 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 +000014031
14032 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14034 # If the export-symbols file already is a .def file (1st line
14035 # is EXPORTS), use it as is; otherwise, prepend...
14036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14037 cp $export_symbols $output_objdir/$soname.def;
14038 else
14039 echo EXPORTS > $output_objdir/$soname.def;
14040 cat $export_symbols >> $output_objdir/$soname.def;
14041 fi~
14042 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14043 else
14044 ld_shlibs=no
14045 fi
14046 ;;
14047
cristy0c60a692010-11-04 01:09:47 +000014048 haiku*)
14049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 link_all_deplibs=yes
14051 ;;
14052
cristy73bd4a52010-10-05 11:24:23 +000014053 interix[3-9]*)
14054 hardcode_direct=no
14055 hardcode_shlibpath_var=no
14056 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14057 export_dynamic_flag_spec='${wl}-E'
14058 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14059 # Instead, shared libraries are loaded at an image base (0x10000000 by
14060 # default) and relocated if they conflict, which is a slow very memory
14061 # consuming and fragmenting process. To avoid this, we pick a random,
14062 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14063 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14065 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'
14066 ;;
14067
cristy0c60a692010-11-04 01:09:47 +000014068 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014069 tmp_diet=no
14070 if test "$host_os" = linux-dietlibc; then
14071 case $cc_basename in
14072 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14073 esac
14074 fi
14075 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14076 && test "$tmp_diet" = no
14077 then
cristyda16f162011-02-19 23:52:17 +000014078 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014079 tmp_sharedflag='-shared'
14080 case $cc_basename,$host_cpu in
14081 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014082 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 +000014083 tmp_addflag=' $pic_flag'
14084 ;;
cristy0c60a692010-11-04 01:09:47 +000014085 pgf77* | pgf90* | pgf95* | pgfortran*)
14086 # Portland Group f77 and f90 compilers
14087 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 +000014088 tmp_addflag=' $pic_flag -Mnomain' ;;
14089 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14090 tmp_addflag=' -i_dynamic' ;;
14091 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14092 tmp_addflag=' -i_dynamic -nofor_main' ;;
14093 ifc* | ifort*) # Intel Fortran compiler
14094 tmp_addflag=' -nofor_main' ;;
14095 lf95*) # Lahey Fortran 8.1
14096 whole_archive_flag_spec=
14097 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014098 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014099 tmp_sharedflag='-qmkshrobj'
14100 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014101 nvcc*) # Cuda Compiler Driver 2.2
14102 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'
14103 compiler_needs_object=yes
14104 ;;
cristy73bd4a52010-10-05 11:24:23 +000014105 esac
14106 case `$CC -V 2>&1 | sed 5q` in
14107 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014108 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 +000014109 compiler_needs_object=yes
14110 tmp_sharedflag='-G' ;;
14111 *Sun\ F*) # Sun Fortran 8.3
14112 tmp_sharedflag='-G' ;;
14113 esac
14114 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14115
14116 if test "x$supports_anon_versioning" = xyes; then
14117 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14119 echo "local: *; };" >> $output_objdir/$libname.ver~
14120 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14121 fi
14122
14123 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014124 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014125 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14126 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14127 hardcode_libdir_flag_spec=
14128 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000014129 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014130 if test "x$supports_anon_versioning" = xyes; then
14131 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14133 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014134 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014135 fi
14136 ;;
14137 esac
14138 else
14139 ld_shlibs=no
14140 fi
14141 ;;
14142
14143 netbsd*)
14144 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14146 wlarc=
14147 else
cristyda16f162011-02-19 23:52:17 +000014148 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149 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 +000014150 fi
14151 ;;
14152
14153 solaris*)
14154 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14155 ld_shlibs=no
14156 cat <<_LT_EOF 1>&2
14157
14158*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14159*** create shared libraries on Solaris systems. Therefore, libtool
14160*** is disabling shared libraries support. We urge you to upgrade GNU
14161*** binutils to release 2.9.1 or newer. Another option is to modify
14162*** your PATH or compiler configuration so that the native linker is
14163*** used, and then restart.
14164
14165_LT_EOF
14166 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014167 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 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 +000014169 else
14170 ld_shlibs=no
14171 fi
14172 ;;
14173
14174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14175 case `$LD -v 2>&1` in
14176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14177 ld_shlibs=no
14178 cat <<_LT_EOF 1>&2
14179
14180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14181*** reliably create shared libraries on SCO systems. Therefore, libtool
14182*** is disabling shared libraries support. We urge you to upgrade GNU
14183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14184*** your PATH or compiler configuration so that the native linker is
14185*** used, and then restart.
14186
14187_LT_EOF
14188 ;;
14189 *)
14190 # For security reasons, it is highly recommended that you always
14191 # use absolute paths for naming shared libraries, and exclude the
14192 # DT_RUNPATH tag from executables and libraries. But doing so
14193 # requires that you compile everything twice, which is a pain.
14194 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14198 else
14199 ld_shlibs=no
14200 fi
14201 ;;
14202 esac
14203 ;;
14204
14205 sunos4*)
14206 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14207 wlarc=
14208 hardcode_direct=yes
14209 hardcode_shlibpath_var=no
14210 ;;
14211
14212 *)
14213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215 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 +000014216 else
14217 ld_shlibs=no
14218 fi
14219 ;;
14220 esac
14221
14222 if test "$ld_shlibs" = no; then
14223 runpath_var=
14224 hardcode_libdir_flag_spec=
14225 export_dynamic_flag_spec=
14226 whole_archive_flag_spec=
14227 fi
14228 else
14229 # PORTME fill in a description of your system's linker (not GNU ld)
14230 case $host_os in
14231 aix3*)
14232 allow_undefined_flag=unsupported
14233 always_export_symbols=yes
14234 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'
14235 # Note: this linker hardcodes the directories in LIBPATH if there
14236 # are no directories specified by -L.
14237 hardcode_minus_L=yes
14238 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14239 # Neither direct hardcoding nor static linking is supported with a
14240 # broken collect2.
14241 hardcode_direct=unsupported
14242 fi
14243 ;;
14244
14245 aix[4-9]*)
14246 if test "$host_cpu" = ia64; then
14247 # On IA64, the linker does run time linking by default, so we don't
14248 # have to do anything special.
14249 aix_use_runtimelinking=no
14250 exp_sym_flag='-Bexport'
14251 no_entry_flag=""
14252 else
14253 # If we're using GNU nm, then we don't want the "-C" option.
14254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014255 # Also, AIX nm treats weak defined symbols like other global
14256 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014258 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 +000014259 else
14260 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'
14261 fi
14262 aix_use_runtimelinking=no
14263
14264 # Test if we are trying to use run time linking or normal
14265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14266 # need to do runtime linking.
14267 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14268 for ld_flag in $LDFLAGS; do
14269 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14270 aix_use_runtimelinking=yes
14271 break
14272 fi
14273 done
14274 ;;
14275 esac
14276
14277 exp_sym_flag='-bexport'
14278 no_entry_flag='-bnoentry'
14279 fi
14280
14281 # When large executables or shared objects are built, AIX ld can
14282 # have problems creating the table of contents. If linking a library
14283 # or program results in "error TOC overflow" add -mminimal-toc to
14284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14286
14287 archive_cmds=''
14288 hardcode_direct=yes
14289 hardcode_direct_absolute=yes
14290 hardcode_libdir_separator=':'
14291 link_all_deplibs=yes
14292 file_list_spec='${wl}-f,'
14293
14294 if test "$GCC" = yes; then
14295 case $host_os in aix4.[012]|aix4.[012].*)
14296 # We only want to do this on AIX 4.2 and lower, the check
14297 # below for broken collect2 doesn't work under 4.3+
14298 collect2name=`${CC} -print-prog-name=collect2`
14299 if test -f "$collect2name" &&
14300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14301 then
14302 # We have reworked collect2
14303 :
14304 else
14305 # We have old collect2
14306 hardcode_direct=unsupported
14307 # It fails to find uninstalled libraries when the uninstalled
14308 # path is not listed in the libpath. Setting hardcode_minus_L
14309 # to unsupported forces relinking
14310 hardcode_minus_L=yes
14311 hardcode_libdir_flag_spec='-L$libdir'
14312 hardcode_libdir_separator=
14313 fi
14314 ;;
14315 esac
14316 shared_flag='-shared'
14317 if test "$aix_use_runtimelinking" = yes; then
14318 shared_flag="$shared_flag "'${wl}-G'
14319 fi
14320 else
14321 # not using gcc
14322 if test "$host_cpu" = ia64; then
14323 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14324 # chokes on -Wl,-G. The following line is correct:
14325 shared_flag='-G'
14326 else
14327 if test "$aix_use_runtimelinking" = yes; then
14328 shared_flag='${wl}-G'
14329 else
14330 shared_flag='${wl}-bM:SRE'
14331 fi
14332 fi
14333 fi
14334
14335 export_dynamic_flag_spec='${wl}-bexpall'
14336 # It seems that -bexpall does not export symbols beginning with
14337 # underscore (_), so it is better to generate a list of symbols to export.
14338 always_export_symbols=yes
14339 if test "$aix_use_runtimelinking" = yes; then
14340 # Warning - without using the other runtime loading flags (-brtl),
14341 # -berok will link without error, but may produce a broken library.
14342 allow_undefined_flag='-berok'
14343 # Determine the default libpath from the value encoded in an
14344 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014345 if test "${lt_cv_aix_libpath+set}" = set; then
14346 aix_libpath=$lt_cv_aix_libpath
14347else
14348 if ${lt_cv_aix_libpath_+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014352/* end confdefs.h. */
14353
14354int
14355main ()
14356{
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_link "$LINENO"; then :
14363
cristyda16f162011-02-19 23:52:17 +000014364 lt_aix_libpath_sed='
14365 /Import File Strings/,/^$/ {
14366 /^0/ {
14367 s/^0 *\([^ ]*\) *$/\1/
14368 p
14369 }
14370 }'
14371 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372 # Check for a 64-bit object if we didn't find anything.
14373 if test -z "$lt_cv_aix_libpath_"; then
14374 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14375 fi
cristy73bd4a52010-10-05 11:24:23 +000014376fi
14377rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014379 if test -z "$lt_cv_aix_libpath_"; then
14380 lt_cv_aix_libpath_="/usr/lib:/lib"
14381 fi
14382
14383fi
14384
14385 aix_libpath=$lt_cv_aix_libpath_
14386fi
cristy73bd4a52010-10-05 11:24:23 +000014387
14388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014389 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 +000014390 else
14391 if test "$host_cpu" = ia64; then
14392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14393 allow_undefined_flag="-z nodefs"
14394 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"
14395 else
14396 # Determine the default libpath from the value encoded in an
14397 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014398 if test "${lt_cv_aix_libpath+set}" = set; then
14399 aix_libpath=$lt_cv_aix_libpath
14400else
14401 if ${lt_cv_aix_libpath_+:} false; then :
14402 $as_echo_n "(cached) " >&6
14403else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014405/* end confdefs.h. */
14406
14407int
14408main ()
14409{
14410
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_link "$LINENO"; then :
14416
cristyda16f162011-02-19 23:52:17 +000014417 lt_aix_libpath_sed='
14418 /Import File Strings/,/^$/ {
14419 /^0/ {
14420 s/^0 *\([^ ]*\) *$/\1/
14421 p
14422 }
14423 }'
14424 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425 # Check for a 64-bit object if we didn't find anything.
14426 if test -z "$lt_cv_aix_libpath_"; then
14427 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14428 fi
cristy73bd4a52010-10-05 11:24:23 +000014429fi
14430rm -f core conftest.err conftest.$ac_objext \
14431 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014432 if test -z "$lt_cv_aix_libpath_"; then
14433 lt_cv_aix_libpath_="/usr/lib:/lib"
14434 fi
14435
14436fi
14437
14438 aix_libpath=$lt_cv_aix_libpath_
14439fi
cristy73bd4a52010-10-05 11:24:23 +000014440
14441 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14442 # Warning - without using the other run time loading flags,
14443 # -berok will link without error, but may produce a broken library.
14444 no_undefined_flag=' ${wl}-bernotok'
14445 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014446 if test "$with_gnu_ld" = yes; then
14447 # We only use this code for GNU lds that support --whole-archive.
14448 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14449 else
14450 # Exported symbols can be pulled into shared objects from archives
14451 whole_archive_flag_spec='$convenience'
14452 fi
cristy73bd4a52010-10-05 11:24:23 +000014453 archive_cmds_need_lc=yes
14454 # This is similar to how AIX traditionally builds its shared libraries.
14455 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'
14456 fi
14457 fi
14458 ;;
14459
14460 amigaos*)
14461 case $host_cpu in
14462 powerpc)
14463 # see comment about AmigaOS4 .so support
14464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465 archive_expsym_cmds=''
14466 ;;
14467 m68k)
14468 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)'
14469 hardcode_libdir_flag_spec='-L$libdir'
14470 hardcode_minus_L=yes
14471 ;;
14472 esac
14473 ;;
14474
14475 bsdi[45]*)
14476 export_dynamic_flag_spec=-rdynamic
14477 ;;
14478
14479 cygwin* | mingw* | pw32* | cegcc*)
14480 # When not using gcc, we currently assume that we are using
14481 # Microsoft Visual C++.
14482 # hardcode_libdir_flag_spec is actually meaningless, as there is
14483 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014484 case $cc_basename in
14485 cl*)
14486 # Native MSVC
14487 hardcode_libdir_flag_spec=' '
14488 allow_undefined_flag=unsupported
14489 always_export_symbols=yes
14490 file_list_spec='@'
14491 # Tell ltmain to make .lib files, not .a files.
14492 libext=lib
14493 # Tell ltmain to make .dll files, not .so files.
14494 shrext_cmds=".dll"
14495 # FIXME: Setting linknames here is a bad hack.
14496 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14497 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14498 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14499 else
14500 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14501 fi~
14502 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14503 linknames='
14504 # The linker will not automatically build a static lib if we build a DLL.
14505 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14506 enable_shared_with_static_runtimes=yes
14507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14508 # Don't use ranlib
14509 old_postinstall_cmds='chmod 644 $oldlib'
14510 postlink_cmds='lt_outputfile="@OUTPUT@"~
14511 lt_tool_outputfile="@TOOL_OUTPUT@"~
14512 case $lt_outputfile in
14513 *.exe|*.EXE) ;;
14514 *)
14515 lt_outputfile="$lt_outputfile.exe"
14516 lt_tool_outputfile="$lt_tool_outputfile.exe"
14517 ;;
14518 esac~
14519 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14520 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14521 $RM "$lt_outputfile.manifest";
14522 fi'
14523 ;;
14524 *)
14525 # Assume MSVC wrapper
14526 hardcode_libdir_flag_spec=' '
14527 allow_undefined_flag=unsupported
14528 # Tell ltmain to make .lib files, not .a files.
14529 libext=lib
14530 # Tell ltmain to make .dll files, not .so files.
14531 shrext_cmds=".dll"
14532 # FIXME: Setting linknames here is a bad hack.
14533 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14534 # The linker will automatically build a .lib file if we build a DLL.
14535 old_archive_from_new_cmds='true'
14536 # FIXME: Should let the user specify the lib program.
14537 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14538 enable_shared_with_static_runtimes=yes
14539 ;;
14540 esac
cristy73bd4a52010-10-05 11:24:23 +000014541 ;;
14542
14543 darwin* | rhapsody*)
14544
14545
14546 archive_cmds_need_lc=no
14547 hardcode_direct=no
14548 hardcode_automatic=yes
14549 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014550 if test "$lt_cv_ld_force_load" = "yes"; then
14551 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\"`'
14552 else
14553 whole_archive_flag_spec=''
14554 fi
cristy73bd4a52010-10-05 11:24:23 +000014555 link_all_deplibs=yes
14556 allow_undefined_flag="$_lt_dar_allow_undefined"
14557 case $cc_basename in
14558 ifort*) _lt_dar_can_shared=yes ;;
14559 *) _lt_dar_can_shared=$GCC ;;
14560 esac
14561 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014562 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014563 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14564 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14565 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}"
14566 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}"
14567
14568 else
14569 ld_shlibs=no
14570 fi
14571
14572 ;;
14573
14574 dgux*)
14575 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14576 hardcode_libdir_flag_spec='-L$libdir'
14577 hardcode_shlibpath_var=no
14578 ;;
14579
14580 freebsd1*)
14581 ld_shlibs=no
14582 ;;
14583
14584 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14585 # support. Future versions do this automatically, but an explicit c++rt0.o
14586 # does not break anything, and helps significantly (at the cost of a little
14587 # extra space).
14588 freebsd2.2*)
14589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14590 hardcode_libdir_flag_spec='-R$libdir'
14591 hardcode_direct=yes
14592 hardcode_shlibpath_var=no
14593 ;;
14594
14595 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14596 freebsd2*)
14597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14598 hardcode_direct=yes
14599 hardcode_minus_L=yes
14600 hardcode_shlibpath_var=no
14601 ;;
14602
14603 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14604 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014605 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014606 hardcode_libdir_flag_spec='-R$libdir'
14607 hardcode_direct=yes
14608 hardcode_shlibpath_var=no
14609 ;;
14610
14611 hpux9*)
14612 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014613 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 +000014614 else
14615 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'
14616 fi
14617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618 hardcode_libdir_separator=:
14619 hardcode_direct=yes
14620
14621 # hardcode_minus_L: Not really in the search PATH,
14622 # but as the default location of the library.
14623 hardcode_minus_L=yes
14624 export_dynamic_flag_spec='${wl}-E'
14625 ;;
14626
14627 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014628 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014629 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 +000014630 else
14631 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14632 fi
14633 if test "$with_gnu_ld" = no; then
14634 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14635 hardcode_libdir_flag_spec_ld='+b $libdir'
14636 hardcode_libdir_separator=:
14637 hardcode_direct=yes
14638 hardcode_direct_absolute=yes
14639 export_dynamic_flag_spec='${wl}-E'
14640 # hardcode_minus_L: Not really in the search PATH,
14641 # but as the default location of the library.
14642 hardcode_minus_L=yes
14643 fi
14644 ;;
14645
14646 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014647 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014648 case $host_cpu in
14649 hppa*64*)
14650 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 ;;
14652 ia64*)
cristyda16f162011-02-19 23:52:17 +000014653 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014654 ;;
14655 *)
cristyda16f162011-02-19 23:52:17 +000014656 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 +000014657 ;;
14658 esac
14659 else
14660 case $host_cpu in
14661 hppa*64*)
14662 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14663 ;;
14664 ia64*)
14665 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14666 ;;
14667 *)
cristy0c60a692010-11-04 01:09:47 +000014668
14669 # Older versions of the 11.00 compiler do not understand -b yet
14670 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14672$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014673if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014674 $as_echo_n "(cached) " >&6
14675else
14676 lt_cv_prog_compiler__b=no
14677 save_LDFLAGS="$LDFLAGS"
14678 LDFLAGS="$LDFLAGS -b"
14679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681 # The linker can only warn and ignore the option if not recognized
14682 # So say no if there are warnings
14683 if test -s conftest.err; then
14684 # Append any errors to the config.log.
14685 cat conftest.err 1>&5
14686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688 if diff conftest.exp conftest.er2 >/dev/null; then
14689 lt_cv_prog_compiler__b=yes
14690 fi
14691 else
14692 lt_cv_prog_compiler__b=yes
14693 fi
14694 fi
14695 $RM -r conftest*
14696 LDFLAGS="$save_LDFLAGS"
14697
14698fi
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14700$as_echo "$lt_cv_prog_compiler__b" >&6; }
14701
14702if test x"$lt_cv_prog_compiler__b" = xyes; then
14703 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14704else
14705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14706fi
14707
cristy73bd4a52010-10-05 11:24:23 +000014708 ;;
14709 esac
14710 fi
14711 if test "$with_gnu_ld" = no; then
14712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14713 hardcode_libdir_separator=:
14714
14715 case $host_cpu in
14716 hppa*64*|ia64*)
14717 hardcode_direct=no
14718 hardcode_shlibpath_var=no
14719 ;;
14720 *)
14721 hardcode_direct=yes
14722 hardcode_direct_absolute=yes
14723 export_dynamic_flag_spec='${wl}-E'
14724
14725 # hardcode_minus_L: Not really in the search PATH,
14726 # but as the default location of the library.
14727 hardcode_minus_L=yes
14728 ;;
14729 esac
14730 fi
14731 ;;
14732
14733 irix5* | irix6* | nonstopux*)
14734 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014735 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 +000014736 # Try to use the -exported_symbol ld option, if it does not
14737 # work, assume that -exports_file does not work either and
14738 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014739 # This should be the same for all languages, so no per-tag cache variable.
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14741$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14742if ${lt_cv_irix_exported_symbol+:} false; then :
14743 $as_echo_n "(cached) " >&6
14744else
14745 save_LDFLAGS="$LDFLAGS"
14746 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014748/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014749int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014750_ACEOF
14751if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014752 lt_cv_irix_exported_symbol=yes
14753else
14754 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014755fi
14756rm -f core conftest.err conftest.$ac_objext \
14757 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014758 LDFLAGS="$save_LDFLAGS"
14759fi
14760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14761$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14762 if test "$lt_cv_irix_exported_symbol" = yes; then
14763 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'
14764 fi
cristy73bd4a52010-10-05 11:24:23 +000014765 else
cristy0c60a692010-11-04 01:09:47 +000014766 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'
14767 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 +000014768 fi
14769 archive_cmds_need_lc='no'
14770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14771 hardcode_libdir_separator=:
14772 inherit_rpath=yes
14773 link_all_deplibs=yes
14774 ;;
14775
14776 netbsd*)
14777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14779 else
14780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14781 fi
14782 hardcode_libdir_flag_spec='-R$libdir'
14783 hardcode_direct=yes
14784 hardcode_shlibpath_var=no
14785 ;;
14786
14787 newsos6)
14788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14789 hardcode_direct=yes
14790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14791 hardcode_libdir_separator=:
14792 hardcode_shlibpath_var=no
14793 ;;
14794
14795 *nto* | *qnx*)
14796 ;;
14797
14798 openbsd*)
14799 if test -f /usr/libexec/ld.so; then
14800 hardcode_direct=yes
14801 hardcode_shlibpath_var=no
14802 hardcode_direct_absolute=yes
14803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14807 export_dynamic_flag_spec='${wl}-E'
14808 else
14809 case $host_os in
14810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812 hardcode_libdir_flag_spec='-R$libdir'
14813 ;;
14814 *)
14815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14817 ;;
14818 esac
14819 fi
14820 else
14821 ld_shlibs=no
14822 fi
14823 ;;
14824
14825 os2*)
14826 hardcode_libdir_flag_spec='-L$libdir'
14827 hardcode_minus_L=yes
14828 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014829 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 +000014830 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14831 ;;
14832
14833 osf3*)
14834 if test "$GCC" = yes; then
14835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014836 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 +000014837 else
14838 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014839 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 +000014840 fi
14841 archive_cmds_need_lc='no'
14842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14843 hardcode_libdir_separator=:
14844 ;;
14845
14846 osf4* | osf5*) # as osf3* with the addition of -msym flag
14847 if test "$GCC" = yes; then
14848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014849 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 +000014850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14851 else
14852 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014853 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 +000014854 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 +000014855 $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 +000014856
14857 # Both c and cxx compiler support -rpath directly
14858 hardcode_libdir_flag_spec='-rpath $libdir'
14859 fi
14860 archive_cmds_need_lc='no'
14861 hardcode_libdir_separator=:
14862 ;;
14863
14864 solaris*)
14865 no_undefined_flag=' -z defs'
14866 if test "$GCC" = yes; then
14867 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014868 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 +000014869 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 +000014870 $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 +000014871 else
14872 case `$CC -V 2>&1` in
14873 *"Compilers 5.0"*)
14874 wlarc=''
14875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14878 ;;
14879 *)
14880 wlarc='${wl}'
14881 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14883 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14884 ;;
14885 esac
14886 fi
14887 hardcode_libdir_flag_spec='-R$libdir'
14888 hardcode_shlibpath_var=no
14889 case $host_os in
14890 solaris2.[0-5] | solaris2.[0-5].*) ;;
14891 *)
14892 # The compiler driver will combine and reorder linker options,
14893 # but understands `-z linker_flag'. GCC discards it without `$wl',
14894 # but is careful enough not to reorder.
14895 # Supported since Solaris 2.6 (maybe 2.5.1?)
14896 if test "$GCC" = yes; then
14897 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14898 else
14899 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14900 fi
14901 ;;
14902 esac
14903 link_all_deplibs=yes
14904 ;;
14905
14906 sunos4*)
14907 if test "x$host_vendor" = xsequent; then
14908 # Use $CC to link under sequent, because it throws in some extra .o
14909 # files that make .init and .fini sections work.
14910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14911 else
14912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14913 fi
14914 hardcode_libdir_flag_spec='-L$libdir'
14915 hardcode_direct=yes
14916 hardcode_minus_L=yes
14917 hardcode_shlibpath_var=no
14918 ;;
14919
14920 sysv4)
14921 case $host_vendor in
14922 sni)
14923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct=yes # is this really true???
14925 ;;
14926 siemens)
14927 ## LD is ld it makes a PLAMLIB
14928 ## CC just makes a GrossModule.
14929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14930 reload_cmds='$CC -r -o $output$reload_objs'
14931 hardcode_direct=no
14932 ;;
14933 motorola)
14934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14936 ;;
14937 esac
14938 runpath_var='LD_RUN_PATH'
14939 hardcode_shlibpath_var=no
14940 ;;
14941
14942 sysv4.3*)
14943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_shlibpath_var=no
14945 export_dynamic_flag_spec='-Bexport'
14946 ;;
14947
14948 sysv4*MP*)
14949 if test -d /usr/nec; then
14950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_shlibpath_var=no
14952 runpath_var=LD_RUN_PATH
14953 hardcode_runpath_var=yes
14954 ld_shlibs=yes
14955 fi
14956 ;;
14957
14958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14959 no_undefined_flag='${wl}-z,text'
14960 archive_cmds_need_lc=no
14961 hardcode_shlibpath_var=no
14962 runpath_var='LD_RUN_PATH'
14963
14964 if test "$GCC" = yes; then
14965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967 else
14968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970 fi
14971 ;;
14972
14973 sysv5* | sco3.2v5* | sco5v6*)
14974 # Note: We can NOT use -z defs as we might desire, because we do not
14975 # link with -lc, and that would cause any symbols used from libc to
14976 # always be unresolved, which means just about no library would
14977 # ever link correctly. If we're not using GNU ld we use -z text
14978 # though, which does catch some bad symbols but isn't as heavy-handed
14979 # as -z defs.
14980 no_undefined_flag='${wl}-z,text'
14981 allow_undefined_flag='${wl}-z,nodefs'
14982 archive_cmds_need_lc=no
14983 hardcode_shlibpath_var=no
14984 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14985 hardcode_libdir_separator=':'
14986 link_all_deplibs=yes
14987 export_dynamic_flag_spec='${wl}-Bexport'
14988 runpath_var='LD_RUN_PATH'
14989
14990 if test "$GCC" = yes; then
14991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 else
14994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 fi
14997 ;;
14998
14999 uts4*)
15000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15001 hardcode_libdir_flag_spec='-L$libdir'
15002 hardcode_shlibpath_var=no
15003 ;;
15004
15005 *)
15006 ld_shlibs=no
15007 ;;
15008 esac
15009
15010 if test x$host_vendor = xsni; then
15011 case $host in
15012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15013 export_dynamic_flag_spec='${wl}-Blargedynsym'
15014 ;;
15015 esac
15016 fi
15017 fi
15018
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15020$as_echo "$ld_shlibs" >&6; }
15021test "$ld_shlibs" = no && can_build_shared=no
15022
15023with_gnu_ld=$with_gnu_ld
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039#
15040# Do we need to explicitly link libc?
15041#
15042case "x$archive_cmds_need_lc" in
15043x|xyes)
15044 # Assume -lc should be added
15045 archive_cmds_need_lc=yes
15046
15047 if test "$enable_shared" = yes && test "$GCC" = yes; then
15048 case $archive_cmds in
15049 *'~'*)
15050 # FIXME: we may have to deal with multi-command sequences.
15051 ;;
15052 '$CC '*)
15053 # Test whether the compiler implicitly links with -lc since on some
15054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15055 # to ld, don't add -lc before -lgcc.
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15057$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015058if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015059 $as_echo_n "(cached) " >&6
15060else
15061 $RM conftest*
15062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015063
cristy0c60a692010-11-04 01:09:47 +000015064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015065 (eval $ac_compile) 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015069 soname=conftest
15070 lib=conftest
15071 libobjs=conftest.$ac_objext
15072 deplibs=
15073 wl=$lt_prog_compiler_wl
15074 pic_flag=$lt_prog_compiler_pic
15075 compiler_flags=-v
15076 linker_flags=-v
15077 verstring=
15078 output_objdir=.
15079 libname=conftest
15080 lt_save_allow_undefined_flag=$allow_undefined_flag
15081 allow_undefined_flag=
15082 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 +000015083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15084 ac_status=$?
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015087 then
15088 lt_cv_archive_cmds_need_lc=no
15089 else
15090 lt_cv_archive_cmds_need_lc=yes
15091 fi
15092 allow_undefined_flag=$lt_save_allow_undefined_flag
15093 else
15094 cat conftest.err 1>&5
15095 fi
15096 $RM conftest*
15097
15098fi
15099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15100$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15101 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015102 ;;
15103 esac
15104 fi
15105 ;;
15106esac
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265$as_echo_n "checking dynamic linker characteristics... " >&6; }
15266
15267if test "$GCC" = yes; then
15268 case $host_os in
15269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15270 *) lt_awk_arg="/^libraries:/" ;;
15271 esac
cristy0c60a692010-11-04 01:09:47 +000015272 case $host_os in
15273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15274 *) lt_sed_strip_eq="s,=/,/,g" ;;
15275 esac
15276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15277 case $lt_search_path_spec in
15278 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015279 # if the path contains ";" then we assume it to be the separator
15280 # otherwise default to the standard path separator (i.e. ":") - it is
15281 # assumed that no part of a normal pathname contains ";" but that should
15282 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15284 ;;
15285 *)
15286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15287 ;;
15288 esac
cristy73bd4a52010-10-05 11:24:23 +000015289 # Ok, now we have the path, separated by spaces, we can step through it
15290 # and add multilib dir if necessary.
15291 lt_tmp_lt_search_path_spec=
15292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15293 for lt_sys_path in $lt_search_path_spec; do
15294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15296 else
15297 test -d "$lt_sys_path" && \
15298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15299 fi
15300 done
cristy0c60a692010-11-04 01:09:47 +000015301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015302BEGIN {RS=" "; FS="/|\n";} {
15303 lt_foo="";
15304 lt_count=0;
15305 for (lt_i = NF; lt_i > 0; lt_i--) {
15306 if ($lt_i != "" && $lt_i != ".") {
15307 if ($lt_i == "..") {
15308 lt_count++;
15309 } else {
15310 if (lt_count == 0) {
15311 lt_foo="/" $lt_i lt_foo;
15312 } else {
15313 lt_count--;
15314 }
15315 }
15316 }
15317 }
15318 if (lt_foo != "") { lt_freq[lt_foo]++; }
15319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15320}'`
cristy0c60a692010-11-04 01:09:47 +000015321 # AWK program above erroneously prepends '/' to C:/dos/paths
15322 # for these hosts.
15323 case $host_os in
15324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15325 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15326 esac
15327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015328else
15329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15330fi
15331library_names_spec=
15332libname_spec='lib$name'
15333soname_spec=
15334shrext_cmds=".so"
15335postinstall_cmds=
15336postuninstall_cmds=
15337finish_cmds=
15338finish_eval=
15339shlibpath_var=
15340shlibpath_overrides_runpath=unknown
15341version_type=none
15342dynamic_linker="$host_os ld.so"
15343sys_lib_dlsearch_path_spec="/lib /usr/lib"
15344need_lib_prefix=unknown
15345hardcode_into_libs=no
15346
15347# when you set need_version to no, make sure it does not cause -set_version
15348# flags to be left without arguments
15349need_version=unknown
15350
15351case $host_os in
15352aix3*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355 shlibpath_var=LIBPATH
15356
15357 # AIX 3 has no versioning support, so we append a major version to the name.
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 ;;
15360
15361aix[4-9]*)
15362 version_type=linux
15363 need_lib_prefix=no
15364 need_version=no
15365 hardcode_into_libs=yes
15366 if test "$host_cpu" = ia64; then
15367 # AIX 5 supports IA64
15368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 else
15371 # With GCC up to 2.95.x, collect2 would create an import file
15372 # for dependence libraries. The import file would start with
15373 # the line `#! .'. This would cause the generated library to
15374 # depend on `.', always an invalid library. This was fixed in
15375 # development snapshots of GCC prior to 3.0.
15376 case $host_os in
15377 aix4 | aix4.[01] | aix4.[01].*)
15378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379 echo ' yes '
15380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15381 :
15382 else
15383 can_build_shared=no
15384 fi
15385 ;;
15386 esac
15387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388 # soname into executable. Probably we can add versioning support to
15389 # collect2, so additional links can be useful in future.
15390 if test "$aix_use_runtimelinking" = yes; then
15391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392 # instead of lib<name>.a to let people know that these are not
15393 # typical AIX shared libraries.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 else
15396 # We preserve .a as extension for shared libraries through AIX4.2
15397 # and later when we are not doing run time linking.
15398 library_names_spec='${libname}${release}.a $libname.a'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 fi
15401 shlibpath_var=LIBPATH
15402 fi
15403 ;;
15404
15405amigaos*)
15406 case $host_cpu in
15407 powerpc)
15408 # Since July 2007 AmigaOS4 officially supports .so libraries.
15409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411 ;;
15412 m68k)
15413 library_names_spec='$libname.ixlibrary $libname.a'
15414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015415 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 +000015416 ;;
15417 esac
15418 ;;
15419
15420beos*)
15421 library_names_spec='${libname}${shared_ext}'
15422 dynamic_linker="$host_os ld.so"
15423 shlibpath_var=LIBRARY_PATH
15424 ;;
15425
15426bsdi[45]*)
15427 version_type=linux
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15435 # the default ld.so.conf also contains /usr/contrib/lib and
15436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15437 # libtool to hard-code these into programs
15438 ;;
15439
15440cygwin* | mingw* | pw32* | cegcc*)
15441 version_type=windows
15442 shrext_cmds=".dll"
15443 need_version=no
15444 need_lib_prefix=no
15445
cristyda16f162011-02-19 23:52:17 +000015446 case $GCC,$cc_basename in
15447 yes,*)
15448 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015449 library_names_spec='$libname.dll.a'
15450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15451 postinstall_cmds='base_file=`basename \${file}`~
15452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15453 dldir=$destdir/`dirname \$dlpath`~
15454 test -d \$dldir || mkdir -p \$dldir~
15455 $install_prog $dir/$dlname \$dldir/$dlname~
15456 chmod a+x \$dldir/$dlname~
15457 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15458 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15459 fi'
15460 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15461 dlpath=$dir/\$dldll~
15462 $RM \$dlpath'
15463 shlibpath_overrides_runpath=yes
15464
15465 case $host_os in
15466 cygwin*)
15467 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15468 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015469
15470 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015471 ;;
15472 mingw* | cegcc*)
15473 # MinGW DLLs use traditional 'lib' prefix
15474 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015475 ;;
15476 pw32*)
15477 # pw32 DLLs use 'pw' prefix rather than 'lib'
15478 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479 ;;
15480 esac
cristyda16f162011-02-19 23:52:17 +000015481 dynamic_linker='Win32 ld.exe'
15482 ;;
15483
15484 *,cl*)
15485 # Native MSVC
15486 libname_spec='$name'
15487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488 library_names_spec='${libname}.dll.lib'
15489
15490 case $build_os in
15491 mingw*)
15492 sys_lib_search_path_spec=
15493 lt_save_ifs=$IFS
15494 IFS=';'
15495 for lt_path in $LIB
15496 do
15497 IFS=$lt_save_ifs
15498 # Let DOS variable expansion print the short 8.3 style file name.
15499 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15500 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15501 done
15502 IFS=$lt_save_ifs
15503 # Convert to MSYS style.
15504 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15505 ;;
15506 cygwin*)
15507 # Convert to unix form, then to dos form, then back to unix form
15508 # but this time dos style (no spaces!) so that the unix form looks
15509 # like /cygdrive/c/PROGRA~1:/cygdr...
15510 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15511 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15512 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15513 ;;
15514 *)
15515 sys_lib_search_path_spec="$LIB"
15516 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15517 # It is most probably a Windows format PATH.
15518 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15519 else
15520 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15521 fi
15522 # FIXME: find the short name or the path components, as spaces are
15523 # common. (e.g. "Program Files" -> "PROGRA~1")
15524 ;;
15525 esac
15526
15527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528 postinstall_cmds='base_file=`basename \${file}`~
15529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530 dldir=$destdir/`dirname \$dlpath`~
15531 test -d \$dldir || mkdir -p \$dldir~
15532 $install_prog $dir/$dlname \$dldir/$dlname'
15533 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15534 dlpath=$dir/\$dldll~
15535 $RM \$dlpath'
15536 shlibpath_overrides_runpath=yes
15537 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015538 ;;
15539
15540 *)
cristyda16f162011-02-19 23:52:17 +000015541 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015542 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015543 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015544 ;;
15545 esac
cristy73bd4a52010-10-05 11:24:23 +000015546 # FIXME: first we should search . and the directory the executable is in
15547 shlibpath_var=PATH
15548 ;;
15549
15550darwin* | rhapsody*)
15551 dynamic_linker="$host_os dyld"
15552 version_type=darwin
15553 need_lib_prefix=no
15554 need_version=no
15555 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15556 soname_spec='${libname}${release}${major}$shared_ext'
15557 shlibpath_overrides_runpath=yes
15558 shlibpath_var=DYLD_LIBRARY_PATH
15559 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15560
15561 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15562 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15563 ;;
15564
15565dgux*)
15566 version_type=linux
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 shlibpath_var=LD_LIBRARY_PATH
15572 ;;
15573
15574freebsd1*)
15575 dynamic_linker=no
15576 ;;
15577
15578freebsd* | dragonfly*)
15579 # DragonFly does not have aout. When/if they implement a new
15580 # versioning mechanism, adjust this.
15581 if test -x /usr/bin/objformat; then
15582 objformat=`/usr/bin/objformat`
15583 else
15584 case $host_os in
15585 freebsd[123]*) objformat=aout ;;
15586 *) objformat=elf ;;
15587 esac
15588 fi
15589 version_type=freebsd-$objformat
15590 case $version_type in
15591 freebsd-elf*)
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15593 need_version=no
15594 need_lib_prefix=no
15595 ;;
15596 freebsd-*)
15597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15598 need_version=yes
15599 ;;
15600 esac
15601 shlibpath_var=LD_LIBRARY_PATH
15602 case $host_os in
15603 freebsd2*)
15604 shlibpath_overrides_runpath=yes
15605 ;;
15606 freebsd3.[01]* | freebsdelf3.[01]*)
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15609 ;;
15610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612 shlibpath_overrides_runpath=no
15613 hardcode_into_libs=yes
15614 ;;
15615 *) # from 4.6 on, and DragonFly
15616 shlibpath_overrides_runpath=yes
15617 hardcode_into_libs=yes
15618 ;;
15619 esac
15620 ;;
15621
15622gnu*)
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 hardcode_into_libs=yes
15630 ;;
15631
cristy0c60a692010-11-04 01:09:47 +000015632haiku*)
15633 version_type=linux
15634 need_lib_prefix=no
15635 need_version=no
15636 dynamic_linker="$host_os runtime_loader"
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LIBRARY_PATH
15640 shlibpath_overrides_runpath=yes
15641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15642 hardcode_into_libs=yes
15643 ;;
15644
cristy73bd4a52010-10-05 11:24:23 +000015645hpux9* | hpux10* | hpux11*)
15646 # Give a soname corresponding to the major version so that dld.sl refuses to
15647 # link against other versions.
15648 version_type=sunos
15649 need_lib_prefix=no
15650 need_version=no
15651 case $host_cpu in
15652 ia64*)
15653 shrext_cmds='.so'
15654 hardcode_into_libs=yes
15655 dynamic_linker="$host_os dld.so"
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 if test "X$HPUX_IA64_MODE" = X32; then
15661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15662 else
15663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15664 fi
15665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15666 ;;
15667 hppa*64*)
15668 shrext_cmds='.sl'
15669 hardcode_into_libs=yes
15670 dynamic_linker="$host_os dld.sl"
15671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674 soname_spec='${libname}${release}${shared_ext}$major'
15675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15677 ;;
15678 *)
15679 shrext_cmds='.sl'
15680 dynamic_linker="$host_os dld.sl"
15681 shlibpath_var=SHLIB_PATH
15682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 ;;
15686 esac
cristy0c60a692010-11-04 01:09:47 +000015687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015688 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015689 # or fails outright, so override atomically:
15690 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015691 ;;
15692
15693interix[3-9]*)
15694 version_type=linux
15695 need_lib_prefix=no
15696 need_version=no
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15700 shlibpath_var=LD_LIBRARY_PATH
15701 shlibpath_overrides_runpath=no
15702 hardcode_into_libs=yes
15703 ;;
15704
15705irix5* | irix6* | nonstopux*)
15706 case $host_os in
15707 nonstopux*) version_type=nonstopux ;;
15708 *)
15709 if test "$lt_cv_prog_gnu_ld" = yes; then
15710 version_type=linux
15711 else
15712 version_type=irix
15713 fi ;;
15714 esac
15715 need_lib_prefix=no
15716 need_version=no
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15719 case $host_os in
15720 irix5* | nonstopux*)
15721 libsuff= shlibsuff=
15722 ;;
15723 *)
15724 case $LD in # libtool.m4 will add one of these switches to LD
15725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15726 libsuff= shlibsuff= libmagic=32-bit;;
15727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15728 libsuff=32 shlibsuff=N32 libmagic=N32;;
15729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15731 *) libsuff= shlibsuff= libmagic=never-match;;
15732 esac
15733 ;;
15734 esac
15735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15736 shlibpath_overrides_runpath=no
15737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15739 hardcode_into_libs=yes
15740 ;;
15741
15742# No shared lib support for Linux oldld, aout, or coff.
15743linux*oldld* | linux*aout* | linux*coff*)
15744 dynamic_linker=no
15745 ;;
15746
15747# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015748linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015749 version_type=linux
15750 need_lib_prefix=no
15751 need_version=no
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015757
cristy73bd4a52010-10-05 11:24:23 +000015758 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015760 $as_echo_n "(cached) " >&6
15761else
15762 lt_cv_shlibpath_overrides_runpath=no
15763 save_LDFLAGS=$LDFLAGS
15764 save_libdir=$libdir
15765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015768/* end confdefs.h. */
15769
15770int
15771main ()
15772{
15773
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778if ac_fn_c_try_link "$LINENO"; then :
15779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015780 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015781fi
15782fi
15783rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015785 LDFLAGS=$save_LDFLAGS
15786 libdir=$save_libdir
15787
15788fi
15789
15790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015791
15792 # This implies no fast_install, which is unacceptable.
15793 # Some rework will be needed to allow for fast_install
15794 # before this can be enabled.
15795 hardcode_into_libs=yes
15796
15797 # Add ABI-specific directories to the system library path.
15798 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15799
15800 # Append ld.so.conf contents to the search path
15801 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015802 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 +000015803 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015804
cristy73bd4a52010-10-05 11:24:23 +000015805 fi
15806
15807 # We used to test for /lib/ld.so.1 and disable shared libraries on
15808 # powerpc, because MkLinux only supported shared libraries with the
15809 # GNU dynamic linker. Since this was broken with cross compilers,
15810 # most powerpc-linux boxes support dynamic linking these days and
15811 # people can always --disable-shared, the test was removed, and we
15812 # assume the GNU/Linux dynamic linker is in use.
15813 dynamic_linker='GNU/Linux ld.so'
15814 ;;
15815
15816netbsd*)
15817 version_type=sunos
15818 need_lib_prefix=no
15819 need_version=no
15820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15823 dynamic_linker='NetBSD (a.out) ld.so'
15824 else
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 dynamic_linker='NetBSD ld.elf_so'
15828 fi
15829 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=yes
15831 hardcode_into_libs=yes
15832 ;;
15833
15834newsos6)
15835 version_type=linux
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 shlibpath_overrides_runpath=yes
15839 ;;
15840
15841*nto* | *qnx*)
15842 version_type=qnx
15843 need_lib_prefix=no
15844 need_version=no
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=no
15849 hardcode_into_libs=yes
15850 dynamic_linker='ldqnx.so'
15851 ;;
15852
15853openbsd*)
15854 version_type=sunos
15855 sys_lib_dlsearch_path_spec="/usr/lib"
15856 need_lib_prefix=no
15857 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15858 case $host_os in
15859 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15860 *) need_version=no ;;
15861 esac
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15866 case $host_os in
15867 openbsd2.[89] | openbsd2.[89].*)
15868 shlibpath_overrides_runpath=no
15869 ;;
15870 *)
15871 shlibpath_overrides_runpath=yes
15872 ;;
15873 esac
15874 else
15875 shlibpath_overrides_runpath=yes
15876 fi
15877 ;;
15878
15879os2*)
15880 libname_spec='$name'
15881 shrext_cmds=".dll"
15882 need_lib_prefix=no
15883 library_names_spec='$libname${shared_ext} $libname.a'
15884 dynamic_linker='OS/2 ld.exe'
15885 shlibpath_var=LIBPATH
15886 ;;
15887
15888osf3* | osf4* | osf5*)
15889 version_type=osf
15890 need_lib_prefix=no
15891 need_version=no
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 shlibpath_var=LD_LIBRARY_PATH
15895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15896 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15897 ;;
15898
15899rdos*)
15900 dynamic_linker=no
15901 ;;
15902
15903solaris*)
15904 version_type=linux
15905 need_lib_prefix=no
15906 need_version=no
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
15909 shlibpath_var=LD_LIBRARY_PATH
15910 shlibpath_overrides_runpath=yes
15911 hardcode_into_libs=yes
15912 # ldd complains unless libraries are executable
15913 postinstall_cmds='chmod +x $lib'
15914 ;;
15915
15916sunos4*)
15917 version_type=sunos
15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=yes
15922 if test "$with_gnu_ld" = yes; then
15923 need_lib_prefix=no
15924 fi
15925 need_version=yes
15926 ;;
15927
15928sysv4 | sysv4.3*)
15929 version_type=linux
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931 soname_spec='${libname}${release}${shared_ext}$major'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 case $host_vendor in
15934 sni)
15935 shlibpath_overrides_runpath=no
15936 need_lib_prefix=no
15937 runpath_var=LD_RUN_PATH
15938 ;;
15939 siemens)
15940 need_lib_prefix=no
15941 ;;
15942 motorola)
15943 need_lib_prefix=no
15944 need_version=no
15945 shlibpath_overrides_runpath=no
15946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15947 ;;
15948 esac
15949 ;;
15950
15951sysv4*MP*)
15952 if test -d /usr/nec ;then
15953 version_type=linux
15954 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15955 soname_spec='$libname${shared_ext}.$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 fi
15958 ;;
15959
15960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15961 version_type=freebsd-elf
15962 need_lib_prefix=no
15963 need_version=no
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=yes
15968 hardcode_into_libs=yes
15969 if test "$with_gnu_ld" = yes; then
15970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15971 else
15972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15973 case $host_os in
15974 sco3.2v5*)
15975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15976 ;;
15977 esac
15978 fi
15979 sys_lib_dlsearch_path_spec='/usr/lib'
15980 ;;
15981
15982tpf*)
15983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15984 version_type=linux
15985 need_lib_prefix=no
15986 need_version=no
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=no
15990 hardcode_into_libs=yes
15991 ;;
15992
15993uts4*)
15994 version_type=linux
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 soname_spec='${libname}${release}${shared_ext}$major'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 ;;
15999
16000*)
16001 dynamic_linker=no
16002 ;;
16003esac
16004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16005$as_echo "$dynamic_linker" >&6; }
16006test "$dynamic_linker" = no && can_build_shared=no
16007
16008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16009if test "$GCC" = yes; then
16010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16011fi
16012
16013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16014 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16015fi
16016if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16017 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16018fi
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
cristy0c60a692010-11-04 01:09:47 +000016106
16107
16108
16109
16110
cristy73bd4a52010-10-05 11:24:23 +000016111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16113hardcode_action=
16114if test -n "$hardcode_libdir_flag_spec" ||
16115 test -n "$runpath_var" ||
16116 test "X$hardcode_automatic" = "Xyes" ; then
16117
16118 # We can hardcode non-existent directories.
16119 if test "$hardcode_direct" != no &&
16120 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16121 # have to relink, otherwise we might link with an installed library
16122 # when we should be linking with a yet-to-be-installed one
16123 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16124 test "$hardcode_minus_L" != no; then
16125 # Linking always hardcodes the temporary library directory.
16126 hardcode_action=relink
16127 else
16128 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16129 hardcode_action=immediate
16130 fi
16131else
16132 # We cannot hardcode anything, or else we can only hardcode existing
16133 # directories.
16134 hardcode_action=unsupported
16135fi
16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16137$as_echo "$hardcode_action" >&6; }
16138
16139if test "$hardcode_action" = relink ||
16140 test "$inherit_rpath" = yes; then
16141 # Fast installation is not supported
16142 enable_fast_install=no
16143elif test "$shlibpath_overrides_runpath" = yes ||
16144 test "$enable_shared" = no; then
16145 # Fast installation is not necessary
16146 enable_fast_install=needless
16147fi
16148
16149
16150
16151
16152
16153
16154 if test "x$enable_dlopen" != xyes; then
16155 enable_dlopen=unknown
16156 enable_dlopen_self=unknown
16157 enable_dlopen_self_static=unknown
16158else
16159 lt_cv_dlopen=no
16160 lt_cv_dlopen_libs=
16161
16162 case $host_os in
16163 beos*)
16164 lt_cv_dlopen="load_add_on"
16165 lt_cv_dlopen_libs=
16166 lt_cv_dlopen_self=yes
16167 ;;
16168
16169 mingw* | pw32* | cegcc*)
16170 lt_cv_dlopen="LoadLibrary"
16171 lt_cv_dlopen_libs=
16172 ;;
16173
16174 cygwin*)
16175 lt_cv_dlopen="dlopen"
16176 lt_cv_dlopen_libs=
16177 ;;
16178
16179 darwin*)
16180 # if libdl is installed we need to link against it
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16182$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016183if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016184 $as_echo_n "(cached) " >&6
16185else
16186 ac_check_lib_save_LIBS=$LIBS
16187LIBS="-ldl $LIBS"
16188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189/* end confdefs.h. */
16190
16191/* Override any GCC internal prototype to avoid an error.
16192 Use char because int might match the return type of a GCC
16193 builtin and then its argument prototype would still apply. */
16194#ifdef __cplusplus
16195extern "C"
16196#endif
16197char dlopen ();
16198int
16199main ()
16200{
16201return dlopen ();
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_link "$LINENO"; then :
16207 ac_cv_lib_dl_dlopen=yes
16208else
16209 ac_cv_lib_dl_dlopen=no
16210fi
16211rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213LIBS=$ac_check_lib_save_LIBS
16214fi
16215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016217if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16219else
16220
16221 lt_cv_dlopen="dyld"
16222 lt_cv_dlopen_libs=
16223 lt_cv_dlopen_self=yes
16224
16225fi
16226
16227 ;;
16228
16229 *)
16230 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016231if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016232 lt_cv_dlopen="shl_load"
16233else
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16235$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016236if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016237 $as_echo_n "(cached) " >&6
16238else
16239 ac_check_lib_save_LIBS=$LIBS
16240LIBS="-ldld $LIBS"
16241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242/* end confdefs.h. */
16243
16244/* Override any GCC internal prototype to avoid an error.
16245 Use char because int might match the return type of a GCC
16246 builtin and then its argument prototype would still apply. */
16247#ifdef __cplusplus
16248extern "C"
16249#endif
16250char shl_load ();
16251int
16252main ()
16253{
16254return shl_load ();
16255 ;
16256 return 0;
16257}
16258_ACEOF
16259if ac_fn_c_try_link "$LINENO"; then :
16260 ac_cv_lib_dld_shl_load=yes
16261else
16262 ac_cv_lib_dld_shl_load=no
16263fi
16264rm -f core conftest.err conftest.$ac_objext \
16265 conftest$ac_exeext conftest.$ac_ext
16266LIBS=$ac_check_lib_save_LIBS
16267fi
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16269$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016270if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016271 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16272else
16273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016274if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016275 lt_cv_dlopen="dlopen"
16276else
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16278$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016279if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016280 $as_echo_n "(cached) " >&6
16281else
16282 ac_check_lib_save_LIBS=$LIBS
16283LIBS="-ldl $LIBS"
16284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285/* end confdefs.h. */
16286
16287/* Override any GCC internal prototype to avoid an error.
16288 Use char because int might match the return type of a GCC
16289 builtin and then its argument prototype would still apply. */
16290#ifdef __cplusplus
16291extern "C"
16292#endif
16293char dlopen ();
16294int
16295main ()
16296{
16297return dlopen ();
16298 ;
16299 return 0;
16300}
16301_ACEOF
16302if ac_fn_c_try_link "$LINENO"; then :
16303 ac_cv_lib_dl_dlopen=yes
16304else
16305 ac_cv_lib_dl_dlopen=no
16306fi
16307rm -f core conftest.err conftest.$ac_objext \
16308 conftest$ac_exeext conftest.$ac_ext
16309LIBS=$ac_check_lib_save_LIBS
16310fi
16311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016313if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16315else
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16317$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016318if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016319 $as_echo_n "(cached) " >&6
16320else
16321 ac_check_lib_save_LIBS=$LIBS
16322LIBS="-lsvld $LIBS"
16323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324/* end confdefs.h. */
16325
16326/* Override any GCC internal prototype to avoid an error.
16327 Use char because int might match the return type of a GCC
16328 builtin and then its argument prototype would still apply. */
16329#ifdef __cplusplus
16330extern "C"
16331#endif
16332char dlopen ();
16333int
16334main ()
16335{
16336return dlopen ();
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341if ac_fn_c_try_link "$LINENO"; then :
16342 ac_cv_lib_svld_dlopen=yes
16343else
16344 ac_cv_lib_svld_dlopen=no
16345fi
16346rm -f core conftest.err conftest.$ac_objext \
16347 conftest$ac_exeext conftest.$ac_ext
16348LIBS=$ac_check_lib_save_LIBS
16349fi
16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16351$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016352if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016353 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16354else
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16356$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016357if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016358 $as_echo_n "(cached) " >&6
16359else
16360 ac_check_lib_save_LIBS=$LIBS
16361LIBS="-ldld $LIBS"
16362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363/* end confdefs.h. */
16364
16365/* Override any GCC internal prototype to avoid an error.
16366 Use char because int might match the return type of a GCC
16367 builtin and then its argument prototype would still apply. */
16368#ifdef __cplusplus
16369extern "C"
16370#endif
16371char dld_link ();
16372int
16373main ()
16374{
16375return dld_link ();
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380if ac_fn_c_try_link "$LINENO"; then :
16381 ac_cv_lib_dld_dld_link=yes
16382else
16383 ac_cv_lib_dld_dld_link=no
16384fi
16385rm -f core conftest.err conftest.$ac_objext \
16386 conftest$ac_exeext conftest.$ac_ext
16387LIBS=$ac_check_lib_save_LIBS
16388fi
16389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16390$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016391if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016392 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16393fi
16394
16395
16396fi
16397
16398
16399fi
16400
16401
16402fi
16403
16404
16405fi
16406
16407
16408fi
16409
16410 ;;
16411 esac
16412
16413 if test "x$lt_cv_dlopen" != xno; then
16414 enable_dlopen=yes
16415 else
16416 enable_dlopen=no
16417 fi
16418
16419 case $lt_cv_dlopen in
16420 dlopen)
16421 save_CPPFLAGS="$CPPFLAGS"
16422 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16423
16424 save_LDFLAGS="$LDFLAGS"
16425 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16426
16427 save_LIBS="$LIBS"
16428 LIBS="$lt_cv_dlopen_libs $LIBS"
16429
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16431$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016432if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016433 $as_echo_n "(cached) " >&6
16434else
16435 if test "$cross_compiling" = yes; then :
16436 lt_cv_dlopen_self=cross
16437else
16438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16439 lt_status=$lt_dlunknown
16440 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016441#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016442#include "confdefs.h"
16443
16444#if HAVE_DLFCN_H
16445#include <dlfcn.h>
16446#endif
16447
16448#include <stdio.h>
16449
16450#ifdef RTLD_GLOBAL
16451# define LT_DLGLOBAL RTLD_GLOBAL
16452#else
16453# ifdef DL_GLOBAL
16454# define LT_DLGLOBAL DL_GLOBAL
16455# else
16456# define LT_DLGLOBAL 0
16457# endif
16458#endif
16459
16460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16461 find out it does not work in some platform. */
16462#ifndef LT_DLLAZY_OR_NOW
16463# ifdef RTLD_LAZY
16464# define LT_DLLAZY_OR_NOW RTLD_LAZY
16465# else
16466# ifdef DL_LAZY
16467# define LT_DLLAZY_OR_NOW DL_LAZY
16468# else
16469# ifdef RTLD_NOW
16470# define LT_DLLAZY_OR_NOW RTLD_NOW
16471# else
16472# ifdef DL_NOW
16473# define LT_DLLAZY_OR_NOW DL_NOW
16474# else
16475# define LT_DLLAZY_OR_NOW 0
16476# endif
16477# endif
16478# endif
16479# endif
16480#endif
16481
cristy0c60a692010-11-04 01:09:47 +000016482/* When -fvisbility=hidden is used, assume the code has been annotated
16483 correspondingly for the symbols needed. */
16484#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016485int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016486#endif
16487
cristyda16f162011-02-19 23:52:17 +000016488int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016489int main ()
16490{
16491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16492 int status = $lt_dlunknown;
16493
16494 if (self)
16495 {
16496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016497 else
16498 {
16499 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16500 else puts (dlerror ());
16501 }
cristy73bd4a52010-10-05 11:24:23 +000016502 /* dlclose (self); */
16503 }
16504 else
16505 puts (dlerror ());
16506
16507 return status;
16508}
16509_LT_EOF
16510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16511 (eval $ac_link) 2>&5
16512 ac_status=$?
16513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16515 (./conftest; exit; ) >&5 2>/dev/null
16516 lt_status=$?
16517 case x$lt_status in
16518 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16519 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16520 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16521 esac
16522 else :
16523 # compilation failed
16524 lt_cv_dlopen_self=no
16525 fi
16526fi
16527rm -fr conftest*
16528
16529
16530fi
16531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16532$as_echo "$lt_cv_dlopen_self" >&6; }
16533
16534 if test "x$lt_cv_dlopen_self" = xyes; then
16535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16537$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016538if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016539 $as_echo_n "(cached) " >&6
16540else
16541 if test "$cross_compiling" = yes; then :
16542 lt_cv_dlopen_self_static=cross
16543else
16544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16545 lt_status=$lt_dlunknown
16546 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016547#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016548#include "confdefs.h"
16549
16550#if HAVE_DLFCN_H
16551#include <dlfcn.h>
16552#endif
16553
16554#include <stdio.h>
16555
16556#ifdef RTLD_GLOBAL
16557# define LT_DLGLOBAL RTLD_GLOBAL
16558#else
16559# ifdef DL_GLOBAL
16560# define LT_DLGLOBAL DL_GLOBAL
16561# else
16562# define LT_DLGLOBAL 0
16563# endif
16564#endif
16565
16566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16567 find out it does not work in some platform. */
16568#ifndef LT_DLLAZY_OR_NOW
16569# ifdef RTLD_LAZY
16570# define LT_DLLAZY_OR_NOW RTLD_LAZY
16571# else
16572# ifdef DL_LAZY
16573# define LT_DLLAZY_OR_NOW DL_LAZY
16574# else
16575# ifdef RTLD_NOW
16576# define LT_DLLAZY_OR_NOW RTLD_NOW
16577# else
16578# ifdef DL_NOW
16579# define LT_DLLAZY_OR_NOW DL_NOW
16580# else
16581# define LT_DLLAZY_OR_NOW 0
16582# endif
16583# endif
16584# endif
16585# endif
16586#endif
16587
cristy0c60a692010-11-04 01:09:47 +000016588/* When -fvisbility=hidden is used, assume the code has been annotated
16589 correspondingly for the symbols needed. */
16590#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016591int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016592#endif
16593
cristyda16f162011-02-19 23:52:17 +000016594int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016595int main ()
16596{
16597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16598 int status = $lt_dlunknown;
16599
16600 if (self)
16601 {
16602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016603 else
16604 {
16605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16606 else puts (dlerror ());
16607 }
cristy73bd4a52010-10-05 11:24:23 +000016608 /* dlclose (self); */
16609 }
16610 else
16611 puts (dlerror ());
16612
16613 return status;
16614}
16615_LT_EOF
16616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16617 (eval $ac_link) 2>&5
16618 ac_status=$?
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16621 (./conftest; exit; ) >&5 2>/dev/null
16622 lt_status=$?
16623 case x$lt_status in
16624 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16625 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16626 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16627 esac
16628 else :
16629 # compilation failed
16630 lt_cv_dlopen_self_static=no
16631 fi
16632fi
16633rm -fr conftest*
16634
16635
16636fi
16637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16638$as_echo "$lt_cv_dlopen_self_static" >&6; }
16639 fi
16640
16641 CPPFLAGS="$save_CPPFLAGS"
16642 LDFLAGS="$save_LDFLAGS"
16643 LIBS="$save_LIBS"
16644 ;;
16645 esac
16646
16647 case $lt_cv_dlopen_self in
16648 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16649 *) enable_dlopen_self=unknown ;;
16650 esac
16651
16652 case $lt_cv_dlopen_self_static in
16653 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16654 *) enable_dlopen_self_static=unknown ;;
16655 esac
16656fi
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674striplib=
16675old_striplib=
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16677$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16678if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16679 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16680 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16682$as_echo "yes" >&6; }
16683else
16684# FIXME - insert some real tests, host_os isn't really good enough
16685 case $host_os in
16686 darwin*)
16687 if test -n "$STRIP" ; then
16688 striplib="$STRIP -x"
16689 old_striplib="$STRIP -S"
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691$as_echo "yes" >&6; }
16692 else
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694$as_echo "no" >&6; }
16695 fi
16696 ;;
16697 *)
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699$as_echo "no" >&6; }
16700 ;;
16701 esac
16702fi
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715 # Report which library types will actually be built
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16717$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16719$as_echo "$can_build_shared" >&6; }
16720
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16722$as_echo_n "checking whether to build shared libraries... " >&6; }
16723 test "$can_build_shared" = "no" && enable_shared=no
16724
16725 # On AIX, shared libraries and static libraries use the same namespace, and
16726 # are all built from PIC.
16727 case $host_os in
16728 aix3*)
16729 test "$enable_shared" = yes && enable_static=no
16730 if test -n "$RANLIB"; then
16731 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16732 postinstall_cmds='$RANLIB $lib'
16733 fi
16734 ;;
16735
16736 aix[4-9]*)
16737 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16738 test "$enable_shared" = yes && enable_static=no
16739 fi
16740 ;;
16741 esac
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16743$as_echo "$enable_shared" >&6; }
16744
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16746$as_echo_n "checking whether to build static libraries... " >&6; }
16747 # Make sure either enable_shared or enable_static is yes.
16748 test "$enable_shared" = yes || enable_static=yes
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16750$as_echo "$enable_static" >&6; }
16751
16752
16753
16754
16755fi
16756ac_ext=c
16757ac_cpp='$CPP $CPPFLAGS'
16758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760ac_compiler_gnu=$ac_cv_c_compiler_gnu
16761
16762CC="$lt_save_CC"
16763
cristy0c60a692010-11-04 01:09:47 +000016764 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16765 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16766 (test "X$CXX" != "Xg++"))) ; then
16767 ac_ext=cpp
16768ac_cpp='$CXXCPP $CPPFLAGS'
16769ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16773$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16774if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016775 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016776 $as_echo_n "(cached) " >&6
16777else
16778 # Double quotes because CXXCPP needs to be expanded
16779 for CXXCPP in "$CXX -E" "/lib/cpp"
16780 do
16781 ac_preproc_ok=false
16782for ac_cxx_preproc_warn_flag in '' yes
16783do
16784 # Use a header file that comes with gcc, so configuring glibc
16785 # with a fresh cross-compiler works.
16786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787 # <limits.h> exists even on freestanding compilers.
16788 # On the NeXT, cc -E runs the code through the compiler's parser,
16789 # not just through cpp. "Syntax error" is here to catch this case.
16790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791/* end confdefs.h. */
16792#ifdef __STDC__
16793# include <limits.h>
16794#else
16795# include <assert.h>
16796#endif
16797 Syntax error
16798_ACEOF
16799if ac_fn_cxx_try_cpp "$LINENO"; then :
16800
16801else
16802 # Broken: fails on valid input.
16803continue
16804fi
cristyda16f162011-02-19 23:52:17 +000016805rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016806
16807 # OK, works on sane cases. Now check whether nonexistent headers
16808 # can be detected and how.
16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h. */
16811#include <ac_nonexistent.h>
16812_ACEOF
16813if ac_fn_cxx_try_cpp "$LINENO"; then :
16814 # Broken: success on invalid input.
16815continue
16816else
16817 # Passes both tests.
16818ac_preproc_ok=:
16819break
16820fi
cristyda16f162011-02-19 23:52:17 +000016821rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016822
16823done
16824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016825rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016826if $ac_preproc_ok; then :
16827 break
16828fi
16829
16830 done
16831 ac_cv_prog_CXXCPP=$CXXCPP
16832
16833fi
16834 CXXCPP=$ac_cv_prog_CXXCPP
16835else
16836 ac_cv_prog_CXXCPP=$CXXCPP
16837fi
16838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16839$as_echo "$CXXCPP" >&6; }
16840ac_preproc_ok=false
16841for ac_cxx_preproc_warn_flag in '' yes
16842do
16843 # Use a header file that comes with gcc, so configuring glibc
16844 # with a fresh cross-compiler works.
16845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 # <limits.h> exists even on freestanding compilers.
16847 # On the NeXT, cc -E runs the code through the compiler's parser,
16848 # not just through cpp. "Syntax error" is here to catch this case.
16849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850/* end confdefs.h. */
16851#ifdef __STDC__
16852# include <limits.h>
16853#else
16854# include <assert.h>
16855#endif
16856 Syntax error
16857_ACEOF
16858if ac_fn_cxx_try_cpp "$LINENO"; then :
16859
16860else
16861 # Broken: fails on valid input.
16862continue
16863fi
cristyda16f162011-02-19 23:52:17 +000016864rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016865
16866 # OK, works on sane cases. Now check whether nonexistent headers
16867 # can be detected and how.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869/* end confdefs.h. */
16870#include <ac_nonexistent.h>
16871_ACEOF
16872if ac_fn_cxx_try_cpp "$LINENO"; then :
16873 # Broken: success on invalid input.
16874continue
16875else
16876 # Passes both tests.
16877ac_preproc_ok=:
16878break
16879fi
cristyda16f162011-02-19 23:52:17 +000016880rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016881
16882done
16883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016884rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016885if $ac_preproc_ok; then :
16886
16887else
16888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16890as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16891See \`config.log' for more details" "$LINENO" 5; }
16892fi
16893
16894ac_ext=c
16895ac_cpp='$CPP $CPPFLAGS'
16896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16898ac_compiler_gnu=$ac_cv_c_compiler_gnu
16899
16900else
16901 _lt_caught_CXX_error=yes
16902fi
cristy73bd4a52010-10-05 11:24:23 +000016903
16904ac_ext=cpp
16905ac_cpp='$CXXCPP $CPPFLAGS'
16906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16909
16910archive_cmds_need_lc_CXX=no
16911allow_undefined_flag_CXX=
16912always_export_symbols_CXX=no
16913archive_expsym_cmds_CXX=
16914compiler_needs_object_CXX=no
16915export_dynamic_flag_spec_CXX=
16916hardcode_direct_CXX=no
16917hardcode_direct_absolute_CXX=no
16918hardcode_libdir_flag_spec_CXX=
16919hardcode_libdir_flag_spec_ld_CXX=
16920hardcode_libdir_separator_CXX=
16921hardcode_minus_L_CXX=no
16922hardcode_shlibpath_var_CXX=unsupported
16923hardcode_automatic_CXX=no
16924inherit_rpath_CXX=no
16925module_cmds_CXX=
16926module_expsym_cmds_CXX=
16927link_all_deplibs_CXX=unknown
16928old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016929reload_flag_CXX=$reload_flag
16930reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016931no_undefined_flag_CXX=
16932whole_archive_flag_spec_CXX=
16933enable_shared_with_static_runtimes_CXX=no
16934
16935# Source file extension for C++ test sources.
16936ac_ext=cpp
16937
16938# Object file extension for compiled C++ test sources.
16939objext=o
16940objext_CXX=$objext
16941
16942# No sense in running all these tests if we already determined that
16943# the CXX compiler isn't working. Some variables (like enable_shared)
16944# are currently assumed to apply to all compilers on this platform,
16945# and will be corrupted by setting them based on a non-working compiler.
16946if test "$_lt_caught_CXX_error" != yes; then
16947 # Code to be used in simple compile tests
16948 lt_simple_compile_test_code="int some_variable = 0;"
16949
16950 # Code to be used in simple link tests
16951 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16952
16953 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16954
16955
16956
16957
16958
16959
16960# If no C compiler was specified, use CC.
16961LTCC=${LTCC-"$CC"}
16962
16963# If no C compiler flags were specified, use CFLAGS.
16964LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16965
16966# Allow CC to be a program name with arguments.
16967compiler=$CC
16968
16969
16970 # save warnings/boilerplate of simple test code
16971 ac_outfile=conftest.$ac_objext
16972echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16973eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16974_lt_compiler_boilerplate=`cat conftest.err`
16975$RM conftest*
16976
16977 ac_outfile=conftest.$ac_objext
16978echo "$lt_simple_link_test_code" >conftest.$ac_ext
16979eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16980_lt_linker_boilerplate=`cat conftest.err`
16981$RM -r conftest*
16982
16983
16984 # Allow CC to be a program name with arguments.
16985 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016986 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016987 lt_save_LD=$LD
16988 lt_save_GCC=$GCC
16989 GCC=$GXX
16990 lt_save_with_gnu_ld=$with_gnu_ld
16991 lt_save_path_LD=$lt_cv_path_LD
16992 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16993 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16994 else
16995 $as_unset lt_cv_prog_gnu_ld
16996 fi
16997 if test -n "${lt_cv_path_LDCXX+set}"; then
16998 lt_cv_path_LD=$lt_cv_path_LDCXX
16999 else
17000 $as_unset lt_cv_path_LD
17001 fi
17002 test -z "${LDCXX+set}" || LD=$LDCXX
17003 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017004 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017005 compiler=$CC
17006 compiler_CXX=$CC
17007 for cc_temp in $compiler""; do
17008 case $cc_temp in
17009 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17010 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17011 \-*) ;;
17012 *) break;;
17013 esac
17014done
cristy0c60a692010-11-04 01:09:47 +000017015cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017016
17017
17018 if test -n "$compiler"; then
17019 # We don't want -fno-exception when compiling C++ code, so set the
17020 # no_builtin_flag separately
17021 if test "$GXX" = yes; then
17022 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17023 else
17024 lt_prog_compiler_no_builtin_flag_CXX=
17025 fi
17026
17027 if test "$GXX" = yes; then
17028 # Set up default GNU C++ configuration
17029
17030
17031
17032# Check whether --with-gnu-ld was given.
17033if test "${with_gnu_ld+set}" = set; then :
17034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17035else
17036 with_gnu_ld=no
17037fi
17038
17039ac_prog=ld
17040if test "$GCC" = yes; then
17041 # Check if gcc -print-prog-name=ld gives a path.
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17043$as_echo_n "checking for ld used by $CC... " >&6; }
17044 case $host in
17045 *-*-mingw*)
17046 # gcc leaves a trailing carriage return which upsets mingw
17047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17048 *)
17049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17050 esac
17051 case $ac_prog in
17052 # Accept absolute paths.
17053 [\\/]* | ?:[\\/]*)
17054 re_direlt='/[^/][^/]*/\.\./'
17055 # Canonicalize the pathname of ld
17056 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17057 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17058 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17059 done
17060 test -z "$LD" && LD="$ac_prog"
17061 ;;
17062 "")
17063 # If it fails, then pretend we aren't using GCC.
17064 ac_prog=ld
17065 ;;
17066 *)
17067 # If it is relative, then search for the first ld in PATH.
17068 with_gnu_ld=unknown
17069 ;;
17070 esac
17071elif test "$with_gnu_ld" = yes; then
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17073$as_echo_n "checking for GNU ld... " >&6; }
17074else
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17076$as_echo_n "checking for non-GNU ld... " >&6; }
17077fi
cristyda16f162011-02-19 23:52:17 +000017078if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017079 $as_echo_n "(cached) " >&6
17080else
17081 if test -z "$LD"; then
17082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17083 for ac_dir in $PATH; do
17084 IFS="$lt_save_ifs"
17085 test -z "$ac_dir" && ac_dir=.
17086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17087 lt_cv_path_LD="$ac_dir/$ac_prog"
17088 # Check to see if the program is GNU ld. I'd rather use --version,
17089 # but apparently some variants of GNU ld only accept -v.
17090 # Break only if it was the GNU/non-GNU ld that we prefer.
17091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17092 *GNU* | *'with BFD'*)
17093 test "$with_gnu_ld" != no && break
17094 ;;
17095 *)
17096 test "$with_gnu_ld" != yes && break
17097 ;;
17098 esac
17099 fi
17100 done
17101 IFS="$lt_save_ifs"
17102else
17103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17104fi
17105fi
17106
17107LD="$lt_cv_path_LD"
17108if test -n "$LD"; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17110$as_echo "$LD" >&6; }
17111else
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17113$as_echo "no" >&6; }
17114fi
cristy98dddb52010-11-04 00:30:15 +000017115test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17117$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017118if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017119 $as_echo_n "(cached) " >&6
17120else
17121 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17122case `$LD -v 2>&1 </dev/null` in
17123*GNU* | *'with BFD'*)
17124 lt_cv_prog_gnu_ld=yes
17125 ;;
17126*)
17127 lt_cv_prog_gnu_ld=no
17128 ;;
17129esac
17130fi
17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17132$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17133with_gnu_ld=$lt_cv_prog_gnu_ld
17134
17135
17136
17137
17138
17139
17140
17141 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17142 # archiving commands below assume that GNU ld is being used.
17143 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017144 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17145 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 +000017146
17147 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17148 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17149
17150 # If archive_cmds runs LD, not CC, wlarc should be empty
17151 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17152 # investigate it a little bit more. (MM)
17153 wlarc='${wl}'
17154
17155 # ancient GNU ld didn't support --whole-archive et. al.
17156 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17157 $GREP 'no-whole-archive' > /dev/null; then
17158 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17159 else
17160 whole_archive_flag_spec_CXX=
17161 fi
17162 else
17163 with_gnu_ld=no
17164 wlarc=
17165
17166 # A generic and very simple default shared library creation
17167 # command for GNU C++ for the case where it uses the native
17168 # linker, instead of GNU ld. If possible, this setting should
17169 # overridden to take advantage of the native linker features on
17170 # the platform it is being used on.
17171 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17172 fi
17173
17174 # Commands to make compiler produce verbose output that lists
17175 # what "hidden" libraries, object files and flags are used when
17176 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017178
17179 else
17180 GXX=no
17181 with_gnu_ld=no
17182 wlarc=
17183 fi
17184
17185 # PORTME: fill in a description of your system's C++ link characteristics
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17187$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17188 ld_shlibs_CXX=yes
17189 case $host_os in
17190 aix3*)
17191 # FIXME: insert proper C++ library support
17192 ld_shlibs_CXX=no
17193 ;;
17194 aix[4-9]*)
17195 if test "$host_cpu" = ia64; then
17196 # On IA64, the linker does run time linking by default, so we don't
17197 # have to do anything special.
17198 aix_use_runtimelinking=no
17199 exp_sym_flag='-Bexport'
17200 no_entry_flag=""
17201 else
17202 aix_use_runtimelinking=no
17203
17204 # Test if we are trying to use run time linking or normal
17205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17206 # need to do runtime linking.
17207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17208 for ld_flag in $LDFLAGS; do
17209 case $ld_flag in
17210 *-brtl*)
17211 aix_use_runtimelinking=yes
17212 break
17213 ;;
17214 esac
17215 done
17216 ;;
17217 esac
17218
17219 exp_sym_flag='-bexport'
17220 no_entry_flag='-bnoentry'
17221 fi
17222
17223 # When large executables or shared objects are built, AIX ld can
17224 # have problems creating the table of contents. If linking a library
17225 # or program results in "error TOC overflow" add -mminimal-toc to
17226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17228
17229 archive_cmds_CXX=''
17230 hardcode_direct_CXX=yes
17231 hardcode_direct_absolute_CXX=yes
17232 hardcode_libdir_separator_CXX=':'
17233 link_all_deplibs_CXX=yes
17234 file_list_spec_CXX='${wl}-f,'
17235
17236 if test "$GXX" = yes; then
17237 case $host_os in aix4.[012]|aix4.[012].*)
17238 # We only want to do this on AIX 4.2 and lower, the check
17239 # below for broken collect2 doesn't work under 4.3+
17240 collect2name=`${CC} -print-prog-name=collect2`
17241 if test -f "$collect2name" &&
17242 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17243 then
17244 # We have reworked collect2
17245 :
17246 else
17247 # We have old collect2
17248 hardcode_direct_CXX=unsupported
17249 # It fails to find uninstalled libraries when the uninstalled
17250 # path is not listed in the libpath. Setting hardcode_minus_L
17251 # to unsupported forces relinking
17252 hardcode_minus_L_CXX=yes
17253 hardcode_libdir_flag_spec_CXX='-L$libdir'
17254 hardcode_libdir_separator_CXX=
17255 fi
17256 esac
17257 shared_flag='-shared'
17258 if test "$aix_use_runtimelinking" = yes; then
17259 shared_flag="$shared_flag "'${wl}-G'
17260 fi
17261 else
17262 # not using gcc
17263 if test "$host_cpu" = ia64; then
17264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265 # chokes on -Wl,-G. The following line is correct:
17266 shared_flag='-G'
17267 else
17268 if test "$aix_use_runtimelinking" = yes; then
17269 shared_flag='${wl}-G'
17270 else
17271 shared_flag='${wl}-bM:SRE'
17272 fi
17273 fi
17274 fi
17275
17276 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17277 # It seems that -bexpall does not export symbols beginning with
17278 # underscore (_), so it is better to generate a list of symbols to
17279 # export.
17280 always_export_symbols_CXX=yes
17281 if test "$aix_use_runtimelinking" = yes; then
17282 # Warning - without using the other runtime loading flags (-brtl),
17283 # -berok will link without error, but may produce a broken library.
17284 allow_undefined_flag_CXX='-berok'
17285 # Determine the default libpath from the value encoded in an empty
17286 # executable.
cristyda16f162011-02-19 23:52:17 +000017287 if test "${lt_cv_aix_libpath+set}" = set; then
17288 aix_libpath=$lt_cv_aix_libpath
17289else
17290 if ${lt_cv_aix_libpath__CXX+:} false; then :
17291 $as_echo_n "(cached) " >&6
17292else
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017294/* end confdefs.h. */
17295
17296int
17297main ()
17298{
17299
17300 ;
17301 return 0;
17302}
17303_ACEOF
17304if ac_fn_cxx_try_link "$LINENO"; then :
17305
cristyda16f162011-02-19 23:52:17 +000017306 lt_aix_libpath_sed='
17307 /Import File Strings/,/^$/ {
17308 /^0/ {
17309 s/^0 *\([^ ]*\) *$/\1/
17310 p
17311 }
17312 }'
17313 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314 # Check for a 64-bit object if we didn't find anything.
17315 if test -z "$lt_cv_aix_libpath__CXX"; then
17316 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317 fi
cristy73bd4a52010-10-05 11:24:23 +000017318fi
17319rm -f core conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017321 if test -z "$lt_cv_aix_libpath__CXX"; then
17322 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17323 fi
17324
17325fi
17326
17327 aix_libpath=$lt_cv_aix_libpath__CXX
17328fi
cristy73bd4a52010-10-05 11:24:23 +000017329
17330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17331
cristy0c60a692010-11-04 01:09:47 +000017332 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 +000017333 else
17334 if test "$host_cpu" = ia64; then
17335 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17336 allow_undefined_flag_CXX="-z nodefs"
17337 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"
17338 else
17339 # Determine the default libpath from the value encoded in an
17340 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017341 if test "${lt_cv_aix_libpath+set}" = set; then
17342 aix_libpath=$lt_cv_aix_libpath
17343else
17344 if ${lt_cv_aix_libpath__CXX+:} false; then :
17345 $as_echo_n "(cached) " >&6
17346else
17347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017348/* end confdefs.h. */
17349
17350int
17351main ()
17352{
17353
17354 ;
17355 return 0;
17356}
17357_ACEOF
17358if ac_fn_cxx_try_link "$LINENO"; then :
17359
cristyda16f162011-02-19 23:52:17 +000017360 lt_aix_libpath_sed='
17361 /Import File Strings/,/^$/ {
17362 /^0/ {
17363 s/^0 *\([^ ]*\) *$/\1/
17364 p
17365 }
17366 }'
17367 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368 # Check for a 64-bit object if we didn't find anything.
17369 if test -z "$lt_cv_aix_libpath__CXX"; then
17370 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17371 fi
cristy73bd4a52010-10-05 11:24:23 +000017372fi
17373rm -f core conftest.err conftest.$ac_objext \
17374 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017375 if test -z "$lt_cv_aix_libpath__CXX"; then
17376 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17377 fi
17378
17379fi
17380
17381 aix_libpath=$lt_cv_aix_libpath__CXX
17382fi
cristy73bd4a52010-10-05 11:24:23 +000017383
17384 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17385 # Warning - without using the other run time loading flags,
17386 # -berok will link without error, but may produce a broken library.
17387 no_undefined_flag_CXX=' ${wl}-bernotok'
17388 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017389 if test "$with_gnu_ld" = yes; then
17390 # We only use this code for GNU lds that support --whole-archive.
17391 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17392 else
17393 # Exported symbols can be pulled into shared objects from archives
17394 whole_archive_flag_spec_CXX='$convenience'
17395 fi
cristy73bd4a52010-10-05 11:24:23 +000017396 archive_cmds_need_lc_CXX=yes
17397 # This is similar to how AIX traditionally builds its shared
17398 # libraries.
17399 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'
17400 fi
17401 fi
17402 ;;
17403
17404 beos*)
17405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17406 allow_undefined_flag_CXX=unsupported
17407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408 # support --undefined. This deserves some investigation. FIXME
17409 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410 else
17411 ld_shlibs_CXX=no
17412 fi
17413 ;;
17414
17415 chorus*)
17416 case $cc_basename in
17417 *)
17418 # FIXME: insert proper C++ library support
17419 ld_shlibs_CXX=no
17420 ;;
17421 esac
17422 ;;
17423
17424 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017425 case $GXX,$cc_basename in
17426 ,cl* | no,cl*)
17427 # Native MSVC
17428 # hardcode_libdir_flag_spec is actually meaningless, as there is
17429 # no search path for DLLs.
17430 hardcode_libdir_flag_spec_CXX=' '
17431 allow_undefined_flag_CXX=unsupported
17432 always_export_symbols_CXX=yes
17433 file_list_spec_CXX='@'
17434 # Tell ltmain to make .lib files, not .a files.
17435 libext=lib
17436 # Tell ltmain to make .dll files, not .so files.
17437 shrext_cmds=".dll"
17438 # FIXME: Setting linknames here is a bad hack.
17439 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17442 else
17443 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17444 fi~
17445 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17446 linknames='
17447 # The linker will not automatically build a static lib if we build a DLL.
17448 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17449 enable_shared_with_static_runtimes_CXX=yes
17450 # Don't use ranlib
17451 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17452 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17453 lt_tool_outputfile="@TOOL_OUTPUT@"~
17454 case $lt_outputfile in
17455 *.exe|*.EXE) ;;
17456 *)
17457 lt_outputfile="$lt_outputfile.exe"
17458 lt_tool_outputfile="$lt_tool_outputfile.exe"
17459 ;;
17460 esac~
17461 func_to_tool_file "$lt_outputfile"~
17462 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17463 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17464 $RM "$lt_outputfile.manifest";
17465 fi'
17466 ;;
17467 *)
17468 # g++
17469 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17470 # as there is no search path for DLLs.
17471 hardcode_libdir_flag_spec_CXX='-L$libdir'
17472 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17473 allow_undefined_flag_CXX=unsupported
17474 always_export_symbols_CXX=no
17475 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017476
cristyda16f162011-02-19 23:52:17 +000017477 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17478 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'
17479 # If the export-symbols file already is a .def file (1st line
17480 # is EXPORTS), use it as is; otherwise, prepend...
17481 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17482 cp $export_symbols $output_objdir/$soname.def;
17483 else
17484 echo EXPORTS > $output_objdir/$soname.def;
17485 cat $export_symbols >> $output_objdir/$soname.def;
17486 fi~
17487 $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'
17488 else
17489 ld_shlibs_CXX=no
17490 fi
17491 ;;
17492 esac
17493 ;;
cristy73bd4a52010-10-05 11:24:23 +000017494 darwin* | rhapsody*)
17495
17496
17497 archive_cmds_need_lc_CXX=no
17498 hardcode_direct_CXX=no
17499 hardcode_automatic_CXX=yes
17500 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017501 if test "$lt_cv_ld_force_load" = "yes"; then
17502 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\"`'
17503 else
17504 whole_archive_flag_spec_CXX=''
17505 fi
cristy73bd4a52010-10-05 11:24:23 +000017506 link_all_deplibs_CXX=yes
17507 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17508 case $cc_basename in
17509 ifort*) _lt_dar_can_shared=yes ;;
17510 *) _lt_dar_can_shared=$GCC ;;
17511 esac
17512 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017513 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017514 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}"
17515 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17516 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}"
17517 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}"
17518 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17519 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}"
17520 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}"
17521 fi
17522
17523 else
17524 ld_shlibs_CXX=no
17525 fi
17526
17527 ;;
17528
17529 dgux*)
17530 case $cc_basename in
17531 ec++*)
17532 # FIXME: insert proper C++ library support
17533 ld_shlibs_CXX=no
17534 ;;
17535 ghcx*)
17536 # Green Hills C++ Compiler
17537 # FIXME: insert proper C++ library support
17538 ld_shlibs_CXX=no
17539 ;;
17540 *)
17541 # FIXME: insert proper C++ library support
17542 ld_shlibs_CXX=no
17543 ;;
17544 esac
17545 ;;
17546
17547 freebsd[12]*)
17548 # C++ shared libraries reported to be fairly broken before
17549 # switch to ELF
17550 ld_shlibs_CXX=no
17551 ;;
17552
17553 freebsd-elf*)
17554 archive_cmds_need_lc_CXX=no
17555 ;;
17556
17557 freebsd* | dragonfly*)
17558 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17559 # conventions
17560 ld_shlibs_CXX=yes
17561 ;;
17562
17563 gnu*)
17564 ;;
17565
cristy0c60a692010-11-04 01:09:47 +000017566 haiku*)
17567 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568 link_all_deplibs_CXX=yes
17569 ;;
17570
cristy73bd4a52010-10-05 11:24:23 +000017571 hpux9*)
17572 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17573 hardcode_libdir_separator_CXX=:
17574 export_dynamic_flag_spec_CXX='${wl}-E'
17575 hardcode_direct_CXX=yes
17576 hardcode_minus_L_CXX=yes # Not in the search PATH,
17577 # but as the default
17578 # location of the library.
17579
17580 case $cc_basename in
17581 CC*)
17582 # FIXME: insert proper C++ library support
17583 ld_shlibs_CXX=no
17584 ;;
17585 aCC*)
17586 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'
17587 # Commands to make compiler produce verbose output that lists
17588 # what "hidden" libraries, object files and flags are used when
17589 # linking a shared library.
17590 #
17591 # There doesn't appear to be a way to prevent this compiler from
17592 # explicitly linking system object files so we need to strip them
17593 # from the output so that they don't get included in the library
17594 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017595 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 +000017596 ;;
17597 *)
17598 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017599 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 +000017600 else
17601 # FIXME: insert proper C++ library support
17602 ld_shlibs_CXX=no
17603 fi
17604 ;;
17605 esac
17606 ;;
17607
17608 hpux10*|hpux11*)
17609 if test $with_gnu_ld = no; then
17610 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17611 hardcode_libdir_separator_CXX=:
17612
17613 case $host_cpu in
17614 hppa*64*|ia64*)
17615 ;;
17616 *)
17617 export_dynamic_flag_spec_CXX='${wl}-E'
17618 ;;
17619 esac
17620 fi
17621 case $host_cpu in
17622 hppa*64*|ia64*)
17623 hardcode_direct_CXX=no
17624 hardcode_shlibpath_var_CXX=no
17625 ;;
17626 *)
17627 hardcode_direct_CXX=yes
17628 hardcode_direct_absolute_CXX=yes
17629 hardcode_minus_L_CXX=yes # Not in the search PATH,
17630 # but as the default
17631 # location of the library.
17632 ;;
17633 esac
17634
17635 case $cc_basename in
17636 CC*)
17637 # FIXME: insert proper C++ library support
17638 ld_shlibs_CXX=no
17639 ;;
17640 aCC*)
17641 case $host_cpu in
17642 hppa*64*)
17643 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17644 ;;
17645 ia64*)
17646 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17647 ;;
17648 *)
17649 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17650 ;;
17651 esac
17652 # Commands to make compiler produce verbose output that lists
17653 # what "hidden" libraries, object files and flags are used when
17654 # linking a shared library.
17655 #
17656 # There doesn't appear to be a way to prevent this compiler from
17657 # explicitly linking system object files so we need to strip them
17658 # from the output so that they don't get included in the library
17659 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017660 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 +000017661 ;;
17662 *)
17663 if test "$GXX" = yes; then
17664 if test $with_gnu_ld = no; then
17665 case $host_cpu in
17666 hppa*64*)
17667 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17668 ;;
17669 ia64*)
cristyda16f162011-02-19 23:52:17 +000017670 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 +000017671 ;;
17672 *)
cristyda16f162011-02-19 23:52:17 +000017673 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 +000017674 ;;
17675 esac
17676 fi
17677 else
17678 # FIXME: insert proper C++ library support
17679 ld_shlibs_CXX=no
17680 fi
17681 ;;
17682 esac
17683 ;;
17684
17685 interix[3-9]*)
17686 hardcode_direct_CXX=no
17687 hardcode_shlibpath_var_CXX=no
17688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17689 export_dynamic_flag_spec_CXX='${wl}-E'
17690 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17691 # Instead, shared libraries are loaded at an image base (0x10000000 by
17692 # default) and relocated if they conflict, which is a slow very memory
17693 # consuming and fragmenting process. To avoid this, we pick a random,
17694 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17695 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17696 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'
17697 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'
17698 ;;
17699 irix5* | irix6*)
17700 case $cc_basename in
17701 CC*)
17702 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017703 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 +000017704
17705 # Archives containing C++ object files must be created using
17706 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17707 # necessary to make sure instantiated templates are included
17708 # in the archive.
17709 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17710 ;;
17711 *)
17712 if test "$GXX" = yes; then
17713 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017714 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 +000017715 else
cristyda16f162011-02-19 23:52:17 +000017716 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 +000017717 fi
17718 fi
17719 link_all_deplibs_CXX=yes
17720 ;;
17721 esac
17722 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17723 hardcode_libdir_separator_CXX=:
17724 inherit_rpath_CXX=yes
17725 ;;
17726
cristy0c60a692010-11-04 01:09:47 +000017727 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017728 case $cc_basename in
17729 KCC*)
17730 # Kuck and Associates, Inc. (KAI) C++ Compiler
17731
17732 # KCC will only create a shared library if the output file
17733 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17734 # to its proper name (with version) after linking.
17735 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'
17736 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'
17737 # Commands to make compiler produce verbose output that lists
17738 # what "hidden" libraries, object files and flags are used when
17739 # linking a shared library.
17740 #
17741 # There doesn't appear to be a way to prevent this compiler from
17742 # explicitly linking system object files so we need to strip them
17743 # from the output so that they don't get included in the library
17744 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017745 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 +000017746
17747 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17748 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17749
17750 # Archives containing C++ object files must be created using
17751 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17752 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17753 ;;
17754 icpc* | ecpc* )
17755 # Intel C++
17756 with_gnu_ld=yes
17757 # version 8.0 and above of icpc choke on multiply defined symbols
17758 # if we add $predep_objects and $postdep_objects, however 7.1 and
17759 # earlier do not add the objects themselves.
17760 case `$CC -V 2>&1` in
17761 *"Version 7."*)
17762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17763 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'
17764 ;;
17765 *) # Version 8.0 or newer
17766 tmp_idyn=
17767 case $host_cpu in
17768 ia64*) tmp_idyn=' -i_dynamic';;
17769 esac
17770 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771 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'
17772 ;;
17773 esac
17774 archive_cmds_need_lc_CXX=no
17775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17776 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17777 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17778 ;;
17779 pgCC* | pgcpp*)
17780 # Portland Group C++ compiler
17781 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017782 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017783 prelink_cmds_CXX='tpldir=Template.dir~
17784 rm -rf $tpldir~
17785 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017786 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017787 old_archive_cmds_CXX='tpldir=Template.dir~
17788 rm -rf $tpldir~
17789 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017790 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017791 $RANLIB $oldlib'
17792 archive_cmds_CXX='tpldir=Template.dir~
17793 rm -rf $tpldir~
17794 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017795 $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 +000017796 archive_expsym_cmds_CXX='tpldir=Template.dir~
17797 rm -rf $tpldir~
17798 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017799 $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 +000017800 ;;
cristy0c60a692010-11-04 01:09:47 +000017801 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17803 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'
17804 ;;
17805 esac
17806
17807 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017809 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 +000017810 ;;
17811 cxx*)
17812 # Compaq C++
17813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 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'
17815
17816 runpath_var=LD_RUN_PATH
17817 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17818 hardcode_libdir_separator_CXX=:
17819
17820 # Commands to make compiler produce verbose output that lists
17821 # what "hidden" libraries, object files and flags are used when
17822 # linking a shared library.
17823 #
17824 # There doesn't appear to be a way to prevent this compiler from
17825 # explicitly linking system object files so we need to strip them
17826 # from the output so that they don't get included in the library
17827 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017828 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 +000017829 ;;
cristy0c60a692010-11-04 01:09:47 +000017830 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017831 # IBM XL 8.0 on PPC, with GNU ld
17832 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17834 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835 if test "x$supports_anon_versioning" = xyes; then
17836 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17838 echo "local: *; };" >> $output_objdir/$libname.ver~
17839 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17840 fi
17841 ;;
17842 *)
17843 case `$CC -V 2>&1 | sed 5q` in
17844 *Sun\ C*)
17845 # Sun C++ 5.9
17846 no_undefined_flag_CXX=' -zdefs'
17847 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17848 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'
17849 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017850 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 +000017851 compiler_needs_object_CXX=yes
17852
17853 # Not sure whether something based on
17854 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17855 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017856 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017857
17858 # Archives containing C++ object files must be created using
17859 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17860 # necessary to make sure instantiated templates are included
17861 # in the archive.
17862 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17863 ;;
17864 esac
17865 ;;
17866 esac
17867 ;;
17868
17869 lynxos*)
17870 # FIXME: insert proper C++ library support
17871 ld_shlibs_CXX=no
17872 ;;
17873
17874 m88k*)
17875 # FIXME: insert proper C++ library support
17876 ld_shlibs_CXX=no
17877 ;;
17878
17879 mvs*)
17880 case $cc_basename in
17881 cxx*)
17882 # FIXME: insert proper C++ library support
17883 ld_shlibs_CXX=no
17884 ;;
17885 *)
17886 # FIXME: insert proper C++ library support
17887 ld_shlibs_CXX=no
17888 ;;
17889 esac
17890 ;;
17891
17892 netbsd*)
17893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17894 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17895 wlarc=
17896 hardcode_libdir_flag_spec_CXX='-R$libdir'
17897 hardcode_direct_CXX=yes
17898 hardcode_shlibpath_var_CXX=no
17899 fi
17900 # Workaround some broken pre-1.5 toolchains
17901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17902 ;;
17903
17904 *nto* | *qnx*)
17905 ld_shlibs_CXX=yes
17906 ;;
17907
17908 openbsd2*)
17909 # C++ shared libraries are fairly broken
17910 ld_shlibs_CXX=no
17911 ;;
17912
17913 openbsd*)
17914 if test -f /usr/libexec/ld.so; then
17915 hardcode_direct_CXX=yes
17916 hardcode_shlibpath_var_CXX=no
17917 hardcode_direct_absolute_CXX=yes
17918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17919 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17922 export_dynamic_flag_spec_CXX='${wl}-E'
17923 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17924 fi
cristy0c60a692010-11-04 01:09:47 +000017925 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017926 else
17927 ld_shlibs_CXX=no
17928 fi
17929 ;;
17930
17931 osf3* | osf4* | osf5*)
17932 case $cc_basename in
17933 KCC*)
17934 # Kuck and Associates, Inc. (KAI) C++ Compiler
17935
17936 # KCC will only create a shared library if the output file
17937 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17938 # to its proper name (with version) after linking.
17939 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'
17940
17941 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17942 hardcode_libdir_separator_CXX=:
17943
17944 # Archives containing C++ object files must be created using
17945 # the KAI C++ compiler.
17946 case $host in
17947 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17948 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17949 esac
17950 ;;
17951 RCC*)
17952 # Rational C++ 2.4.1
17953 # FIXME: insert proper C++ library support
17954 ld_shlibs_CXX=no
17955 ;;
17956 cxx*)
17957 case $host in
17958 osf3*)
17959 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017960 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 +000017961 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17962 ;;
17963 *)
17964 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017965 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 +000017966 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17967 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017968 $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 +000017969 $RM $lib.exp'
17970 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17971 ;;
17972 esac
17973
17974 hardcode_libdir_separator_CXX=:
17975
17976 # Commands to make compiler produce verbose output that lists
17977 # what "hidden" libraries, object files and flags are used when
17978 # linking a shared library.
17979 #
17980 # There doesn't appear to be a way to prevent this compiler from
17981 # explicitly linking system object files so we need to strip them
17982 # from the output so that they don't get included in the library
17983 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017984 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 +000017985 ;;
17986 *)
17987 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17988 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17989 case $host in
17990 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017991 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 +000017992 ;;
17993 *)
cristyda16f162011-02-19 23:52:17 +000017994 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 +000017995 ;;
17996 esac
17997
17998 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17999 hardcode_libdir_separator_CXX=:
18000
18001 # Commands to make compiler produce verbose output that lists
18002 # what "hidden" libraries, object files and flags are used when
18003 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018005
18006 else
18007 # FIXME: insert proper C++ library support
18008 ld_shlibs_CXX=no
18009 fi
18010 ;;
18011 esac
18012 ;;
18013
18014 psos*)
18015 # FIXME: insert proper C++ library support
18016 ld_shlibs_CXX=no
18017 ;;
18018
18019 sunos4*)
18020 case $cc_basename in
18021 CC*)
18022 # Sun C++ 4.x
18023 # FIXME: insert proper C++ library support
18024 ld_shlibs_CXX=no
18025 ;;
18026 lcc*)
18027 # Lucid
18028 # FIXME: insert proper C++ library support
18029 ld_shlibs_CXX=no
18030 ;;
18031 *)
18032 # FIXME: insert proper C++ library support
18033 ld_shlibs_CXX=no
18034 ;;
18035 esac
18036 ;;
18037
18038 solaris*)
18039 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018040 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018041 # Sun C++ 4.2, 5.x and Centerline C++
18042 archive_cmds_need_lc_CXX=yes
18043 no_undefined_flag_CXX=' -zdefs'
18044 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18045 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18046 $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'
18047
18048 hardcode_libdir_flag_spec_CXX='-R$libdir'
18049 hardcode_shlibpath_var_CXX=no
18050 case $host_os in
18051 solaris2.[0-5] | solaris2.[0-5].*) ;;
18052 *)
18053 # The compiler driver will combine and reorder linker options,
18054 # but understands `-z linker_flag'.
18055 # Supported since Solaris 2.6 (maybe 2.5.1?)
18056 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18057 ;;
18058 esac
18059 link_all_deplibs_CXX=yes
18060
cristy0c60a692010-11-04 01:09:47 +000018061 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018062
18063 # Archives containing C++ object files must be created using
18064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18065 # necessary to make sure instantiated templates are included
18066 # in the archive.
18067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18068 ;;
18069 gcx*)
18070 # Green Hills C++ Compiler
18071 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18072
18073 # The C++ compiler must be used to create the archive.
18074 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18075 ;;
18076 *)
18077 # GNU C++ compiler with Solaris linker
18078 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18079 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18080 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018081 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 +000018082 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 +000018083 $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 +000018084
18085 # Commands to make compiler produce verbose output that lists
18086 # what "hidden" libraries, object files and flags are used when
18087 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018089 else
18090 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18091 # platform.
18092 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18093 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18094 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18095
18096 # Commands to make compiler produce verbose output that lists
18097 # what "hidden" libraries, object files and flags are used when
18098 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018099 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018100 fi
18101
18102 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18103 case $host_os in
18104 solaris2.[0-5] | solaris2.[0-5].*) ;;
18105 *)
18106 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18107 ;;
18108 esac
18109 fi
18110 ;;
18111 esac
18112 ;;
18113
18114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18115 no_undefined_flag_CXX='${wl}-z,text'
18116 archive_cmds_need_lc_CXX=no
18117 hardcode_shlibpath_var_CXX=no
18118 runpath_var='LD_RUN_PATH'
18119
18120 case $cc_basename in
18121 CC*)
18122 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124 ;;
18125 *)
18126 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18127 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18128 ;;
18129 esac
18130 ;;
18131
18132 sysv5* | sco3.2v5* | sco5v6*)
18133 # Note: We can NOT use -z defs as we might desire, because we do not
18134 # link with -lc, and that would cause any symbols used from libc to
18135 # always be unresolved, which means just about no library would
18136 # ever link correctly. If we're not using GNU ld we use -z text
18137 # though, which does catch some bad symbols but isn't as heavy-handed
18138 # as -z defs.
18139 no_undefined_flag_CXX='${wl}-z,text'
18140 allow_undefined_flag_CXX='${wl}-z,nodefs'
18141 archive_cmds_need_lc_CXX=no
18142 hardcode_shlibpath_var_CXX=no
18143 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18144 hardcode_libdir_separator_CXX=':'
18145 link_all_deplibs_CXX=yes
18146 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18147 runpath_var='LD_RUN_PATH'
18148
18149 case $cc_basename in
18150 CC*)
18151 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18152 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 +000018153 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18154 '"$old_archive_cmds_CXX"
18155 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18156 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018157 ;;
18158 *)
18159 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18160 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161 ;;
18162 esac
18163 ;;
18164
18165 tandem*)
18166 case $cc_basename in
18167 NCC*)
18168 # NonStop-UX NCC 3.20
18169 # FIXME: insert proper C++ library support
18170 ld_shlibs_CXX=no
18171 ;;
18172 *)
18173 # FIXME: insert proper C++ library support
18174 ld_shlibs_CXX=no
18175 ;;
18176 esac
18177 ;;
18178
18179 vxworks*)
18180 # FIXME: insert proper C++ library support
18181 ld_shlibs_CXX=no
18182 ;;
18183
18184 *)
18185 # FIXME: insert proper C++ library support
18186 ld_shlibs_CXX=no
18187 ;;
18188 esac
18189
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18191$as_echo "$ld_shlibs_CXX" >&6; }
18192 test "$ld_shlibs_CXX" = no && can_build_shared=no
18193
18194 GCC_CXX="$GXX"
18195 LD_CXX="$LD"
18196
18197 ## CAVEAT EMPTOR:
18198 ## There is no encapsulation within the following macros, do not change
18199 ## the running order or otherwise move them around unless you know exactly
18200 ## what you are doing...
18201 # Dependencies to place before and after the object being linked:
18202predep_objects_CXX=
18203postdep_objects_CXX=
18204predeps_CXX=
18205postdeps_CXX=
18206compiler_lib_search_path_CXX=
18207
18208cat > conftest.$ac_ext <<_LT_EOF
18209class Foo
18210{
18211public:
18212 Foo (void) { a = 0; }
18213private:
18214 int a;
18215};
18216_LT_EOF
18217
cristyda16f162011-02-19 23:52:17 +000018218
18219_lt_libdeps_save_CFLAGS=$CFLAGS
18220case "$CC $CFLAGS " in #(
18221*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18222*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18223esac
18224
cristy73bd4a52010-10-05 11:24:23 +000018225if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18226 (eval $ac_compile) 2>&5
18227 ac_status=$?
18228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229 test $ac_status = 0; }; then
18230 # Parse the compiler output and extract the necessary
18231 # objects, libraries and library flags.
18232
18233 # Sentinel used to keep track of whether or not we are before
18234 # the conftest object file.
18235 pre_test_object_deps_done=no
18236
18237 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018238 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018239
18240 -L* | -R* | -l*)
18241 # Some compilers place space between "-{L,R}" and the path.
18242 # Remove the space.
18243 if test $p = "-L" ||
18244 test $p = "-R"; then
18245 prev=$p
18246 continue
cristy73bd4a52010-10-05 11:24:23 +000018247 fi
18248
cristyda16f162011-02-19 23:52:17 +000018249 # Expand the sysroot to ease extracting the directories later.
18250 if test -z "$prev"; then
18251 case $p in
18252 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18253 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18254 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18255 esac
18256 fi
18257 case $p in
18258 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18259 esac
cristy73bd4a52010-10-05 11:24:23 +000018260 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018261 case ${prev} in
18262 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018263 # Internal compiler library paths should come after those
18264 # provided the user. The postdeps already come after the
18265 # user supplied libs so there is no need to process them.
18266 if test -z "$compiler_lib_search_path_CXX"; then
18267 compiler_lib_search_path_CXX="${prev}${p}"
18268 else
18269 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18270 fi
18271 ;;
18272 # The "-l" case would never come before the object being
18273 # linked, so don't bother handling this case.
18274 esac
18275 else
18276 if test -z "$postdeps_CXX"; then
18277 postdeps_CXX="${prev}${p}"
18278 else
18279 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18280 fi
18281 fi
cristyda16f162011-02-19 23:52:17 +000018282 prev=
cristy73bd4a52010-10-05 11:24:23 +000018283 ;;
18284
cristyda16f162011-02-19 23:52:17 +000018285 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018286 *.$objext)
18287 # This assumes that the test object file only shows up
18288 # once in the compiler output.
18289 if test "$p" = "conftest.$objext"; then
18290 pre_test_object_deps_done=yes
18291 continue
18292 fi
18293
18294 if test "$pre_test_object_deps_done" = no; then
18295 if test -z "$predep_objects_CXX"; then
18296 predep_objects_CXX="$p"
18297 else
18298 predep_objects_CXX="$predep_objects_CXX $p"
18299 fi
18300 else
18301 if test -z "$postdep_objects_CXX"; then
18302 postdep_objects_CXX="$p"
18303 else
18304 postdep_objects_CXX="$postdep_objects_CXX $p"
18305 fi
18306 fi
18307 ;;
18308
18309 *) ;; # Ignore the rest.
18310
18311 esac
18312 done
18313
18314 # Clean up.
18315 rm -f a.out a.exe
18316else
18317 echo "libtool.m4: error: problem compiling CXX test program"
18318fi
18319
18320$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018321CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018322
18323# PORTME: override above test on systems where it is broken
18324case $host_os in
18325interix[3-9]*)
18326 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18327 # hack all around it, let's just trust "g++" to DTRT.
18328 predep_objects_CXX=
18329 postdep_objects_CXX=
18330 postdeps_CXX=
18331 ;;
18332
18333linux*)
18334 case `$CC -V 2>&1 | sed 5q` in
18335 *Sun\ C*)
18336 # Sun C++ 5.9
18337
18338 # The more standards-conforming stlport4 library is
18339 # incompatible with the Cstd library. Avoid specifying
18340 # it if it's in CXXFLAGS. Ignore libCrun as
18341 # -library=stlport4 depends on it.
18342 case " $CXX $CXXFLAGS " in
18343 *" -library=stlport4 "*)
18344 solaris_use_stlport4=yes
18345 ;;
18346 esac
18347
18348 if test "$solaris_use_stlport4" != yes; then
18349 postdeps_CXX='-library=Cstd -library=Crun'
18350 fi
18351 ;;
18352 esac
18353 ;;
18354
18355solaris*)
18356 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018357 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018358 # The more standards-conforming stlport4 library is
18359 # incompatible with the Cstd library. Avoid specifying
18360 # it if it's in CXXFLAGS. Ignore libCrun as
18361 # -library=stlport4 depends on it.
18362 case " $CXX $CXXFLAGS " in
18363 *" -library=stlport4 "*)
18364 solaris_use_stlport4=yes
18365 ;;
18366 esac
18367
18368 # Adding this requires a known-good setup of shared libraries for
18369 # Sun compiler versions before 5.6, else PIC objects from an old
18370 # archive will be linked into the output, leading to subtle bugs.
18371 if test "$solaris_use_stlport4" != yes; then
18372 postdeps_CXX='-library=Cstd -library=Crun'
18373 fi
18374 ;;
18375 esac
18376 ;;
18377esac
18378
18379
18380case " $postdeps_CXX " in
18381*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18382esac
18383 compiler_lib_search_dirs_CXX=
18384if test -n "${compiler_lib_search_path_CXX}"; then
18385 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18386fi
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418 lt_prog_compiler_wl_CXX=
18419lt_prog_compiler_pic_CXX=
18420lt_prog_compiler_static_CXX=
18421
cristy73bd4a52010-10-05 11:24:23 +000018422
18423 # C++ specific cases for pic, static, wl, etc.
18424 if test "$GXX" = yes; then
18425 lt_prog_compiler_wl_CXX='-Wl,'
18426 lt_prog_compiler_static_CXX='-static'
18427
18428 case $host_os in
18429 aix*)
18430 # All AIX code is PIC.
18431 if test "$host_cpu" = ia64; then
18432 # AIX 5 now supports IA64 processor
18433 lt_prog_compiler_static_CXX='-Bstatic'
18434 fi
18435 ;;
18436
18437 amigaos*)
18438 case $host_cpu in
18439 powerpc)
18440 # see comment about AmigaOS4 .so support
18441 lt_prog_compiler_pic_CXX='-fPIC'
18442 ;;
18443 m68k)
18444 # FIXME: we need at least 68020 code to build shared libraries, but
18445 # adding the `-m68020' flag to GCC prevents building anything better,
18446 # like `-m68040'.
18447 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18448 ;;
18449 esac
18450 ;;
18451
18452 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18453 # PIC is the default for these OSes.
18454 ;;
18455 mingw* | cygwin* | os2* | pw32* | cegcc*)
18456 # This hack is so that the source file can tell whether it is being
18457 # built for inclusion in a dll (and should export symbols for example).
18458 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18459 # (--disable-auto-import) libraries
18460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18461 ;;
18462 darwin* | rhapsody*)
18463 # PIC is the default on this platform
18464 # Common symbols not allowed in MH_DYLIB files
18465 lt_prog_compiler_pic_CXX='-fno-common'
18466 ;;
18467 *djgpp*)
18468 # DJGPP does not support shared libraries at all
18469 lt_prog_compiler_pic_CXX=
18470 ;;
cristy0c60a692010-11-04 01:09:47 +000018471 haiku*)
18472 # PIC is the default for Haiku.
18473 # The "-static" flag exists, but is broken.
18474 lt_prog_compiler_static_CXX=
18475 ;;
cristy73bd4a52010-10-05 11:24:23 +000018476 interix[3-9]*)
18477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18478 # Instead, we relocate shared libraries at runtime.
18479 ;;
18480 sysv4*MP*)
18481 if test -d /usr/nec; then
18482 lt_prog_compiler_pic_CXX=-Kconform_pic
18483 fi
18484 ;;
18485 hpux*)
18486 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18487 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18488 # sets the default TLS model and affects inlining.
18489 case $host_cpu in
18490 hppa*64*)
18491 ;;
18492 *)
18493 lt_prog_compiler_pic_CXX='-fPIC'
18494 ;;
18495 esac
18496 ;;
18497 *qnx* | *nto*)
18498 # QNX uses GNU C++, but need to define -shared option too, otherwise
18499 # it will coredump.
18500 lt_prog_compiler_pic_CXX='-fPIC -shared'
18501 ;;
18502 *)
18503 lt_prog_compiler_pic_CXX='-fPIC'
18504 ;;
18505 esac
18506 else
18507 case $host_os in
18508 aix[4-9]*)
18509 # All AIX code is PIC.
18510 if test "$host_cpu" = ia64; then
18511 # AIX 5 now supports IA64 processor
18512 lt_prog_compiler_static_CXX='-Bstatic'
18513 else
18514 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18515 fi
18516 ;;
18517 chorus*)
18518 case $cc_basename in
18519 cxch68*)
18520 # Green Hills C++ Compiler
18521 # _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"
18522 ;;
18523 esac
18524 ;;
cristyda16f162011-02-19 23:52:17 +000018525 mingw* | cygwin* | os2* | pw32* | cegcc*)
18526 # This hack is so that the source file can tell whether it is being
18527 # built for inclusion in a dll (and should export symbols for example).
18528 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18529 ;;
cristy73bd4a52010-10-05 11:24:23 +000018530 dgux*)
18531 case $cc_basename in
18532 ec++*)
18533 lt_prog_compiler_pic_CXX='-KPIC'
18534 ;;
18535 ghcx*)
18536 # Green Hills C++ Compiler
18537 lt_prog_compiler_pic_CXX='-pic'
18538 ;;
18539 *)
18540 ;;
18541 esac
18542 ;;
18543 freebsd* | dragonfly*)
18544 # FreeBSD uses GNU C++
18545 ;;
18546 hpux9* | hpux10* | hpux11*)
18547 case $cc_basename in
18548 CC*)
18549 lt_prog_compiler_wl_CXX='-Wl,'
18550 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18551 if test "$host_cpu" != ia64; then
18552 lt_prog_compiler_pic_CXX='+Z'
18553 fi
18554 ;;
18555 aCC*)
18556 lt_prog_compiler_wl_CXX='-Wl,'
18557 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18558 case $host_cpu in
18559 hppa*64*|ia64*)
18560 # +Z the default
18561 ;;
18562 *)
18563 lt_prog_compiler_pic_CXX='+Z'
18564 ;;
18565 esac
18566 ;;
18567 *)
18568 ;;
18569 esac
18570 ;;
18571 interix*)
18572 # This is c89, which is MS Visual C++ (no shared libs)
18573 # Anyone wants to do a port?
18574 ;;
18575 irix5* | irix6* | nonstopux*)
18576 case $cc_basename in
18577 CC*)
18578 lt_prog_compiler_wl_CXX='-Wl,'
18579 lt_prog_compiler_static_CXX='-non_shared'
18580 # CC pic flag -KPIC is the default.
18581 ;;
18582 *)
18583 ;;
18584 esac
18585 ;;
cristy0c60a692010-11-04 01:09:47 +000018586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018587 case $cc_basename in
18588 KCC*)
18589 # KAI C++ Compiler
18590 lt_prog_compiler_wl_CXX='--backend -Wl,'
18591 lt_prog_compiler_pic_CXX='-fPIC'
18592 ;;
18593 ecpc* )
18594 # old Intel C++ for x86_64 which still supported -KPIC.
18595 lt_prog_compiler_wl_CXX='-Wl,'
18596 lt_prog_compiler_pic_CXX='-KPIC'
18597 lt_prog_compiler_static_CXX='-static'
18598 ;;
18599 icpc* )
18600 # Intel C++, used to be incompatible with GCC.
18601 # ICC 10 doesn't accept -KPIC any more.
18602 lt_prog_compiler_wl_CXX='-Wl,'
18603 lt_prog_compiler_pic_CXX='-fPIC'
18604 lt_prog_compiler_static_CXX='-static'
18605 ;;
18606 pgCC* | pgcpp*)
18607 # Portland Group C++ compiler
18608 lt_prog_compiler_wl_CXX='-Wl,'
18609 lt_prog_compiler_pic_CXX='-fpic'
18610 lt_prog_compiler_static_CXX='-Bstatic'
18611 ;;
18612 cxx*)
18613 # Compaq C++
18614 # Make sure the PIC flag is empty. It appears that all Alpha
18615 # Linux and Compaq Tru64 Unix objects are PIC.
18616 lt_prog_compiler_pic_CXX=
18617 lt_prog_compiler_static_CXX='-non_shared'
18618 ;;
cristy0c60a692010-11-04 01:09:47 +000018619 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18620 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018621 lt_prog_compiler_wl_CXX='-Wl,'
18622 lt_prog_compiler_pic_CXX='-qpic'
18623 lt_prog_compiler_static_CXX='-qstaticlink'
18624 ;;
18625 *)
18626 case `$CC -V 2>&1 | sed 5q` in
18627 *Sun\ C*)
18628 # Sun C++ 5.9
18629 lt_prog_compiler_pic_CXX='-KPIC'
18630 lt_prog_compiler_static_CXX='-Bstatic'
18631 lt_prog_compiler_wl_CXX='-Qoption ld '
18632 ;;
18633 esac
18634 ;;
18635 esac
18636 ;;
18637 lynxos*)
18638 ;;
18639 m88k*)
18640 ;;
18641 mvs*)
18642 case $cc_basename in
18643 cxx*)
18644 lt_prog_compiler_pic_CXX='-W c,exportall'
18645 ;;
18646 *)
18647 ;;
18648 esac
18649 ;;
18650 netbsd*)
18651 ;;
18652 *qnx* | *nto*)
18653 # QNX uses GNU C++, but need to define -shared option too, otherwise
18654 # it will coredump.
18655 lt_prog_compiler_pic_CXX='-fPIC -shared'
18656 ;;
18657 osf3* | osf4* | osf5*)
18658 case $cc_basename in
18659 KCC*)
18660 lt_prog_compiler_wl_CXX='--backend -Wl,'
18661 ;;
18662 RCC*)
18663 # Rational C++ 2.4.1
18664 lt_prog_compiler_pic_CXX='-pic'
18665 ;;
18666 cxx*)
18667 # Digital/Compaq C++
18668 lt_prog_compiler_wl_CXX='-Wl,'
18669 # Make sure the PIC flag is empty. It appears that all Alpha
18670 # Linux and Compaq Tru64 Unix objects are PIC.
18671 lt_prog_compiler_pic_CXX=
18672 lt_prog_compiler_static_CXX='-non_shared'
18673 ;;
18674 *)
18675 ;;
18676 esac
18677 ;;
18678 psos*)
18679 ;;
18680 solaris*)
18681 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018682 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018683 # Sun C++ 4.2, 5.x and Centerline C++
18684 lt_prog_compiler_pic_CXX='-KPIC'
18685 lt_prog_compiler_static_CXX='-Bstatic'
18686 lt_prog_compiler_wl_CXX='-Qoption ld '
18687 ;;
18688 gcx*)
18689 # Green Hills C++ Compiler
18690 lt_prog_compiler_pic_CXX='-PIC'
18691 ;;
18692 *)
18693 ;;
18694 esac
18695 ;;
18696 sunos4*)
18697 case $cc_basename in
18698 CC*)
18699 # Sun C++ 4.x
18700 lt_prog_compiler_pic_CXX='-pic'
18701 lt_prog_compiler_static_CXX='-Bstatic'
18702 ;;
18703 lcc*)
18704 # Lucid
18705 lt_prog_compiler_pic_CXX='-pic'
18706 ;;
18707 *)
18708 ;;
18709 esac
18710 ;;
18711 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18712 case $cc_basename in
18713 CC*)
18714 lt_prog_compiler_wl_CXX='-Wl,'
18715 lt_prog_compiler_pic_CXX='-KPIC'
18716 lt_prog_compiler_static_CXX='-Bstatic'
18717 ;;
18718 esac
18719 ;;
18720 tandem*)
18721 case $cc_basename in
18722 NCC*)
18723 # NonStop-UX NCC 3.20
18724 lt_prog_compiler_pic_CXX='-KPIC'
18725 ;;
18726 *)
18727 ;;
18728 esac
18729 ;;
18730 vxworks*)
18731 ;;
18732 *)
18733 lt_prog_compiler_can_build_shared_CXX=no
18734 ;;
18735 esac
18736 fi
18737
18738case $host_os in
18739 # For platforms which do not support PIC, -DPIC is meaningless:
18740 *djgpp*)
18741 lt_prog_compiler_pic_CXX=
18742 ;;
18743 *)
18744 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18745 ;;
18746esac
cristy73bd4a52010-10-05 11:24:23 +000018747
cristyda16f162011-02-19 23:52:17 +000018748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18749$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18750if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18751 $as_echo_n "(cached) " >&6
18752else
18753 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18754fi
18755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18756$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18757lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018758
18759#
18760# Check to make sure the PIC flag actually works.
18761#
18762if test -n "$lt_prog_compiler_pic_CXX"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18764$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018765if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018766 $as_echo_n "(cached) " >&6
18767else
18768 lt_cv_prog_compiler_pic_works_CXX=no
18769 ac_outfile=conftest.$ac_objext
18770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18771 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18772 # Insert the option either (1) after the last *FLAGS variable, or
18773 # (2) before a word containing "conftest.", or (3) at the end.
18774 # Note that $ac_compile itself does not contain backslashes and begins
18775 # with a dollar sign (not a hyphen), so the echo should work correctly.
18776 # The option is referenced via a variable to avoid confusing sed.
18777 lt_compile=`echo "$ac_compile" | $SED \
18778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018782 (eval "$lt_compile" 2>conftest.err)
18783 ac_status=$?
18784 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018786 if (exit $ac_status) && test -s "$ac_outfile"; then
18787 # The compiler can only warn and ignore the option if not recognized
18788 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18792 lt_cv_prog_compiler_pic_works_CXX=yes
18793 fi
18794 fi
18795 $RM conftest*
18796
18797fi
18798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18799$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18800
18801if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18802 case $lt_prog_compiler_pic_CXX in
18803 "" | " "*) ;;
18804 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18805 esac
18806else
18807 lt_prog_compiler_pic_CXX=
18808 lt_prog_compiler_can_build_shared_CXX=no
18809fi
18810
18811fi
18812
18813
18814
cristyda16f162011-02-19 23:52:17 +000018815
18816
cristy73bd4a52010-10-05 11:24:23 +000018817#
18818# Check to make sure the static flag actually works.
18819#
18820wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18822$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018823if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018824 $as_echo_n "(cached) " >&6
18825else
18826 lt_cv_prog_compiler_static_works_CXX=no
18827 save_LDFLAGS="$LDFLAGS"
18828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18831 # The linker can only warn and ignore the option if not recognized
18832 # So say no if there are warnings
18833 if test -s conftest.err; then
18834 # Append any errors to the config.log.
18835 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18838 if diff conftest.exp conftest.er2 >/dev/null; then
18839 lt_cv_prog_compiler_static_works_CXX=yes
18840 fi
18841 else
18842 lt_cv_prog_compiler_static_works_CXX=yes
18843 fi
18844 fi
18845 $RM -r conftest*
18846 LDFLAGS="$save_LDFLAGS"
18847
18848fi
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18850$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18851
18852if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18853 :
18854else
18855 lt_prog_compiler_static_CXX=
18856fi
18857
18858
18859
18860
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18862$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018863if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018864 $as_echo_n "(cached) " >&6
18865else
18866 lt_cv_prog_compiler_c_o_CXX=no
18867 $RM -r conftest 2>/dev/null
18868 mkdir conftest
18869 cd conftest
18870 mkdir out
18871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18872
18873 lt_compiler_flag="-o out/conftest2.$ac_objext"
18874 # Insert the option either (1) after the last *FLAGS variable, or
18875 # (2) before a word containing "conftest.", or (3) at the end.
18876 # Note that $ac_compile itself does not contain backslashes and begins
18877 # with a dollar sign (not a hyphen), so the echo should work correctly.
18878 lt_compile=`echo "$ac_compile" | $SED \
18879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18881 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018883 (eval "$lt_compile" 2>out/conftest.err)
18884 ac_status=$?
18885 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18888 then
18889 # The compiler can only warn and ignore the option if not recognized
18890 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18894 lt_cv_prog_compiler_c_o_CXX=yes
18895 fi
18896 fi
18897 chmod u+w . 2>&5
18898 $RM conftest*
18899 # SGI C++ compiler will create directory out/ii_files/ for
18900 # template instantiation
18901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18902 $RM out/* && rmdir out
18903 cd ..
18904 $RM -r conftest
18905 $RM conftest*
18906
18907fi
18908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18909$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18910
18911
18912
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18914$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018915if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018916 $as_echo_n "(cached) " >&6
18917else
18918 lt_cv_prog_compiler_c_o_CXX=no
18919 $RM -r conftest 2>/dev/null
18920 mkdir conftest
18921 cd conftest
18922 mkdir out
18923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18924
18925 lt_compiler_flag="-o out/conftest2.$ac_objext"
18926 # Insert the option either (1) after the last *FLAGS variable, or
18927 # (2) before a word containing "conftest.", or (3) at the end.
18928 # Note that $ac_compile itself does not contain backslashes and begins
18929 # with a dollar sign (not a hyphen), so the echo should work correctly.
18930 lt_compile=`echo "$ac_compile" | $SED \
18931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18933 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018934 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018935 (eval "$lt_compile" 2>out/conftest.err)
18936 ac_status=$?
18937 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018939 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18940 then
18941 # The compiler can only warn and ignore the option if not recognized
18942 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018944 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18945 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18946 lt_cv_prog_compiler_c_o_CXX=yes
18947 fi
18948 fi
18949 chmod u+w . 2>&5
18950 $RM conftest*
18951 # SGI C++ compiler will create directory out/ii_files/ for
18952 # template instantiation
18953 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18954 $RM out/* && rmdir out
18955 cd ..
18956 $RM -r conftest
18957 $RM conftest*
18958
18959fi
18960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18961$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18962
18963
18964
18965
18966hard_links="nottested"
18967if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18968 # do not overwrite the value of need_locks provided by the user
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18970$as_echo_n "checking if we can lock with hard links... " >&6; }
18971 hard_links=yes
18972 $RM conftest*
18973 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18974 touch conftest.a
18975 ln conftest.a conftest.b 2>&5 || hard_links=no
18976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18978$as_echo "$hard_links" >&6; }
18979 if test "$hard_links" = no; then
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18981$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18982 need_locks=warn
18983 fi
18984else
18985 need_locks=no
18986fi
18987
18988
18989
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18991$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18992
18993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018994 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018995 case $host_os in
18996 aix[4-9]*)
18997 # If we're using GNU nm, then we don't want the "-C" option.
18998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018999 # Also, AIX nm treats weak defined symbols like other global defined
19000 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019001 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019002 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 +000019003 else
19004 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'
19005 fi
19006 ;;
19007 pw32*)
19008 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019009 ;;
cristy73bd4a52010-10-05 11:24:23 +000019010 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019011 case $cc_basename in
19012 cl*) ;;
19013 *)
19014 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'
19015 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19016 ;;
19017 esac
19018 ;;
cristy73bd4a52010-10-05 11:24:23 +000019019 *)
19020 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019021 ;;
cristy73bd4a52010-10-05 11:24:23 +000019022 esac
cristy73bd4a52010-10-05 11:24:23 +000019023
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19025$as_echo "$ld_shlibs_CXX" >&6; }
19026test "$ld_shlibs_CXX" = no && can_build_shared=no
19027
19028with_gnu_ld_CXX=$with_gnu_ld
19029
19030
19031
19032
19033
19034
19035#
19036# Do we need to explicitly link libc?
19037#
19038case "x$archive_cmds_need_lc_CXX" in
19039x|xyes)
19040 # Assume -lc should be added
19041 archive_cmds_need_lc_CXX=yes
19042
19043 if test "$enable_shared" = yes && test "$GCC" = yes; then
19044 case $archive_cmds_CXX in
19045 *'~'*)
19046 # FIXME: we may have to deal with multi-command sequences.
19047 ;;
19048 '$CC '*)
19049 # Test whether the compiler implicitly links with -lc since on some
19050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19051 # to ld, don't add -lc before -lgcc.
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19053$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019054if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019055 $as_echo_n "(cached) " >&6
19056else
19057 $RM conftest*
19058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019059
cristy0c60a692010-11-04 01:09:47 +000019060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019061 (eval $ac_compile) 2>&5
19062 ac_status=$?
19063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19064 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019065 soname=conftest
19066 lib=conftest
19067 libobjs=conftest.$ac_objext
19068 deplibs=
19069 wl=$lt_prog_compiler_wl_CXX
19070 pic_flag=$lt_prog_compiler_pic_CXX
19071 compiler_flags=-v
19072 linker_flags=-v
19073 verstring=
19074 output_objdir=.
19075 libname=conftest
19076 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19077 allow_undefined_flag_CXX=
19078 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 +000019079 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19080 ac_status=$?
19081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19082 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019083 then
19084 lt_cv_archive_cmds_need_lc_CXX=no
19085 else
19086 lt_cv_archive_cmds_need_lc_CXX=yes
19087 fi
19088 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19089 else
19090 cat conftest.err 1>&5
19091 fi
19092 $RM conftest*
19093
19094fi
19095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19096$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19097 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019098 ;;
19099 esac
19100 fi
19101 ;;
19102esac
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19168$as_echo_n "checking dynamic linker characteristics... " >&6; }
19169
19170library_names_spec=
19171libname_spec='lib$name'
19172soname_spec=
19173shrext_cmds=".so"
19174postinstall_cmds=
19175postuninstall_cmds=
19176finish_cmds=
19177finish_eval=
19178shlibpath_var=
19179shlibpath_overrides_runpath=unknown
19180version_type=none
19181dynamic_linker="$host_os ld.so"
19182sys_lib_dlsearch_path_spec="/lib /usr/lib"
19183need_lib_prefix=unknown
19184hardcode_into_libs=no
19185
19186# when you set need_version to no, make sure it does not cause -set_version
19187# flags to be left without arguments
19188need_version=unknown
19189
19190case $host_os in
19191aix3*)
19192 version_type=linux
19193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19194 shlibpath_var=LIBPATH
19195
19196 # AIX 3 has no versioning support, so we append a major version to the name.
19197 soname_spec='${libname}${release}${shared_ext}$major'
19198 ;;
19199
19200aix[4-9]*)
19201 version_type=linux
19202 need_lib_prefix=no
19203 need_version=no
19204 hardcode_into_libs=yes
19205 if test "$host_cpu" = ia64; then
19206 # AIX 5 supports IA64
19207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19208 shlibpath_var=LD_LIBRARY_PATH
19209 else
19210 # With GCC up to 2.95.x, collect2 would create an import file
19211 # for dependence libraries. The import file would start with
19212 # the line `#! .'. This would cause the generated library to
19213 # depend on `.', always an invalid library. This was fixed in
19214 # development snapshots of GCC prior to 3.0.
19215 case $host_os in
19216 aix4 | aix4.[01] | aix4.[01].*)
19217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19218 echo ' yes '
19219 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19220 :
19221 else
19222 can_build_shared=no
19223 fi
19224 ;;
19225 esac
19226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19227 # soname into executable. Probably we can add versioning support to
19228 # collect2, so additional links can be useful in future.
19229 if test "$aix_use_runtimelinking" = yes; then
19230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19231 # instead of lib<name>.a to let people know that these are not
19232 # typical AIX shared libraries.
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19234 else
19235 # We preserve .a as extension for shared libraries through AIX4.2
19236 # and later when we are not doing run time linking.
19237 library_names_spec='${libname}${release}.a $libname.a'
19238 soname_spec='${libname}${release}${shared_ext}$major'
19239 fi
19240 shlibpath_var=LIBPATH
19241 fi
19242 ;;
19243
19244amigaos*)
19245 case $host_cpu in
19246 powerpc)
19247 # Since July 2007 AmigaOS4 officially supports .so libraries.
19248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250 ;;
19251 m68k)
19252 library_names_spec='$libname.ixlibrary $libname.a'
19253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019254 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 +000019255 ;;
19256 esac
19257 ;;
19258
19259beos*)
19260 library_names_spec='${libname}${shared_ext}'
19261 dynamic_linker="$host_os ld.so"
19262 shlibpath_var=LIBRARY_PATH
19263 ;;
19264
19265bsdi[45]*)
19266 version_type=linux
19267 need_version=no
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269 soname_spec='${libname}${release}${shared_ext}$major'
19270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19271 shlibpath_var=LD_LIBRARY_PATH
19272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19274 # the default ld.so.conf also contains /usr/contrib/lib and
19275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19276 # libtool to hard-code these into programs
19277 ;;
19278
19279cygwin* | mingw* | pw32* | cegcc*)
19280 version_type=windows
19281 shrext_cmds=".dll"
19282 need_version=no
19283 need_lib_prefix=no
19284
cristyda16f162011-02-19 23:52:17 +000019285 case $GCC,$cc_basename in
19286 yes,*)
19287 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019288 library_names_spec='$libname.dll.a'
19289 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19290 postinstall_cmds='base_file=`basename \${file}`~
19291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19292 dldir=$destdir/`dirname \$dlpath`~
19293 test -d \$dldir || mkdir -p \$dldir~
19294 $install_prog $dir/$dlname \$dldir/$dlname~
19295 chmod a+x \$dldir/$dlname~
19296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19298 fi'
19299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19300 dlpath=$dir/\$dldll~
19301 $RM \$dlpath'
19302 shlibpath_overrides_runpath=yes
19303
19304 case $host_os in
19305 cygwin*)
19306 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019308
cristy73bd4a52010-10-05 11:24:23 +000019309 ;;
19310 mingw* | cegcc*)
19311 # MinGW DLLs use traditional 'lib' prefix
19312 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019313 ;;
19314 pw32*)
19315 # pw32 DLLs use 'pw' prefix rather than 'lib'
19316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19317 ;;
19318 esac
cristyda16f162011-02-19 23:52:17 +000019319 dynamic_linker='Win32 ld.exe'
19320 ;;
19321
19322 *,cl*)
19323 # Native MSVC
19324 libname_spec='$name'
19325 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19326 library_names_spec='${libname}.dll.lib'
19327
19328 case $build_os in
19329 mingw*)
19330 sys_lib_search_path_spec=
19331 lt_save_ifs=$IFS
19332 IFS=';'
19333 for lt_path in $LIB
19334 do
19335 IFS=$lt_save_ifs
19336 # Let DOS variable expansion print the short 8.3 style file name.
19337 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19338 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19339 done
19340 IFS=$lt_save_ifs
19341 # Convert to MSYS style.
19342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19343 ;;
19344 cygwin*)
19345 # Convert to unix form, then to dos form, then back to unix form
19346 # but this time dos style (no spaces!) so that the unix form looks
19347 # like /cygdrive/c/PROGRA~1:/cygdr...
19348 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19349 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19350 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19351 ;;
19352 *)
19353 sys_lib_search_path_spec="$LIB"
19354 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19355 # It is most probably a Windows format PATH.
19356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19357 else
19358 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19359 fi
19360 # FIXME: find the short name or the path components, as spaces are
19361 # common. (e.g. "Program Files" -> "PROGRA~1")
19362 ;;
19363 esac
19364
19365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19366 postinstall_cmds='base_file=`basename \${file}`~
19367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19368 dldir=$destdir/`dirname \$dlpath`~
19369 test -d \$dldir || mkdir -p \$dldir~
19370 $install_prog $dir/$dlname \$dldir/$dlname'
19371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19372 dlpath=$dir/\$dldll~
19373 $RM \$dlpath'
19374 shlibpath_overrides_runpath=yes
19375 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019376 ;;
19377
19378 *)
cristyda16f162011-02-19 23:52:17 +000019379 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019380 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019381 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019382 ;;
19383 esac
cristy73bd4a52010-10-05 11:24:23 +000019384 # FIXME: first we should search . and the directory the executable is in
19385 shlibpath_var=PATH
19386 ;;
19387
19388darwin* | rhapsody*)
19389 dynamic_linker="$host_os dyld"
19390 version_type=darwin
19391 need_lib_prefix=no
19392 need_version=no
19393 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19394 soname_spec='${libname}${release}${major}$shared_ext'
19395 shlibpath_overrides_runpath=yes
19396 shlibpath_var=DYLD_LIBRARY_PATH
19397 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19398
19399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19400 ;;
19401
19402dgux*)
19403 version_type=linux
19404 need_lib_prefix=no
19405 need_version=no
19406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19407 soname_spec='${libname}${release}${shared_ext}$major'
19408 shlibpath_var=LD_LIBRARY_PATH
19409 ;;
19410
19411freebsd1*)
19412 dynamic_linker=no
19413 ;;
19414
19415freebsd* | dragonfly*)
19416 # DragonFly does not have aout. When/if they implement a new
19417 # versioning mechanism, adjust this.
19418 if test -x /usr/bin/objformat; then
19419 objformat=`/usr/bin/objformat`
19420 else
19421 case $host_os in
19422 freebsd[123]*) objformat=aout ;;
19423 *) objformat=elf ;;
19424 esac
19425 fi
19426 version_type=freebsd-$objformat
19427 case $version_type in
19428 freebsd-elf*)
19429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19430 need_version=no
19431 need_lib_prefix=no
19432 ;;
19433 freebsd-*)
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19435 need_version=yes
19436 ;;
19437 esac
19438 shlibpath_var=LD_LIBRARY_PATH
19439 case $host_os in
19440 freebsd2*)
19441 shlibpath_overrides_runpath=yes
19442 ;;
19443 freebsd3.[01]* | freebsdelf3.[01]*)
19444 shlibpath_overrides_runpath=yes
19445 hardcode_into_libs=yes
19446 ;;
19447 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19448 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19449 shlibpath_overrides_runpath=no
19450 hardcode_into_libs=yes
19451 ;;
19452 *) # from 4.6 on, and DragonFly
19453 shlibpath_overrides_runpath=yes
19454 hardcode_into_libs=yes
19455 ;;
19456 esac
19457 ;;
19458
19459gnu*)
19460 version_type=linux
19461 need_lib_prefix=no
19462 need_version=no
19463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19464 soname_spec='${libname}${release}${shared_ext}$major'
19465 shlibpath_var=LD_LIBRARY_PATH
19466 hardcode_into_libs=yes
19467 ;;
19468
cristy0c60a692010-11-04 01:09:47 +000019469haiku*)
19470 version_type=linux
19471 need_lib_prefix=no
19472 need_version=no
19473 dynamic_linker="$host_os runtime_loader"
19474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19475 soname_spec='${libname}${release}${shared_ext}$major'
19476 shlibpath_var=LIBRARY_PATH
19477 shlibpath_overrides_runpath=yes
19478 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19479 hardcode_into_libs=yes
19480 ;;
19481
cristy73bd4a52010-10-05 11:24:23 +000019482hpux9* | hpux10* | hpux11*)
19483 # Give a soname corresponding to the major version so that dld.sl refuses to
19484 # link against other versions.
19485 version_type=sunos
19486 need_lib_prefix=no
19487 need_version=no
19488 case $host_cpu in
19489 ia64*)
19490 shrext_cmds='.so'
19491 hardcode_into_libs=yes
19492 dynamic_linker="$host_os dld.so"
19493 shlibpath_var=LD_LIBRARY_PATH
19494 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19497 if test "X$HPUX_IA64_MODE" = X32; then
19498 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19499 else
19500 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19501 fi
19502 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19503 ;;
19504 hppa*64*)
19505 shrext_cmds='.sl'
19506 hardcode_into_libs=yes
19507 dynamic_linker="$host_os dld.sl"
19508 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19514 ;;
19515 *)
19516 shrext_cmds='.sl'
19517 dynamic_linker="$host_os dld.sl"
19518 shlibpath_var=SHLIB_PATH
19519 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19521 soname_spec='${libname}${release}${shared_ext}$major'
19522 ;;
19523 esac
cristy0c60a692010-11-04 01:09:47 +000019524 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019525 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019526 # or fails outright, so override atomically:
19527 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019528 ;;
19529
19530interix[3-9]*)
19531 version_type=linux
19532 need_lib_prefix=no
19533 need_version=no
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19537 shlibpath_var=LD_LIBRARY_PATH
19538 shlibpath_overrides_runpath=no
19539 hardcode_into_libs=yes
19540 ;;
19541
19542irix5* | irix6* | nonstopux*)
19543 case $host_os in
19544 nonstopux*) version_type=nonstopux ;;
19545 *)
19546 if test "$lt_cv_prog_gnu_ld" = yes; then
19547 version_type=linux
19548 else
19549 version_type=irix
19550 fi ;;
19551 esac
19552 need_lib_prefix=no
19553 need_version=no
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19556 case $host_os in
19557 irix5* | nonstopux*)
19558 libsuff= shlibsuff=
19559 ;;
19560 *)
19561 case $LD in # libtool.m4 will add one of these switches to LD
19562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19563 libsuff= shlibsuff= libmagic=32-bit;;
19564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19565 libsuff=32 shlibsuff=N32 libmagic=N32;;
19566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19568 *) libsuff= shlibsuff= libmagic=never-match;;
19569 esac
19570 ;;
19571 esac
19572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19573 shlibpath_overrides_runpath=no
19574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19576 hardcode_into_libs=yes
19577 ;;
19578
19579# No shared lib support for Linux oldld, aout, or coff.
19580linux*oldld* | linux*aout* | linux*coff*)
19581 dynamic_linker=no
19582 ;;
19583
19584# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019585linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019586 version_type=linux
19587 need_lib_prefix=no
19588 need_version=no
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 soname_spec='${libname}${release}${shared_ext}$major'
19591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019594
cristy73bd4a52010-10-05 11:24:23 +000019595 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019596 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019597 $as_echo_n "(cached) " >&6
19598else
19599 lt_cv_shlibpath_overrides_runpath=no
19600 save_LDFLAGS=$LDFLAGS
19601 save_libdir=$libdir
19602 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19603 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019605/* end confdefs.h. */
19606
19607int
19608main ()
19609{
19610
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615if ac_fn_cxx_try_link "$LINENO"; then :
19616 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019617 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019618fi
19619fi
19620rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019622 LDFLAGS=$save_LDFLAGS
19623 libdir=$save_libdir
19624
19625fi
19626
19627 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019628
19629 # This implies no fast_install, which is unacceptable.
19630 # Some rework will be needed to allow for fast_install
19631 # before this can be enabled.
19632 hardcode_into_libs=yes
19633
19634 # Add ABI-specific directories to the system library path.
19635 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19636
19637 # Append ld.so.conf contents to the search path
19638 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019639 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 +000019640 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019641
cristy73bd4a52010-10-05 11:24:23 +000019642 fi
19643
19644 # We used to test for /lib/ld.so.1 and disable shared libraries on
19645 # powerpc, because MkLinux only supported shared libraries with the
19646 # GNU dynamic linker. Since this was broken with cross compilers,
19647 # most powerpc-linux boxes support dynamic linking these days and
19648 # people can always --disable-shared, the test was removed, and we
19649 # assume the GNU/Linux dynamic linker is in use.
19650 dynamic_linker='GNU/Linux ld.so'
19651 ;;
19652
19653netbsd*)
19654 version_type=sunos
19655 need_lib_prefix=no
19656 need_version=no
19657 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19660 dynamic_linker='NetBSD (a.out) ld.so'
19661 else
19662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19663 soname_spec='${libname}${release}${shared_ext}$major'
19664 dynamic_linker='NetBSD ld.elf_so'
19665 fi
19666 shlibpath_var=LD_LIBRARY_PATH
19667 shlibpath_overrides_runpath=yes
19668 hardcode_into_libs=yes
19669 ;;
19670
19671newsos6)
19672 version_type=linux
19673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19674 shlibpath_var=LD_LIBRARY_PATH
19675 shlibpath_overrides_runpath=yes
19676 ;;
19677
19678*nto* | *qnx*)
19679 version_type=qnx
19680 need_lib_prefix=no
19681 need_version=no
19682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19683 soname_spec='${libname}${release}${shared_ext}$major'
19684 shlibpath_var=LD_LIBRARY_PATH
19685 shlibpath_overrides_runpath=no
19686 hardcode_into_libs=yes
19687 dynamic_linker='ldqnx.so'
19688 ;;
19689
19690openbsd*)
19691 version_type=sunos
19692 sys_lib_dlsearch_path_spec="/usr/lib"
19693 need_lib_prefix=no
19694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19695 case $host_os in
19696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19697 *) need_version=no ;;
19698 esac
19699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19701 shlibpath_var=LD_LIBRARY_PATH
19702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19703 case $host_os in
19704 openbsd2.[89] | openbsd2.[89].*)
19705 shlibpath_overrides_runpath=no
19706 ;;
19707 *)
19708 shlibpath_overrides_runpath=yes
19709 ;;
19710 esac
19711 else
19712 shlibpath_overrides_runpath=yes
19713 fi
19714 ;;
19715
19716os2*)
19717 libname_spec='$name'
19718 shrext_cmds=".dll"
19719 need_lib_prefix=no
19720 library_names_spec='$libname${shared_ext} $libname.a'
19721 dynamic_linker='OS/2 ld.exe'
19722 shlibpath_var=LIBPATH
19723 ;;
19724
19725osf3* | osf4* | osf5*)
19726 version_type=osf
19727 need_lib_prefix=no
19728 need_version=no
19729 soname_spec='${libname}${release}${shared_ext}$major'
19730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19731 shlibpath_var=LD_LIBRARY_PATH
19732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19734 ;;
19735
19736rdos*)
19737 dynamic_linker=no
19738 ;;
19739
19740solaris*)
19741 version_type=linux
19742 need_lib_prefix=no
19743 need_version=no
19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745 soname_spec='${libname}${release}${shared_ext}$major'
19746 shlibpath_var=LD_LIBRARY_PATH
19747 shlibpath_overrides_runpath=yes
19748 hardcode_into_libs=yes
19749 # ldd complains unless libraries are executable
19750 postinstall_cmds='chmod +x $lib'
19751 ;;
19752
19753sunos4*)
19754 version_type=sunos
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19757 shlibpath_var=LD_LIBRARY_PATH
19758 shlibpath_overrides_runpath=yes
19759 if test "$with_gnu_ld" = yes; then
19760 need_lib_prefix=no
19761 fi
19762 need_version=yes
19763 ;;
19764
19765sysv4 | sysv4.3*)
19766 version_type=linux
19767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768 soname_spec='${libname}${release}${shared_ext}$major'
19769 shlibpath_var=LD_LIBRARY_PATH
19770 case $host_vendor in
19771 sni)
19772 shlibpath_overrides_runpath=no
19773 need_lib_prefix=no
19774 runpath_var=LD_RUN_PATH
19775 ;;
19776 siemens)
19777 need_lib_prefix=no
19778 ;;
19779 motorola)
19780 need_lib_prefix=no
19781 need_version=no
19782 shlibpath_overrides_runpath=no
19783 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19784 ;;
19785 esac
19786 ;;
19787
19788sysv4*MP*)
19789 if test -d /usr/nec ;then
19790 version_type=linux
19791 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19792 soname_spec='$libname${shared_ext}.$major'
19793 shlibpath_var=LD_LIBRARY_PATH
19794 fi
19795 ;;
19796
19797sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19798 version_type=freebsd-elf
19799 need_lib_prefix=no
19800 need_version=no
19801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19802 soname_spec='${libname}${release}${shared_ext}$major'
19803 shlibpath_var=LD_LIBRARY_PATH
19804 shlibpath_overrides_runpath=yes
19805 hardcode_into_libs=yes
19806 if test "$with_gnu_ld" = yes; then
19807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19808 else
19809 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19810 case $host_os in
19811 sco3.2v5*)
19812 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19813 ;;
19814 esac
19815 fi
19816 sys_lib_dlsearch_path_spec='/usr/lib'
19817 ;;
19818
19819tpf*)
19820 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19821 version_type=linux
19822 need_lib_prefix=no
19823 need_version=no
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 shlibpath_var=LD_LIBRARY_PATH
19826 shlibpath_overrides_runpath=no
19827 hardcode_into_libs=yes
19828 ;;
19829
19830uts4*)
19831 version_type=linux
19832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833 soname_spec='${libname}${release}${shared_ext}$major'
19834 shlibpath_var=LD_LIBRARY_PATH
19835 ;;
19836
19837*)
19838 dynamic_linker=no
19839 ;;
19840esac
19841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19842$as_echo "$dynamic_linker" >&6; }
19843test "$dynamic_linker" = no && can_build_shared=no
19844
19845variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19846if test "$GCC" = yes; then
19847 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19848fi
19849
19850if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19851 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19852fi
19853if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19854 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19855fi
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
cristy0c60a692010-11-04 01:09:47 +000019892
19893
cristy73bd4a52010-10-05 11:24:23 +000019894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19895$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19896hardcode_action_CXX=
19897if test -n "$hardcode_libdir_flag_spec_CXX" ||
19898 test -n "$runpath_var_CXX" ||
19899 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19900
19901 # We can hardcode non-existent directories.
19902 if test "$hardcode_direct_CXX" != no &&
19903 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19904 # have to relink, otherwise we might link with an installed library
19905 # when we should be linking with a yet-to-be-installed one
19906 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19907 test "$hardcode_minus_L_CXX" != no; then
19908 # Linking always hardcodes the temporary library directory.
19909 hardcode_action_CXX=relink
19910 else
19911 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19912 hardcode_action_CXX=immediate
19913 fi
19914else
19915 # We cannot hardcode anything, or else we can only hardcode existing
19916 # directories.
19917 hardcode_action_CXX=unsupported
19918fi
19919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19920$as_echo "$hardcode_action_CXX" >&6; }
19921
19922if test "$hardcode_action_CXX" = relink ||
19923 test "$inherit_rpath_CXX" = yes; then
19924 # Fast installation is not supported
19925 enable_fast_install=no
19926elif test "$shlibpath_overrides_runpath" = yes ||
19927 test "$enable_shared" = no; then
19928 # Fast installation is not necessary
19929 enable_fast_install=needless
19930fi
19931
19932
19933
19934
19935
19936
19937
19938 fi # test -n "$compiler"
19939
19940 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019941 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019942 LDCXX=$LD
19943 LD=$lt_save_LD
19944 GCC=$lt_save_GCC
19945 with_gnu_ld=$lt_save_with_gnu_ld
19946 lt_cv_path_LDCXX=$lt_cv_path_LD
19947 lt_cv_path_LD=$lt_save_path_LD
19948 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19950fi # test "$_lt_caught_CXX_error" != yes
19951
19952ac_ext=c
19953ac_cpp='$CPP $CPPFLAGS'
19954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970 ac_config_commands="$ac_config_commands libtool"
19971
19972
19973
19974
19975# Only expand once:
19976
19977
19978
cristy3ed852e2009-09-05 21:47:34 +000019979
19980
19981# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019982
19983
19984
19985
19986
19987
19988
cristy73bd4a52010-10-05 11:24:23 +000019989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19990$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019991if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019992 $as_echo_n "(cached) " >&6
19993else
19994
19995module=yes
19996eval libltdl_cv_shlibext=$shrext_cmds
19997
19998fi
19999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20000$as_echo "$libltdl_cv_shlibext" >&6; }
20001if test -n "$libltdl_cv_shlibext"; then
20002
20003cat >>confdefs.h <<_ACEOF
20004#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20005_ACEOF
20006
20007fi
20008
20009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20010$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020011if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020012 $as_echo_n "(cached) " >&6
20013else
20014 lt_cv_module_path_var="$shlibpath_var"
20015fi
20016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20017$as_echo "$lt_cv_module_path_var" >&6; }
20018if test -n "$lt_cv_module_path_var"; then
20019
20020cat >>confdefs.h <<_ACEOF
20021#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20022_ACEOF
20023
20024fi
20025
20026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20027$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020028if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020029 $as_echo_n "(cached) " >&6
20030else
20031 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20032fi
20033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20034$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20035if test -n "$lt_cv_sys_dlsearch_path"; then
20036 sys_dlsearch_path=
20037 for dir in $lt_cv_sys_dlsearch_path; do
20038 if test -z "$sys_dlsearch_path"; then
20039 sys_dlsearch_path="$dir"
20040 else
20041 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20042 fi
20043 done
20044
20045cat >>confdefs.h <<_ACEOF
20046#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20047_ACEOF
20048
20049fi
20050
20051
20052LT_DLLOADERS=
20053
20054
20055ac_ext=c
20056ac_cpp='$CPP $CPPFLAGS'
20057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20059ac_compiler_gnu=$ac_cv_c_compiler_gnu
20060
20061
20062LIBADD_DLOPEN=
20063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20064$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020065if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020066 $as_echo_n "(cached) " >&6
20067else
20068 ac_func_search_save_LIBS=$LIBS
20069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070/* end confdefs.h. */
20071
20072/* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20075#ifdef __cplusplus
20076extern "C"
20077#endif
20078char dlopen ();
20079int
20080main ()
20081{
20082return dlopen ();
20083 ;
20084 return 0;
20085}
20086_ACEOF
20087for ac_lib in '' dl; do
20088 if test -z "$ac_lib"; then
20089 ac_res="none required"
20090 else
20091 ac_res=-l$ac_lib
20092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20093 fi
20094 if ac_fn_c_try_link "$LINENO"; then :
20095 ac_cv_search_dlopen=$ac_res
20096fi
20097rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020099 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020100 break
20101fi
20102done
cristyda16f162011-02-19 23:52:17 +000020103if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020104
20105else
20106 ac_cv_search_dlopen=no
20107fi
20108rm conftest.$ac_ext
20109LIBS=$ac_func_search_save_LIBS
20110fi
20111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20112$as_echo "$ac_cv_search_dlopen" >&6; }
20113ac_res=$ac_cv_search_dlopen
20114if test "$ac_res" != no; then :
20115 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20116
20117$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20118
20119 if test "$ac_cv_search_dlopen" != "none required" ; then
20120 LIBADD_DLOPEN="-ldl"
20121 fi
20122 libltdl_cv_lib_dl_dlopen="yes"
20123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20124else
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126/* end confdefs.h. */
20127#if HAVE_DLFCN_H
20128# include <dlfcn.h>
20129#endif
20130
20131int
20132main ()
20133{
20134dlopen(0, 0);
20135 ;
20136 return 0;
20137}
20138_ACEOF
20139if ac_fn_c_try_link "$LINENO"; then :
20140
20141$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20142
20143 libltdl_cv_func_dlopen="yes"
20144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20145else
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20147$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020148if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020149 $as_echo_n "(cached) " >&6
20150else
20151 ac_check_lib_save_LIBS=$LIBS
20152LIBS="-lsvld $LIBS"
20153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154/* end confdefs.h. */
20155
20156/* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20159#ifdef __cplusplus
20160extern "C"
20161#endif
20162char dlopen ();
20163int
20164main ()
20165{
20166return dlopen ();
20167 ;
20168 return 0;
20169}
20170_ACEOF
20171if ac_fn_c_try_link "$LINENO"; then :
20172 ac_cv_lib_svld_dlopen=yes
20173else
20174 ac_cv_lib_svld_dlopen=no
20175fi
20176rm -f core conftest.err conftest.$ac_objext \
20177 conftest$ac_exeext conftest.$ac_ext
20178LIBS=$ac_check_lib_save_LIBS
20179fi
20180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20181$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020182if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020183
20184$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20185
20186 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20188fi
20189
20190fi
20191rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193fi
20194
20195if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20196then
20197 lt_save_LIBS="$LIBS"
20198 LIBS="$LIBS $LIBADD_DLOPEN"
20199 for ac_func in dlerror
20200do :
20201 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020202if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020203 cat >>confdefs.h <<_ACEOF
20204#define HAVE_DLERROR 1
20205_ACEOF
20206
20207fi
20208done
20209
20210 LIBS="$lt_save_LIBS"
20211fi
20212
20213
20214LIBADD_SHL_LOAD=
20215ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020216if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020217
20218$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20219
20220 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20221else
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20223$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020224if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020225 $as_echo_n "(cached) " >&6
20226else
20227 ac_check_lib_save_LIBS=$LIBS
20228LIBS="-ldld $LIBS"
20229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230/* end confdefs.h. */
20231
20232/* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20235#ifdef __cplusplus
20236extern "C"
20237#endif
20238char shl_load ();
20239int
20240main ()
20241{
20242return shl_load ();
20243 ;
20244 return 0;
20245}
20246_ACEOF
20247if ac_fn_c_try_link "$LINENO"; then :
20248 ac_cv_lib_dld_shl_load=yes
20249else
20250 ac_cv_lib_dld_shl_load=no
20251fi
20252rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254LIBS=$ac_check_lib_save_LIBS
20255fi
20256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20257$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020258if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020259
20260$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20261
20262 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20263 LIBADD_SHL_LOAD="-ldld"
20264fi
20265
20266fi
20267
20268
20269
20270case $host_os in
20271darwin[1567].*)
20272# We only want this for pre-Mac OS X 10.4.
20273 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020274if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020275
20276$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20277
20278 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20279fi
20280
20281 ;;
20282beos*)
20283 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20284 ;;
20285cygwin* | mingw* | os2* | pw32*)
20286 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20287"
cristyda16f162011-02-19 23:52:17 +000020288if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020289 ac_have_decl=1
20290else
20291 ac_have_decl=0
20292fi
20293
20294cat >>confdefs.h <<_ACEOF
20295#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20296_ACEOF
20297
20298 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20299 ;;
20300esac
20301
20302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20303$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020304if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020305 $as_echo_n "(cached) " >&6
20306else
20307 ac_check_lib_save_LIBS=$LIBS
20308LIBS="-ldld $LIBS"
20309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20310/* end confdefs.h. */
20311
20312/* Override any GCC internal prototype to avoid an error.
20313 Use char because int might match the return type of a GCC
20314 builtin and then its argument prototype would still apply. */
20315#ifdef __cplusplus
20316extern "C"
20317#endif
20318char dld_link ();
20319int
20320main ()
20321{
20322return dld_link ();
20323 ;
20324 return 0;
20325}
20326_ACEOF
20327if ac_fn_c_try_link "$LINENO"; then :
20328 ac_cv_lib_dld_dld_link=yes
20329else
20330 ac_cv_lib_dld_dld_link=no
20331fi
20332rm -f core conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334LIBS=$ac_check_lib_save_LIBS
20335fi
20336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20337$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020338if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020339
20340$as_echo "#define HAVE_DLD 1" >>confdefs.h
20341
20342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20343fi
20344
20345
20346
20347
20348LT_DLPREOPEN=
20349if test -n "$LT_DLLOADERS"
20350then
20351 for lt_loader in $LT_DLLOADERS; do
20352 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20353 done
20354
20355$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20356
20357fi
20358
20359
20360LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20361
20362
20363ac_ext=c
20364ac_cpp='$CPP $CPPFLAGS'
20365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20367ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368
20369
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20371$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020372if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020373 $as_echo_n "(cached) " >&6
20374else
20375 lt_cv_sys_symbol_underscore=no
20376 cat > conftest.$ac_ext <<_LT_EOF
20377void nm_test_func(){}
20378int main(){nm_test_func;return 0;}
20379_LT_EOF
20380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20381 (eval $ac_compile) 2>&5
20382 ac_status=$?
20383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384 test $ac_status = 0; }; then
20385 # Now try to grab the symbols.
20386 ac_nlist=conftest.nm
20387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20388 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20389 ac_status=$?
20390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20391 test $ac_status = 0; } && test -s "$ac_nlist"; then
20392 # See whether the symbols have a leading underscore.
20393 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20394 lt_cv_sys_symbol_underscore=yes
20395 else
20396 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20397 :
20398 else
20399 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20400 fi
20401 fi
20402 else
20403 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20404 fi
20405 else
20406 echo "configure: failed program was:" >&5
20407 cat conftest.c >&5
20408 fi
20409 rm -rf conftest*
20410
20411fi
20412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20413$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20414 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20415
20416
20417if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20418 if test x"$libltdl_cv_func_dlopen" = xyes ||
20419 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20421$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020422if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020423 $as_echo_n "(cached) " >&6
20424else
20425 libltdl_cv_need_uscore=unknown
20426 save_LIBS="$LIBS"
20427 LIBS="$LIBS $LIBADD_DLOPEN"
20428 if test "$cross_compiling" = yes; then :
20429 libltdl_cv_need_uscore=cross
20430else
20431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20432 lt_status=$lt_dlunknown
20433 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020434#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020435#include "confdefs.h"
20436
20437#if HAVE_DLFCN_H
20438#include <dlfcn.h>
20439#endif
20440
20441#include <stdio.h>
20442
20443#ifdef RTLD_GLOBAL
20444# define LT_DLGLOBAL RTLD_GLOBAL
20445#else
20446# ifdef DL_GLOBAL
20447# define LT_DLGLOBAL DL_GLOBAL
20448# else
20449# define LT_DLGLOBAL 0
20450# endif
20451#endif
20452
20453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20454 find out it does not work in some platform. */
20455#ifndef LT_DLLAZY_OR_NOW
20456# ifdef RTLD_LAZY
20457# define LT_DLLAZY_OR_NOW RTLD_LAZY
20458# else
20459# ifdef DL_LAZY
20460# define LT_DLLAZY_OR_NOW DL_LAZY
20461# else
20462# ifdef RTLD_NOW
20463# define LT_DLLAZY_OR_NOW RTLD_NOW
20464# else
20465# ifdef DL_NOW
20466# define LT_DLLAZY_OR_NOW DL_NOW
20467# else
20468# define LT_DLLAZY_OR_NOW 0
20469# endif
20470# endif
20471# endif
20472# endif
20473#endif
20474
cristy0c60a692010-11-04 01:09:47 +000020475/* When -fvisbility=hidden is used, assume the code has been annotated
20476 correspondingly for the symbols needed. */
20477#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020478int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020479#endif
20480
cristyda16f162011-02-19 23:52:17 +000020481int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020482int main ()
20483{
20484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20485 int status = $lt_dlunknown;
20486
20487 if (self)
20488 {
20489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020490 else
20491 {
20492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20493 else puts (dlerror ());
20494 }
cristy73bd4a52010-10-05 11:24:23 +000020495 /* dlclose (self); */
20496 }
20497 else
20498 puts (dlerror ());
20499
20500 return status;
20501}
20502_LT_EOF
20503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20504 (eval $ac_link) 2>&5
20505 ac_status=$?
20506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20508 (./conftest; exit; ) >&5 2>/dev/null
20509 lt_status=$?
20510 case x$lt_status in
20511 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20512 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20513 x$lt_dlunknown|x*) ;;
20514 esac
20515 else :
20516 # compilation failed
20517
20518 fi
20519fi
20520rm -fr conftest*
20521
20522 LIBS="$save_LIBS"
20523
20524fi
20525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20526$as_echo "$libltdl_cv_need_uscore" >&6; }
20527 fi
20528fi
20529
20530if test x"$libltdl_cv_need_uscore" = xyes; then
20531
20532$as_echo "#define NEED_USCORE 1" >>confdefs.h
20533
20534fi
20535
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20537$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020538if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020539 $as_echo_n "(cached) " >&6
20540else
20541 # PORTME does your system automatically load deplibs for dlopen?
20542 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20543 # For now, we just catch OSes we know something about -- in the
20544 # future, we'll try test this programmatically.
20545 lt_cv_sys_dlopen_deplibs=unknown
20546 case $host_os in
20547 aix3*|aix4.1.*|aix4.2.*)
20548 # Unknown whether this is true for these versions of AIX, but
20549 # we want this `case' here to explicitly catch those versions.
20550 lt_cv_sys_dlopen_deplibs=unknown
20551 ;;
20552 aix[4-9]*)
20553 lt_cv_sys_dlopen_deplibs=yes
20554 ;;
20555 amigaos*)
20556 case $host_cpu in
20557 powerpc)
20558 lt_cv_sys_dlopen_deplibs=no
20559 ;;
20560 esac
20561 ;;
20562 darwin*)
20563 # Assuming the user has installed a libdl from somewhere, this is true
20564 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20565 lt_cv_sys_dlopen_deplibs=yes
20566 ;;
20567 freebsd* | dragonfly*)
20568 lt_cv_sys_dlopen_deplibs=yes
20569 ;;
cristy0c60a692010-11-04 01:09:47 +000020570 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020571 # GNU and its variants, using gnu ld.so (Glibc)
20572 lt_cv_sys_dlopen_deplibs=yes
20573 ;;
20574 hpux10*|hpux11*)
20575 lt_cv_sys_dlopen_deplibs=yes
20576 ;;
20577 interix*)
20578 lt_cv_sys_dlopen_deplibs=yes
20579 ;;
20580 irix[12345]*|irix6.[01]*)
20581 # Catch all versions of IRIX before 6.2, and indicate that we don't
20582 # know how it worked for any of those versions.
20583 lt_cv_sys_dlopen_deplibs=unknown
20584 ;;
20585 irix*)
20586 # The case above catches anything before 6.2, and it's known that
20587 # at 6.2 and later dlopen does load deplibs.
20588 lt_cv_sys_dlopen_deplibs=yes
20589 ;;
20590 netbsd*)
20591 lt_cv_sys_dlopen_deplibs=yes
20592 ;;
20593 openbsd*)
20594 lt_cv_sys_dlopen_deplibs=yes
20595 ;;
20596 osf[1234]*)
20597 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20598 # it did *not* use an RPATH in a shared library to find objects the
20599 # library depends on, so we explicitly say `no'.
20600 lt_cv_sys_dlopen_deplibs=no
20601 ;;
20602 osf5.0|osf5.0a|osf5.1)
20603 # dlopen *does* load deplibs and with the right loader patch applied
20604 # it even uses RPATH in a shared library to search for shared objects
20605 # that the library depends on, but there's no easy way to know if that
20606 # patch is installed. Since this is the case, all we can really
20607 # say is unknown -- it depends on the patch being installed. If
20608 # it is, this changes to `yes'. Without it, it would be `no'.
20609 lt_cv_sys_dlopen_deplibs=unknown
20610 ;;
20611 osf*)
20612 # the two cases above should catch all versions of osf <= 5.1. Read
20613 # the comments above for what we know about them.
20614 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20615 # is used to find them so we can finally say `yes'.
20616 lt_cv_sys_dlopen_deplibs=yes
20617 ;;
20618 qnx*)
20619 lt_cv_sys_dlopen_deplibs=yes
20620 ;;
20621 solaris*)
20622 lt_cv_sys_dlopen_deplibs=yes
20623 ;;
20624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20625 libltdl_cv_sys_dlopen_deplibs=yes
20626 ;;
20627 esac
20628
20629fi
20630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20631$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20632if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20633
20634$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20635
20636fi
20637
20638:
20639
20640for ac_header in argz.h
20641do :
20642 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20643"
cristyda16f162011-02-19 23:52:17 +000020644if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020645 cat >>confdefs.h <<_ACEOF
20646#define HAVE_ARGZ_H 1
20647_ACEOF
20648
20649fi
20650
20651done
20652
20653
20654ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20655# include <argz.h>
20656#endif
20657"
cristyda16f162011-02-19 23:52:17 +000020658if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020659
20660cat >>confdefs.h <<_ACEOF
20661#define HAVE_ERROR_T 1
20662_ACEOF
20663
20664
20665else
20666
20667$as_echo "#define error_t int" >>confdefs.h
20668
20669
20670$as_echo "#define __error_t_defined 1" >>confdefs.h
20671
20672fi
20673
20674
20675ARGZ_H=
20676for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20677 argz_next argz_stringify
20678do :
20679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020681if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020682 cat >>confdefs.h <<_ACEOF
20683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20684_ACEOF
20685
20686else
20687 ARGZ_H=argz.h;
20688
20689 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20690
20691fi
20692done
20693
20694
20695if test -z "$ARGZ_H"; then :
20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20697$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020698if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020699 $as_echo_n "(cached) " >&6
20700else
20701 case $host_os in #(
20702 *cygwin*)
20703 lt_cv_sys_argz_works=no
20704 if test "$cross_compiling" != no; then
20705 lt_cv_sys_argz_works="guessing no"
20706 else
20707 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20708 save_IFS=$IFS
20709 IFS=-.
20710 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20711 IFS=$save_IFS
20712 lt_os_major=${2-0}
20713 lt_os_minor=${3-0}
20714 lt_os_micro=${4-0}
20715 if test "$lt_os_major" -gt 1 \
20716 || { test "$lt_os_major" -eq 1 \
20717 && { test "$lt_os_minor" -gt 5 \
20718 || { test "$lt_os_minor" -eq 5 \
20719 && test "$lt_os_micro" -gt 24; }; }; }; then
20720 lt_cv_sys_argz_works=yes
20721 fi
20722 fi
20723 ;; #(
20724 *) lt_cv_sys_argz_works=yes ;;
20725 esac
20726fi
20727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20728$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020729 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020730
20731$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20732
20733else
20734 ARGZ_H=argz.h
20735
20736
20737 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20738
20739fi
20740fi
20741
20742
20743
20744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20745$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020746if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020747 $as_echo_n "(cached) " >&6
20748else
20749 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20750 libltdl_cv_preloaded_symbols=yes
20751 else
20752 libltdl_cv_preloaded_symbols=no
20753 fi
20754
20755fi
20756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20757$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20758if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20759
20760$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20761
20762fi
20763
20764# Set options
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776# Check whether --with-included_ltdl was given.
20777if test "${with_included_ltdl+set}" = set; then :
20778 withval=$with_included_ltdl;
20779fi
20780
20781
20782if test "x$with_included_ltdl" != xyes; then
20783 # We are not being forced to use the included libltdl sources, so
20784 # decide whether there is a useful installed version we can use.
20785 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20786
20787"
cristyda16f162011-02-19 23:52:17 +000020788if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020789 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20790 #include <ltdl.h>
20791"
cristyda16f162011-02-19 23:52:17 +000020792if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20794$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020795if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020796 $as_echo_n "(cached) " >&6
20797else
20798 ac_check_lib_save_LIBS=$LIBS
20799LIBS="-lltdl $LIBS"
20800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20801/* end confdefs.h. */
20802
20803/* Override any GCC internal prototype to avoid an error.
20804 Use char because int might match the return type of a GCC
20805 builtin and then its argument prototype would still apply. */
20806#ifdef __cplusplus
20807extern "C"
20808#endif
20809char lt_dladvise_preload ();
20810int
20811main ()
20812{
20813return lt_dladvise_preload ();
20814 ;
20815 return 0;
20816}
20817_ACEOF
20818if ac_fn_c_try_link "$LINENO"; then :
20819 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20820else
20821 ac_cv_lib_ltdl_lt_dladvise_preload=no
20822fi
20823rm -f core conftest.err conftest.$ac_objext \
20824 conftest$ac_exeext conftest.$ac_ext
20825LIBS=$ac_check_lib_save_LIBS
20826fi
20827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20828$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020829if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020830 with_included_ltdl=no
20831else
20832 with_included_ltdl=yes
20833fi
20834
20835else
20836 with_included_ltdl=yes
20837fi
20838
20839else
20840 with_included_ltdl=yes
20841fi
20842
20843
20844fi
20845
20846
20847
20848
20849# Check whether --with-ltdl_include was given.
20850if test "${with_ltdl_include+set}" = set; then :
20851 withval=$with_ltdl_include;
20852fi
20853
20854
20855if test -n "$with_ltdl_include"; then
20856 if test -f "$with_ltdl_include/ltdl.h"; then :
20857 else
cristy98dddb52010-11-04 00:30:15 +000020858 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020859 fi
20860else
20861 with_ltdl_include=no
20862fi
20863
20864
20865# Check whether --with-ltdl_lib was given.
20866if test "${with_ltdl_lib+set}" = set; then :
20867 withval=$with_ltdl_lib;
20868fi
20869
20870
20871if test -n "$with_ltdl_lib"; then
20872 if test -f "$with_ltdl_lib/libltdl.la"; then :
20873 else
cristy98dddb52010-11-04 00:30:15 +000020874 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020875 fi
20876else
20877 with_ltdl_lib=no
20878fi
20879
20880case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20881 ,yes,no,no,)
20882 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020883 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020884 "") enable_ltdl_convenience=yes
20885 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20886esac
20887LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20888LTDLDEPS=$LIBLTDL
20889LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20890
20891
20892
20893
20894
20895# For backwards non-gettext consistent compatibility...
20896INCLTDL="$LTDLINCL"
20897
20898
20899 ;;
20900 ,no,no,no,)
20901 # If the included ltdl is not to be used, then use the
20902 # preinstalled libltdl we found.
20903
20904$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20905
20906 LIBLTDL=-lltdl
20907 LTDLDEPS=
20908 LTDLINCL=
20909 ;;
20910 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020911 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020912 ;;
20913 *) with_included_ltdl=no
20914 LIBLTDL="-L$with_ltdl_lib -lltdl"
20915 LTDLDEPS=
20916 LTDLINCL="-I$with_ltdl_include"
20917 ;;
20918esac
20919INCLTDL="$LTDLINCL"
20920
20921# Report our decision...
20922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20923$as_echo_n "checking where to find libltdl headers... " >&6; }
20924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20925$as_echo "$LTDLINCL" >&6; }
20926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20927$as_echo_n "checking where to find libltdl library... " >&6; }
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20929$as_echo "$LIBLTDL" >&6; }
20930
20931
20932
20933# Check whether --enable-ltdl-install was given.
20934if test "${enable_ltdl_install+set}" = set; then :
20935 enableval=$enable_ltdl_install;
20936fi
20937
20938
20939case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20940 *yes*) ;;
20941 *) enable_ltdl_convenience=yes ;;
20942esac
20943
20944 if test x"${enable_ltdl_install-no}" != xno; then
20945 INSTALL_LTDL_TRUE=
20946 INSTALL_LTDL_FALSE='#'
20947else
20948 INSTALL_LTDL_TRUE='#'
20949 INSTALL_LTDL_FALSE=
20950fi
20951
20952 if test x"${enable_ltdl_convenience-no}" != xno; then
20953 CONVENIENCE_LTDL_TRUE=
20954 CONVENIENCE_LTDL_FALSE='#'
20955else
20956 CONVENIENCE_LTDL_TRUE='#'
20957 CONVENIENCE_LTDL_FALSE=
20958fi
20959
20960
20961
20962
20963
20964
cristy73bd4a52010-10-05 11:24:23 +000020965# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20966# the user used. This is so that ltdl.h can pick up the parent projects
20967# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20968# definitions required by ltdl.c.
20969# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20970
20971
20972
20973for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20974do :
20975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20977"
cristy98dddb52010-11-04 00:30:15 +000020978if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020979 cat >>confdefs.h <<_ACEOF
20980#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20981_ACEOF
20982
20983fi
20984
20985done
20986
20987
20988for ac_func in closedir opendir readdir
20989do :
20990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20991ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020992if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020993 cat >>confdefs.h <<_ACEOF
20994#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20995_ACEOF
20996
20997else
20998
20999
21000 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21001
21002fi
21003done
21004
21005for ac_func in strlcat strlcpy
21006do :
21007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021009if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021010 cat >>confdefs.h <<_ACEOF
21011#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21012_ACEOF
21013
21014else
21015
21016
21017 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21018
21019fi
21020done
21021
21022
21023
21024cat >>confdefs.h <<_ACEOF
21025#define LT_LIBEXT "$libext"
21026_ACEOF
21027
21028
cristyda16f162011-02-19 23:52:17 +000021029name=
21030eval "lt_libprefix=\"$libname_spec\""
21031
21032cat >>confdefs.h <<_ACEOF
21033#define LT_LIBPREFIX "$lt_libprefix"
21034_ACEOF
21035
21036
cristy73bd4a52010-10-05 11:24:23 +000021037name=ltdl
cristyda16f162011-02-19 23:52:17 +000021038eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021039
21040
21041
21042
21043
21044
21045
21046
21047# Only expand once:
21048
21049
cristy3ed852e2009-09-05 21:47:34 +000021050
21051# Check to see if building shared libraries
21052libtool_build_shared_libs='no'
21053if test "$enable_shared" = 'yes'; then
21054 libtool_build_shared_libs='yes'
21055fi
21056
21057# Check to see if building static libraries
21058libtool_build_static_libs='no'
21059if test "$enable_static" = 'yes'; then
21060 libtool_build_static_libs='yes'
21061fi
21062
cristy73bd4a52010-10-05 11:24:23 +000021063 if test "${libtool_build_shared_libs}" = 'yes'; then
21064 WITH_SHARED_LIBS_TRUE=
21065 WITH_SHARED_LIBS_FALSE='#'
21066else
21067 WITH_SHARED_LIBS_TRUE='#'
21068 WITH_SHARED_LIBS_FALSE=
21069fi
21070
cristy3ed852e2009-09-05 21:47:34 +000021071#
21072# Enable support for building loadable modules
21073#
21074
21075# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021076if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021077 withval=$with_modules; with_modules=$withval
21078else
cristy5a1cefd2010-01-06 20:42:35 +000021079 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021080fi
21081
21082
21083# Only allow building loadable modules if we are building shared libraries
21084if test "$with_modules" != 'no' ; then
21085 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021086 { $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 +000021087$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21088 with_modules='no'
21089 fi
21090fi
21091if test "$with_modules" != 'no'; then
21092
cristy8b350f62009-11-15 23:12:43 +000021093$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021094
21095fi
cristy73bd4a52010-10-05 11:24:23 +000021096 if test "$with_modules" != 'no'; then
21097 WITH_MODULES_TRUE=
21098 WITH_MODULES_FALSE='#'
21099else
21100 WITH_MODULES_TRUE='#'
21101 WITH_MODULES_FALSE=
21102fi
21103
cristy3ed852e2009-09-05 21:47:34 +000021104
21105# Enable building/use of libltdl if we are building shared libraries regardless
21106# of whether modules are built or not.
21107with_ltdl='no'
21108if test "$libtool_build_shared_libs" != 'no'; then
21109 with_ltdl='yes'
21110fi
21111
cristy73bd4a52010-10-05 11:24:23 +000021112 if test "$with_ltdl" != 'no'; then
21113 WITH_LTDL_TRUE=
21114 WITH_LTDL_FALSE='#'
21115else
21116 WITH_LTDL_TRUE='#'
21117 WITH_LTDL_FALSE=
21118fi
21119
cristy3ed852e2009-09-05 21:47:34 +000021120if test "$with_ltdl" != 'no'; then
21121
cristy8b350f62009-11-15 23:12:43 +000021122$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021123
21124
21125 # Set DLLDFLAGS
21126 if test X"$enable_shared" = Xyes; then
21127 DLLDFLAGS=-export-dynamic
21128
21129 fi
21130fi
21131
21132# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021133# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021134# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021135if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021136 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21137else
21138 enable_delegate_build='no'
21139fi
21140
21141
21142# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021143if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021144 enableval=$enable_deprecated; enable_deprecated=$enableval
21145else
21146 enable_deprecated='no'
21147fi
21148
21149
21150if test "$enable_deprecated" = 'yes'; then
21151
cristy8b350f62009-11-15 23:12:43 +000021152$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021153
21154else
21155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21156fi
21157
21158# Build a version of ImageMagick which operates uninstalled.
21159# Used to build distributions located via MAGICK_HOME / executable path
21160# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021161if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021162 enableval=$enable_installed; enable_installed=$enableval
21163else
21164 enable_installed='yes'
21165fi
21166
21167
21168if test "$enable_installed" = 'yes'; then
21169
cristy8b350f62009-11-15 23:12:43 +000021170$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021171
21172else
21173 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21174fi
21175
21176# Permit enciphering and deciphering image pixels.
21177# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021178if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021179 enableval=$enable_cipher; enable_cipher=$enableval
21180else
21181 enable_cipher='yes'
21182fi
21183
21184
21185if test "$enable_cipher" = 'yes'; then
21186
cristy8b350f62009-11-15 23:12:43 +000021187$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021188
21189fi
21190
cristy6e3607c2011-09-13 13:59:17 +000021191# Build a zero-configuration version of ImageMagick.
21192# Check whether --enable-zero-configuration was given.
21193if test "${enable_zero_configuration+set}" = set; then :
21194 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021195else
cristy6e3607c2011-09-13 13:59:17 +000021196 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021197fi
21198
21199
cristy6e3607c2011-09-13 13:59:17 +000021200if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021201
cristy6e3607c2011-09-13 13:59:17 +000021202$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021203
cristy81af5702011-09-13 14:20:58 +000021204 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021205fi
21206
21207# Build a high dynamic range version of ImageMagick.
21208# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021209if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021210 enableval=$enable_hdri; enable_hdri=$enableval
21211else
21212 enable_hdri='no'
21213fi
21214
21215
21216MAGICK_HDRI=""
21217if test "$enable_hdri" = 'yes'; then
21218 MAGICK_HDRI="HDRI"
21219
cristy8b350f62009-11-15 23:12:43 +000021220$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021221
cristyfd9dcd42010-08-08 18:07:02 +000021222 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021223fi
21224
cristy3ed852e2009-09-05 21:47:34 +000021225# Build a version of ImageMagick with assert statements.
21226# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021227if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021228 enableval=$enable_assert; enable_assert=$enableval
21229else
21230 enable_assert='yes'
21231fi
21232
21233
21234if test "$enable_assert" = 'no'; then
21235
cristy8b350f62009-11-15 23:12:43 +000021236$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021237
21238fi
21239
cristya448bd22011-10-14 12:38:13 +000021240# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021241
21242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21243$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21244 # Check whether --enable-maintainer-mode was given.
21245if test "${enable_maintainer_mode+set}" = set; then :
21246 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21247else
21248 USE_MAINTAINER_MODE=no
21249fi
21250
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21252$as_echo "$USE_MAINTAINER_MODE" >&6; }
21253 if test $USE_MAINTAINER_MODE = yes; then
21254 MAINTAINER_MODE_TRUE=
21255 MAINTAINER_MODE_FALSE='#'
21256else
21257 MAINTAINER_MODE_TRUE='#'
21258 MAINTAINER_MODE_FALSE=
21259fi
21260
21261 MAINT=$MAINTAINER_MODE_TRUE
21262
21263
cristy3ed852e2009-09-05 21:47:34 +000021264
cristy3ed852e2009-09-05 21:47:34 +000021265# Enable ccmalloc memory debugging support
21266# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021267if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021268 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21269else
21270 enable_ccmalloc='no'
21271fi
21272
21273
21274# Enable Electric Fence memory debugging support
21275# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021276if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021277 enableval=$enable_efence; enable_efence=$enableval
21278else
21279 enable_efence='no'
21280fi
21281
21282
21283# Enable prof-based profiling support
21284# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021285if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021286 enableval=$enable_prof; enable_prof=$enableval
21287else
21288 enable_prof='no'
21289fi
21290
21291
21292# Enable gprof-based profiling support
21293# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021294if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021295 enableval=$enable_gprof; enable_gprof=$enableval
21296else
21297 enable_gprof='no'
21298fi
21299
21300
21301# Enable gcov-based profiling support
21302# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021303if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021304 enableval=$enable_gcov; enable_gcov=$enableval
21305else
21306 enable_gcov='no'
21307fi
21308
21309
21310enable_profiling='no'
21311if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21312 enable_profiling='yes'
21313 if test "$libtool_build_shared_libs" = 'yes'; then
21314 echo "Warning: Can not profile code using shared libraries"
21315 fi
21316fi
21317
21318# Magick API method prefix
21319
21320# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021321if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021322 withval=$with_method_prefix; with_method_prefix=$enableval
21323else
21324 with_method_prefix=''
21325fi
21326
21327
21328if test "$with_method_prefix" != ''; then
21329
21330cat >>confdefs.h <<_ACEOF
21331#define NAMESPACE_PREFIX $with_method_prefix
21332_ACEOF
21333
21334fi
21335
21336# Number of bits in a Quantum
21337
21338# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021339if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021340 withval=$with_quantum_depth; with_quantum_depth=$withval
21341else
21342 with_quantum_depth=16
21343fi
21344
21345
21346if test "$with_quantum_depth" != '8'; then
21347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21348fi
21349
21350case "${with_quantum_depth}" in
21351 8 ) ;;
21352 16 ) ;;
21353 32 ) ;;
21354 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021355 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021356esac
21357QUANTUM_DEPTH="$with_quantum_depth"
21358
21359cat >>confdefs.h <<_ACEOF
21360#define QUANTUM_DEPTH $QUANTUM_DEPTH
21361_ACEOF
21362
21363
21364# Set pixel cache threshold
21365
21366# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021367if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 withval=$with_cache; with_cache=$withval
21369else
21370 with_cache=''
21371fi
21372
21373
21374if test "$with_cache" != ''; then
21375
21376cat >>confdefs.h <<_ACEOF
21377#define PixelCacheThreshold $with_cache
21378_ACEOF
21379
21380 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21381fi
21382
21383# Disable/Enable support for full delegate paths
21384
21385# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021386if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021387 withval=$with_frozenpaths; with_frozenpaths=$withval
21388else
21389 with_frozenpaths='no'
21390fi
21391
21392
21393# Enable build/install of Magick++
21394
21395# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021396if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21398else
21399 with_magick_plus_plus='yes'
21400fi
21401
21402
21403# Disable build/install of PerlMagick.
21404
21405# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021406if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021407 withval=$with_perl; with_perl=$withval
21408else
cristyb5f4e2f2010-04-25 00:49:11 +000021409 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021410fi
21411
21412
21413# Options to pass when configuring PerlMagick
21414
21415# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021416if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021417 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021418fi
21419
21420
cristy3ed852e2009-09-05 21:47:34 +000021421
21422# Enable umem, object-caching memory allocation library.
21423
21424# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021425if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021426 withval=$with_umem; with_umem=$withval
21427else
21428 with_umem='no'
21429fi
21430
21431if test "$with_umem" != 'yes' ; then
21432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21433fi
21434
21435#
21436# Specify path to shared libstdc++ if not in normal location
21437#
21438
21439# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021440if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021441 withval=$with_libstdc; with_libstdc=$withval
21442else
21443 with_libstdc=''
21444fi
21445
21446
21447if test "$with_libstdc" != ''; then
21448 if test -d "$with_libstdc"; then
21449 LIBSTDCLDFLAGS="-L$with_libstdc"
21450 fi
21451fi
21452
21453
21454# Does gcc required -traditional?
21455if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021457$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021458if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021459 $as_echo_n "(cached) " >&6
21460else
21461 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021463/* end confdefs.h. */
21464#include <sgtty.h>
21465Autoconf TIOCGETP
21466_ACEOF
21467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021468 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021469 ac_cv_prog_gcc_traditional=yes
21470else
21471 ac_cv_prog_gcc_traditional=no
21472fi
21473rm -f conftest*
21474
21475
21476 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021478/* end confdefs.h. */
21479#include <termio.h>
21480Autoconf TCGETA
21481_ACEOF
21482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021483 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021484 ac_cv_prog_gcc_traditional=yes
21485fi
21486rm -f conftest*
21487
21488 fi
21489fi
cristy8b350f62009-11-15 23:12:43 +000021490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21492 if test $ac_cv_prog_gcc_traditional = yes; then
21493 CC="$CC -traditional"
21494 fi
21495fi
21496
21497
21498########
21499#
21500# Set defines required to build DLLs and modules using MinGW
21501#
21502########
21503# These options are set for multi-thread DLL module build
21504# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21505# module: _DLL
21506# executable/Magick++: _DLL _MAGICKMOD_
21507MODULE_EXTRA_CPPFLAGS=''
21508LIBRARY_EXTRA_CPPFLAGS=''
21509if test "${native_win32_build}" = 'yes'; then
21510 if test "${libtool_build_shared_libs}" = 'yes'; then
21511 CPPFLAGS="$CPPFLAGS -D_DLL"
21512 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21513 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21514 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21515 if test "$with_modules" = 'yes'; then
21516 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21517 else
21518 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21519 fi
21520 else
21521 CPPFLAGS="$CPPFLAGS -D_LIB"
21522 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21523 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21524 fi
21525 if test "$with_threads" = 'yes'; then
21526 CPPFLAGS="$CPPFLAGS -D_MT"
21527 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21528 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21529 fi
21530fi
21531
21532
21533
21534# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021536$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021537if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021538 $as_echo_n "(cached) " >&6
21539else
cristy8b350f62009-11-15 23:12:43 +000021540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021541/* end confdefs.h. */
21542#include <stdlib.h>
21543#include <stdarg.h>
21544#include <string.h>
21545#include <float.h>
21546
21547int
21548main ()
21549{
21550
21551 ;
21552 return 0;
21553}
21554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021555if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021556 ac_cv_header_stdc=yes
21557else
cristy8b350f62009-11-15 23:12:43 +000021558 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021559fi
cristy3ed852e2009-09-05 21:47:34 +000021560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561
21562if test $ac_cv_header_stdc = yes; then
21563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021565/* end confdefs.h. */
21566#include <string.h>
21567
21568_ACEOF
21569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021570 $EGREP "memchr" >/dev/null 2>&1; then :
21571
cristy3ed852e2009-09-05 21:47:34 +000021572else
21573 ac_cv_header_stdc=no
21574fi
21575rm -f conftest*
21576
21577fi
21578
21579if test $ac_cv_header_stdc = yes; then
21580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021582/* end confdefs.h. */
21583#include <stdlib.h>
21584
21585_ACEOF
21586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021587 $EGREP "free" >/dev/null 2>&1; then :
21588
cristy3ed852e2009-09-05 21:47:34 +000021589else
21590 ac_cv_header_stdc=no
21591fi
21592rm -f conftest*
21593
21594fi
21595
21596if test $ac_cv_header_stdc = yes; then
21597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021598 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021599 :
21600else
cristy8b350f62009-11-15 23:12:43 +000021601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021602/* end confdefs.h. */
21603#include <ctype.h>
21604#include <stdlib.h>
21605#if ((' ' & 0x0FF) == 0x020)
21606# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21607# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21608#else
21609# define ISLOWER(c) \
21610 (('a' <= (c) && (c) <= 'i') \
21611 || ('j' <= (c) && (c) <= 'r') \
21612 || ('s' <= (c) && (c) <= 'z'))
21613# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21614#endif
21615
21616#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21617int
21618main ()
21619{
21620 int i;
21621 for (i = 0; i < 256; i++)
21622 if (XOR (islower (i), ISLOWER (i))
21623 || toupper (i) != TOUPPER (i))
21624 return 2;
21625 return 0;
21626}
21627_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021628if ac_fn_c_try_run "$LINENO"; then :
21629
cristy3ed852e2009-09-05 21:47:34 +000021630else
cristy8b350f62009-11-15 23:12:43 +000021631 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021632fi
cristy8b350f62009-11-15 23:12:43 +000021633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21634 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021635fi
21636
cristy3ed852e2009-09-05 21:47:34 +000021637fi
21638fi
cristy8b350f62009-11-15 23:12:43 +000021639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021640$as_echo "$ac_cv_header_stdc" >&6; }
21641if test $ac_cv_header_stdc = yes; then
21642
cristy8b350f62009-11-15 23:12:43 +000021643$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021644
21645fi
21646
21647if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021648 { $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 +000021649 header files. Compilation cannot proceed. Please install the ANSI C
21650 headers and rerun this script." >&5
21651$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21652 header files. Compilation cannot proceed. Please install the ANSI C
21653 headers and rerun this script." >&2;};
21654fi
cristya0b81c32010-01-22 02:54:33 +000021655
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21657$as_echo_n "checking whether to enable assertions... " >&6; }
21658 # Check whether --enable-assert was given.
21659if test "${enable_assert+set}" = set; then :
21660 enableval=$enable_assert; ac_enable_assert=$enableval
21661 if test "x$enableval" = xno; then :
21662
21663$as_echo "#define NDEBUG 1" >>confdefs.h
21664
21665elif test "x$enableval" != xyes; then :
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21667$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21668 ac_enable_assert=yes
21669fi
21670else
21671 ac_enable_assert=yes
21672fi
21673
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21675$as_echo "$ac_enable_assert" >&6; }
21676
cristy3ed852e2009-09-05 21:47:34 +000021677ac_header_dirent=no
21678for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21679 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021681$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021682if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021683 $as_echo_n "(cached) " >&6
21684else
cristy8b350f62009-11-15 23:12:43 +000021685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021686/* end confdefs.h. */
21687#include <sys/types.h>
21688#include <$ac_hdr>
21689
21690int
21691main ()
21692{
21693if ((DIR *) 0)
21694return 0;
21695 ;
21696 return 0;
21697}
21698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021699if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021700 eval "$as_ac_Header=yes"
21701else
cristy8b350f62009-11-15 23:12:43 +000021702 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021703fi
cristy3ed852e2009-09-05 21:47:34 +000021704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705fi
cristy8b350f62009-11-15 23:12:43 +000021706eval ac_res=\$$as_ac_Header
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021708$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021709if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021710 cat >>confdefs.h <<_ACEOF
21711#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21712_ACEOF
21713
21714ac_header_dirent=$ac_hdr; break
21715fi
21716
21717done
21718# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21719if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021721$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021722if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021723 $as_echo_n "(cached) " >&6
21724else
21725 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021727/* end confdefs.h. */
21728
21729/* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21732#ifdef __cplusplus
21733extern "C"
21734#endif
21735char opendir ();
21736int
21737main ()
21738{
21739return opendir ();
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744for ac_lib in '' dir; do
21745 if test -z "$ac_lib"; then
21746 ac_res="none required"
21747 else
21748 ac_res=-l$ac_lib
21749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21750 fi
cristy8b350f62009-11-15 23:12:43 +000021751 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021753fi
cristy8b350f62009-11-15 23:12:43 +000021754rm -f core conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021756 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021757 break
21758fi
21759done
cristyda16f162011-02-19 23:52:17 +000021760if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021761
cristy3ed852e2009-09-05 21:47:34 +000021762else
21763 ac_cv_search_opendir=no
21764fi
21765rm conftest.$ac_ext
21766LIBS=$ac_func_search_save_LIBS
21767fi
cristy8b350f62009-11-15 23:12:43 +000021768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021769$as_echo "$ac_cv_search_opendir" >&6; }
21770ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021771if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21773
21774fi
21775
21776else
cristy8b350f62009-11-15 23:12:43 +000021777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021778$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021779if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021780 $as_echo_n "(cached) " >&6
21781else
21782 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021784/* end confdefs.h. */
21785
21786/* Override any GCC internal prototype to avoid an error.
21787 Use char because int might match the return type of a GCC
21788 builtin and then its argument prototype would still apply. */
21789#ifdef __cplusplus
21790extern "C"
21791#endif
21792char opendir ();
21793int
21794main ()
21795{
21796return opendir ();
21797 ;
21798 return 0;
21799}
21800_ACEOF
21801for ac_lib in '' x; do
21802 if test -z "$ac_lib"; then
21803 ac_res="none required"
21804 else
21805 ac_res=-l$ac_lib
21806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21807 fi
cristy8b350f62009-11-15 23:12:43 +000021808 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021809 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021810fi
cristy8b350f62009-11-15 23:12:43 +000021811rm -f core conftest.err conftest.$ac_objext \
21812 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021813 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 break
21815fi
21816done
cristyda16f162011-02-19 23:52:17 +000021817if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021818
cristy3ed852e2009-09-05 21:47:34 +000021819else
21820 ac_cv_search_opendir=no
21821fi
21822rm conftest.$ac_ext
21823LIBS=$ac_func_search_save_LIBS
21824fi
cristy8b350f62009-11-15 23:12:43 +000021825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021826$as_echo "$ac_cv_search_opendir" >&6; }
21827ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021828if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21830
21831fi
21832
21833fi
21834
21835
21836# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021837for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021838do :
21839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21840ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021841if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021842 cat >>confdefs.h <<_ACEOF
21843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844_ACEOF
21845
21846fi
21847
21848done
21849
21850
21851########
21852#
21853# Checks for typedefs, structures, and compiler characteristics.
21854#
21855########
21856
cristy8b350f62009-11-15 23:12:43 +000021857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021858$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021859if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021860 $as_echo_n "(cached) " >&6
21861else
cristy8b350f62009-11-15 23:12:43 +000021862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021863/* end confdefs.h. */
21864
21865#include <stdbool.h>
21866#ifndef bool
21867 "error: bool is not defined"
21868#endif
21869#ifndef false
21870 "error: false is not defined"
21871#endif
21872#if false
21873 "error: false is not 0"
21874#endif
21875#ifndef true
21876 "error: true is not defined"
21877#endif
21878#if true != 1
21879 "error: true is not 1"
21880#endif
21881#ifndef __bool_true_false_are_defined
21882 "error: __bool_true_false_are_defined is not defined"
21883#endif
21884
21885 struct s { _Bool s: 1; _Bool t; } s;
21886
21887 char a[true == 1 ? 1 : -1];
21888 char b[false == 0 ? 1 : -1];
21889 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21890 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021891 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021892 char f[(_Bool) 0.0 == false ? 1 : -1];
21893 char g[true];
21894 char h[sizeof (_Bool)];
21895 char i[sizeof s.t];
21896 enum { j = false, k = true, l = false * true, m = true * 256 };
21897 /* The following fails for
21898 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21899 _Bool n[m];
21900 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21901 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021902 /* Catch a bug in an HP-UX C compiler. See
21903 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21904 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21905 */
21906 _Bool q = true;
21907 _Bool *pq = &q;
21908
21909int
21910main ()
21911{
21912
cristyda16f162011-02-19 23:52:17 +000021913 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021914 *pq |= q;
21915 *pq |= ! q;
21916 /* Refer to every declared value, to avoid compiler optimizations. */
21917 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21918 + !m + !n + !o + !p + !q + !pq);
21919
21920 ;
21921 return 0;
21922}
21923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021924if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021925 ac_cv_header_stdbool_h=yes
21926else
cristy8b350f62009-11-15 23:12:43 +000021927 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021928fi
cristy3ed852e2009-09-05 21:47:34 +000021929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930fi
cristy8b350f62009-11-15 23:12:43 +000021931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021932$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021933ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021934if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021935
21936cat >>confdefs.h <<_ACEOF
21937#define HAVE__BOOL 1
21938_ACEOF
21939
21940
21941fi
21942
21943if test $ac_cv_header_stdbool_h = yes; then
21944
cristy8b350f62009-11-15 23:12:43 +000021945$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021946
21947fi
21948
cristy8b350f62009-11-15 23:12:43 +000021949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021950$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021951if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021952 $as_echo_n "(cached) " >&6
21953else
cristy8b350f62009-11-15 23:12:43 +000021954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021955/* end confdefs.h. */
21956
21957int
21958main ()
21959{
21960
21961volatile int x;
21962int * volatile y = (int *) 0;
21963return !x && !y;
21964 ;
21965 return 0;
21966}
21967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021968if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021969 ac_cv_c_volatile=yes
21970else
cristy8b350f62009-11-15 23:12:43 +000021971 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021972fi
cristy3ed852e2009-09-05 21:47:34 +000021973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974fi
cristy8b350f62009-11-15 23:12:43 +000021975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021976$as_echo "$ac_cv_c_volatile" >&6; }
21977if test $ac_cv_c_volatile = no; then
21978
cristy8b350f62009-11-15 23:12:43 +000021979$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021980
21981fi
21982
cristy8b350f62009-11-15 23:12:43 +000021983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021984$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021985if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021986 $as_echo_n "(cached) " >&6
21987else
cristy8b350f62009-11-15 23:12:43 +000021988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021989/* end confdefs.h. */
21990#define x(y) #y
21991
21992char *s = x(teststring);
21993_ACEOF
21994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021995 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021996 ac_cv_c_stringize=no
21997else
21998 ac_cv_c_stringize=yes
21999fi
22000rm -f conftest*
22001
22002fi
cristy8b350f62009-11-15 23:12:43 +000022003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022004$as_echo "$ac_cv_c_stringize" >&6; }
22005if test $ac_cv_c_stringize = yes; then
22006
cristy8b350f62009-11-15 23:12:43 +000022007$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022008
22009fi
22010
cristy8b350f62009-11-15 23:12:43 +000022011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022012$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022013if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 $as_echo_n "(cached) " >&6
22015else
cristy8b350f62009-11-15 23:12:43 +000022016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022017/* end confdefs.h. */
22018#include <sys/types.h>
22019#include <sys/stat.h>
22020
22021#if defined S_ISBLK && defined S_IFDIR
22022extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22023#endif
22024
22025#if defined S_ISBLK && defined S_IFCHR
22026extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22027#endif
22028
22029#if defined S_ISLNK && defined S_IFREG
22030extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22031#endif
22032
22033#if defined S_ISSOCK && defined S_IFREG
22034extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22035#endif
22036
22037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022038if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022039 ac_cv_header_stat_broken=no
22040else
cristy8b350f62009-11-15 23:12:43 +000022041 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022042fi
cristy3ed852e2009-09-05 21:47:34 +000022043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044fi
cristy8b350f62009-11-15 23:12:43 +000022045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022046$as_echo "$ac_cv_header_stat_broken" >&6; }
22047if test $ac_cv_header_stat_broken = yes; then
22048
cristy8b350f62009-11-15 23:12:43 +000022049$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022050
22051fi
22052
cristy8b350f62009-11-15 23:12:43 +000022053{ $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 +000022054$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022055if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022056 $as_echo_n "(cached) " >&6
22057else
cristy8b350f62009-11-15 23:12:43 +000022058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022059/* end confdefs.h. */
22060#include <sys/types.h>
22061#include <sys/time.h>
22062#include <time.h>
22063
22064int
22065main ()
22066{
22067if ((struct tm *) 0)
22068return 0;
22069 ;
22070 return 0;
22071}
22072_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022073if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022074 ac_cv_header_time=yes
22075else
cristy8b350f62009-11-15 23:12:43 +000022076 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022077fi
cristy3ed852e2009-09-05 21:47:34 +000022078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079fi
cristy8b350f62009-11-15 23:12:43 +000022080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022081$as_echo "$ac_cv_header_time" >&6; }
22082if test $ac_cv_header_time = yes; then
22083
cristy8b350f62009-11-15 23:12:43 +000022084$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022085
22086fi
22087
cristy8b350f62009-11-15 23:12:43 +000022088{ $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 +000022089$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022090if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022091 $as_echo_n "(cached) " >&6
22092else
cristy8b350f62009-11-15 23:12:43 +000022093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022094/* end confdefs.h. */
22095#include <sys/types.h>
22096#include <time.h>
22097
22098int
22099main ()
22100{
22101struct tm tm;
22102 int *p = &tm.tm_sec;
22103 return !p;
22104 ;
22105 return 0;
22106}
22107_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022108if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022109 ac_cv_struct_tm=time.h
22110else
cristy8b350f62009-11-15 23:12:43 +000022111 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022112fi
cristy3ed852e2009-09-05 21:47:34 +000022113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114fi
cristy8b350f62009-11-15 23:12:43 +000022115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022116$as_echo "$ac_cv_struct_tm" >&6; }
22117if test $ac_cv_struct_tm = sys/time.h; then
22118
cristy8b350f62009-11-15 23:12:43 +000022119$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022120
22121fi
22122
cristy92703d82010-04-26 00:18:18 +000022123ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22124#include <$ac_cv_struct_tm>
22125
22126"
cristyda16f162011-02-19 23:52:17 +000022127if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022128
22129cat >>confdefs.h <<_ACEOF
22130#define HAVE_STRUCT_TM_TM_ZONE 1
22131_ACEOF
22132
22133
22134fi
22135
22136if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22137
22138$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22139
22140else
22141 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22142"
cristyda16f162011-02-19 23:52:17 +000022143if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022144 ac_have_decl=1
22145else
22146 ac_have_decl=0
22147fi
22148
22149cat >>confdefs.h <<_ACEOF
22150#define HAVE_DECL_TZNAME $ac_have_decl
22151_ACEOF
22152
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22154$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022155if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022156 $as_echo_n "(cached) " >&6
22157else
22158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159/* end confdefs.h. */
22160#include <time.h>
22161#if !HAVE_DECL_TZNAME
22162extern char *tzname[];
22163#endif
22164
22165int
22166main ()
22167{
22168return tzname[0][0];
22169 ;
22170 return 0;
22171}
22172_ACEOF
22173if ac_fn_c_try_link "$LINENO"; then :
22174 ac_cv_var_tzname=yes
22175else
22176 ac_cv_var_tzname=no
22177fi
22178rm -f core conftest.err conftest.$ac_objext \
22179 conftest$ac_exeext conftest.$ac_ext
22180fi
22181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22182$as_echo "$ac_cv_var_tzname" >&6; }
22183 if test $ac_cv_var_tzname = yes; then
22184
22185$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22186
22187 fi
22188fi
22189
cristy8b350f62009-11-15 23:12:43 +000022190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022191$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022192if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022193 $as_echo_n "(cached) " >&6
22194else
22195 echo '#! /bin/cat
22196exit 69
22197' >conftest
22198chmod u+x conftest
22199(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22200if test $? -ne 69; then
22201 ac_cv_sys_interpreter=yes
22202else
22203 ac_cv_sys_interpreter=no
22204fi
22205rm -f conftest
22206fi
cristy8b350f62009-11-15 23:12:43 +000022207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022208$as_echo "$ac_cv_sys_interpreter" >&6; }
22209interpval=$ac_cv_sys_interpreter
22210
22211
cristy3ed852e2009-09-05 21:47:34 +000022212# If the C compiler supports the keyword inline, do nothing. Otherwise
22213# define inline to __inline__ or __inline if it accepts one of those,
22214# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022216$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022217if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022218 $as_echo_n "(cached) " >&6
22219else
22220 ac_cv_c_inline=no
22221for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022223/* end confdefs.h. */
22224#ifndef __cplusplus
22225typedef int foo_t;
22226static $ac_kw foo_t static_foo () {return 0; }
22227$ac_kw foo_t foo () {return 0; }
22228#endif
22229
22230_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022231if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022232 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022233fi
cristy3ed852e2009-09-05 21:47:34 +000022234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235 test "$ac_cv_c_inline" != no && break
22236done
22237
22238fi
cristy8b350f62009-11-15 23:12:43 +000022239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022240$as_echo "$ac_cv_c_inline" >&6; }
22241
cristy3ed852e2009-09-05 21:47:34 +000022242case $ac_cv_c_inline in
22243 inline | yes) ;;
22244 *)
22245 case $ac_cv_c_inline in
22246 no) ac_val=;;
22247 *) ac_val=$ac_cv_c_inline;;
22248 esac
22249 cat >>confdefs.h <<_ACEOF
22250#ifndef __cplusplus
22251#define inline $ac_val
22252#endif
22253_ACEOF
22254 ;;
22255esac
22256
22257
22258# If the C compiler supports the keyword restrict, do nothing. Otherwise
22259# define restrict to __restrict__ or __restrict if it accepts one of those,
22260# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022262$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022263if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022264 $as_echo_n "(cached) " >&6
22265else
22266 ac_cv_c_restrict=no
22267 # The order here caters to the fact that C++ does not require restrict.
22268 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022270/* end confdefs.h. */
22271typedef int * int_ptr;
22272 int foo (int_ptr $ac_kw ip) {
22273 return ip[0];
22274 }
22275int
22276main ()
22277{
22278int s[1];
22279 int * $ac_kw t = s;
22280 t[0] = 0;
22281 return foo(t)
22282 ;
22283 return 0;
22284}
22285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022286if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022287 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022288fi
cristy3ed852e2009-09-05 21:47:34 +000022289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290 test "$ac_cv_c_restrict" != no && break
22291 done
22292
22293fi
cristy8b350f62009-11-15 23:12:43 +000022294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022295$as_echo "$ac_cv_c_restrict" >&6; }
22296
cristy3ed852e2009-09-05 21:47:34 +000022297 case $ac_cv_c_restrict in
22298 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022299 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022300 ;;
22301 *) cat >>confdefs.h <<_ACEOF
22302#define restrict $ac_cv_c_restrict
22303_ACEOF
22304 ;;
22305 esac
22306
22307
22308# If words are stored with the most significant byte first (like
22309# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022311$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022312if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022313 $as_echo_n "(cached) " >&6
22314else
22315 ac_cv_c_bigendian=unknown
22316 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022318/* end confdefs.h. */
22319#ifndef __APPLE_CC__
22320 not a universal capable compiler
22321 #endif
22322 typedef int dummy;
22323
22324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022325if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022326
22327 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022328 # there are at least two -arch flags with different values.
22329 ac_arch=
22330 ac_prev=
22331 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22332 if test -n "$ac_prev"; then
22333 case $ac_word in
22334 i?86 | x86_64 | ppc | ppc64)
22335 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22336 ac_arch=$ac_word
22337 else
22338 ac_cv_c_bigendian=universal
22339 break
22340 fi
22341 ;;
22342 esac
22343 ac_prev=
22344 elif test "x$ac_word" = "x-arch"; then
22345 ac_prev=arch
22346 fi
22347 done
cristy3ed852e2009-09-05 21:47:34 +000022348fi
cristy3ed852e2009-09-05 21:47:34 +000022349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350 if test $ac_cv_c_bigendian = unknown; then
22351 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022353/* end confdefs.h. */
22354#include <sys/types.h>
22355 #include <sys/param.h>
22356
22357int
22358main ()
22359{
22360#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22361 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22362 && LITTLE_ENDIAN)
22363 bogus endian macros
22364 #endif
22365
22366 ;
22367 return 0;
22368}
22369_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022370if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022371 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022373/* end confdefs.h. */
22374#include <sys/types.h>
22375 #include <sys/param.h>
22376
22377int
22378main ()
22379{
22380#if BYTE_ORDER != BIG_ENDIAN
22381 not big endian
22382 #endif
22383
22384 ;
22385 return 0;
22386}
22387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022388if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 ac_cv_c_bigendian=yes
22390else
cristy8b350f62009-11-15 23:12:43 +000022391 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022392fi
cristy3ed852e2009-09-05 21:47:34 +000022393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022394fi
cristy3ed852e2009-09-05 21:47:34 +000022395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 if test $ac_cv_c_bigendian = unknown; then
22398 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022400/* end confdefs.h. */
22401#include <limits.h>
22402
22403int
22404main ()
22405{
22406#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22407 bogus endian macros
22408 #endif
22409
22410 ;
22411 return 0;
22412}
22413_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022414if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022415 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022417/* end confdefs.h. */
22418#include <limits.h>
22419
22420int
22421main ()
22422{
22423#ifndef _BIG_ENDIAN
22424 not big endian
22425 #endif
22426
22427 ;
22428 return 0;
22429}
22430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022431if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022432 ac_cv_c_bigendian=yes
22433else
cristy8b350f62009-11-15 23:12:43 +000022434 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022435fi
cristy3ed852e2009-09-05 21:47:34 +000022436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022437fi
cristy3ed852e2009-09-05 21:47:34 +000022438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 fi
22440 if test $ac_cv_c_bigendian = unknown; then
22441 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022442 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022443 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022445/* end confdefs.h. */
22446short int ascii_mm[] =
22447 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22448 short int ascii_ii[] =
22449 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22450 int use_ascii (int i) {
22451 return ascii_mm[i] + ascii_ii[i];
22452 }
22453 short int ebcdic_ii[] =
22454 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22455 short int ebcdic_mm[] =
22456 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22457 int use_ebcdic (int i) {
22458 return ebcdic_mm[i] + ebcdic_ii[i];
22459 }
22460 extern int foo;
22461
22462int
22463main ()
22464{
22465return use_ascii (foo) == use_ebcdic (foo);
22466 ;
22467 return 0;
22468}
22469_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022470if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022471 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22472 ac_cv_c_bigendian=yes
22473 fi
22474 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22475 if test "$ac_cv_c_bigendian" = unknown; then
22476 ac_cv_c_bigendian=no
22477 else
22478 # finding both strings is unlikely to happen, but who knows?
22479 ac_cv_c_bigendian=unknown
22480 fi
22481 fi
cristy3ed852e2009-09-05 21:47:34 +000022482fi
cristy3ed852e2009-09-05 21:47:34 +000022483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484else
cristy8b350f62009-11-15 23:12:43 +000022485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022486/* end confdefs.h. */
22487$ac_includes_default
22488int
22489main ()
22490{
22491
22492 /* Are we little or big endian? From Harbison&Steele. */
22493 union
22494 {
22495 long int l;
22496 char c[sizeof (long int)];
22497 } u;
22498 u.l = 1;
22499 return u.c[sizeof (long int) - 1] == 1;
22500
22501 ;
22502 return 0;
22503}
22504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022505if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022506 ac_cv_c_bigendian=no
22507else
cristy8b350f62009-11-15 23:12:43 +000022508 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022509fi
cristy8b350f62009-11-15 23:12:43 +000022510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22511 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022512fi
22513
cristy3ed852e2009-09-05 21:47:34 +000022514 fi
22515fi
cristy8b350f62009-11-15 23:12:43 +000022516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022517$as_echo "$ac_cv_c_bigendian" >&6; }
22518 case $ac_cv_c_bigendian in #(
22519 yes)
cristy8b350f62009-11-15 23:12:43 +000022520 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022521;; #(
22522 no)
22523 ;; #(
22524 universal)
22525
cristy8b350f62009-11-15 23:12:43 +000022526$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022527
22528 ;; #(
22529 *)
cristy98dddb52010-11-04 00:30:15 +000022530 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022531 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022532 esac
22533
22534
cristy501c8042011-05-26 17:46:28 +000022535# Define to a suitable type, if standard headers do not define it.
22536ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22537case $ac_cv_c_int8_t in #(
22538 no|yes) ;; #(
22539 *)
cristy3ed852e2009-09-05 21:47:34 +000022540
22541cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022542#define int8_t $ac_cv_c_int8_t
22543_ACEOF
22544;;
22545esac
22546
22547ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22548case $ac_cv_c_int16_t in #(
22549 no|yes) ;; #(
22550 *)
22551
22552cat >>confdefs.h <<_ACEOF
22553#define int16_t $ac_cv_c_int16_t
22554_ACEOF
22555;;
22556esac
22557
22558ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22559case $ac_cv_c_int32_t in #(
22560 no|yes) ;; #(
22561 *)
22562
22563cat >>confdefs.h <<_ACEOF
22564#define int32_t $ac_cv_c_int32_t
22565_ACEOF
22566;;
22567esac
22568
22569ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22570case $ac_cv_c_int64_t in #(
22571 no|yes) ;; #(
22572 *)
22573
22574cat >>confdefs.h <<_ACEOF
22575#define int64_t $ac_cv_c_int64_t
22576_ACEOF
22577;;
22578esac
22579
22580
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22582$as_echo_n "checking for long long int... " >&6; }
22583if ${ac_cv_type_long_long_int+:} false; then :
22584 $as_echo_n "(cached) " >&6
22585else
22586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587/* end confdefs.h. */
22588
22589 /* For now, do not test the preprocessor; as of 2007 there are too many
22590 implementations with broken preprocessors. Perhaps this can
22591 be revisited in 2012. In the meantime, code should not expect
22592 #if to work with literals wider than 32 bits. */
22593 /* Test literals. */
22594 long long int ll = 9223372036854775807ll;
22595 long long int nll = -9223372036854775807LL;
22596 unsigned long long int ull = 18446744073709551615ULL;
22597 /* Test constant expressions. */
22598 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22599 ? 1 : -1)];
22600 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22601 ? 1 : -1)];
22602 int i = 63;
22603int
22604main ()
22605{
22606/* Test availability of runtime routines for shift and division. */
22607 long long int llmax = 9223372036854775807ll;
22608 unsigned long long int ullmax = 18446744073709551615ull;
22609 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22610 | (llmax / ll) | (llmax % ll)
22611 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22612 | (ullmax / ull) | (ullmax % ull));
22613 ;
22614 return 0;
22615}
22616
22617_ACEOF
22618if ac_fn_c_try_link "$LINENO"; then :
22619 if test "$cross_compiling" = yes; then :
22620 ac_cv_type_long_long_int=yes
22621else
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623/* end confdefs.h. */
22624#include <limits.h>
22625 #ifndef LLONG_MAX
22626 # define HALF \
22627 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22628 # define LLONG_MAX (HALF - 1 + HALF)
22629 #endif
22630int
22631main ()
22632{
22633long long int n = 1;
22634 int i;
22635 for (i = 0; ; i++)
22636 {
22637 long long int m = n << i;
22638 if (m >> i != n)
22639 return 1;
22640 if (LLONG_MAX / 2 < m)
22641 break;
22642 }
22643 return 0;
22644 ;
22645 return 0;
22646}
22647_ACEOF
22648if ac_fn_c_try_run "$LINENO"; then :
22649 ac_cv_type_long_long_int=yes
22650else
22651 ac_cv_type_long_long_int=no
22652fi
22653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22654 conftest.$ac_objext conftest.beam conftest.$ac_ext
22655fi
22656
22657else
22658 ac_cv_type_long_long_int=no
22659fi
22660rm -f core conftest.err conftest.$ac_objext \
22661 conftest$ac_exeext conftest.$ac_ext
22662fi
22663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22664$as_echo "$ac_cv_type_long_long_int" >&6; }
22665 if test $ac_cv_type_long_long_int = yes; then
22666
22667$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22668
22669 fi
22670
22671
22672
22673 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22674if test "x$ac_cv_type_intmax_t" = xyes; then :
22675
22676$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22677
22678else
22679 test $ac_cv_type_long_long_int = yes \
22680 && ac_type='long long int' \
22681 || ac_type='long int'
22682
22683cat >>confdefs.h <<_ACEOF
22684#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022685_ACEOF
22686
22687fi
22688
22689
cristy501c8042011-05-26 17:46:28 +000022690
22691 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22692if test "x$ac_cv_type_intptr_t" = xyes; then :
22693
22694$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022695
cristy3ed852e2009-09-05 21:47:34 +000022696else
cristy501c8042011-05-26 17:46:28 +000022697 for ac_type in 'int' 'long int' 'long long int'; do
22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699/* end confdefs.h. */
22700$ac_includes_default
22701int
22702main ()
22703{
22704static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22705test_array [0] = 0
22706
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022712
22713cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022714#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022715_ACEOF
22716
cristy501c8042011-05-26 17:46:28 +000022717 ac_type=
22718fi
22719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720 test -z "$ac_type" && break
22721 done
cristy3ed852e2009-09-05 21:47:34 +000022722fi
22723
22724
cristy3ed852e2009-09-05 21:47:34 +000022725
cristy501c8042011-05-26 17:46:28 +000022726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22727$as_echo_n "checking for long double... " >&6; }
22728if ${ac_cv_type_long_double+:} false; then :
22729 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022730else
cristy501c8042011-05-26 17:46:28 +000022731 if test "$GCC" = yes; then
22732 ac_cv_type_long_double=yes
22733 else
22734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735/* end confdefs.h. */
22736/* The Stardent Vistra knows sizeof (long double), but does
22737 not support it. */
22738 long double foo = 0.0L;
22739int
22740main ()
22741{
22742static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22743 sizeof (double) <= sizeof (long double))];
22744test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022745
cristy501c8042011-05-26 17:46:28 +000022746 ;
22747 return 0;
22748}
cristy3ed852e2009-09-05 21:47:34 +000022749_ACEOF
cristy501c8042011-05-26 17:46:28 +000022750if ac_fn_c_try_compile "$LINENO"; then :
22751 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022752else
cristy501c8042011-05-26 17:46:28 +000022753 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022754fi
cristy501c8042011-05-26 17:46:28 +000022755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 fi
cristy3ed852e2009-09-05 21:47:34 +000022757fi
cristy501c8042011-05-26 17:46:28 +000022758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22759$as_echo "$ac_cv_type_long_double" >&6; }
22760 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022761
cristy501c8042011-05-26 17:46:28 +000022762$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022763
cristy501c8042011-05-26 17:46:28 +000022764 fi
22765
cristy3ed852e2009-09-05 21:47:34 +000022766
cristy8b350f62009-11-15 23:12:43 +000022767 { $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 +000022768$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022769if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 $as_echo_n "(cached) " >&6
22771else
cristy8b350f62009-11-15 23:12:43 +000022772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022773/* end confdefs.h. */
22774#include <float.h>
22775 long double const a[] =
22776 {
22777 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22778 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22779 };
22780 long double
22781 f (long double x)
22782 {
22783 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22784 + (x ? f (x) : 'c'));
22785 }
22786
22787int
22788main ()
22789{
22790static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22791 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22792 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22793 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22794 && (int) LDBL_EPSILON == 0
22795 )];
22796test_array [0] = 0
22797
22798 ;
22799 return 0;
22800}
22801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022802if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022803 ac_cv_type_long_double_wider=yes
22804else
cristy8b350f62009-11-15 23:12:43 +000022805 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022806fi
cristy3ed852e2009-09-05 21:47:34 +000022807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808fi
cristy8b350f62009-11-15 23:12:43 +000022809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022810$as_echo "$ac_cv_type_long_double_wider" >&6; }
22811 if test $ac_cv_type_long_double_wider = yes; then
22812
cristy8b350f62009-11-15 23:12:43 +000022813$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022814
22815 fi
22816
22817
cristy501c8042011-05-26 17:46:28 +000022818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22819$as_echo_n "checking for long long int... " >&6; }
22820if ${ac_cv_type_long_long_int+:} false; then :
22821 $as_echo_n "(cached) " >&6
22822else
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824/* end confdefs.h. */
22825
22826 /* For now, do not test the preprocessor; as of 2007 there are too many
22827 implementations with broken preprocessors. Perhaps this can
22828 be revisited in 2012. In the meantime, code should not expect
22829 #if to work with literals wider than 32 bits. */
22830 /* Test literals. */
22831 long long int ll = 9223372036854775807ll;
22832 long long int nll = -9223372036854775807LL;
22833 unsigned long long int ull = 18446744073709551615ULL;
22834 /* Test constant expressions. */
22835 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22836 ? 1 : -1)];
22837 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22838 ? 1 : -1)];
22839 int i = 63;
22840int
22841main ()
22842{
22843/* Test availability of runtime routines for shift and division. */
22844 long long int llmax = 9223372036854775807ll;
22845 unsigned long long int ullmax = 18446744073709551615ull;
22846 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22847 | (llmax / ll) | (llmax % ll)
22848 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22849 | (ullmax / ull) | (ullmax % ull));
22850 ;
22851 return 0;
22852}
22853
22854_ACEOF
22855if ac_fn_c_try_link "$LINENO"; then :
22856 if test "$cross_compiling" = yes; then :
22857 ac_cv_type_long_long_int=yes
22858else
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h. */
22861#include <limits.h>
22862 #ifndef LLONG_MAX
22863 # define HALF \
22864 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22865 # define LLONG_MAX (HALF - 1 + HALF)
22866 #endif
22867int
22868main ()
22869{
22870long long int n = 1;
22871 int i;
22872 for (i = 0; ; i++)
22873 {
22874 long long int m = n << i;
22875 if (m >> i != n)
22876 return 1;
22877 if (LLONG_MAX / 2 < m)
22878 break;
22879 }
22880 return 0;
22881 ;
22882 return 0;
22883}
22884_ACEOF
22885if ac_fn_c_try_run "$LINENO"; then :
22886 ac_cv_type_long_long_int=yes
22887else
22888 ac_cv_type_long_long_int=no
22889fi
22890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22891 conftest.$ac_objext conftest.beam conftest.$ac_ext
22892fi
22893
22894else
22895 ac_cv_type_long_long_int=no
22896fi
22897rm -f core conftest.err conftest.$ac_objext \
22898 conftest$ac_exeext conftest.$ac_ext
22899fi
22900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22901$as_echo "$ac_cv_type_long_long_int" >&6; }
22902 if test $ac_cv_type_long_long_int = yes; then
22903
22904$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22905
22906 fi
22907
22908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22909$as_echo_n "checking for mbstate_t... " >&6; }
22910if ${ac_cv_type_mbstate_t+:} false; then :
22911 $as_echo_n "(cached) " >&6
22912else
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914/* end confdefs.h. */
22915$ac_includes_default
22916# include <wchar.h>
22917int
22918main ()
22919{
22920mbstate_t x; return sizeof x;
22921 ;
22922 return 0;
22923}
22924_ACEOF
22925if ac_fn_c_try_compile "$LINENO"; then :
22926 ac_cv_type_mbstate_t=yes
22927else
22928 ac_cv_type_mbstate_t=no
22929fi
22930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931fi
22932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22933$as_echo "$ac_cv_type_mbstate_t" >&6; }
22934 if test $ac_cv_type_mbstate_t = yes; then
22935
22936$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22937
22938 else
22939
22940$as_echo "#define mbstate_t int" >>confdefs.h
22941
22942 fi
22943ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22944if test "x$ac_cv_type_mode_t" = xyes; then :
22945
22946else
22947
22948cat >>confdefs.h <<_ACEOF
22949#define mode_t int
22950_ACEOF
22951
22952fi
22953
22954ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22955if test "x$ac_cv_type_off_t" = xyes; then :
22956
22957else
22958
22959cat >>confdefs.h <<_ACEOF
22960#define off_t long int
22961_ACEOF
22962
22963fi
22964
22965ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22966if test "x$ac_cv_type_pid_t" = xyes; then :
22967
22968else
22969
22970cat >>confdefs.h <<_ACEOF
22971#define pid_t int
22972_ACEOF
22973
22974fi
22975
22976ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22977if test "x$ac_cv_type_size_t" = xyes; then :
22978
22979else
22980
22981cat >>confdefs.h <<_ACEOF
22982#define size_t unsigned int
22983_ACEOF
22984
22985fi
22986
22987ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22988if test "x$ac_cv_type_ssize_t" = xyes; then :
22989
22990else
22991
22992cat >>confdefs.h <<_ACEOF
22993#define ssize_t int
22994_ACEOF
22995
22996fi
22997
22998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22999$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23000if ${ac_cv_type_uid_t+:} false; then :
23001 $as_echo_n "(cached) " >&6
23002else
23003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004/* end confdefs.h. */
23005#include <sys/types.h>
23006
23007_ACEOF
23008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23009 $EGREP "uid_t" >/dev/null 2>&1; then :
23010 ac_cv_type_uid_t=yes
23011else
23012 ac_cv_type_uid_t=no
23013fi
23014rm -f conftest*
23015
23016fi
23017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23018$as_echo "$ac_cv_type_uid_t" >&6; }
23019if test $ac_cv_type_uid_t = no; then
23020
23021$as_echo "#define uid_t int" >>confdefs.h
23022
23023
23024$as_echo "#define gid_t int" >>confdefs.h
23025
23026fi
23027
23028ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23029case $ac_cv_c_uint8_t in #(
23030 no|yes) ;; #(
23031 *)
23032
23033$as_echo "#define _UINT8_T 1" >>confdefs.h
23034
23035
23036cat >>confdefs.h <<_ACEOF
23037#define uint8_t $ac_cv_c_uint8_t
23038_ACEOF
23039;;
23040 esac
23041
23042ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23043case $ac_cv_c_uint16_t in #(
23044 no|yes) ;; #(
23045 *)
23046
23047
23048cat >>confdefs.h <<_ACEOF
23049#define uint16_t $ac_cv_c_uint16_t
23050_ACEOF
23051;;
23052 esac
23053
23054ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23055case $ac_cv_c_uint32_t in #(
23056 no|yes) ;; #(
23057 *)
23058
23059$as_echo "#define _UINT32_T 1" >>confdefs.h
23060
23061
23062cat >>confdefs.h <<_ACEOF
23063#define uint32_t $ac_cv_c_uint32_t
23064_ACEOF
23065;;
23066 esac
23067
23068ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23069case $ac_cv_c_uint64_t in #(
23070 no|yes) ;; #(
23071 *)
23072
23073$as_echo "#define _UINT64_T 1" >>confdefs.h
23074
23075
23076cat >>confdefs.h <<_ACEOF
23077#define uint64_t $ac_cv_c_uint64_t
23078_ACEOF
23079;;
23080 esac
23081
23082
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23084$as_echo_n "checking for unsigned long long int... " >&6; }
23085if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23086 $as_echo_n "(cached) " >&6
23087else
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089/* end confdefs.h. */
23090
23091 /* For now, do not test the preprocessor; as of 2007 there are too many
23092 implementations with broken preprocessors. Perhaps this can
23093 be revisited in 2012. In the meantime, code should not expect
23094 #if to work with literals wider than 32 bits. */
23095 /* Test literals. */
23096 long long int ll = 9223372036854775807ll;
23097 long long int nll = -9223372036854775807LL;
23098 unsigned long long int ull = 18446744073709551615ULL;
23099 /* Test constant expressions. */
23100 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23101 ? 1 : -1)];
23102 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23103 ? 1 : -1)];
23104 int i = 63;
23105int
23106main ()
23107{
23108/* Test availability of runtime routines for shift and division. */
23109 long long int llmax = 9223372036854775807ll;
23110 unsigned long long int ullmax = 18446744073709551615ull;
23111 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23112 | (llmax / ll) | (llmax % ll)
23113 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23114 | (ullmax / ull) | (ullmax % ull));
23115 ;
23116 return 0;
23117}
23118
23119_ACEOF
23120if ac_fn_c_try_link "$LINENO"; then :
23121 ac_cv_type_unsigned_long_long_int=yes
23122else
23123 ac_cv_type_unsigned_long_long_int=no
23124fi
23125rm -f core conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127fi
23128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23129$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23130 if test $ac_cv_type_unsigned_long_long_int = yes; then
23131
23132$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23133
23134 fi
23135
23136
23137
23138 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23139if test "x$ac_cv_type_uintmax_t" = xyes; then :
23140
23141$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23142
23143else
23144 test $ac_cv_type_unsigned_long_long_int = yes \
23145 && ac_type='unsigned long long int' \
23146 || ac_type='unsigned long int'
23147
23148cat >>confdefs.h <<_ACEOF
23149#define uintmax_t $ac_type
23150_ACEOF
23151
23152fi
23153
23154
23155
23156 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23157if test "x$ac_cv_type_uintptr_t" = xyes; then :
23158
23159$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23160
23161else
23162 for ac_type in 'unsigned int' 'unsigned long int' \
23163 'unsigned long long int'; do
23164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165/* end confdefs.h. */
23166$ac_includes_default
23167int
23168main ()
23169{
23170static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23171test_array [0] = 0
23172
23173 ;
23174 return 0;
23175}
23176_ACEOF
23177if ac_fn_c_try_compile "$LINENO"; then :
23178
23179cat >>confdefs.h <<_ACEOF
23180#define uintptr_t $ac_type
23181_ACEOF
23182
23183 ac_type=
23184fi
23185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 test -z "$ac_type" && break
23187 done
23188fi
23189
23190
23191
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23193$as_echo_n "checking for unsigned long long int... " >&6; }
23194if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23195 $as_echo_n "(cached) " >&6
23196else
23197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23198/* end confdefs.h. */
23199
23200 /* For now, do not test the preprocessor; as of 2007 there are too many
23201 implementations with broken preprocessors. Perhaps this can
23202 be revisited in 2012. In the meantime, code should not expect
23203 #if to work with literals wider than 32 bits. */
23204 /* Test literals. */
23205 long long int ll = 9223372036854775807ll;
23206 long long int nll = -9223372036854775807LL;
23207 unsigned long long int ull = 18446744073709551615ULL;
23208 /* Test constant expressions. */
23209 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23210 ? 1 : -1)];
23211 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23212 ? 1 : -1)];
23213 int i = 63;
23214int
23215main ()
23216{
23217/* Test availability of runtime routines for shift and division. */
23218 long long int llmax = 9223372036854775807ll;
23219 unsigned long long int ullmax = 18446744073709551615ull;
23220 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23221 | (llmax / ll) | (llmax % ll)
23222 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23223 | (ullmax / ull) | (ullmax % ull));
23224 ;
23225 return 0;
23226}
23227
23228_ACEOF
23229if ac_fn_c_try_link "$LINENO"; then :
23230 ac_cv_type_unsigned_long_long_int=yes
23231else
23232 ac_cv_type_unsigned_long_long_int=no
23233fi
23234rm -f core conftest.err conftest.$ac_objext \
23235 conftest$ac_exeext conftest.$ac_ext
23236fi
23237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23238$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23239 if test $ac_cv_type_unsigned_long_long_int = yes; then
23240
23241$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23242
23243 fi
23244
23245
cristy3ed852e2009-09-05 21:47:34 +000023246# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23247# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023249$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023250if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023251 $as_echo_n "(cached) " >&6
23252else
cristy8b350f62009-11-15 23:12:43 +000023253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023254/* end confdefs.h. */
23255$ac_includes_default
23256int
23257main ()
23258{
23259static int test_array [1 - 2 * !(((char) -1) < 0)];
23260test_array [0] = 0
23261
23262 ;
23263 return 0;
23264}
23265_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023266if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023267 ac_cv_c_char_unsigned=no
23268else
cristy8b350f62009-11-15 23:12:43 +000023269 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023270fi
cristy3ed852e2009-09-05 21:47:34 +000023271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272fi
cristy8b350f62009-11-15 23:12:43 +000023273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023274$as_echo "$ac_cv_c_char_unsigned" >&6; }
23275if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023276 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023277
23278fi
23279
23280
23281# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23282# The cast to long int works around a bug in the HP C Compiler
23283# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023287$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023288if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023289 $as_echo_n "(cached) " >&6
23290else
cristy8b350f62009-11-15 23:12:43 +000023291 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 +000023292
cristy3ed852e2009-09-05 21:47:34 +000023293else
cristy8b350f62009-11-15 23:12:43 +000023294 if test "$ac_cv_type_signed_short" = yes; then
23295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023297as_fn_error 77 "cannot compute sizeof (signed short)
23298See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023299 else
23300 ac_cv_sizeof_signed_short=0
23301 fi
23302fi
cristy8b350f62009-11-15 23:12:43 +000023303
cristy3ed852e2009-09-05 21:47:34 +000023304fi
cristy8b350f62009-11-15 23:12:43 +000023305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023306$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23307
23308
23309
23310cat >>confdefs.h <<_ACEOF
23311#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23312_ACEOF
23313
23314
23315
23316# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23317# The cast to long int works around a bug in the HP C Compiler
23318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23320# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023322$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023323if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023324 $as_echo_n "(cached) " >&6
23325else
cristy8b350f62009-11-15 23:12:43 +000023326 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 +000023327
cristy3ed852e2009-09-05 21:47:34 +000023328else
cristy8b350f62009-11-15 23:12:43 +000023329 if test "$ac_cv_type_unsigned_short" = yes; then
23330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023332as_fn_error 77 "cannot compute sizeof (unsigned short)
23333See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023334 else
23335 ac_cv_sizeof_unsigned_short=0
23336 fi
23337fi
cristy8b350f62009-11-15 23:12:43 +000023338
cristy3ed852e2009-09-05 21:47:34 +000023339fi
cristy8b350f62009-11-15 23:12:43 +000023340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023341$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23342
23343
23344
23345cat >>confdefs.h <<_ACEOF
23346#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23347_ACEOF
23348
23349
23350
23351# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23352# The cast to long int works around a bug in the HP C Compiler
23353# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23354# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23355# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023357$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023358if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023359 $as_echo_n "(cached) " >&6
23360else
cristy8b350f62009-11-15 23:12:43 +000023361 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 +000023362
cristy3ed852e2009-09-05 21:47:34 +000023363else
cristy8b350f62009-11-15 23:12:43 +000023364 if test "$ac_cv_type_signed_int" = yes; then
23365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023367as_fn_error 77 "cannot compute sizeof (signed int)
23368See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023369 else
23370 ac_cv_sizeof_signed_int=0
23371 fi
23372fi
cristy8b350f62009-11-15 23:12:43 +000023373
cristy3ed852e2009-09-05 21:47:34 +000023374fi
cristy8b350f62009-11-15 23:12:43 +000023375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023376$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23377
23378
23379
23380cat >>confdefs.h <<_ACEOF
23381#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23382_ACEOF
23383
23384
23385
23386# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23387# The cast to long int works around a bug in the HP C Compiler
23388# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23389# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23390# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023392$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023393if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023394 $as_echo_n "(cached) " >&6
23395else
cristy8b350f62009-11-15 23:12:43 +000023396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
cristy3ed852e2009-09-05 21:47:34 +000023397
cristy3ed852e2009-09-05 21:47:34 +000023398else
cristy8b350f62009-11-15 23:12:43 +000023399 if test "$ac_cv_type_unsigned_int" = yes; then
23400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023402as_fn_error 77 "cannot compute sizeof (unsigned int)
23403See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023404 else
23405 ac_cv_sizeof_unsigned_int=0
23406 fi
23407fi
cristy8b350f62009-11-15 23:12:43 +000023408
cristy3ed852e2009-09-05 21:47:34 +000023409fi
cristy8b350f62009-11-15 23:12:43 +000023410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023411$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23412
23413
23414
23415cat >>confdefs.h <<_ACEOF
23416#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23417_ACEOF
23418
23419
23420
23421# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23422# The cast to long int works around a bug in the HP C Compiler
23423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23425# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023427$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023428if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023429 $as_echo_n "(cached) " >&6
23430else
cristy8b350f62009-11-15 23:12:43 +000023431 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 +000023432
cristy3ed852e2009-09-05 21:47:34 +000023433else
cristy8b350f62009-11-15 23:12:43 +000023434 if test "$ac_cv_type_signed_long" = yes; then
23435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023437as_fn_error 77 "cannot compute sizeof (signed long)
23438See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023439 else
23440 ac_cv_sizeof_signed_long=0
23441 fi
23442fi
cristy8b350f62009-11-15 23:12:43 +000023443
cristy3ed852e2009-09-05 21:47:34 +000023444fi
cristy8b350f62009-11-15 23:12:43 +000023445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023446$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23447
23448
23449
23450cat >>confdefs.h <<_ACEOF
23451#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23452_ACEOF
23453
23454
23455
23456# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23457# The cast to long int works around a bug in the HP C Compiler
23458# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23459# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23460# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023462$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023463if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023464 $as_echo_n "(cached) " >&6
23465else
cristy8b350f62009-11-15 23:12:43 +000023466 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 +000023467
cristy3ed852e2009-09-05 21:47:34 +000023468else
cristy8b350f62009-11-15 23:12:43 +000023469 if test "$ac_cv_type_unsigned_long" = yes; then
23470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023472as_fn_error 77 "cannot compute sizeof (unsigned long)
23473See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023474 else
23475 ac_cv_sizeof_unsigned_long=0
23476 fi
23477fi
cristy8b350f62009-11-15 23:12:43 +000023478
cristy3ed852e2009-09-05 21:47:34 +000023479fi
cristy8b350f62009-11-15 23:12:43 +000023480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023481$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23482
23483
23484
23485cat >>confdefs.h <<_ACEOF
23486#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23487_ACEOF
23488
23489
23490
23491# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23492# 'signed long long' is not supported then the value defined is zero.
23493# The cast to long int works around a bug in the HP C Compiler
23494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023498$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023499if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023500 $as_echo_n "(cached) " >&6
23501else
cristy8b350f62009-11-15 23:12:43 +000023502 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 +000023503
cristy3ed852e2009-09-05 21:47:34 +000023504else
cristy8b350f62009-11-15 23:12:43 +000023505 if test "$ac_cv_type_signed_long_long" = yes; then
23506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023508as_fn_error 77 "cannot compute sizeof (signed long long)
23509See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023510 else
23511 ac_cv_sizeof_signed_long_long=0
23512 fi
23513fi
cristy8b350f62009-11-15 23:12:43 +000023514
cristy3ed852e2009-09-05 21:47:34 +000023515fi
cristy8b350f62009-11-15 23:12:43 +000023516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23518
23519
23520
23521cat >>confdefs.h <<_ACEOF
23522#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23523_ACEOF
23524
23525
23526
23527# Obtain size of a 'unsigned long long' and define as
23528# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23529# supported then the value defined is zero.
23530# The cast to long int works around a bug in the HP C Compiler
23531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23533# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023535$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023536if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023537 $as_echo_n "(cached) " >&6
23538else
cristy8b350f62009-11-15 23:12:43 +000023539 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 +000023540
cristy3ed852e2009-09-05 21:47:34 +000023541else
cristy8b350f62009-11-15 23:12:43 +000023542 if test "$ac_cv_type_unsigned_long_long" = yes; then
23543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023545as_fn_error 77 "cannot compute sizeof (unsigned long long)
23546See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023547 else
23548 ac_cv_sizeof_unsigned_long_long=0
23549 fi
23550fi
cristy8b350f62009-11-15 23:12:43 +000023551
cristy3ed852e2009-09-05 21:47:34 +000023552fi
cristy8b350f62009-11-15 23:12:43 +000023553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023554$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23555
23556
23557
23558cat >>confdefs.h <<_ACEOF
23559#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23560_ACEOF
23561
23562
23563
23564# Obtain size of off_t and define as SIZEOF_OFF_T
23565# The cast to long int works around a bug in the HP C Compiler
23566# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23567# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23568# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023570$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023571if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023572 $as_echo_n "(cached) " >&6
23573else
cristy8b350f62009-11-15 23:12:43 +000023574 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 +000023575
cristy3ed852e2009-09-05 21:47:34 +000023576else
cristy8b350f62009-11-15 23:12:43 +000023577 if test "$ac_cv_type_off_t" = yes; then
23578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023580as_fn_error 77 "cannot compute sizeof (off_t)
23581See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023582 else
23583 ac_cv_sizeof_off_t=0
23584 fi
23585fi
cristy8b350f62009-11-15 23:12:43 +000023586
cristy3ed852e2009-09-05 21:47:34 +000023587fi
cristy8b350f62009-11-15 23:12:43 +000023588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023589$as_echo "$ac_cv_sizeof_off_t" >&6; }
23590
23591
23592
23593cat >>confdefs.h <<_ACEOF
23594#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23595_ACEOF
23596
23597
23598
23599# Obtain size of size_t and define as SIZEOF_SIZE_T
23600# The cast to long int works around a bug in the HP C Compiler
23601# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023605$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023606if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023607 $as_echo_n "(cached) " >&6
23608else
cristy8b350f62009-11-15 23:12:43 +000023609 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 +000023610
cristy3ed852e2009-09-05 21:47:34 +000023611else
cristy8b350f62009-11-15 23:12:43 +000023612 if test "$ac_cv_type_size_t" = yes; then
23613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023615as_fn_error 77 "cannot compute sizeof (size_t)
23616See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023617 else
23618 ac_cv_sizeof_size_t=0
23619 fi
23620fi
cristy8b350f62009-11-15 23:12:43 +000023621
cristy3ed852e2009-09-05 21:47:34 +000023622fi
cristy8b350f62009-11-15 23:12:43 +000023623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023624$as_echo "$ac_cv_sizeof_size_t" >&6; }
23625
23626
23627
23628cat >>confdefs.h <<_ACEOF
23629#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23630_ACEOF
23631
23632
23633
cristy330e9352010-06-01 18:42:49 +000023634# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23635# The cast to long int works around a bug in the HP C Compiler
23636# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23637# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23638# This bug is HP SR number 8606223364.
23639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23640$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023641if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023642 $as_echo_n "(cached) " >&6
23643else
23644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23645
23646else
23647 if test "$ac_cv_type_ssize_t" = yes; then
23648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023650as_fn_error 77 "cannot compute sizeof (ssize_t)
23651See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023652 else
23653 ac_cv_sizeof_ssize_t=0
23654 fi
23655fi
23656
23657fi
23658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23659$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23660
23661
23662
23663cat >>confdefs.h <<_ACEOF
23664#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23665_ACEOF
23666
23667
23668
cristy3ed852e2009-09-05 21:47:34 +000023669# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23670# The cast to long int works around a bug in the HP C Compiler
23671# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23672# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23673# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023675$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023676if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023677 $as_echo_n "(cached) " >&6
23678else
cristy8b350f62009-11-15 23:12:43 +000023679 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 +000023680
cristy3ed852e2009-09-05 21:47:34 +000023681else
cristy8b350f62009-11-15 23:12:43 +000023682 if test "$ac_cv_type_unsigned_intp" = yes; then
23683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023685as_fn_error 77 "cannot compute sizeof (unsigned int*)
23686See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023687 else
23688 ac_cv_sizeof_unsigned_intp=0
23689 fi
23690fi
cristy8b350f62009-11-15 23:12:43 +000023691
cristy3ed852e2009-09-05 21:47:34 +000023692fi
cristy8b350f62009-11-15 23:12:43 +000023693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023694$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23695
23696
23697
23698cat >>confdefs.h <<_ACEOF
23699#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23700_ACEOF
23701
23702
23703
23704#
23705# Compute sized types for current CPU and compiler options.
23706#
23707
cristy8b350f62009-11-15 23:12:43 +000023708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023709$as_echo_n "checking for signed 8-bit type... " >&6; }
23710INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023711{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23712$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023713
23714
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23717UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023718{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23719$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023720
23721
cristy8b350f62009-11-15 23:12:43 +000023722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023723$as_echo_n "checking for signed 16-bit type... " >&6; }
23724INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023725{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23726$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023727
23728
cristy8b350f62009-11-15 23:12:43 +000023729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023730$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23731UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023732{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23733$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023734
23735
cristy8b350f62009-11-15 23:12:43 +000023736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023737$as_echo_n "checking for signed 32-bit type... " >&6; }
23738INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023739INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023740if test $ac_cv_sizeof_signed_int -eq 4; then
23741 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023742 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023743elif test $ac_cv_sizeof_signed_long -eq 4; then
23744 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023745 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023746fi
cristy09b53e12011-10-14 12:47:22 +000023747{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23748$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023749
23750
cristy6d5e20f2011-04-25 13:48:54 +000023751
cristy8b350f62009-11-15 23:12:43 +000023752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023753$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23754UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023755UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023756if test $ac_cv_sizeof_unsigned_int -eq 4; then
23757 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023758 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023759elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23760 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023761 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023762fi
cristy09b53e12011-10-14 12:47:22 +000023763{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23764$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023765
23766
cristy6d5e20f2011-04-25 13:48:54 +000023767
cristy8b350f62009-11-15 23:12:43 +000023768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023769$as_echo_n "checking for signed 64-bit type... " >&6; }
23770INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023771INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023772if test $ac_cv_sizeof_signed_long -eq 8; then
23773 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023774 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023775elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23776 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023777 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023778fi
cristy6d5e20f2011-04-25 13:48:54 +000023779case "${build_os}" in
23780 mingw* )
23781 INT64_F='"I64"'
23782 ;;
23783esac
cristy09b53e12011-10-14 12:47:22 +000023784{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23785$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023786
23787
cristy6d5e20f2011-04-25 13:48:54 +000023788
cristy8b350f62009-11-15 23:12:43 +000023789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023790$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23791UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023792UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023793if test $ac_cv_sizeof_unsigned_long -eq 8; then
23794 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023795 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023796elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23797 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023798 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023799fi
cristy6d5e20f2011-04-25 13:48:54 +000023800case "${build_os}" in
23801 mingw* )
23802 UINT64_F='"I64"'
23803 ;;
23804esac
cristy09b53e12011-10-14 12:47:22 +000023805{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23806$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023807
23808
cristy6d5e20f2011-04-25 13:48:54 +000023809
cristy8b350f62009-11-15 23:12:43 +000023810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023811$as_echo_n "checking for unsigned maximum type... " >&6; }
23812UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023813UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023814if test "$UINT64_T" != 'none'; then
23815 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023816 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023817elif test "$UINT32_T" != 'none'; then
23818 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023819 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023820fi
cristy09b53e12011-10-14 12:47:22 +000023821{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23822$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023823
23824
cristy6d5e20f2011-04-25 13:48:54 +000023825
cristy8b350f62009-11-15 23:12:43 +000023826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023827$as_echo_n "checking for pointer difference type... " >&6; }
23828UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023829UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023830if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23831 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023832 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023833elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23834 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023835 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy09b53e12011-10-14 12:47:22 +000023837{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23838$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023839
23840
cristy6d5e20f2011-04-25 13:48:54 +000023841
cristy8b350f62009-11-15 23:12:43 +000023842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023843$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023845/* end confdefs.h. */
23846
23847int
23848main ()
23849{
23850{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23851 ;
23852 return 0;
23853}
23854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023855if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023856 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23857$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023858else
cristy09b53e12011-10-14 12:47:22 +000023859 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23860$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023862$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023864/* end confdefs.h. */
23865
23866int
23867main ()
23868{
23869{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23870 ;
23871 return 0;
23872}
23873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023874if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023875 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23876$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023877
cristy8b350f62009-11-15 23:12:43 +000023878$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023879
23880else
cristy09b53e12011-10-14 12:47:22 +000023881 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23882$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023883
cristy8b350f62009-11-15 23:12:43 +000023884$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023885
23886fi
cristy3ed852e2009-09-05 21:47:34 +000023887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888fi
cristy3ed852e2009-09-05 21:47:34 +000023889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890
23891########
23892#
23893# Check for functions
23894#
23895########
cristy73bd4a52010-10-05 11:24:23 +000023896for ac_header in stdlib.h unistd.h
23897do :
23898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23899ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023901 cat >>confdefs.h <<_ACEOF
23902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23903_ACEOF
23904
23905fi
23906
23907done
23908
23909for ac_func in getpagesize
23910do :
23911 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023912if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023913 cat >>confdefs.h <<_ACEOF
23914#define HAVE_GETPAGESIZE 1
23915_ACEOF
23916
23917fi
23918done
23919
23920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23921$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023922if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023923 $as_echo_n "(cached) " >&6
23924else
23925 if test "$cross_compiling" = yes; then :
23926 magick_cv_func_mmap_fileio=no
23927else
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929/* end confdefs.h. */
23930$ac_includes_default
23931/* malloc might have been renamed as rpl_malloc. */
23932#undef malloc
23933
23934/*
23935 This test is derived from GNU Autoconf's similar macro.
23936 The purpose of this test is to verify that files may be memory
23937 mapped, and that memory mapping and file I/O are coherent.
23938
23939 The test creates a test file, memory maps the file, updates
23940 the file using the memory map, and then reads the file using
23941 file I/O to verify that the file contains the updates.
23942*/
23943
23944#include <fcntl.h>
23945#include <sys/mman.h>
23946
23947#if !STDC_HEADERS && !HAVE_STDLIB_H
23948char *malloc ();
23949#endif
23950
23951/* This mess was copied from the GNU getpagesize.h. */
23952#if !HAVE_GETPAGESIZE
23953/* Assume that all systems that can run configure have sys/param.h. */
23954# if !HAVE_SYS_PARAM_H
23955# define HAVE_SYS_PARAM_H 1
23956# endif
23957
23958# ifdef _SC_PAGESIZE
23959# define getpagesize() sysconf(_SC_PAGESIZE)
23960# else /* no _SC_PAGESIZE */
23961# if HAVE_SYS_PARAM_H
23962# include <sys/param.h>
23963# ifdef EXEC_PAGESIZE
23964# define getpagesize() EXEC_PAGESIZE
23965# else /* no EXEC_PAGESIZE */
23966# ifdef NBPG
23967# define getpagesize() NBPG * CLSIZE
23968# ifndef CLSIZE
23969# define CLSIZE 1
23970# endif /* no CLSIZE */
23971# else /* no NBPG */
23972# ifdef NBPC
23973# define getpagesize() NBPC
23974# else /* no NBPC */
23975# ifdef PAGESIZE
23976# define getpagesize() PAGESIZE
23977# endif /* PAGESIZE */
23978# endif /* no NBPC */
23979# endif /* no NBPG */
23980# endif /* no EXEC_PAGESIZE */
23981# else /* no HAVE_SYS_PARAM_H */
23982# define getpagesize() 8192 /* punt totally */
23983# endif /* no HAVE_SYS_PARAM_H */
23984# endif /* no _SC_PAGESIZE */
23985
23986#endif /* no HAVE_GETPAGESIZE */
23987
23988int
23989main ()
23990{
23991 char *data, *data2, *data3;
23992 int i, pagesize;
23993 int fd;
23994
23995 pagesize = getpagesize ();
23996
23997 /* First, make a file with some known garbage in it. */
23998 data = (char *) malloc (pagesize);
23999 if (!data)
24000 exit (1);
24001 for (i = 0; i < pagesize; ++i)
24002 *(data + i) = rand ();
24003 umask (0);
24004 fd = creat ("conftest.mmap", 0600);
24005 if (fd < 0)
24006 exit (1);
24007 if (write (fd, data, pagesize) != pagesize)
24008 exit (1);
24009 close (fd);
24010
24011 /* Mmap the file as read/write/shared and verify that we see the
24012 same garbage. */
24013 fd = open ("conftest.mmap", O_RDWR);
24014 if (fd < 0)
24015 exit (1);
24016 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24017 if (data2 == 0)
24018 exit (1);
24019 for (i = 0; i < pagesize; ++i)
24020 if (*(data + i) != *(data2 + i))
24021 exit (1);
24022
24023 /* Finally, make sure that changes to the mapped area
24024 percolate back to the file as seen by read(). */
24025 for (i = 0; i < pagesize; ++i)
24026 *(data2 + i) = *(data2 + i) + 1;
24027 data3 = (char *) malloc (pagesize);
24028 if (!data3)
24029 exit (1);
24030 if (read (fd, data3, pagesize) != pagesize)
24031 exit (1);
24032 for (i = 0; i < pagesize; ++i)
24033 if (*(data2 + i) != *(data3 + i))
24034 exit (1);
24035 close (fd);
24036 exit (0);
24037}
24038_ACEOF
24039if ac_fn_c_try_run "$LINENO"; then :
24040 magick_cv_func_mmap_fileio=yes
24041else
24042 magick_cv_func_mmap_fileio=no
24043fi
24044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24045 conftest.$ac_objext conftest.beam conftest.$ac_ext
24046fi
24047
24048fi
24049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24050$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24051if test $magick_cv_func_mmap_fileio = yes; then
24052
24053$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24054
24055fi
24056rm -f conftest.mmap
24057
cristy8b350f62009-11-15 23:12:43 +000024058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024059$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024060if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024061 $as_echo_n "(cached) " >&6
24062else
cristy8b350f62009-11-15 23:12:43 +000024063 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024064 ac_cv_func_closedir_void=yes
24065else
cristy8b350f62009-11-15 23:12:43 +000024066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024067/* end confdefs.h. */
24068$ac_includes_default
24069#include <$ac_header_dirent>
24070#ifndef __cplusplus
24071int closedir ();
24072#endif
24073
24074int
24075main ()
24076{
24077return closedir (opendir (".")) != 0;
24078 ;
24079 return 0;
24080}
24081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024082if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024083 ac_cv_func_closedir_void=no
24084else
cristy8b350f62009-11-15 23:12:43 +000024085 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024086fi
cristy8b350f62009-11-15 23:12:43 +000024087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24088 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024089fi
24090
cristy3ed852e2009-09-05 21:47:34 +000024091fi
cristy8b350f62009-11-15 23:12:43 +000024092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024093$as_echo "$ac_cv_func_closedir_void" >&6; }
24094if test $ac_cv_func_closedir_void = yes; then
24095
cristy8b350f62009-11-15 23:12:43 +000024096$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024097
24098fi
24099
cristycd4c5312009-11-22 01:19:08 +000024100
24101
24102
24103 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024104do :
24105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24107"
cristy98dddb52010-11-04 00:30:15 +000024108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024109 cat >>confdefs.h <<_ACEOF
24110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24111_ACEOF
24112
24113fi
24114
24115done
24116
cristycd4c5312009-11-22 01:19:08 +000024117
24118
24119
24120
24121
24122
24123
cristy3ed852e2009-09-05 21:47:34 +000024124for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024125do :
24126 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024127if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024128 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024129#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024130_ACEOF
24131
24132fi
24133done
24134
cristy8b350f62009-11-15 23:12:43 +000024135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024136$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024137if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024138 $as_echo_n "(cached) " >&6
24139else
cristy8b350f62009-11-15 23:12:43 +000024140 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024141 ac_cv_func_mmap_fixed_mapped=no
24142else
cristy8b350f62009-11-15 23:12:43 +000024143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024144/* end confdefs.h. */
24145$ac_includes_default
24146/* malloc might have been renamed as rpl_malloc. */
24147#undef malloc
24148
24149/* Thanks to Mike Haertel and Jim Avera for this test.
24150 Here is a matrix of mmap possibilities:
24151 mmap private not fixed
24152 mmap private fixed at somewhere currently unmapped
24153 mmap private fixed at somewhere already mapped
24154 mmap shared not fixed
24155 mmap shared fixed at somewhere currently unmapped
24156 mmap shared fixed at somewhere already mapped
24157 For private mappings, we should verify that changes cannot be read()
24158 back from the file, nor mmap's back from the file at a different
24159 address. (There have been systems where private was not correctly
24160 implemented like the infamous i386 svr4.0, and systems where the
24161 VM page cache was not coherent with the file system buffer cache
24162 like early versions of FreeBSD and possibly contemporary NetBSD.)
24163 For shared mappings, we should conversely verify that changes get
24164 propagated back to all the places they're supposed to be.
24165
24166 Grep wants private fixed already mapped.
24167 The main things grep needs to know about mmap are:
24168 * does it exist and is it safe to write into the mmap'd area
24169 * how to use it (BSD variants) */
24170
24171#include <fcntl.h>
24172#include <sys/mman.h>
24173
24174#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24175char *malloc ();
24176#endif
24177
24178/* This mess was copied from the GNU getpagesize.h. */
24179#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024180# ifdef _SC_PAGESIZE
24181# define getpagesize() sysconf(_SC_PAGESIZE)
24182# else /* no _SC_PAGESIZE */
24183# ifdef HAVE_SYS_PARAM_H
24184# include <sys/param.h>
24185# ifdef EXEC_PAGESIZE
24186# define getpagesize() EXEC_PAGESIZE
24187# else /* no EXEC_PAGESIZE */
24188# ifdef NBPG
24189# define getpagesize() NBPG * CLSIZE
24190# ifndef CLSIZE
24191# define CLSIZE 1
24192# endif /* no CLSIZE */
24193# else /* no NBPG */
24194# ifdef NBPC
24195# define getpagesize() NBPC
24196# else /* no NBPC */
24197# ifdef PAGESIZE
24198# define getpagesize() PAGESIZE
24199# endif /* PAGESIZE */
24200# endif /* no NBPC */
24201# endif /* no NBPG */
24202# endif /* no EXEC_PAGESIZE */
24203# else /* no HAVE_SYS_PARAM_H */
24204# define getpagesize() 8192 /* punt totally */
24205# endif /* no HAVE_SYS_PARAM_H */
24206# endif /* no _SC_PAGESIZE */
24207
24208#endif /* no HAVE_GETPAGESIZE */
24209
24210int
24211main ()
24212{
24213 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024214 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024215 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024216 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024217
24218 pagesize = getpagesize ();
24219
24220 /* First, make a file with some known garbage in it. */
24221 data = (char *) malloc (pagesize);
24222 if (!data)
24223 return 1;
24224 for (i = 0; i < pagesize; ++i)
24225 *(data + i) = rand ();
24226 umask (0);
24227 fd = creat ("conftest.mmap", 0600);
24228 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024229 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024230 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024231 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024232 close (fd);
24233
cristycd4c5312009-11-22 01:19:08 +000024234 /* Next, check that the tail of a page is zero-filled. File must have
24235 non-zero length, otherwise we risk SIGBUS for entire page. */
24236 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24237 if (fd2 < 0)
24238 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024239 cdata2 = "";
24240 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024241 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024242 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024243 if (data2 == MAP_FAILED)
24244 return 6;
24245 for (i = 0; i < pagesize; ++i)
24246 if (*(data2 + i))
24247 return 7;
24248 close (fd2);
24249 if (munmap (data2, pagesize))
24250 return 8;
24251
cristy3ed852e2009-09-05 21:47:34 +000024252 /* Next, try to mmap the file at a fixed address which already has
24253 something else allocated at it. If we can, also make sure that
24254 we see the same garbage. */
24255 fd = open ("conftest.mmap", O_RDWR);
24256 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024257 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024260 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024261 for (i = 0; i < pagesize; ++i)
24262 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024263 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024264
24265 /* Finally, make sure that changes to the mapped area do not
24266 percolate back to the file as seen by read(). (This is a bug on
24267 some variants of i386 svr4.0.) */
24268 for (i = 0; i < pagesize; ++i)
24269 *(data2 + i) = *(data2 + i) + 1;
24270 data3 = (char *) malloc (pagesize);
24271 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024272 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024273 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024274 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024275 for (i = 0; i < pagesize; ++i)
24276 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024277 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024278 close (fd);
24279 return 0;
24280}
24281_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024282if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024283 ac_cv_func_mmap_fixed_mapped=yes
24284else
cristy8b350f62009-11-15 23:12:43 +000024285 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024286fi
cristy8b350f62009-11-15 23:12:43 +000024287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24288 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024289fi
24290
cristy3ed852e2009-09-05 21:47:34 +000024291fi
cristy8b350f62009-11-15 23:12:43 +000024292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024293$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24294if test $ac_cv_func_mmap_fixed_mapped = yes; then
24295
cristy8b350f62009-11-15 23:12:43 +000024296$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024297
24298fi
cristycd4c5312009-11-22 01:19:08 +000024299rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024300
cristy3ed852e2009-09-05 21:47:34 +000024301for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024302do :
24303 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024304if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024305 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024306#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024307_ACEOF
24308
24309fi
24310
24311done
24312
cristy3ed852e2009-09-05 21:47:34 +000024313for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024314do :
24315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24316ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024317if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024318 cat >>confdefs.h <<_ACEOF
24319#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24320_ACEOF
24321
24322fi
24323done
24324
24325if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024327$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024328if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024329 $as_echo_n "(cached) " >&6
24330else
cristy8b350f62009-11-15 23:12:43 +000024331 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024332 ac_cv_func_fork_works=cross
24333else
cristy8b350f62009-11-15 23:12:43 +000024334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024335/* end confdefs.h. */
24336$ac_includes_default
24337int
24338main ()
24339{
24340
24341 /* By Ruediger Kuhlmann. */
24342 return fork () < 0;
24343
24344 ;
24345 return 0;
24346}
24347_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024348if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024349 ac_cv_func_fork_works=yes
24350else
cristy8b350f62009-11-15 23:12:43 +000024351 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024352fi
cristy8b350f62009-11-15 23:12:43 +000024353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24354 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024355fi
24356
cristy3ed852e2009-09-05 21:47:34 +000024357fi
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo "$ac_cv_func_fork_works" >&6; }
24360
24361else
24362 ac_cv_func_fork_works=$ac_cv_func_fork
24363fi
24364if test "x$ac_cv_func_fork_works" = xcross; then
24365 case $host in
24366 *-*-amigaos* | *-*-msdosdjgpp*)
24367 # Override, as these systems have only a dummy fork() stub
24368 ac_cv_func_fork_works=no
24369 ;;
24370 *)
24371 ac_cv_func_fork_works=yes
24372 ;;
24373 esac
cristy8b350f62009-11-15 23:12:43 +000024374 { $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 +000024375$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24376fi
24377ac_cv_func_vfork_works=$ac_cv_func_vfork
24378if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024380$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024381if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024382 $as_echo_n "(cached) " >&6
24383else
cristy8b350f62009-11-15 23:12:43 +000024384 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024385 ac_cv_func_vfork_works=cross
24386else
cristy8b350f62009-11-15 23:12:43 +000024387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024388/* end confdefs.h. */
24389/* Thanks to Paul Eggert for this test. */
24390$ac_includes_default
24391#include <sys/wait.h>
24392#ifdef HAVE_VFORK_H
24393# include <vfork.h>
24394#endif
24395/* On some sparc systems, changes by the child to local and incoming
24396 argument registers are propagated back to the parent. The compiler
24397 is told about this with #include <vfork.h>, but some compilers
24398 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24399 static variable whose address is put into a register that is
24400 clobbered by the vfork. */
24401static void
24402#ifdef __cplusplus
24403sparc_address_test (int arg)
24404# else
24405sparc_address_test (arg) int arg;
24406#endif
24407{
24408 static pid_t child;
24409 if (!child) {
24410 child = vfork ();
24411 if (child < 0) {
24412 perror ("vfork");
24413 _exit(2);
24414 }
24415 if (!child) {
24416 arg = getpid();
24417 write(-1, "", 0);
24418 _exit (arg);
24419 }
24420 }
24421}
24422
24423int
24424main ()
24425{
24426 pid_t parent = getpid ();
24427 pid_t child;
24428
24429 sparc_address_test (0);
24430
24431 child = vfork ();
24432
24433 if (child == 0) {
24434 /* Here is another test for sparc vfork register problems. This
24435 test uses lots of local variables, at least as many local
24436 variables as main has allocated so far including compiler
24437 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24438 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24439 reuse the register of parent for one of the local variables,
24440 since it will think that parent can't possibly be used any more
24441 in this routine. Assigning to the local variable will thus
24442 munge parent in the parent process. */
24443 pid_t
24444 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24445 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24446 /* Convince the compiler that p..p7 are live; otherwise, it might
24447 use the same hardware register for all 8 local variables. */
24448 if (p != p1 || p != p2 || p != p3 || p != p4
24449 || p != p5 || p != p6 || p != p7)
24450 _exit(1);
24451
24452 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24453 from child file descriptors. If the child closes a descriptor
24454 before it execs or exits, this munges the parent's descriptor
24455 as well. Test for this by closing stdout in the child. */
24456 _exit(close(fileno(stdout)) != 0);
24457 } else {
24458 int status;
24459 struct stat st;
24460
24461 while (wait(&status) != child)
24462 ;
24463 return (
24464 /* Was there some problem with vforking? */
24465 child < 0
24466
24467 /* Did the child fail? (This shouldn't happen.) */
24468 || status
24469
24470 /* Did the vfork/compiler bug occur? */
24471 || parent != getpid()
24472
24473 /* Did the file descriptor bug occur? */
24474 || fstat(fileno(stdout), &st) != 0
24475 );
24476 }
24477}
24478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024479if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024480 ac_cv_func_vfork_works=yes
24481else
cristy8b350f62009-11-15 23:12:43 +000024482 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024483fi
cristy8b350f62009-11-15 23:12:43 +000024484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24485 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024486fi
24487
cristy3ed852e2009-09-05 21:47:34 +000024488fi
cristy8b350f62009-11-15 23:12:43 +000024489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024490$as_echo "$ac_cv_func_vfork_works" >&6; }
24491
24492fi;
24493if test "x$ac_cv_func_fork_works" = xcross; then
24494 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024495 { $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 +000024496$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24497fi
24498
24499if test "x$ac_cv_func_vfork_works" = xyes; then
24500
cristy8b350f62009-11-15 23:12:43 +000024501$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024502
24503else
24504
cristy8b350f62009-11-15 23:12:43 +000024505$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024506
24507fi
24508if test "x$ac_cv_func_fork_works" = xyes; then
24509
cristy8b350f62009-11-15 23:12:43 +000024510$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024511
24512fi
24513
cristy8b350f62009-11-15 23:12:43 +000024514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024515$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024516if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024517 $as_echo_n "(cached) " >&6
24518else
cristy8b350f62009-11-15 23:12:43 +000024519 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024520 ac_cv_func_memcmp_working=no
24521else
cristy8b350f62009-11-15 23:12:43 +000024522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024523/* end confdefs.h. */
24524$ac_includes_default
24525int
24526main ()
24527{
24528
24529 /* Some versions of memcmp are not 8-bit clean. */
24530 char c0 = '\100', c1 = '\200', c2 = '\201';
24531 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24532 return 1;
24533
24534 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24535 or more and with at least one buffer not starting on a 4-byte boundary.
24536 William Lewis provided this test program. */
24537 {
24538 char foo[21];
24539 char bar[21];
24540 int i;
24541 for (i = 0; i < 4; i++)
24542 {
24543 char *a = foo + i;
24544 char *b = bar + i;
24545 strcpy (a, "--------01111111");
24546 strcpy (b, "--------10000000");
24547 if (memcmp (a, b, 16) >= 0)
24548 return 1;
24549 }
24550 return 0;
24551 }
24552
24553 ;
24554 return 0;
24555}
24556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024557if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024558 ac_cv_func_memcmp_working=yes
24559else
cristy8b350f62009-11-15 23:12:43 +000024560 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024561fi
cristy8b350f62009-11-15 23:12:43 +000024562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24563 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024564fi
24565
cristy3ed852e2009-09-05 21:47:34 +000024566fi
cristy8b350f62009-11-15 23:12:43 +000024567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024568$as_echo "$ac_cv_func_memcmp_working" >&6; }
24569test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24570 *" memcmp.$ac_objext "* ) ;;
24571 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24572 ;;
24573esac
24574
24575
cristy3ed852e2009-09-05 21:47:34 +000024576for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024577do :
24578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024581 cat >>confdefs.h <<_ACEOF
24582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24583_ACEOF
24584
24585fi
24586
24587done
24588
cristy8b350f62009-11-15 23:12:43 +000024589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024590$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024591if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024592 $as_echo_n "(cached) " >&6
24593else
24594 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24595 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24596 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024598/* end confdefs.h. */
24599$ac_includes_default
24600#ifdef HAVE_SYS_SELECT_H
24601# include <sys/select.h>
24602#endif
24603#ifdef HAVE_SYS_SOCKET_H
24604# include <sys/socket.h>
24605#endif
24606
24607int
24608main ()
24609{
24610extern int select ($ac_arg1,
24611 $ac_arg234, $ac_arg234, $ac_arg234,
24612 $ac_arg5);
24613 ;
24614 return 0;
24615}
24616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024617if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024618 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024619fi
cristy3ed852e2009-09-05 21:47:34 +000024620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621 done
24622 done
24623done
24624# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024625: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024626
24627fi
cristy8b350f62009-11-15 23:12:43 +000024628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024629$as_echo "$ac_cv_func_select_args" >&6; }
24630ac_save_IFS=$IFS; IFS=','
24631set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24632IFS=$ac_save_IFS
24633shift
24634
24635cat >>confdefs.h <<_ACEOF
24636#define SELECT_TYPE_ARG1 $1
24637_ACEOF
24638
24639
24640cat >>confdefs.h <<_ACEOF
24641#define SELECT_TYPE_ARG234 ($2)
24642_ACEOF
24643
24644
24645cat >>confdefs.h <<_ACEOF
24646#define SELECT_TYPE_ARG5 ($3)
24647_ACEOF
24648
24649rm -f conftest*
24650
cristyda16f162011-02-19 23:52:17 +000024651if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024652 $as_echo_n "(cached) " >&6
24653else
24654 ac_cv_func_setvbuf_reversed=no
24655fi
24656
24657
cristy8b350f62009-11-15 23:12:43 +000024658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024659$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024660if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024661 $as_echo_n "(cached) " >&6
24662else
cristy8b350f62009-11-15 23:12:43 +000024663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024664/* end confdefs.h. */
24665#include <sys/types.h>
24666#include <signal.h>
24667
24668int
24669main ()
24670{
24671return *(signal (0, 0)) (0) == 1;
24672 ;
24673 return 0;
24674}
24675_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024676if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024677 ac_cv_type_signal=int
24678else
cristy8b350f62009-11-15 23:12:43 +000024679 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024680fi
cristy3ed852e2009-09-05 21:47:34 +000024681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682fi
cristy8b350f62009-11-15 23:12:43 +000024683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024684$as_echo "$ac_cv_type_signal" >&6; }
24685
24686cat >>confdefs.h <<_ACEOF
24687#define RETSIGTYPE $ac_cv_type_signal
24688_ACEOF
24689
24690
cristy8b350f62009-11-15 23:12:43 +000024691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024692$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024693if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024694 $as_echo_n "(cached) " >&6
24695else
cristy8b350f62009-11-15 23:12:43 +000024696 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024697 ac_cv_func_strtod=no
24698else
cristy8b350f62009-11-15 23:12:43 +000024699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024700/* end confdefs.h. */
24701
24702$ac_includes_default
24703#ifndef strtod
24704double strtod ();
24705#endif
24706int
24707main()
24708{
24709 {
24710 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24711 char *string = " +69";
24712 char *term;
24713 double value;
24714 value = strtod (string, &term);
24715 if (value != 69 || term != (string + 4))
24716 return 1;
24717 }
24718
24719 {
24720 /* Under Solaris 2.4, strtod returns the wrong value for the
24721 terminating character under some conditions. */
24722 char *string = "NaN";
24723 char *term;
24724 strtod (string, &term);
24725 if (term != string && *(term - 1) == 0)
24726 return 1;
24727 }
24728 return 0;
24729}
24730
24731_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024732if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024733 ac_cv_func_strtod=yes
24734else
cristy8b350f62009-11-15 23:12:43 +000024735 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024736fi
cristy8b350f62009-11-15 23:12:43 +000024737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024739fi
24740
cristy3ed852e2009-09-05 21:47:34 +000024741fi
cristy8b350f62009-11-15 23:12:43 +000024742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024743$as_echo "$ac_cv_func_strtod" >&6; }
24744if test $ac_cv_func_strtod = no; then
24745 case " $LIBOBJS " in
24746 *" strtod.$ac_objext "* ) ;;
24747 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24748 ;;
24749esac
24750
cristy8b350f62009-11-15 23:12:43 +000024751ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024752if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024753
cristy3ed852e2009-09-05 21:47:34 +000024754fi
24755
cristy3ed852e2009-09-05 21:47:34 +000024756if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024758$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024759if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024760 $as_echo_n "(cached) " >&6
24761else
24762 ac_check_lib_save_LIBS=$LIBS
24763LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024765/* end confdefs.h. */
24766
24767/* Override any GCC internal prototype to avoid an error.
24768 Use char because int might match the return type of a GCC
24769 builtin and then its argument prototype would still apply. */
24770#ifdef __cplusplus
24771extern "C"
24772#endif
24773char pow ();
24774int
24775main ()
24776{
24777return pow ();
24778 ;
24779 return 0;
24780}
24781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024782if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 ac_cv_lib_m_pow=yes
24784else
cristy8b350f62009-11-15 23:12:43 +000024785 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024786fi
cristy8b350f62009-11-15 23:12:43 +000024787rm -f core conftest.err conftest.$ac_objext \
24788 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024789LIBS=$ac_check_lib_save_LIBS
24790fi
cristy8b350f62009-11-15 23:12:43 +000024791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024792$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024793if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024794 POW_LIB=-lm
24795else
cristy8b350f62009-11-15 23:12:43 +000024796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024797$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24798fi
24799
24800fi
24801
24802fi
24803
cristy7d4a1d62011-10-13 15:54:12 +000024804ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24805if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24806 ac_have_decl=1
24807else
24808 ac_have_decl=0
24809fi
24810
24811cat >>confdefs.h <<_ACEOF
24812#define HAVE_DECL_STRERROR_R $ac_have_decl
24813_ACEOF
24814
24815for ac_func in strerror_r
24816do :
24817 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24818if test "x$ac_cv_func_strerror_r" = xyes; then :
24819 cat >>confdefs.h <<_ACEOF
24820#define HAVE_STRERROR_R 1
24821_ACEOF
24822
24823fi
24824done
24825
24826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24827$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24828if ${ac_cv_func_strerror_r_char_p+:} false; then :
24829 $as_echo_n "(cached) " >&6
24830else
24831
24832 ac_cv_func_strerror_r_char_p=no
24833 if test $ac_cv_have_decl_strerror_r = yes; then
24834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835/* end confdefs.h. */
24836$ac_includes_default
24837int
24838main ()
24839{
24840
24841 char buf[100];
24842 char x = *strerror_r (0, buf, sizeof buf);
24843 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024844 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024845
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850if ac_fn_c_try_compile "$LINENO"; then :
24851 ac_cv_func_strerror_r_char_p=yes
24852fi
24853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854 else
24855 # strerror_r is not declared. Choose between
24856 # systems that have relatively inaccessible declarations for the
24857 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24858 # former has a strerror_r that returns char*, while the latter
24859 # has a strerror_r that returns `int'.
24860 # This test should segfault on the DEC system.
24861 if test "$cross_compiling" = yes; then :
24862 :
24863else
24864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865/* end confdefs.h. */
24866$ac_includes_default
24867 extern char *strerror_r ();
24868int
24869main ()
24870{
24871char buf[100];
24872 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024873 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024874 ;
24875 return 0;
24876}
24877_ACEOF
24878if ac_fn_c_try_run "$LINENO"; then :
24879 ac_cv_func_strerror_r_char_p=yes
24880fi
24881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24882 conftest.$ac_objext conftest.beam conftest.$ac_ext
24883fi
24884
24885 fi
24886
24887fi
24888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24889$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24890if test $ac_cv_func_strerror_r_char_p = yes; then
24891
24892$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24893
24894fi
24895
cristy3ed852e2009-09-05 21:47:34 +000024896for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024897do :
24898 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024899if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024900 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024901#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024902_ACEOF
24903
cristy8b350f62009-11-15 23:12:43 +000024904ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024905if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024906
cristy8b350f62009-11-15 23:12:43 +000024907$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024908
24909fi
24910
24911fi
24912done
24913
24914
24915
cristy161b9262010-03-20 19:34:32 +000024916#
24917# Find math library
24918#
24919MATH_LIBS=''
24920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24921$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024922if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024923 $as_echo_n "(cached) " >&6
24924else
24925 ac_check_lib_save_LIBS=$LIBS
24926LIBS="-lm $LIBS"
24927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928/* end confdefs.h. */
24929
24930/* Override any GCC internal prototype to avoid an error.
24931 Use char because int might match the return type of a GCC
24932 builtin and then its argument prototype would still apply. */
24933#ifdef __cplusplus
24934extern "C"
24935#endif
24936char sqrt ();
24937int
24938main ()
24939{
24940return sqrt ();
24941 ;
24942 return 0;
24943}
24944_ACEOF
24945if ac_fn_c_try_link "$LINENO"; then :
24946 ac_cv_lib_m_sqrt=yes
24947else
24948 ac_cv_lib_m_sqrt=no
24949fi
24950rm -f core conftest.err conftest.$ac_objext \
24951 conftest$ac_exeext conftest.$ac_ext
24952LIBS=$ac_check_lib_save_LIBS
24953fi
24954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24955$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024956if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024957 MATH_LIBS="-lm"
24958fi
24959
24960LIBS="$MATH_LIBS $LIBS"
24961
24962
cristy7d4a1d62011-10-13 15:54:12 +000024963for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000024964do :
24965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24966ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024967if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024968 cat >>confdefs.h <<_ACEOF
24969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24970_ACEOF
24971
24972fi
24973done
24974
24975
cristye43a45e2009-09-28 14:49:00 +000024976#
24977# Check for clock_gettime().
24978#
cristy8b350f62009-11-15 23:12:43 +000024979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024980$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024981if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024982 $as_echo_n "(cached) " >&6
24983else
24984 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024986/* end confdefs.h. */
24987
24988/* Override any GCC internal prototype to avoid an error.
24989 Use char because int might match the return type of a GCC
24990 builtin and then its argument prototype would still apply. */
24991#ifdef __cplusplus
24992extern "C"
24993#endif
24994char clock_gettime ();
24995int
24996main ()
24997{
24998return clock_gettime ();
24999 ;
25000 return 0;
25001}
25002_ACEOF
25003for ac_lib in '' rt; do
25004 if test -z "$ac_lib"; then
25005 ac_res="none required"
25006 else
25007 ac_res=-l$ac_lib
25008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25009 fi
cristy8b350f62009-11-15 23:12:43 +000025010 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025011 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025012fi
cristy8b350f62009-11-15 23:12:43 +000025013rm -f core conftest.err conftest.$ac_objext \
25014 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025015 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025016 break
25017fi
25018done
cristyda16f162011-02-19 23:52:17 +000025019if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025020
cristye43a45e2009-09-28 14:49:00 +000025021else
25022 ac_cv_search_clock_gettime=no
25023fi
25024rm conftest.$ac_ext
25025LIBS=$ac_func_search_save_LIBS
25026fi
cristy8b350f62009-11-15 23:12:43 +000025027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025028$as_echo "$ac_cv_search_clock_gettime" >&6; }
25029ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025030if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25032
25033
cristy8b350f62009-11-15 23:12:43 +000025034$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025035
cristy8b350f62009-11-15 23:12:43 +000025036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025037$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025039/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025040
25041 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025042int
25043main ()
25044{
25045clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025046 ;
25047 return 0;
25048}
25049_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025050if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025051
cristy09b53e12011-10-14 12:47:22 +000025052 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25053$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025054
cristy8b350f62009-11-15 23:12:43 +000025055$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025056
25057
25058else
cristy09b53e12011-10-14 12:47:22 +000025059 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25060$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025061
25062fi
cristye43a45e2009-09-28 14:49:00 +000025063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064
25065else
25066
cristy8b350f62009-11-15 23:12:43 +000025067 for ac_func in gettimeofday ftime
25068do :
25069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25070ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025071if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025072 cat >>confdefs.h <<_ACEOF
25073#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25074_ACEOF
25075 break
25076fi
25077done
25078
25079
25080
25081fi
25082
25083
cristy3ed852e2009-09-05 21:47:34 +000025084########
25085#
25086# Check for function prototypes
25087#
25088########
25089
cristy8b350f62009-11-15 23:12:43 +000025090ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025091#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025092"
cristyda16f162011-02-19 23:52:17 +000025093if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025094 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025095else
cristy8b350f62009-11-15 23:12:43 +000025096 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025097fi
25098
cristy3ed852e2009-09-05 21:47:34 +000025099cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025100#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025103#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025104"
cristyda16f162011-02-19 23:52:17 +000025105if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025106 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025107else
cristy8b350f62009-11-15 23:12:43 +000025108 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025109fi
25110
cristy3ed852e2009-09-05 21:47:34 +000025111cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025112#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025113_ACEOF
25114
25115
cristy8b350f62009-11-15 23:12:43 +000025116ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025117#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025118"
cristyda16f162011-02-19 23:52:17 +000025119if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025120 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025121else
cristy8b350f62009-11-15 23:12:43 +000025122 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025123fi
25124
cristy3ed852e2009-09-05 21:47:34 +000025125cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025126#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025127_ACEOF
25128
25129
cristy8b350f62009-11-15 23:12:43 +000025130ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025131#include <stdio.h>
25132#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025133"
cristyda16f162011-02-19 23:52:17 +000025134if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025135 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025136else
cristy8b350f62009-11-15 23:12:43 +000025137 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025138fi
25139
cristy3ed852e2009-09-05 21:47:34 +000025140cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025141#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025142_ACEOF
25143
25144
cristy3ed852e2009-09-05 21:47:34 +000025145########
25146#
25147# C++ Support Tests (For Magick++)
25148#
25149########
25150have_magick_plus_plus='no'
25151if test "$with_magick_plus_plus" = 'yes'; then
25152 OLIBS="$LIBS"
25153 LIBS=''
25154 ac_ext=cpp
25155ac_cpp='$CXXCPP $CPPFLAGS'
25156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25159
25160
25161 # Full set of headers used...
25162 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25163 # functional iomanip iosfwd iostream iterator list string strstream utility
25164 ac_ext=cpp
25165ac_cpp='$CXXCPP $CPPFLAGS'
25166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25169
25170 ac_ext=cpp
25171ac_cpp='$CXXCPP $CPPFLAGS'
25172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25175if test -z "$CXX"; then
25176 if test -n "$CCC"; then
25177 CXX=$CCC
25178 else
25179 if test -n "$ac_tool_prefix"; then
25180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25181 do
25182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025186if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025187 $as_echo_n "(cached) " >&6
25188else
25189 if test -n "$CXX"; then
25190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25191else
25192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25193for as_dir in $PATH
25194do
25195 IFS=$as_save_IFS
25196 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025197 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25199 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025201 break 2
25202 fi
25203done
cristy8b350f62009-11-15 23:12:43 +000025204 done
cristy3ed852e2009-09-05 21:47:34 +000025205IFS=$as_save_IFS
25206
25207fi
25208fi
25209CXX=$ac_cv_prog_CXX
25210if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025212$as_echo "$CXX" >&6; }
25213else
cristy8b350f62009-11-15 23:12:43 +000025214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025215$as_echo "no" >&6; }
25216fi
25217
25218
25219 test -n "$CXX" && break
25220 done
25221fi
25222if test -z "$CXX"; then
25223 ac_ct_CXX=$CXX
25224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25225do
25226 # Extract the first word of "$ac_prog", so it can be a program name with args.
25227set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025229$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025230if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025231 $as_echo_n "(cached) " >&6
25232else
25233 if test -n "$ac_ct_CXX"; then
25234 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25235else
25236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237for as_dir in $PATH
25238do
25239 IFS=$as_save_IFS
25240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25243 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245 break 2
25246 fi
25247done
cristy8b350f62009-11-15 23:12:43 +000025248 done
cristy3ed852e2009-09-05 21:47:34 +000025249IFS=$as_save_IFS
25250
25251fi
25252fi
25253ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25254if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo "$ac_ct_CXX" >&6; }
25257else
cristy8b350f62009-11-15 23:12:43 +000025258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025259$as_echo "no" >&6; }
25260fi
25261
25262
25263 test -n "$ac_ct_CXX" && break
25264done
25265
25266 if test "x$ac_ct_CXX" = x; then
25267 CXX="g++"
25268 else
25269 case $cross_compiling:$ac_tool_warned in
25270yes:)
cristy8b350f62009-11-15 23:12:43 +000025271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25273ac_tool_warned=yes ;;
25274esac
25275 CXX=$ac_ct_CXX
25276 fi
25277fi
25278
25279 fi
25280fi
25281# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025282$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025283set X $ac_compile
25284ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025285for ac_option in --version -v -V -qversion; do
25286 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025287case "(($ac_try" in
25288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289 *) ac_try_echo=$ac_try;;
25290esac
cristy8b350f62009-11-15 23:12:43 +000025291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25292$as_echo "$ac_try_echo"; } >&5
25293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025294 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025295 if test -s conftest.err; then
25296 sed '10a\
25297... rest of stderr output deleted ...
25298 10q' conftest.err >conftest.er1
25299 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025300 fi
cristycd4c5312009-11-22 01:19:08 +000025301 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303 test $ac_status = 0; }
25304done
cristy3ed852e2009-09-05 21:47:34 +000025305
cristy8b350f62009-11-15 23:12:43 +000025306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025308if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025309 $as_echo_n "(cached) " >&6
25310else
cristy8b350f62009-11-15 23:12:43 +000025311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025312/* end confdefs.h. */
25313
25314int
25315main ()
25316{
25317#ifndef __GNUC__
25318 choke me
25319#endif
25320
25321 ;
25322 return 0;
25323}
25324_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025325if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025326 ac_compiler_gnu=yes
25327else
cristy8b350f62009-11-15 23:12:43 +000025328 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025329fi
cristy3ed852e2009-09-05 21:47:34 +000025330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25332
25333fi
cristy8b350f62009-11-15 23:12:43 +000025334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25336if test $ac_compiler_gnu = yes; then
25337 GXX=yes
25338else
25339 GXX=
25340fi
25341ac_test_CXXFLAGS=${CXXFLAGS+set}
25342ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025344$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025345if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025346 $as_echo_n "(cached) " >&6
25347else
25348 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25349 ac_cxx_werror_flag=yes
25350 ac_cv_prog_cxx_g=no
25351 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025353/* end confdefs.h. */
25354
25355int
25356main ()
25357{
25358
25359 ;
25360 return 0;
25361}
25362_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025363if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025364 ac_cv_prog_cxx_g=yes
25365else
cristy8b350f62009-11-15 23:12:43 +000025366 CXXFLAGS=""
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368/* end confdefs.h. */
25369
25370int
25371main ()
25372{
25373
25374 ;
25375 return 0;
25376}
25377_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025378if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025379
cristy8b350f62009-11-15 23:12:43 +000025380else
25381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025382 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025384/* end confdefs.h. */
25385
25386int
25387main ()
25388{
25389
25390 ;
25391 return 0;
25392}
25393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025394if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025395 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025396fi
cristy3ed852e2009-09-05 21:47:34 +000025397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398fi
cristy3ed852e2009-09-05 21:47:34 +000025399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400fi
cristy3ed852e2009-09-05 21:47:34 +000025401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25403fi
cristy8b350f62009-11-15 23:12:43 +000025404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025405$as_echo "$ac_cv_prog_cxx_g" >&6; }
25406if test "$ac_test_CXXFLAGS" = set; then
25407 CXXFLAGS=$ac_save_CXXFLAGS
25408elif test $ac_cv_prog_cxx_g = yes; then
25409 if test "$GXX" = yes; then
25410 CXXFLAGS="-g -O2"
25411 else
25412 CXXFLAGS="-g"
25413 fi
25414else
25415 if test "$GXX" = yes; then
25416 CXXFLAGS="-O2"
25417 else
25418 CXXFLAGS=
25419 fi
25420fi
25421ac_ext=cpp
25422ac_cpp='$CXXCPP $CPPFLAGS'
25423ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25426
cristy73bd4a52010-10-05 11:24:23 +000025427depcc="$CXX" am_compiler_list=
25428
25429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25430$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025431if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025432 $as_echo_n "(cached) " >&6
25433else
25434 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25435 # We make a subdir and do the tests there. Otherwise we can end up
25436 # making bogus files that we don't know about and never remove. For
25437 # instance it was reported that on HP-UX the gcc test will end up
25438 # making a dummy file named `D' -- because `-MD' means `put the output
25439 # in D'.
25440 mkdir conftest.dir
25441 # Copy depcomp to subdir because otherwise we won't find it if we're
25442 # using a relative directory.
25443 cp "$am_depcomp" conftest.dir
25444 cd conftest.dir
25445 # We will build objects and dependencies in a subdirectory because
25446 # it helps to detect inapplicable dependency modes. For instance
25447 # both Tru64's cc and ICC support -MD to output dependencies as a
25448 # side effect of compilation, but ICC will put the dependencies in
25449 # the current directory while Tru64 will put them in the object
25450 # directory.
25451 mkdir sub
25452
25453 am_cv_CXX_dependencies_compiler_type=none
25454 if test "$am_compiler_list" = ""; then
25455 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25456 fi
25457 am__universal=false
25458 case " $depcc " in #(
25459 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25460 esac
25461
25462 for depmode in $am_compiler_list; do
25463 # Setup a source with many dependencies, because some compilers
25464 # like to wrap large dependency lists on column 80 (with \), and
25465 # we should not choose a depcomp mode which is confused by this.
25466 #
25467 # We need to recreate these files for each test, as the compiler may
25468 # overwrite some of them when testing with obscure command lines.
25469 # This happens at least with the AIX C compiler.
25470 : > sub/conftest.c
25471 for i in 1 2 3 4 5 6; do
25472 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25473 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25474 # Solaris 8's {/usr,}/bin/sh.
25475 touch sub/conftst$i.h
25476 done
25477 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25478
25479 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25480 # mode. It turns out that the SunPro C++ compiler does not properly
25481 # handle `-M -o', and we need to detect this. Also, some Intel
25482 # versions had trouble with output in subdirs
25483 am__obj=sub/conftest.${OBJEXT-o}
25484 am__minus_obj="-o $am__obj"
25485 case $depmode in
25486 gcc)
25487 # This depmode causes a compiler race in universal mode.
25488 test "$am__universal" = false || continue
25489 ;;
25490 nosideeffect)
25491 # after this tag, mechanisms are not by side-effect, so they'll
25492 # only be used when explicitly requested
25493 if test "x$enable_dependency_tracking" = xyes; then
25494 continue
25495 else
25496 break
25497 fi
25498 ;;
25499 msvisualcpp | msvcmsys)
25500 # This compiler won't grok `-c -o', but also, the minuso test has
25501 # not run yet. These depmodes are late enough in the game, and
25502 # so weak that their functioning should not be impacted.
25503 am__obj=conftest.${OBJEXT-o}
25504 am__minus_obj=
25505 ;;
25506 none) break ;;
25507 esac
25508 if depmode=$depmode \
25509 source=sub/conftest.c object=$am__obj \
25510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25511 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25512 >/dev/null 2>conftest.err &&
25513 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25514 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25515 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25516 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25517 # icc doesn't choke on unknown options, it will just issue warnings
25518 # or remarks (even with -Werror). So we grep stderr for any message
25519 # that says an option was ignored or not supported.
25520 # When given -MP, icc 7.0 and 7.1 complain thusly:
25521 # icc: Command line warning: ignoring option '-M'; no argument required
25522 # The diagnosis changed in icc 8.0:
25523 # icc: Command line remark: option '-MP' not supported
25524 if (grep 'ignoring option' conftest.err ||
25525 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25526 am_cv_CXX_dependencies_compiler_type=$depmode
25527 break
25528 fi
25529 fi
25530 done
25531
25532 cd ..
25533 rm -rf conftest.dir
25534else
25535 am_cv_CXX_dependencies_compiler_type=none
25536fi
25537
25538fi
25539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25540$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25541CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25542
25543 if
25544 test "x$enable_dependency_tracking" != xno \
25545 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25546 am__fastdepCXX_TRUE=
25547 am__fastdepCXX_FALSE='#'
25548else
25549 am__fastdepCXX_TRUE='#'
25550 am__fastdepCXX_FALSE=
25551fi
25552
25553
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25555$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025556if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025557 $as_echo_n "(cached) " >&6
25558else
25559
25560 ac_ext=cpp
25561ac_cpp='$CXXCPP $CPPFLAGS'
25562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25565
25566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567/* end confdefs.h. */
25568
25569int f(int x){return 1;}
25570int f(char x){return 1;}
25571int f(bool x){return 1;}
25572
25573int
25574main ()
25575{
25576bool b = true; return f(b);
25577 ;
25578 return 0;
25579}
25580_ACEOF
25581if ac_fn_cxx_try_compile "$LINENO"; then :
25582 ax_cv_cxx_bool=yes
25583else
25584 ax_cv_cxx_bool=no
25585fi
25586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25587 ac_ext=cpp
25588ac_cpp='$CXXCPP $CPPFLAGS'
25589ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25592
25593
25594fi
25595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25596$as_echo "$ax_cv_cxx_bool" >&6; }
25597if test "$ax_cv_cxx_bool" = yes; then
25598
25599$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25600
25601fi
25602
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25604$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025605if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025606 $as_echo_n "(cached) " >&6
25607else
25608
25609 ac_ext=cpp
25610ac_cpp='$CXXCPP $CPPFLAGS'
25611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25614
25615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616/* end confdefs.h. */
25617namespace Outer { namespace Inner { int i = 0; }}
25618int
25619main ()
25620{
25621using namespace Outer::Inner; return i;
25622 ;
25623 return 0;
25624}
25625_ACEOF
25626if ac_fn_cxx_try_compile "$LINENO"; then :
25627 ax_cv_cxx_namespaces=yes
25628else
25629 ax_cv_cxx_namespaces=no
25630fi
25631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632 ac_ext=cpp
25633ac_cpp='$CXXCPP $CPPFLAGS'
25634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25637
25638
25639fi
25640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25641$as_echo "$ax_cv_cxx_namespaces" >&6; }
25642if test "$ax_cv_cxx_namespaces" = yes; then
25643
25644$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25645
25646fi
25647
25648
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25650$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025651if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025652 $as_echo_n "(cached) " >&6
25653else
25654
25655 ac_ext=cpp
25656ac_cpp='$CXXCPP $CPPFLAGS'
25657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25660
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662/* end confdefs.h. */
25663#include <iostream>
25664 std::istream& is = std::cin;
25665int
25666main ()
25667{
25668
25669 ;
25670 return 0;
25671}
25672_ACEOF
25673if ac_fn_cxx_try_compile "$LINENO"; then :
25674 ax_cv_cxx_have_std_namespace=yes
25675else
25676 ax_cv_cxx_have_std_namespace=no
25677fi
25678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679 ac_ext=cpp
25680ac_cpp='$CXXCPP $CPPFLAGS'
25681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25684
25685
25686fi
25687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25688$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25689 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25690
25691$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25692
25693 fi
25694
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25696$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025697if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025698 $as_echo_n "(cached) " >&6
25699else
25700
25701
25702 ac_ext=cpp
25703ac_cpp='$CXXCPP $CPPFLAGS'
25704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25707
25708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709/* end confdefs.h. */
25710#include <iostream>
25711#include <map>
25712#include <iomanip>
25713#include <cmath>
25714#ifdef HAVE_NAMESPACES
25715using namespace std;
25716#endif
25717int
25718main ()
25719{
25720return 0;
25721 ;
25722 return 0;
25723}
25724_ACEOF
25725if ac_fn_cxx_try_compile "$LINENO"; then :
25726 ac_cv_cxx_have_std_libs=yes
25727else
25728 ac_cv_cxx_have_std_libs=no
25729fi
25730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 ac_ext=cpp
25732ac_cpp='$CXXCPP $CPPFLAGS'
25733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25736
25737
25738fi
25739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25740$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25741if test "$ac_cv_cxx_have_std_libs" = yes; then
25742
25743$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25744
25745fi
25746
cristy3ed852e2009-09-05 21:47:34 +000025747
25748 OPENMP_CXXFLAGS=
25749 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025750if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025751 enableval=$enable_openmp;
25752fi
25753
25754 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25756$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025757if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025758 $as_echo_n "(cached) " >&6
25759else
cristy8b350f62009-11-15 23:12:43 +000025760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025762
25763#ifndef _OPENMP
25764 choke me
25765#endif
25766#include <omp.h>
25767int main () { return omp_get_num_threads (); }
25768
25769_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025770if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025771 ac_cv_prog_cxx_openmp='none needed'
25772else
cristy8b350f62009-11-15 23:12:43 +000025773 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025774 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25775 ac_save_CXXFLAGS=$CXXFLAGS
25776 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025779
25780#ifndef _OPENMP
25781 choke me
25782#endif
25783#include <omp.h>
25784int main () { return omp_get_num_threads (); }
25785
25786_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025787if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025788 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025789fi
cristy8b350f62009-11-15 23:12:43 +000025790rm -f core conftest.err conftest.$ac_objext \
25791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025792 CXXFLAGS=$ac_save_CXXFLAGS
25793 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25794 break
25795 fi
25796 done
25797fi
cristy8b350f62009-11-15 23:12:43 +000025798rm -f core conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025800fi
cristy8b350f62009-11-15 23:12:43 +000025801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025802$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25803 case $ac_cv_prog_cxx_openmp in #(
25804 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025805 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025806 *)
cristy8b350f62009-11-15 23:12:43 +000025807 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025808 esac
25809 fi
25810
25811
25812 ac_ext=c
25813ac_cpp='$CPP $CPPFLAGS'
25814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25816ac_compiler_gnu=$ac_cv_c_compiler_gnu
25817
25818
cristy8b350f62009-11-15 23:12:43 +000025819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025820$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25821 if \
cristy964cb7f2010-04-25 23:18:00 +000025822 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025823 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025824 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025825 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025826 have_magick_plus_plus='yes'
25827 else
25828 have_magick_plus_plus='no (failed tests)'
25829 fi
cristy09b53e12011-10-14 12:47:22 +000025830 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25831$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025832 LIBS="$OLIBS"
25833fi
cristy73bd4a52010-10-05 11:24:23 +000025834 if test "$have_magick_plus_plus" = 'yes'; then
25835 WITH_MAGICK_PLUS_PLUS_TRUE=
25836 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25837else
25838 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25839 WITH_MAGICK_PLUS_PLUS_FALSE=
25840fi
25841
cristy3ed852e2009-09-05 21:47:34 +000025842
25843# Only check for delegate libraries in subdirectories if requested.
25844if test "$enable_delegate_build" != 'no'; then
25845 # Check for delegate sub-directories and add -I & -L options as required.
25846 # This presumes that delegates are installed as detailed in the ImageMagick
25847 # README. If delegates are installed in a standard location where the
25848 # compiler will automatically find them then these options should not be
25849 # required.
25850
25851 #
25852 # Most delegates have includes in the same directory as the library, but not all...
25853 #
25854 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000025855 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 +000025856 if test -d "$builddir/$dir"; then
25857 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25858 else
25859 if test -d "$srcdirfull/$dir"; then
25860 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25861 fi
25862 fi
25863 done
25864
25865 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000025866 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 +000025867 if test -d "$builddir/$dir/.libs"; then
25868 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25869 else
25870 if test -d "$srcdirfull/$dir/.libs"; then
25871 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25872 fi
25873 fi
25874 if test -d "$builddir/$dir"; then
25875 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25876 else
25877 if test -d "$srcdirfull/$dir"; then
25878 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25879 fi
25880 fi
25881 done
25882fi
25883
25884# Assume that delegate headers reside under same directory as ImageMagick
25885# installation prefix.
25886MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25887
25888#
25889# Find the X11 RGB database
25890#
cristy8b350f62009-11-15 23:12:43 +000025891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025892$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025893if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025894 $as_echo_n "(cached) " >&6
25895else
25896 # Look for the header file in a standard set of common directories.
25897# Check X11 before X11Rn because it is often a symlink to the current release.
25898 for ac_dir in \
25899 /lib/usr/lib/X11 \
25900 /usr/X11/lib \
25901 /usr/X11R4/lib \
25902 /usr/X11R5/lib \
25903 /usr/X11R6/lib \
25904 /usr/X11R7/lib \
25905 /usr/X386/lib \
25906 /usr/XFree86/lib/X11 \
25907 /usr/athena/lib \
25908 /usr/lib \
25909 /usr/lib/X11 \
25910 /usr/lib/X11R4 \
25911 /usr/lib/X11R5 \
25912 /usr/lib/X11R6 \
25913 /usr/lib/X11R7 \
25914 /usr/local/X11/lib \
25915 /usr/local/X11R4/lib \
25916 /usr/local/X11R5/lib \
25917 /usr/local/X11R6/lib \
25918 /usr/local/lib \
25919 /usr/local/lib/X11 \
25920 /usr/local/lib/X11R4 \
25921 /usr/local/lib/X11R5 \
25922 /usr/local/lib/X11R6 \
25923 /usr/local/lib/X11R7 \
25924 /usr/local/x11r5/lib \
25925 /usr/lpp/Xamples/lib \
25926 /usr/openwin/lib \
25927 /usr/openwin/share/lib \
25928 /usr/unsupported/lib \
25929 /usr/x386/lib \
25930 ; do
25931 if test -f "$ac_dir/X11/rgb.txt"; then
25932 im_cv_x_configure="$ac_dir/X11/"
25933 break
25934 elif test -f "$ac_dir/rgb.txt"; then
25935 im_cv_x_configure="$ac_dir/"
25936 break
25937 fi
25938
25939 done
25940fi
cristy8b350f62009-11-15 23:12:43 +000025941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo "$im_cv_x_configure" >&6; }
25943X11_CONFIGURE_PATH="$im_cv_x_configure"
25944case "${build_os}" in
25945 mingw* )
25946 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25947 ;;
25948esac
25949
25950cat >>confdefs.h <<_ACEOF
25951#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25952_ACEOF
25953
25954
25955#
25956# Find OpenMP library
25957#
25958GOMP_LIBS=''
25959if test "$enable_openmp" != 'no'; then
25960 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000025961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025962$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025963if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025964 $as_echo_n "(cached) " >&6
25965else
25966 ac_check_lib_save_LIBS=$LIBS
25967LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025969/* end confdefs.h. */
25970
25971/* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25974#ifdef __cplusplus
25975extern "C"
25976#endif
25977char GOMP_parallel_start ();
25978int
25979main ()
25980{
25981return GOMP_parallel_start ();
25982 ;
25983 return 0;
25984}
25985_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025986if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 ac_cv_lib_gomp_GOMP_parallel_start=yes
25988else
cristy8b350f62009-11-15 23:12:43 +000025989 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025990fi
cristy8b350f62009-11-15 23:12:43 +000025991rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025993LIBS=$ac_check_lib_save_LIBS
25994fi
cristy8b350f62009-11-15 23:12:43 +000025995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025996$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025997if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025998 GOMP_LIBS="-lgomp"
25999fi
26000 # gcc
26001 else
cristy8b350f62009-11-15 23:12:43 +000026002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026003$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026004if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026005 $as_echo_n "(cached) " >&6
26006else
26007 ac_check_lib_save_LIBS=$LIBS
26008LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026009cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026010/* end confdefs.h. */
26011
26012/* Override any GCC internal prototype to avoid an error.
26013 Use char because int might match the return type of a GCC
26014 builtin and then its argument prototype would still apply. */
26015#ifdef __cplusplus
26016extern "C"
26017#endif
26018char sunw_mp_register_warn ();
26019int
26020main ()
26021{
26022return sunw_mp_register_warn ();
26023 ;
26024 return 0;
26025}
26026_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026027if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026028 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26029else
cristy8b350f62009-11-15 23:12:43 +000026030 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026031fi
cristy8b350f62009-11-15 23:12:43 +000026032rm -f core conftest.err conftest.$ac_objext \
26033 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026034LIBS=$ac_check_lib_save_LIBS
26035fi
cristy8b350f62009-11-15 23:12:43 +000026036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026037$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026038if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026039 GOMP_LIBS="-lmtsk"
26040fi
26041 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000026042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026043$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026044if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026045 $as_echo_n "(cached) " >&6
26046else
26047 ac_check_lib_save_LIBS=$LIBS
26048LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026050/* end confdefs.h. */
26051
26052/* Override any GCC internal prototype to avoid an error.
26053 Use char because int might match the return type of a GCC
26054 builtin and then its argument prototype would still apply. */
26055#ifdef __cplusplus
26056extern "C"
26057#endif
26058char _xlsmpFlush ();
26059int
26060main ()
26061{
26062return _xlsmpFlush ();
26063 ;
26064 return 0;
26065}
26066_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026067if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026068 ac_cv_lib_xlsmp__xlsmpFlush=yes
26069else
cristy8b350f62009-11-15 23:12:43 +000026070 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026071fi
cristy8b350f62009-11-15 23:12:43 +000026072rm -f core conftest.err conftest.$ac_objext \
26073 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026074LIBS=$ac_check_lib_save_LIBS
26075fi
cristy8b350f62009-11-15 23:12:43 +000026076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026078if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 GOMP_LIBS="-lxlsmp"
26080fi
26081 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000026082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026084if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026085 $as_echo_n "(cached) " >&6
26086else
26087 ac_check_lib_save_LIBS=$LIBS
26088LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026090/* end confdefs.h. */
26091
26092/* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26095#ifdef __cplusplus
26096extern "C"
26097#endif
26098char mp_destroy ();
26099int
26100main ()
26101{
26102return mp_destroy ();
26103 ;
26104 return 0;
26105}
26106_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026107if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026108 ac_cv_lib_mp_mp_destroy=yes
26109else
cristy8b350f62009-11-15 23:12:43 +000026110 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026111fi
cristy8b350f62009-11-15 23:12:43 +000026112rm -f core conftest.err conftest.$ac_objext \
26113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026114LIBS=$ac_check_lib_save_LIBS
26115fi
cristy8b350f62009-11-15 23:12:43 +000026116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026117$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026118if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026119 GOMP_LIBS="-lmp"
26120fi
26121 # SGI IRIX 6.5 MIPSpro C/C++
26122 fi
26123 LIBS="$GOMP_LIBS $LIBS"
26124fi
26125
26126
26127#
26128# Find Posix threads library
26129#
26130THREAD_LIBS=''
26131if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26132
26133 if test "x$PTHREAD_LIBS" = "x"; then
26134 case "${host_cpu}-${host_os}" in
26135 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026136
26137
26138
26139ac_ext=c
26140ac_cpp='$CPP $CPPFLAGS'
26141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143ac_compiler_gnu=$ac_cv_c_compiler_gnu
26144
26145magick_pthread_lib_ok=no
26146
26147LIB=-lc_r
26148save_LIBS="$LIBS"
26149LIBS="$LIBS $LIB"
26150
26151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26152$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154/* end confdefs.h. */
26155#include <pthread.h>
26156int
26157main ()
26158{
26159 pthread_t th;
26160 pthread_join(th, 0);
26161 pthread_attr_init(0);
26162 pthread_cleanup_push(0, 0);
26163 pthread_create(0,0,0,0);
26164 pthread_cleanup_pop(0);
26165 ;
26166 return 0;
26167}
26168_ACEOF
26169if ac_fn_c_try_link "$LINENO"; then :
26170 magick_pthread_lib_ok=yes
26171fi
26172rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174
26175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26176$as_echo "${magick_pthread_lib_ok}" >&6; }
26177if test "$magick_pthread_lib_ok" = yes
26178then
26179 PTHREAD_LIBS=-lc_r
26180 :
26181else
26182
26183 :
26184fi
26185
26186LIBS="$save_LIBS"
26187
26188ac_ext=c
26189ac_cpp='$CPP $CPPFLAGS'
26190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26192ac_compiler_gnu=$ac_cv_c_compiler_gnu
26193
26194 ;;
cristy3ed852e2009-09-05 21:47:34 +000026195 esac
26196 fi
26197
26198 for lib in pthread pthreads; do
26199 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026200
26201
26202
26203ac_ext=c
26204ac_cpp='$CPP $CPPFLAGS'
26205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207ac_compiler_gnu=$ac_cv_c_compiler_gnu
26208
26209magick_pthread_lib_ok=no
26210
26211LIB=-l$lib
26212save_LIBS="$LIBS"
26213LIBS="$LIBS $LIB"
26214
26215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26216$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218/* end confdefs.h. */
26219#include <pthread.h>
26220int
26221main ()
26222{
26223 pthread_t th;
26224 pthread_join(th, 0);
26225 pthread_attr_init(0);
26226 pthread_cleanup_push(0, 0);
26227 pthread_create(0,0,0,0);
26228 pthread_cleanup_pop(0);
26229 ;
26230 return 0;
26231}
26232_ACEOF
26233if ac_fn_c_try_link "$LINENO"; then :
26234 magick_pthread_lib_ok=yes
26235fi
26236rm -f core conftest.err conftest.$ac_objext \
26237 conftest$ac_exeext conftest.$ac_ext
26238
26239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26240$as_echo "${magick_pthread_lib_ok}" >&6; }
26241if test "$magick_pthread_lib_ok" = yes
26242then
26243 PTHREAD_LIBS=-l$lib
26244 :
26245else
26246
26247 :
26248fi
26249
26250LIBS="$save_LIBS"
26251
26252ac_ext=c
26253ac_cpp='$CPP $CPPFLAGS'
26254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256ac_compiler_gnu=$ac_cv_c_compiler_gnu
26257
26258
cristy3ed852e2009-09-05 21:47:34 +000026259 fi
26260 done
26261
26262 THREAD_LIBS="$PTHREAD_LIBS"
26263 LIBS="$LIBS $THREAD_LIBS"
26264fi
26265
26266
26267#
26268# Check for umem.
26269#
26270have_umem='no'
26271UMEM_LIBS=''
26272if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026274$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026275 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26276$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026277 failed=0
26278 passed=0
cristy8b350f62009-11-15 23:12:43 +000026279 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026280if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026281 passed=`expr $passed + 1`
26282else
26283 failed=`expr $failed + 1`
26284fi
26285
26286
cristy8b350f62009-11-15 23:12:43 +000026287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026288$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026289if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026290 $as_echo_n "(cached) " >&6
26291else
26292 ac_check_lib_save_LIBS=$LIBS
26293LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026295/* end confdefs.h. */
26296
26297/* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26300#ifdef __cplusplus
26301extern "C"
26302#endif
26303char umem_alloc ();
26304int
26305main ()
26306{
26307return umem_alloc ();
26308 ;
26309 return 0;
26310}
26311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 ac_cv_lib_umem_umem_alloc=yes
26314else
cristy8b350f62009-11-15 23:12:43 +000026315 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026316fi
cristy8b350f62009-11-15 23:12:43 +000026317rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026319LIBS=$ac_check_lib_save_LIBS
26320fi
cristy8b350f62009-11-15 23:12:43 +000026321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026322$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026323if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026324 passed=`expr $passed + 1`
26325else
26326 failed=`expr $failed + 1`
26327fi
26328
cristy8b350f62009-11-15 23:12:43 +000026329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026330$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026331if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026332 $as_echo_n "(cached) " >&6
26333else
26334 ac_check_lib_save_LIBS=$LIBS
26335LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026337/* end confdefs.h. */
26338
26339/* Override any GCC internal prototype to avoid an error.
26340 Use char because int might match the return type of a GCC
26341 builtin and then its argument prototype would still apply. */
26342#ifdef __cplusplus
26343extern "C"
26344#endif
26345char umem_free ();
26346int
26347main ()
26348{
26349return umem_free ();
26350 ;
26351 return 0;
26352}
26353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026355 ac_cv_lib_umem_umem_free=yes
26356else
cristy8b350f62009-11-15 23:12:43 +000026357 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026358fi
cristy8b350f62009-11-15 23:12:43 +000026359rm -f core conftest.err conftest.$ac_objext \
26360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026361LIBS=$ac_check_lib_save_LIBS
26362fi
cristy8b350f62009-11-15 23:12:43 +000026363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026364$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026365if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026366 passed=`expr $passed + 1`
26367else
26368 failed=`expr $failed + 1`
26369fi
26370
cristy8b350f62009-11-15 23:12:43 +000026371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026372$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26373 if test $passed -gt 0; then
26374 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026375 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26376$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026377 have_umem='no (failed tests)'
26378 else
26379 UMEM_LIBS='-lumem'
26380 LIBS="$UMEM_LIBS $LIBS"
26381
cristy8b350f62009-11-15 23:12:43 +000026382$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026383
cristy09b53e12011-10-14 12:47:22 +000026384 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26385$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026386 have_umem='yes'
26387 fi
26388 else
cristy09b53e12011-10-14 12:47:22 +000026389 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26390$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026391 fi
26392fi
cristy73bd4a52010-10-05 11:24:23 +000026393 if test "$have_umem" = 'yes'; then
26394 HasUMEM_TRUE=
26395 HasUMEM_FALSE='#'
26396else
26397 HasUMEM_TRUE='#'
26398 HasUMEM_FALSE=
26399fi
26400
cristy3ed852e2009-09-05 21:47:34 +000026401
26402
26403#
26404# Add support for ccmalloc memory debugging library if requested
26405#
26406have_ccmalloc='no'
26407CCMALLOC_LIBS=''
26408if test "$enable_ccmalloc" = 'yes'; then
26409 # Extract the first word of "ccmalloc", so it can be a program name with args.
26410set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026413if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026414 $as_echo_n "(cached) " >&6
26415else
26416 case $CCMALLOCDelegate in
26417 [\\/]* | ?:[\\/]*)
26418 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26419 ;;
26420 *)
26421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26422for as_dir in $PATH
26423do
26424 IFS=$as_save_IFS
26425 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026426 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26428 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026430 break 2
26431 fi
26432done
cristy8b350f62009-11-15 23:12:43 +000026433 done
cristy3ed852e2009-09-05 21:47:34 +000026434IFS=$as_save_IFS
26435
26436 ;;
26437esac
26438fi
26439CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26440if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026442$as_echo "$CCMALLOCDelegate" >&6; }
26443else
cristy8b350f62009-11-15 23:12:43 +000026444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026445$as_echo "no" >&6; }
26446fi
26447
26448
26449 if test -n "$CCMALLOCDelegate"; then
26450 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26451 OLIBS="$LIBS"
26452 # Assume that gcc is used with ccmalloc.
26453 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026455$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026456if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026457 $as_echo_n "(cached) " >&6
26458else
26459 ac_check_lib_save_LIBS=$LIBS
26460LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026462/* end confdefs.h. */
26463
26464/* Override any GCC internal prototype to avoid an error.
26465 Use char because int might match the return type of a GCC
26466 builtin and then its argument prototype would still apply. */
26467#ifdef __cplusplus
26468extern "C"
26469#endif
26470char ccmalloc_malloc ();
26471int
26472main ()
26473{
26474return ccmalloc_malloc ();
26475 ;
26476 return 0;
26477}
26478_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026479if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026480 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26481else
cristy8b350f62009-11-15 23:12:43 +000026482 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026483fi
cristy8b350f62009-11-15 23:12:43 +000026484rm -f core conftest.err conftest.$ac_objext \
26485 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026486LIBS=$ac_check_lib_save_LIBS
26487fi
cristy8b350f62009-11-15 23:12:43 +000026488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026489$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026490if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026491 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26492fi
26493
26494 if test -n "$CCMALLOC_LIBS"; then
26495 LIBS="$OLIBS"
26496 LIBS="$LIBS $CCMALLOC_LIBS"
26497 have_ccmalloc='yes'
26498 else
26499 LIBS="$OLIBS"
26500 fi
26501 fi
26502fi
26503
26504#
26505# Add support for efence memory debugging library if requested
26506#
26507if test "$enable_efence" = 'yes'; then
26508 EFENCE_LIBS='-lefence'
26509 LIBS="$EFENCE_LIBS $LIBS"
26510fi
26511
cristy3ed852e2009-09-05 21:47:34 +000026512
26513#
26514# Check for BZLIB
26515#
26516
26517
26518# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026519if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 withval=$with_bzlib; with_bzlib=$withval
26521else
26522 with_bzlib='yes'
26523fi
26524
26525
26526if test "$with_bzlib" != 'yes'; then
26527 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26528fi
26529
26530have_bzlib='no'
26531if test "$with_bzlib" != 'no'; then
26532 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026533 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26534$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026536$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026537 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26538$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026539 failed=0
26540 passed=0
26541 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026542 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026543if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026544 passed=`expr $passed + 1`
26545else
26546 failed=`expr $failed + 1`
26547fi
26548
26549
cristy8b350f62009-11-15 23:12:43 +000026550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026551$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026552if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026553 $as_echo_n "(cached) " >&6
26554else
26555 ac_check_lib_save_LIBS=$LIBS
26556LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026558/* end confdefs.h. */
26559
26560/* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26563#ifdef __cplusplus
26564extern "C"
26565#endif
26566char BZ2_bzDecompress ();
26567int
26568main ()
26569{
26570return BZ2_bzDecompress ();
26571 ;
26572 return 0;
26573}
26574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026576 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26577else
cristy8b350f62009-11-15 23:12:43 +000026578 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026579fi
cristy8b350f62009-11-15 23:12:43 +000026580rm -f core conftest.err conftest.$ac_objext \
26581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026582LIBS=$ac_check_lib_save_LIBS
26583fi
cristy8b350f62009-11-15 23:12:43 +000026584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026585$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026586if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026587 found_libbz=`expr $found_libbz + 1`
26588fi
26589
26590 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026593if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 $as_echo_n "(cached) " >&6
26595else
26596 ac_check_lib_save_LIBS=$LIBS
26597LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026599/* end confdefs.h. */
26600
26601/* Override any GCC internal prototype to avoid an error.
26602 Use char because int might match the return type of a GCC
26603 builtin and then its argument prototype would still apply. */
26604#ifdef __cplusplus
26605extern "C"
26606#endif
26607char _imp__BZ2_decompress ();
26608int
26609main ()
26610{
26611return _imp__BZ2_decompress ();
26612 ;
26613 return 0;
26614}
26615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26618else
cristy8b350f62009-11-15 23:12:43 +000026619 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026620fi
cristy8b350f62009-11-15 23:12:43 +000026621rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026623LIBS=$ac_check_lib_save_LIBS
26624fi
cristy8b350f62009-11-15 23:12:43 +000026625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026627if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 found_libbz=`expr $found_libbz + 1`
26629fi
26630
26631 fi
26632 if test $found_libbz -gt 0; then
26633 passed=`expr $passed + 1`
26634 else
26635 failed=`expr $failed + 1`
26636 fi
cristy8b350f62009-11-15 23:12:43 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026638$as_echo_n "checking if BZLIB package is complete... " >&6; }
26639 if test $passed -gt 0; then
26640 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026641 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26642$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026643 have_bzlib='no (failed tests)'
26644 else
26645 BZLIB_LIBS='-lbz2'
26646 LIBS="$BZLIB_LIBS $LIBS"
26647
cristy8b350f62009-11-15 23:12:43 +000026648$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026649
cristy09b53e12011-10-14 12:47:22 +000026650 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26651$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026652 have_bzlib='yes'
26653 fi
26654 else
cristy09b53e12011-10-14 12:47:22 +000026655 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26656$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026657 fi
26658fi
cristy73bd4a52010-10-05 11:24:23 +000026659 if test "$have_bzlib" = 'yes'; then
26660 BZLIB_DELEGATE_TRUE=
26661 BZLIB_DELEGATE_FALSE='#'
26662else
26663 BZLIB_DELEGATE_TRUE='#'
26664 BZLIB_DELEGATE_FALSE=
26665fi
26666
cristy3ed852e2009-09-05 21:47:34 +000026667
26668
26669#
26670# Find the X11 include and library directories.
26671#
26672IPC_LIBS=''
26673X11_LIBS=''
26674XEXT_LIBS=''
26675XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026677$as_echo_n "checking for X... " >&6; }
26678
26679
26680# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026681if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026682 withval=$with_x;
26683fi
26684
26685# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26686if test "x$with_x" = xno; then
26687 # The user explicitly disabled X.
26688 have_x=disabled
26689else
26690 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026691 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026692 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026693 $as_echo_n "(cached) " >&6
26694else
26695 # One or both of the vars are not set, and there is no cached value.
26696ac_x_includes=no ac_x_libraries=no
26697rm -f -r conftest.dir
26698if mkdir conftest.dir; then
26699 cd conftest.dir
26700 cat >Imakefile <<'_ACEOF'
26701incroot:
26702 @echo incroot='${INCROOT}'
26703usrlibdir:
26704 @echo usrlibdir='${USRLIBDIR}'
26705libdir:
26706 @echo libdir='${LIBDIR}'
26707_ACEOF
26708 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026710 for ac_var in incroot usrlibdir libdir; do
26711 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26712 done
26713 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26714 for ac_extension in a so sl dylib la dll; do
26715 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26716 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26717 ac_im_usrlibdir=$ac_im_libdir; break
26718 fi
26719 done
26720 # Screen out bogus values from the imake configuration. They are
26721 # bogus both because they are the default anyway, and because
26722 # using them would break gcc on systems where it needs fixed includes.
26723 case $ac_im_incroot in
26724 /usr/include) ac_x_includes= ;;
26725 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26726 esac
26727 case $ac_im_usrlibdir in
26728 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26729 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26730 esac
26731 fi
26732 cd ..
26733 rm -f -r conftest.dir
26734fi
26735
26736# Standard set of common directories for X headers.
26737# Check X11 before X11Rn because it is often a symlink to the current release.
26738ac_x_header_dirs='
26739/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026740/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026741/usr/X11R6/include
26742/usr/X11R5/include
26743/usr/X11R4/include
26744
26745/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026746/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026747/usr/include/X11R6
26748/usr/include/X11R5
26749/usr/include/X11R4
26750
26751/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026752/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026753/usr/local/X11R6/include
26754/usr/local/X11R5/include
26755/usr/local/X11R4/include
26756
26757/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026758/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026759/usr/local/include/X11R6
26760/usr/local/include/X11R5
26761/usr/local/include/X11R4
26762
26763/usr/X386/include
26764/usr/x386/include
26765/usr/XFree86/include/X11
26766
26767/usr/include
26768/usr/local/include
26769/usr/unsupported/include
26770/usr/athena/include
26771/usr/local/x11r5/include
26772/usr/lpp/Xamples/include
26773
26774/usr/openwin/include
26775/usr/openwin/share/include'
26776
26777if test "$ac_x_includes" = no; then
26778 # Guess where to find include files, by looking for Xlib.h.
26779 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026781/* end confdefs.h. */
26782#include <X11/Xlib.h>
26783_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026784if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026785 # We can compile using X headers with no special include directory.
26786ac_x_includes=
26787else
cristyc7083c12009-10-14 03:16:55 +000026788 for ac_dir in $ac_x_header_dirs; do
26789 if test -r "$ac_dir/X11/Xlib.h"; then
26790 ac_x_includes=$ac_dir
26791 break
26792 fi
26793done
26794fi
cristyda16f162011-02-19 23:52:17 +000026795rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026796fi # $ac_x_includes = no
26797
26798if test "$ac_x_libraries" = no; then
26799 # Check for the libraries.
26800 # See if we find them without any special options.
26801 # Don't add to $LIBS permanently.
26802 ac_save_LIBS=$LIBS
26803 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026805/* end confdefs.h. */
26806#include <X11/Xlib.h>
26807int
26808main ()
26809{
26810XrmInitialize ()
26811 ;
26812 return 0;
26813}
26814_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026815if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026816 LIBS=$ac_save_LIBS
26817# We can link X programs with no special library path.
26818ac_x_libraries=
26819else
cristy8b350f62009-11-15 23:12:43 +000026820 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026821for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26822do
26823 # Don't even attempt the hair of trying to link an X program!
26824 for ac_extension in a so sl dylib la dll; do
26825 if test -r "$ac_dir/libX11.$ac_extension"; then
26826 ac_x_libraries=$ac_dir
26827 break 2
26828 fi
26829 done
26830done
26831fi
cristy8b350f62009-11-15 23:12:43 +000026832rm -f core conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026834fi # $ac_x_libraries = no
26835
26836case $ac_x_includes,$ac_x_libraries in #(
26837 no,* | *,no | *\'*)
26838 # Didn't find X, or a directory has "'" in its name.
26839 ac_cv_have_x="have_x=no";; #(
26840 *)
26841 # Record where we found X for the cache.
26842 ac_cv_have_x="have_x=yes\
26843 ac_x_includes='$ac_x_includes'\
26844 ac_x_libraries='$ac_x_libraries'"
26845esac
26846fi
26847;; #(
26848 *) have_x=yes;;
26849 esac
26850 eval "$ac_cv_have_x"
26851fi # $with_x != no
26852
26853if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026855$as_echo "$have_x" >&6; }
26856 no_x=yes
26857else
26858 # If each of the values was on the command line, it overrides each guess.
26859 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26860 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26861 # Update the cache value to reflect the command line values.
26862 ac_cv_have_x="have_x=yes\
26863 ac_x_includes='$x_includes'\
26864 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026866$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26867fi
26868
cristy3ed852e2009-09-05 21:47:34 +000026869if test "$no_x" = yes; then
26870 # Not all programs may use this symbol, but it does not hurt to define it.
26871
cristy8b350f62009-11-15 23:12:43 +000026872$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026873
26874 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26875else
26876 if test -n "$x_includes"; then
26877 X_CFLAGS="$X_CFLAGS -I$x_includes"
26878 fi
26879
26880 # It would also be nice to do this for all -L options, not just this one.
26881 if test -n "$x_libraries"; then
26882 X_LIBS="$X_LIBS -L$x_libraries"
26883 # For Solaris; some versions of Sun CC require a space after -R and
26884 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026886$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26887 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26888 ac_xsave_c_werror_flag=$ac_c_werror_flag
26889 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026891/* end confdefs.h. */
26892
26893int
26894main ()
26895{
26896
26897 ;
26898 return 0;
26899}
26900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026901if ac_fn_c_try_link "$LINENO"; then :
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026903$as_echo "no" >&6; }
26904 X_LIBS="$X_LIBS -R$x_libraries"
26905else
cristy8b350f62009-11-15 23:12:43 +000026906 LIBS="$ac_xsave_LIBS -R $x_libraries"
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026908/* end confdefs.h. */
26909
26910int
26911main ()
26912{
26913
26914 ;
26915 return 0;
26916}
26917_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026918if ac_fn_c_try_link "$LINENO"; then :
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026920$as_echo "yes" >&6; }
26921 X_LIBS="$X_LIBS -R $x_libraries"
26922else
cristy8b350f62009-11-15 23:12:43 +000026923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "neither works" >&6; }
26925fi
cristy8b350f62009-11-15 23:12:43 +000026926rm -f core conftest.err conftest.$ac_objext \
26927 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026928fi
cristy8b350f62009-11-15 23:12:43 +000026929rm -f core conftest.err conftest.$ac_objext \
26930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026931 ac_c_werror_flag=$ac_xsave_c_werror_flag
26932 LIBS=$ac_xsave_LIBS
26933 fi
26934
26935 # Check for system-dependent libraries X programs must link with.
26936 # Do this before checking for the system-independent R6 libraries
26937 # (-lICE), since we may need -lsocket or whatever for X linking.
26938
26939 if test "$ISC" = yes; then
26940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26941 else
26942 # Martyn Johnson says this is needed for Ultrix, if the X
26943 # libraries were built with DECnet support. And Karl Berry says
26944 # the Alpha needs dnet_stub (dnet does not exist).
26945 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026947/* end confdefs.h. */
26948
26949/* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26952#ifdef __cplusplus
26953extern "C"
26954#endif
26955char XOpenDisplay ();
26956int
26957main ()
26958{
26959return XOpenDisplay ();
26960 ;
26961 return 0;
26962}
26963_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026964if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026965
cristy8b350f62009-11-15 23:12:43 +000026966else
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026969if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026970 $as_echo_n "(cached) " >&6
26971else
26972 ac_check_lib_save_LIBS=$LIBS
26973LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026975/* end confdefs.h. */
26976
26977/* Override any GCC internal prototype to avoid an error.
26978 Use char because int might match the return type of a GCC
26979 builtin and then its argument prototype would still apply. */
26980#ifdef __cplusplus
26981extern "C"
26982#endif
26983char dnet_ntoa ();
26984int
26985main ()
26986{
26987return dnet_ntoa ();
26988 ;
26989 return 0;
26990}
26991_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026992if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026993 ac_cv_lib_dnet_dnet_ntoa=yes
26994else
cristy8b350f62009-11-15 23:12:43 +000026995 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026996fi
cristy8b350f62009-11-15 23:12:43 +000026997rm -f core conftest.err conftest.$ac_objext \
26998 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026999LIBS=$ac_check_lib_save_LIBS
27000fi
cristy8b350f62009-11-15 23:12:43 +000027001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027002$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027003if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27005fi
27006
27007 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027009$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027010if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027011 $as_echo_n "(cached) " >&6
27012else
27013 ac_check_lib_save_LIBS=$LIBS
27014LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027016/* end confdefs.h. */
27017
27018/* Override any GCC internal prototype to avoid an error.
27019 Use char because int might match the return type of a GCC
27020 builtin and then its argument prototype would still apply. */
27021#ifdef __cplusplus
27022extern "C"
27023#endif
27024char dnet_ntoa ();
27025int
27026main ()
27027{
27028return dnet_ntoa ();
27029 ;
27030 return 0;
27031}
27032_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027033if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027034 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27035else
cristy8b350f62009-11-15 23:12:43 +000027036 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027037fi
cristy8b350f62009-11-15 23:12:43 +000027038rm -f core conftest.err conftest.$ac_objext \
27039 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027040LIBS=$ac_check_lib_save_LIBS
27041fi
cristy8b350f62009-11-15 23:12:43 +000027042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027043$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027044if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027045 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27046fi
27047
27048 fi
27049fi
cristy8b350f62009-11-15 23:12:43 +000027050rm -f core conftest.err conftest.$ac_objext \
27051 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027052 LIBS="$ac_xsave_LIBS"
27053
27054 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27055 # to get the SysV transport functions.
27056 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27057 # needs -lnsl.
27058 # The nsl library prevents programs from opening the X display
27059 # on Irix 5.2, according to T.E. Dickey.
27060 # The functions gethostbyname, getservbyname, and inet_addr are
27061 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027062 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027063if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027064
cristy3ed852e2009-09-05 21:47:34 +000027065fi
27066
cristy3ed852e2009-09-05 21:47:34 +000027067 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027070if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027071 $as_echo_n "(cached) " >&6
27072else
27073 ac_check_lib_save_LIBS=$LIBS
27074LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027076/* end confdefs.h. */
27077
27078/* Override any GCC internal prototype to avoid an error.
27079 Use char because int might match the return type of a GCC
27080 builtin and then its argument prototype would still apply. */
27081#ifdef __cplusplus
27082extern "C"
27083#endif
27084char gethostbyname ();
27085int
27086main ()
27087{
27088return gethostbyname ();
27089 ;
27090 return 0;
27091}
27092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027094 ac_cv_lib_nsl_gethostbyname=yes
27095else
cristy8b350f62009-11-15 23:12:43 +000027096 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027097fi
cristy8b350f62009-11-15 23:12:43 +000027098rm -f core conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027100LIBS=$ac_check_lib_save_LIBS
27101fi
cristy8b350f62009-11-15 23:12:43 +000027102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027104if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027105 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27106fi
27107
27108 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027110$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027111if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027112 $as_echo_n "(cached) " >&6
27113else
27114 ac_check_lib_save_LIBS=$LIBS
27115LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027117/* end confdefs.h. */
27118
27119/* Override any GCC internal prototype to avoid an error.
27120 Use char because int might match the return type of a GCC
27121 builtin and then its argument prototype would still apply. */
27122#ifdef __cplusplus
27123extern "C"
27124#endif
27125char gethostbyname ();
27126int
27127main ()
27128{
27129return gethostbyname ();
27130 ;
27131 return 0;
27132}
27133_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027134if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027135 ac_cv_lib_bsd_gethostbyname=yes
27136else
cristy8b350f62009-11-15 23:12:43 +000027137 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027138fi
cristy8b350f62009-11-15 23:12:43 +000027139rm -f core conftest.err conftest.$ac_objext \
27140 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027141LIBS=$ac_check_lib_save_LIBS
27142fi
cristy8b350f62009-11-15 23:12:43 +000027143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027144$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027145if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27147fi
27148
27149 fi
27150 fi
27151
27152 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27153 # socket/setsockopt and other routines are undefined under SCO ODT
27154 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27155 # on later versions), says Simon Leinen: it contains gethostby*
27156 # variants that don't use the name server (or something). -lsocket
27157 # must be given before -lnsl if both are needed. We assume that
27158 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027159 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027160if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027161
cristy3ed852e2009-09-05 21:47:34 +000027162fi
27163
cristy3ed852e2009-09-05 21:47:34 +000027164 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027166$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027167if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027168 $as_echo_n "(cached) " >&6
27169else
27170 ac_check_lib_save_LIBS=$LIBS
27171LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027173/* end confdefs.h. */
27174
27175/* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
27178#ifdef __cplusplus
27179extern "C"
27180#endif
27181char connect ();
27182int
27183main ()
27184{
27185return connect ();
27186 ;
27187 return 0;
27188}
27189_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027190if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027191 ac_cv_lib_socket_connect=yes
27192else
cristy8b350f62009-11-15 23:12:43 +000027193 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027194fi
cristy8b350f62009-11-15 23:12:43 +000027195rm -f core conftest.err conftest.$ac_objext \
27196 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027197LIBS=$ac_check_lib_save_LIBS
27198fi
cristy8b350f62009-11-15 23:12:43 +000027199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027200$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027201if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27203fi
27204
27205 fi
27206
27207 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027208 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027209if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027210
cristy3ed852e2009-09-05 21:47:34 +000027211fi
27212
cristy3ed852e2009-09-05 21:47:34 +000027213 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027215$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027216if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 $as_echo_n "(cached) " >&6
27218else
27219 ac_check_lib_save_LIBS=$LIBS
27220LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222/* end confdefs.h. */
27223
27224/* Override any GCC internal prototype to avoid an error.
27225 Use char because int might match the return type of a GCC
27226 builtin and then its argument prototype would still apply. */
27227#ifdef __cplusplus
27228extern "C"
27229#endif
27230char remove ();
27231int
27232main ()
27233{
27234return remove ();
27235 ;
27236 return 0;
27237}
27238_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027239if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027240 ac_cv_lib_posix_remove=yes
27241else
cristy8b350f62009-11-15 23:12:43 +000027242 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027243fi
cristy8b350f62009-11-15 23:12:43 +000027244rm -f core conftest.err conftest.$ac_objext \
27245 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027246LIBS=$ac_check_lib_save_LIBS
27247fi
cristy8b350f62009-11-15 23:12:43 +000027248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027249$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027250if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027251 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27252fi
27253
27254 fi
27255
27256 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027257 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027258if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027259
cristy3ed852e2009-09-05 21:47:34 +000027260fi
27261
cristy3ed852e2009-09-05 21:47:34 +000027262 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027264$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027265if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027266 $as_echo_n "(cached) " >&6
27267else
27268 ac_check_lib_save_LIBS=$LIBS
27269LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027271/* end confdefs.h. */
27272
27273/* Override any GCC internal prototype to avoid an error.
27274 Use char because int might match the return type of a GCC
27275 builtin and then its argument prototype would still apply. */
27276#ifdef __cplusplus
27277extern "C"
27278#endif
27279char shmat ();
27280int
27281main ()
27282{
27283return shmat ();
27284 ;
27285 return 0;
27286}
27287_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027288if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027289 ac_cv_lib_ipc_shmat=yes
27290else
cristy8b350f62009-11-15 23:12:43 +000027291 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027292fi
cristy8b350f62009-11-15 23:12:43 +000027293rm -f core conftest.err conftest.$ac_objext \
27294 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027295LIBS=$ac_check_lib_save_LIBS
27296fi
cristy8b350f62009-11-15 23:12:43 +000027297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027298$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027299if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27301fi
27302
27303 fi
27304 fi
27305
27306 # Check for libraries that X11R6 Xt/Xaw programs need.
27307 ac_save_LDFLAGS=$LDFLAGS
27308 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27309 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27310 # check for ICE first), but we must link in the order -lSM -lICE or
27311 # we get undefined symbols. So assume we have SM if we have ICE.
27312 # These have to be linked with before -lX11, unlike the other
27313 # libraries we check for below, so use a different variable.
27314 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027316$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027317if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 $as_echo_n "(cached) " >&6
27319else
27320 ac_check_lib_save_LIBS=$LIBS
27321LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027323/* end confdefs.h. */
27324
27325/* Override any GCC internal prototype to avoid an error.
27326 Use char because int might match the return type of a GCC
27327 builtin and then its argument prototype would still apply. */
27328#ifdef __cplusplus
27329extern "C"
27330#endif
27331char IceConnectionNumber ();
27332int
27333main ()
27334{
27335return IceConnectionNumber ();
27336 ;
27337 return 0;
27338}
27339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027341 ac_cv_lib_ICE_IceConnectionNumber=yes
27342else
cristy8b350f62009-11-15 23:12:43 +000027343 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027344fi
cristy8b350f62009-11-15 23:12:43 +000027345rm -f core conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027347LIBS=$ac_check_lib_save_LIBS
27348fi
cristy8b350f62009-11-15 23:12:43 +000027349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027350$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027351if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027352 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27353fi
27354
27355 LDFLAGS=$ac_save_LDFLAGS
27356
27357fi
27358
27359if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027360 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27361$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27365$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027366 LDFLAGS="$LDFLAGS $X_LIBS"
27367 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27368 LIBS="$X11_LIBS $LIBS"
27369 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27370
27371
cristy8b350f62009-11-15 23:12:43 +000027372$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027373
27374 #
27375 # Check for X11 shared memory extension
27376 #
27377 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027378 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027379if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027380 have_shmctl='yes'
27381fi
27382
27383 if test "$have_shmctl" != 'yes'; then
27384 PERSIST_LIBS=$LIBS
27385 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char shmctl ();
27396int
27397main ()
27398{
27399return shmctl ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027406fi
cristy8b350f62009-11-15 23:12:43 +000027407rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027409 LIBS=$PERSIST_LIBS
27410 fi
27411
27412 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 $as_echo_n "(cached) " >&6
27417else
27418 ac_check_lib_save_LIBS=$LIBS
27419LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027421/* end confdefs.h. */
27422
27423/* Override any GCC internal prototype to avoid an error.
27424 Use char because int might match the return type of a GCC
27425 builtin and then its argument prototype would still apply. */
27426#ifdef __cplusplus
27427extern "C"
27428#endif
27429char XShmAttach ();
27430int
27431main ()
27432{
27433return XShmAttach ();
27434 ;
27435 return 0;
27436}
27437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 ac_cv_lib_Xext_XShmAttach=yes
27440else
cristy8b350f62009-11-15 23:12:43 +000027441 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027442fi
cristy8b350f62009-11-15 23:12:43 +000027443rm -f core conftest.err conftest.$ac_objext \
27444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027445LIBS=$ac_check_lib_save_LIBS
27446fi
cristy8b350f62009-11-15 23:12:43 +000027447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027448$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027449if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027450 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027451$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027452
27453fi
27454
27455 fi
27456
27457 #
27458 # Check for X11 shape extension
27459 #
cristy8b350f62009-11-15 23:12:43 +000027460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027461$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027462if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027463 $as_echo_n "(cached) " >&6
27464else
27465 ac_check_lib_save_LIBS=$LIBS
27466LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027468/* end confdefs.h. */
27469
27470/* Override any GCC internal prototype to avoid an error.
27471 Use char because int might match the return type of a GCC
27472 builtin and then its argument prototype would still apply. */
27473#ifdef __cplusplus
27474extern "C"
27475#endif
27476char XShapeCombineMask ();
27477int
27478main ()
27479{
27480return XShapeCombineMask ();
27481 ;
27482 return 0;
27483}
27484_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027485if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027486 ac_cv_lib_Xext_XShapeCombineMask=yes
27487else
cristy8b350f62009-11-15 23:12:43 +000027488 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027489fi
cristy8b350f62009-11-15 23:12:43 +000027490rm -f core conftest.err conftest.$ac_objext \
27491 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027492LIBS=$ac_check_lib_save_LIBS
27493fi
cristy8b350f62009-11-15 23:12:43 +000027494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027495$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027496if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027497 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027498$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027499
27500fi
27501
cristy8b350f62009-11-15 23:12:43 +000027502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027503$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027504if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027505 $as_echo_n "(cached) " >&6
27506else
27507 ac_check_lib_save_LIBS=$LIBS
27508LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027510/* end confdefs.h. */
27511
27512/* Override any GCC internal prototype to avoid an error.
27513 Use char because int might match the return type of a GCC
27514 builtin and then its argument prototype would still apply. */
27515#ifdef __cplusplus
27516extern "C"
27517#endif
27518char XtSetEventDispatcher ();
27519int
27520main ()
27521{
27522return XtSetEventDispatcher ();
27523 ;
27524 return 0;
27525}
27526_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027527if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27529else
cristy8b350f62009-11-15 23:12:43 +000027530 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027531fi
cristy8b350f62009-11-15 23:12:43 +000027532rm -f core conftest.err conftest.$ac_objext \
27533 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027534LIBS=$ac_check_lib_save_LIBS
27535fi
cristy8b350f62009-11-15 23:12:43 +000027536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027537$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027538if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027539 XT_LIBS='-lXt'
27540fi
27541
27542 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27543fi
27544if test "$no_x" != 'yes'; then
27545 have_x='yes'
27546else
27547 have_x='no'
27548fi
cristy73bd4a52010-10-05 11:24:23 +000027549 if test "$have_x" = 'yes'; then
27550 X11_DELEGATE_TRUE=
27551 X11_DELEGATE_FALSE='#'
27552else
27553 X11_DELEGATE_TRUE='#'
27554 X11_DELEGATE_FALSE=
27555fi
27556
cristy3ed852e2009-09-05 21:47:34 +000027557
27558
27559
27560
27561#
27562# Check for ZLIB
27563#
27564
27565# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027566if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027567 withval=$with_zlib; with_zlib=$withval
27568else
27569 with_zlib='yes'
27570fi
27571
27572
27573if test "$with_zlib" != 'yes'; then
27574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27575fi
27576
27577have_zlib='no'
27578ZLIB_LIBS=''
27579if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027580 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27581$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027583$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027584 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27585$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027586 ZLIB_LIBS=''
27587 failed=0
27588 passed=0
cristy8b350f62009-11-15 23:12:43 +000027589 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027590if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027591 passed=`expr $passed + 1`
27592else
27593 failed=`expr $failed + 1`
27594fi
27595
27596
cristy8b350f62009-11-15 23:12:43 +000027597 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027598if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027599 passed=`expr $passed + 1`
27600else
27601 failed=`expr $failed + 1`
27602fi
27603
27604
cristy8b350f62009-11-15 23:12:43 +000027605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027606$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027607if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027608 $as_echo_n "(cached) " >&6
27609else
27610 ac_check_lib_save_LIBS=$LIBS
27611LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027613/* end confdefs.h. */
27614
27615/* Override any GCC internal prototype to avoid an error.
27616 Use char because int might match the return type of a GCC
27617 builtin and then its argument prototype would still apply. */
27618#ifdef __cplusplus
27619extern "C"
27620#endif
27621char compress ();
27622int
27623main ()
27624{
27625return compress ();
27626 ;
27627 return 0;
27628}
27629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027630if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027631 ac_cv_lib_z_compress=yes
27632else
cristy8b350f62009-11-15 23:12:43 +000027633 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027634fi
cristy8b350f62009-11-15 23:12:43 +000027635rm -f core conftest.err conftest.$ac_objext \
27636 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027637LIBS=$ac_check_lib_save_LIBS
27638fi
cristy8b350f62009-11-15 23:12:43 +000027639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027640$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027641if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027642 passed=`expr $passed + 1`
27643else
27644 failed=`expr $failed + 1`
27645fi
27646
cristy8b350f62009-11-15 23:12:43 +000027647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027648$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027649if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027650 $as_echo_n "(cached) " >&6
27651else
27652 ac_check_lib_save_LIBS=$LIBS
27653LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027655/* end confdefs.h. */
27656
27657/* Override any GCC internal prototype to avoid an error.
27658 Use char because int might match the return type of a GCC
27659 builtin and then its argument prototype would still apply. */
27660#ifdef __cplusplus
27661extern "C"
27662#endif
27663char uncompress ();
27664int
27665main ()
27666{
27667return uncompress ();
27668 ;
27669 return 0;
27670}
27671_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027672if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027673 ac_cv_lib_z_uncompress=yes
27674else
cristy8b350f62009-11-15 23:12:43 +000027675 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027676fi
cristy8b350f62009-11-15 23:12:43 +000027677rm -f core conftest.err conftest.$ac_objext \
27678 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027679LIBS=$ac_check_lib_save_LIBS
27680fi
cristy8b350f62009-11-15 23:12:43 +000027681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027682$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027683if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027684 passed=`expr $passed + 1`
27685else
27686 failed=`expr $failed + 1`
27687fi
27688
cristy8b350f62009-11-15 23:12:43 +000027689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027690$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027691if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027692 $as_echo_n "(cached) " >&6
27693else
27694 ac_check_lib_save_LIBS=$LIBS
27695LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027696cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027697/* end confdefs.h. */
27698
27699/* Override any GCC internal prototype to avoid an error.
27700 Use char because int might match the return type of a GCC
27701 builtin and then its argument prototype would still apply. */
27702#ifdef __cplusplus
27703extern "C"
27704#endif
27705char deflate ();
27706int
27707main ()
27708{
27709return deflate ();
27710 ;
27711 return 0;
27712}
27713_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027714if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027715 ac_cv_lib_z_deflate=yes
27716else
cristy8b350f62009-11-15 23:12:43 +000027717 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027718fi
cristy8b350f62009-11-15 23:12:43 +000027719rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027721LIBS=$ac_check_lib_save_LIBS
27722fi
cristy8b350f62009-11-15 23:12:43 +000027723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027724$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027725if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027726 passed=`expr $passed + 1`
27727else
27728 failed=`expr $failed + 1`
27729fi
27730
cristy8b350f62009-11-15 23:12:43 +000027731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027733if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027734 $as_echo_n "(cached) " >&6
27735else
27736 ac_check_lib_save_LIBS=$LIBS
27737LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char inflate ();
27748int
27749main ()
27750{
27751return inflate ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027756if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027757 ac_cv_lib_z_inflate=yes
27758else
cristy8b350f62009-11-15 23:12:43 +000027759 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027760fi
cristy8b350f62009-11-15 23:12:43 +000027761rm -f core conftest.err conftest.$ac_objext \
27762 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027763LIBS=$ac_check_lib_save_LIBS
27764fi
cristy8b350f62009-11-15 23:12:43 +000027765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027767if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027768 passed=`expr $passed + 1`
27769else
27770 failed=`expr $failed + 1`
27771fi
27772
cristy8b350f62009-11-15 23:12:43 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027774$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027775if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027776 $as_echo_n "(cached) " >&6
27777else
27778 ac_check_lib_save_LIBS=$LIBS
27779LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027781/* end confdefs.h. */
27782
27783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
27786#ifdef __cplusplus
27787extern "C"
27788#endif
27789char gzseek ();
27790int
27791main ()
27792{
27793return gzseek ();
27794 ;
27795 return 0;
27796}
27797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027798if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 ac_cv_lib_z_gzseek=yes
27800else
cristy8b350f62009-11-15 23:12:43 +000027801 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027802fi
cristy8b350f62009-11-15 23:12:43 +000027803rm -f core conftest.err conftest.$ac_objext \
27804 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027805LIBS=$ac_check_lib_save_LIBS
27806fi
cristy8b350f62009-11-15 23:12:43 +000027807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027809if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027810 passed=`expr $passed + 1`
27811else
27812 failed=`expr $failed + 1`
27813fi
27814
cristy8b350f62009-11-15 23:12:43 +000027815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027816$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027817if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027818 $as_echo_n "(cached) " >&6
27819else
27820 ac_check_lib_save_LIBS=$LIBS
27821LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027823/* end confdefs.h. */
27824
27825/* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27828#ifdef __cplusplus
27829extern "C"
27830#endif
27831char gztell ();
27832int
27833main ()
27834{
27835return gztell ();
27836 ;
27837 return 0;
27838}
27839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027840if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027841 ac_cv_lib_z_gztell=yes
27842else
cristy8b350f62009-11-15 23:12:43 +000027843 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027844fi
cristy8b350f62009-11-15 23:12:43 +000027845rm -f core conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027847LIBS=$ac_check_lib_save_LIBS
27848fi
cristy8b350f62009-11-15 23:12:43 +000027849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027850$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027851if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 passed=`expr $passed + 1`
27853else
27854 failed=`expr $failed + 1`
27855fi
27856
cristy8b350f62009-11-15 23:12:43 +000027857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027858$as_echo_n "checking if ZLIB package is complete... " >&6; }
27859 if test $passed -gt 0; then
27860 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27862$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027863 have_zlib='no (failed tests)'
27864 else
27865 ZLIB_LIBS='-lz'
27866 LIBS="$ZLIB_LIBS $LIBS"
27867
cristy8b350f62009-11-15 23:12:43 +000027868$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027869
cristy09b53e12011-10-14 12:47:22 +000027870 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27871$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027872 have_zlib='yes'
27873 fi
27874 else
cristy09b53e12011-10-14 12:47:22 +000027875 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27876$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027877 fi
27878fi
cristy73bd4a52010-10-05 11:24:23 +000027879 if test "$have_zlib" = 'yes'; then
27880 ZLIB_DELEGATE_TRUE=
27881 ZLIB_DELEGATE_FALSE='#'
27882else
27883 ZLIB_DELEGATE_TRUE='#'
27884 ZLIB_DELEGATE_FALSE=
27885fi
27886
cristy3ed852e2009-09-05 21:47:34 +000027887
27888
27889#
27890# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27891#
27892LIB_DL=''
27893if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027896if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027897 $as_echo_n "(cached) " >&6
27898else
27899 ac_check_lib_save_LIBS=$LIBS
27900LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027902/* end confdefs.h. */
27903
27904/* Override any GCC internal prototype to avoid an error.
27905 Use char because int might match the return type of a GCC
27906 builtin and then its argument prototype would still apply. */
27907#ifdef __cplusplus
27908extern "C"
27909#endif
27910char dlopen ();
27911int
27912main ()
27913{
27914return dlopen ();
27915 ;
27916 return 0;
27917}
27918_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027919if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027920 ac_cv_lib_dl_dlopen=yes
27921else
cristy8b350f62009-11-15 23:12:43 +000027922 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027923fi
cristy8b350f62009-11-15 23:12:43 +000027924rm -f core conftest.err conftest.$ac_objext \
27925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027926LIBS=$ac_check_lib_save_LIBS
27927fi
cristy8b350f62009-11-15 23:12:43 +000027928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027929$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027930if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027931 LIB_DL='-ldl'
27932fi
27933
27934 LIBS="$LIB_DL $LIBS"
27935fi
27936
27937
27938
27939#
27940# Check for Autotrace delegate library.
27941#
27942
27943# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027944if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027945 withval=$with_autotrace; with_autotrace=$withval
27946else
27947 with_autotrace='no'
27948fi
27949
27950
27951if test "$with_autotrace" != 'yes'; then
27952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27953fi
27954
27955have_autotrace='no'
27956AUTOTRACE_CFLAGS=""
27957AUTOTRACE_LIBS=""
27958AUTOTRACE_PKG=""
27959if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27961$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027962
27963pkg_failed=no
27964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27965$as_echo_n "checking for AUTOTRACE... " >&6; }
27966
27967if test -n "$AUTOTRACE_CFLAGS"; then
27968 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27969 elif test -n "$PKG_CONFIG"; then
27970 if test -n "$PKG_CONFIG" && \
27971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27972 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27973 ac_status=$?
27974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27975 test $ac_status = 0; }; then
27976 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27977else
27978 pkg_failed=yes
27979fi
27980 else
27981 pkg_failed=untried
27982fi
27983if test -n "$AUTOTRACE_LIBS"; then
27984 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27985 elif test -n "$PKG_CONFIG"; then
27986 if test -n "$PKG_CONFIG" && \
27987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27988 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27989 ac_status=$?
27990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991 test $ac_status = 0; }; then
27992 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27993else
27994 pkg_failed=yes
27995fi
27996 else
27997 pkg_failed=untried
27998fi
27999
28000
28001
28002if test $pkg_failed = yes; then
28003
28004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28005 _pkg_short_errors_supported=yes
28006else
28007 _pkg_short_errors_supported=no
28008fi
28009 if test $_pkg_short_errors_supported = yes; then
28010 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28011 else
28012 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28013 fi
28014 # Put the nasty error message in config.log where it belongs
28015 echo "$AUTOTRACE_PKG_ERRORS" >&5
28016
28017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28018$as_echo "no" >&6; }
28019 have_autotrace=no
28020elif test $pkg_failed = untried; then
28021 have_autotrace=no
28022else
28023 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28024 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28026$as_echo "yes" >&6; }
28027 have_autotrace=yes
28028fi
cristy09b53e12011-10-14 12:47:22 +000028029 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28030$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028031fi
28032
28033if test "$have_autotrace" = 'yes'; then
28034 failed=0
28035
cristy8b350f62009-11-15 23:12:43 +000028036$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028037
28038 if test "$with_modules" = 'no'; then
28039 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28040 fi
28041fi
28042
cristy73bd4a52010-10-05 11:24:23 +000028043 if test "$have_autotrace" = 'yes'; then
28044 AUTOTRACE_DELEGATE_TRUE=
28045 AUTOTRACE_DELEGATE_FALSE='#'
28046else
28047 AUTOTRACE_DELEGATE_TRUE='#'
28048 AUTOTRACE_DELEGATE_FALSE=
28049fi
28050
cristy3ed852e2009-09-05 21:47:34 +000028051
28052
28053
28054
28055#
28056# Check for Display Postscript delegate library.
28057#
28058
28059# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028060if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 withval=$with_dps; with_dps=$withval
28062else
28063 with_dps='yes'
28064fi
28065
28066
28067if test "$with_dps" != 'yes'; then
28068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28069fi
28070
28071have_dps='no'
28072DPS_LIBS=''
28073if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28075$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028077$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28079$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028080 failed=0
28081 passed=0
28082 PERSIST_CPPFLAGS="$CPPFLAGS"
28083 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028084 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 +000028085if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 passed=`expr $passed + 1`
28087else
28088 failed=`expr $failed + 1`
28089fi
28090
28091
28092 # DPS issues:
28093 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28094 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28095 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28096 # ImageMagick itself doesn't use -lXt.
28097 have_libdps='no'
28098 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028101if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028102 $as_echo_n "(cached) " >&6
28103else
28104 ac_check_lib_save_LIBS=$LIBS
28105LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028107/* end confdefs.h. */
28108
28109/* Override any GCC internal prototype to avoid an error.
28110 Use char because int might match the return type of a GCC
28111 builtin and then its argument prototype would still apply. */
28112#ifdef __cplusplus
28113extern "C"
28114#endif
28115char DPSInitialize ();
28116int
28117main ()
28118{
28119return DPSInitialize ();
28120 ;
28121 return 0;
28122}
28123_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028124if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028125 ac_cv_lib_dps_DPSInitialize=yes
28126else
cristy8b350f62009-11-15 23:12:43 +000028127 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028128fi
cristy8b350f62009-11-15 23:12:43 +000028129rm -f core conftest.err conftest.$ac_objext \
28130 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028131LIBS=$ac_check_lib_save_LIBS
28132fi
cristy8b350f62009-11-15 23:12:43 +000028133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028134$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028135if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028136 have_libdps='yes'
28137else
28138 have_libdps='no'
28139fi
28140
28141 if test "$have_libdps" != 'yes'; then
28142 # Unset cache variable so we can try again.
28143 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028146if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028147 $as_echo_n "(cached) " >&6
28148else
28149 ac_check_lib_save_LIBS=$LIBS
28150LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028152/* end confdefs.h. */
28153
28154/* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28157#ifdef __cplusplus
28158extern "C"
28159#endif
28160char DPSInitialize ();
28161int
28162main ()
28163{
28164return DPSInitialize ();
28165 ;
28166 return 0;
28167}
28168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028170 ac_cv_lib_dps_DPSInitialize=yes
28171else
cristy8b350f62009-11-15 23:12:43 +000028172 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028173fi
cristy8b350f62009-11-15 23:12:43 +000028174rm -f core conftest.err conftest.$ac_objext \
28175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028176LIBS=$ac_check_lib_save_LIBS
28177fi
cristy8b350f62009-11-15 23:12:43 +000028178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028180if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 have_libdps='yes'
28182else
28183 have_libdps='no'
28184fi
28185
28186 if test "$have_libdps" = 'yes'; then
28187 LIBDPS_XT='-lXt'
28188 fi
28189 fi
28190 if test "$have_libdps" = 'yes'; then
28191 passed=`expr $passed + 1`
28192 else
28193 failed=`expr $failed + 1`
28194 fi
cristy8b350f62009-11-15 23:12:43 +000028195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028196$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028197if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 $as_echo_n "(cached) " >&6
28199else
28200 ac_check_lib_save_LIBS=$LIBS
28201LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028203/* end confdefs.h. */
28204
28205/* Override any GCC internal prototype to avoid an error.
28206 Use char because int might match the return type of a GCC
28207 builtin and then its argument prototype would still apply. */
28208#ifdef __cplusplus
28209extern "C"
28210#endif
28211char XDPSPixelsPerPoint ();
28212int
28213main ()
28214{
28215return XDPSPixelsPerPoint ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028220if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028221 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28222else
cristy8b350f62009-11-15 23:12:43 +000028223 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028224fi
cristy8b350f62009-11-15 23:12:43 +000028225rm -f core conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028227LIBS=$ac_check_lib_save_LIBS
28228fi
cristy8b350f62009-11-15 23:12:43 +000028229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028230$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028231if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028232 passed=`expr $passed + 1`
28233else
28234 failed=`expr $failed + 1`
28235fi
28236
cristy8b350f62009-11-15 23:12:43 +000028237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028238$as_echo_n "checking if DPS package is complete... " >&6; }
28239 if test $passed -gt 0; then
28240 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028241 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28242$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028243 have_dps='no (failed tests)'
28244 CPPFLAGS="$PERSIST_CPPFLAGS"
28245 else
28246 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28247 LIBS="$DPS_LIBS $LIBS"
28248
cristy8b350f62009-11-15 23:12:43 +000028249$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028250
cristy09b53e12011-10-14 12:47:22 +000028251 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28252$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028253 have_dps='yes'
28254 fi
28255 else
cristy09b53e12011-10-14 12:47:22 +000028256 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28257$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028258 CPPFLAGS=$PERSIST_CPPFLAGS
28259 fi
28260fi
cristy73bd4a52010-10-05 11:24:23 +000028261 if test "$have_dps" = 'yes'; then
28262 DPS_DELEGATE_TRUE=
28263 DPS_DELEGATE_FALSE='#'
28264else
28265 DPS_DELEGATE_TRUE='#'
28266 DPS_DELEGATE_FALSE=
28267fi
28268
cristy3ed852e2009-09-05 21:47:34 +000028269
28270
28271
28272#
28273# Check for DJVU delegate library.
28274#
28275
28276# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028277if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028278 withval=$with_djvu; with_djvu=$withval
28279else
28280 with_djvu='yes'
28281fi
28282
28283
28284if test "$with_djvu" != 'yes'; then
28285 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28286fi
28287
28288have_djvu='no'
28289DJVU_LIBS=''
28290if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028291 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28292$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028294$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028295 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28296$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028297 failed=0
28298 passed=0
cristy8b350f62009-11-15 23:12:43 +000028299 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 +000028300if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028301 passed=`expr $passed + 1`
28302else
28303 failed=`expr $failed + 1`
28304fi
28305
28306
cristy8b350f62009-11-15 23:12:43 +000028307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028308$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028309if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028310 $as_echo_n "(cached) " >&6
28311else
28312 ac_check_lib_save_LIBS=$LIBS
28313LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028315/* end confdefs.h. */
28316
28317/* Override any GCC internal prototype to avoid an error.
28318 Use char because int might match the return type of a GCC
28319 builtin and then its argument prototype would still apply. */
28320#ifdef __cplusplus
28321extern "C"
28322#endif
28323char ddjvu_context_create ();
28324int
28325main ()
28326{
28327return ddjvu_context_create ();
28328 ;
28329 return 0;
28330}
28331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028333 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28334else
cristy8b350f62009-11-15 23:12:43 +000028335 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028336fi
cristy8b350f62009-11-15 23:12:43 +000028337rm -f core conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339LIBS=$ac_check_lib_save_LIBS
28340fi
cristy8b350f62009-11-15 23:12:43 +000028341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028343if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028344 passed=`expr $passed + 1`
28345else
28346 failed=`expr $failed + 1`
28347fi
28348
cristy8b350f62009-11-15 23:12:43 +000028349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028350$as_echo_n "checking if DJVU package is complete... " >&6; }
28351 if test $passed -gt 0; then
28352 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028353 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28354$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028355 have_djvu='no (failed tests)'
28356 else
28357 DJVU_LIBS='-ldjvulibre'
28358 LIBS="$DJVU_LIBS $LIBS"
28359
cristy8b350f62009-11-15 23:12:43 +000028360$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028361
cristy09b53e12011-10-14 12:47:22 +000028362 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28363$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028364 have_djvu='yes'
28365 fi
28366 else
cristy09b53e12011-10-14 12:47:22 +000028367 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28368$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028369 fi
28370fi
cristy73bd4a52010-10-05 11:24:23 +000028371 if test "$have_djvu" = 'yes'; then
28372 DJVU_DELEGATE_TRUE=
28373 DJVU_DELEGATE_FALSE='#'
28374else
28375 DJVU_DELEGATE_TRUE='#'
28376 DJVU_DELEGATE_FALSE=
28377fi
28378
cristy3ed852e2009-09-05 21:47:34 +000028379
28380
28381
28382#
cristy430a7312010-01-21 20:44:04 +000028383# Set DejaVu font directory.
28384#
28385
28386# Check whether --with-dejavu-font-dir was given.
28387if test "${with_dejavu_font_dir+set}" = set; then :
28388 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28389else
28390 with_dejavu_font_dir='default'
28391fi
28392
28393
28394if test "$with_dejavu_font_dir" != 'default'; then
28395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28396fi
28397
28398
28399#
cristy3ed852e2009-09-05 21:47:34 +000028400# Check for FFTW delegate library.
28401#
28402
28403# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028404if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028405 withval=$with_fftw; with_fftw=$withval
28406else
28407 with_fftw='yes'
28408fi
28409
28410
28411if test "$with_fftw" != 'yes'; then
28412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28413fi
28414
cristy81beccd2011-10-03 18:17:24 +000028415have_fftw='no'
28416FFTW_LIBS=''
28417if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28421$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28423$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028424 failed=0
28425 passed=0
28426 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28427if test "x$ac_cv_header_fftw3_h" = xyes; then :
28428 passed=`expr $passed + 1`
28429else
28430 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028431fi
28432
cristy81beccd2011-10-03 18:17:24 +000028433
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28435$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28436if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28437 $as_echo_n "(cached) " >&6
28438else
28439 ac_check_lib_save_LIBS=$LIBS
28440LIBS="-lfftw3 $LIBS"
28441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442/* 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 fftw_execute ();
28451int
28452main ()
28453{
28454return fftw_execute ();
28455 ;
28456 return 0;
28457}
28458_ACEOF
28459if ac_fn_c_try_link "$LINENO"; then :
28460 ac_cv_lib_fftw3_fftw_execute=yes
28461else
28462 ac_cv_lib_fftw3_fftw_execute=no
28463fi
28464rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
28466LIBS=$ac_check_lib_save_LIBS
28467fi
28468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28469$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28470if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28471 passed=`expr $passed + 1`
28472else
28473 failed=`expr $failed + 1`
28474fi
28475
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28477$as_echo_n "checking if FFTW package is complete... " >&6; }
28478 if test $passed -gt 0; then
28479 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028480 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28481$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028482 have_fftw='no (failed tests)'
28483 else
28484 FFTW_LIBS='-lfftw3'
28485 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028486
cristy8b350f62009-11-15 23:12:43 +000028487$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028488
cristy09b53e12011-10-14 12:47:22 +000028489 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28490$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028491 have_fftw='yes'
28492 fi
28493 else
cristy09b53e12011-10-14 12:47:22 +000028494 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28495$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028496 fi
28497fi
cristy73bd4a52010-10-05 11:24:23 +000028498 if test "$have_fftw" = 'yes'; then
28499 FFTW_DELEGATE_TRUE=
28500 FFTW_DELEGATE_FALSE='#'
28501else
28502 FFTW_DELEGATE_TRUE='#'
28503 FFTW_DELEGATE_FALSE=
28504fi
28505
cristy3ed852e2009-09-05 21:47:34 +000028506
28507
28508
28509#
28510# Check for FlashPIX delegate library.
28511#
28512
28513# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028514if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028515 withval=$with_fpx; with_fpx=$withval
28516else
28517 with_fpx='yes'
28518fi
28519
28520
28521if test "$with_fpx" != 'yes'; then
28522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28523fi
28524
28525have_fpx='no'
28526FPX_LIBS=''
28527if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028528 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28529$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028531$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28533$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028534 failed=0
28535 passed=0
28536 ac_ext=cpp
28537ac_cpp='$CXXCPP $CPPFLAGS'
28538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28541
28542
cristy8b350f62009-11-15 23:12:43 +000028543ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028544if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028545 passed=`expr $passed + 1`
28546else
28547 failed=`expr $failed + 1`
28548fi
28549
28550
cristy8b350f62009-11-15 23:12:43 +000028551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028552$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028553if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028554 $as_echo_n "(cached) " >&6
28555else
28556 ac_check_lib_save_LIBS=$LIBS
28557LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028559/* end confdefs.h. */
28560
28561/* Override any GCC internal prototype to avoid an error.
28562 Use char because int might match the return type of a GCC
28563 builtin and then its argument prototype would still apply. */
28564#ifdef __cplusplus
28565extern "C"
28566#endif
28567char FPX_OpenImageByFilename ();
28568int
28569main ()
28570{
28571return FPX_OpenImageByFilename ();
28572 ;
28573 return 0;
28574}
28575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028576if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28578else
cristy8b350f62009-11-15 23:12:43 +000028579 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028580fi
cristy8b350f62009-11-15 23:12:43 +000028581rm -f core conftest.err conftest.$ac_objext \
28582 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028583LIBS=$ac_check_lib_save_LIBS
28584fi
cristy8b350f62009-11-15 23:12:43 +000028585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028586$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028587if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028588 passed=`expr $passed + 1`
28589else
28590 failed=`expr $failed + 1`
28591fi
28592
28593 ac_ext=c
28594ac_cpp='$CPP $CPPFLAGS'
28595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28597ac_compiler_gnu=$ac_cv_c_compiler_gnu
28598
cristy8b350f62009-11-15 23:12:43 +000028599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028600$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28601 if test $passed -gt 0; then
28602 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028603 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28604$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028605 have_fpx='no (failed tests)'
28606 else
28607 FPX_LIBS='-lfpx'
28608
cristy8b350f62009-11-15 23:12:43 +000028609$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028610
cristy09b53e12011-10-14 12:47:22 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28612$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028613 have_fpx='yes'
28614 PERLMAINCC="$CXX"
28615 fi
28616 else
cristy09b53e12011-10-14 12:47:22 +000028617 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28618$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028619 fi
28620fi
cristy73bd4a52010-10-05 11:24:23 +000028621 if test "$have_fpx" = 'yes'; then
28622 FPX_DELEGATE_TRUE=
28623 FPX_DELEGATE_FALSE='#'
28624else
28625 FPX_DELEGATE_TRUE='#'
28626 FPX_DELEGATE_FALSE=
28627fi
28628
cristy3ed852e2009-09-05 21:47:34 +000028629
28630
28631
28632#
28633# Check for fontconfig delegate library.
28634#
28635
28636# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028637if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028638 withval=$with_fontconfig; with_fontconfig=$withval
28639else
28640 with_fontconfig=$have_x
28641fi
28642
28643
28644if test "$with_fontconfig" != 'yes'; then
28645 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28646fi
28647
28648have_fontconfig='no'
28649FONTCONFIG_CFLAGS=""
28650FONTCONFIG_LIBS=""
28651FONTCONFIG_PKG=""
28652if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28654$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028655
28656pkg_failed=no
28657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28658$as_echo_n "checking for FONTCONFIG... " >&6; }
28659
28660if test -n "$FONTCONFIG_CFLAGS"; then
28661 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28662 elif test -n "$PKG_CONFIG"; then
28663 if test -n "$PKG_CONFIG" && \
28664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28665 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28666 ac_status=$?
28667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28668 test $ac_status = 0; }; then
28669 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28670else
28671 pkg_failed=yes
28672fi
28673 else
28674 pkg_failed=untried
28675fi
28676if test -n "$FONTCONFIG_LIBS"; then
28677 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28678 elif test -n "$PKG_CONFIG"; then
28679 if test -n "$PKG_CONFIG" && \
28680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28681 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28682 ac_status=$?
28683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28684 test $ac_status = 0; }; then
28685 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28686else
28687 pkg_failed=yes
28688fi
28689 else
28690 pkg_failed=untried
28691fi
28692
28693
28694
28695if test $pkg_failed = yes; then
28696
28697if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28698 _pkg_short_errors_supported=yes
28699else
28700 _pkg_short_errors_supported=no
28701fi
28702 if test $_pkg_short_errors_supported = yes; then
28703 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28704 else
28705 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28706 fi
28707 # Put the nasty error message in config.log where it belongs
28708 echo "$FONTCONFIG_PKG_ERRORS" >&5
28709
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28711$as_echo "no" >&6; }
28712 have_fontconfig=no
28713elif test $pkg_failed = untried; then
28714 have_fontconfig=no
28715else
28716 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28717 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28719$as_echo "yes" >&6; }
28720 have_fontconfig=yes
28721fi
cristy09b53e12011-10-14 12:47:22 +000028722 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28723$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028724fi
28725
28726if test "$have_fontconfig" = 'yes'; then
28727
cristy8b350f62009-11-15 23:12:43 +000028728$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028729
cristyd09bcf92010-03-25 03:04:45 +000028730 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028731 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028732 fi
cristy3ed852e2009-09-05 21:47:34 +000028733fi
28734
cristy73bd4a52010-10-05 11:24:23 +000028735 if test "$have_fontconfig" = 'yes'; then
28736 FONTCONFIG_DELEGATE_TRUE=
28737 FONTCONFIG_DELEGATE_FALSE='#'
28738else
28739 FONTCONFIG_DELEGATE_TRUE='#'
28740 FONTCONFIG_DELEGATE_FALSE=
28741fi
28742
cristy3ed852e2009-09-05 21:47:34 +000028743
28744
28745
28746
28747#
cristy81beccd2011-10-03 18:17:24 +000028748# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028749#
28750
28751# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028752if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028753 withval=$with_freetype; with_freetype=$withval
28754else
28755 with_freetype='yes'
28756fi
28757
28758
cristy81beccd2011-10-03 18:17:24 +000028759
cristy3ed852e2009-09-05 21:47:34 +000028760if test "$with_freetype" != 'yes'; then
28761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28762fi
28763
cristy81beccd2011-10-03 18:17:24 +000028764have_freetype='no'
28765FREETYPE_LIBS=''
28766if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028767 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28768$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28770$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028771 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28772$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028773 failed=0
28774 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028775 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028776 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028777 freetype_config=''
28778 # Allow the user to specify the location of freetype.
28779 if test "$with_freetype" != 'yes'; then
28780 if test -x "${with_freetype}/bin/freetype-config"; then
28781 freetype_config="${with_freetype}/bin/freetype-config"
28782 elif test -x "${with_freetype}"; then
28783 freetype_config=${with_freetype}
28784 fi
28785 fi
28786 if test -z "$freetype_config"; then
28787 # Extract the first word of "freetype-config", so it can be a program name with args.
28788set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28790$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028791if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028792 $as_echo_n "(cached) " >&6
28793else
cristy98ca0f52011-10-08 23:19:10 +000028794 case $freetype_config in
28795 [\\/]* | ?:[\\/]*)
28796 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28797 ;;
28798 *)
28799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028800for as_dir in $PATH
28801do
28802 IFS=$as_save_IFS
28803 test -z "$as_dir" && as_dir=.
28804 for ac_exec_ext in '' $ac_executable_extensions; do
28805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028806 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28808 break 2
28809 fi
28810done
28811 done
28812IFS=$as_save_IFS
28813
cristy98ca0f52011-10-08 23:19:10 +000028814 ;;
28815esac
cristy81beccd2011-10-03 18:17:24 +000028816fi
cristy98ca0f52011-10-08 23:19:10 +000028817freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028818if test -n "$freetype_config"; then
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28820$as_echo "$freetype_config" >&6; }
28821else
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28823$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028824fi
28825
cristy98ca0f52011-10-08 23:19:10 +000028826 fi
28827 if test -n "$freetype_config"; then
28828 freetype_prefix=`${freetype_config} --prefix`
28829 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28830 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28831 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028832 fi
28833
28834 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028836$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28837if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28838 $as_echo_n "(cached) " >&6
28839else
28840 ac_check_lib_save_LIBS=$LIBS
28841LIBS="-lfreetype $LIBS"
28842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28843/* end confdefs.h. */
28844
28845/* Override any GCC internal prototype to avoid an error.
28846 Use char because int might match the return type of a GCC
28847 builtin and then its argument prototype would still apply. */
28848#ifdef __cplusplus
28849extern "C"
28850#endif
28851char FT_Init_FreeType ();
28852int
28853main ()
28854{
28855return FT_Init_FreeType ();
28856 ;
28857 return 0;
28858}
28859_ACEOF
28860if ac_fn_c_try_link "$LINENO"; then :
28861 ac_cv_lib_freetype_FT_Init_FreeType=yes
28862else
28863 ac_cv_lib_freetype_FT_Init_FreeType=no
28864fi
28865rm -f core conftest.err conftest.$ac_objext \
28866 conftest$ac_exeext conftest.$ac_ext
28867LIBS=$ac_check_lib_save_LIBS
28868fi
28869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28870$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28871if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28872 FREETYPE_LIBS='-lfreetype'
28873fi
28874
cristy98ca0f52011-10-08 23:19:10 +000028875 if test "$FREETYPE_LIBS" != ''; then
28876 passed=`expr $passed + 1`
28877 else
28878 failed=`expr $failed + 1`
28879 LDFLAGS="$PERSIST_LDFLAGS"
28880 fi
cristy81beccd2011-10-03 18:17:24 +000028881 fi
28882
28883 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28884if test "x$ac_cv_header_ft2build_h" = xyes; then :
28885 FT2BUILD_H='#include <ft2build.h>'
28886else
28887 ft2build=''
28888fi
28889
28890
28891 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28892"
28893if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28894 have_freetype_h='yes'
28895else
28896 have_freetype_h='no'
28897fi
28898
28899
cristy98ca0f52011-10-08 23:19:10 +000028900 if test "$have_freetype_h" = 'yes'; then
28901 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028902 else
cristy98ca0f52011-10-08 23:19:10 +000028903 failed=`expr $failed + 1`
28904 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028905 fi
28906
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28908$as_echo_n "checking if FreeType package is complete... " >&6; }
28909 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028910 if test $failed -gt 0; then
28911 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028912 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28913$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028914 have_freetype='no (failed tests)'
28915 else
28916 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028917
cristy8b350f62009-11-15 23:12:43 +000028918$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028919
cristy98ca0f52011-10-08 23:19:10 +000028920 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028921
28922$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28923
cristy81beccd2011-10-03 18:17:24 +000028924 fi
cristy09b53e12011-10-14 12:47:22 +000028925 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28926$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028927 have_freetype='yes'
28928 fi
cristy81beccd2011-10-03 18:17:24 +000028929 else
cristy09b53e12011-10-14 12:47:22 +000028930 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28931$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028932 fi
28933fi
cristy73bd4a52010-10-05 11:24:23 +000028934 if test "$have_freetype" = 'yes'; then
28935 FREETYPE_DELEGATE_TRUE=
28936 FREETYPE_DELEGATE_FALSE='#'
28937else
28938 FREETYPE_DELEGATE_TRUE='#'
28939 FREETYPE_DELEGATE_FALSE=
28940fi
28941
cristy3ed852e2009-09-05 21:47:34 +000028942
28943
28944
cristy3ed852e2009-09-05 21:47:34 +000028945#
28946# Check for Ghostscript library or framework.
28947#
28948# Test for iapi.h & test for gsapi_new_instance in -lgs
28949# or -framework Ghostscript
28950
28951
28952# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028953if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 withval=$with_gslib; with_gslib=$withval
28955else
28956 with_gslib='no'
28957fi
28958
28959
cristyb7931f12009-09-25 10:22:21 +000028960gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028961if test "$with_gslib" != 'yes'; then
28962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28963fi
28964
28965have_gslib='no'
28966GS_LIBS=''
28967if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028968 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28969$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028971$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028972 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28973$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028974 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028975 failed=0
28976 passed=0
cristy8b350f62009-11-15 23:12:43 +000028977 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 +000028978if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028979 passed=`expr $passed + 1`
28980else
28981 failed=`expr $failed + 1`
28982fi
28983
28984
cristy8b350f62009-11-15 23:12:43 +000028985 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 +000028986if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028987 passed=`expr $passed + 1`
28988else
28989 failed=`expr $failed + 1`
28990fi
28991
28992
cristy73bd4a52010-10-05 11:24:23 +000028993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28994$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028995if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028996 $as_echo_n "(cached) " >&6
28997else
28998 ac_check_framework_save_LIBS=$LIBS
28999LIBS="-framework Ghostscript $LIBS"
29000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29001/* end confdefs.h. */
29002
29003/* Override any GCC internal prototype to avoid an error.
29004 Use char because int might match the return type of a GCC
29005 builtin and then its argument prototype would still apply. */
29006#ifdef __cplusplus
29007extern "C"
29008#endif
29009char gsapi_new_instance ();
29010int
29011main ()
29012{
29013return gsapi_new_instance ();
29014 ;
29015 return 0;
29016}
29017_ACEOF
29018if ac_fn_c_try_link "$LINENO"; then :
29019 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29020else
29021 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29022fi
29023rm -f core conftest.err conftest.$ac_objext \
29024 conftest$ac_exeext conftest.$ac_ext
29025LIBS=$ac_check_framework_save_LIBS
29026fi
29027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29028$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29029if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29030 framework=`expr $framework + 1`
29031else
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029033$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029034if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029035 $as_echo_n "(cached) " >&6
29036else
29037 ac_check_lib_save_LIBS=$LIBS
29038LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029040/* end confdefs.h. */
29041
29042/* Override any GCC internal prototype to avoid an error.
29043 Use char because int might match the return type of a GCC
29044 builtin and then its argument prototype would still apply. */
29045#ifdef __cplusplus
29046extern "C"
29047#endif
29048char gsapi_new_instance ();
29049int
29050main ()
29051{
29052return gsapi_new_instance ();
29053 ;
29054 return 0;
29055}
29056_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029057if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029058 ac_cv_lib_gs_gsapi_new_instance=yes
29059else
cristy8b350f62009-11-15 23:12:43 +000029060 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029061fi
cristy8b350f62009-11-15 23:12:43 +000029062rm -f core conftest.err conftest.$ac_objext \
29063 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029064LIBS=$ac_check_lib_save_LIBS
29065fi
cristy8b350f62009-11-15 23:12:43 +000029066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029068if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029069 passed=`expr $passed + 1`
29070else
29071 failed=`expr $failed + 1`
29072fi
cristy73bd4a52010-10-05 11:24:23 +000029073
29074fi
cristy8b350f62009-11-15 23:12:43 +000029075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029076$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29077 if test $passed -gt 0; then
29078 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029079 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29080$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029081 have_gslib='no (failed tests)'
29082 else
29083 if test $framework -gt 0; then
29084 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029085 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029086 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29087$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029088 else
cristy09b53e12011-10-14 12:47:22 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29090$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029091 GS_LIBS='-lgs'
29092 fi
29093 LIBS="$GS_LIBS $LIBS"
29094
cristy8b350f62009-11-15 23:12:43 +000029095$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029096
29097 have_gslib='yes'
29098 fi
29099 else
cristy09b53e12011-10-14 12:47:22 +000029100 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29101$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029102 fi
29103fi
cristy73bd4a52010-10-05 11:24:23 +000029104 if test "$have_gslib" = 'yes'; then
29105 GS_DELEGATE_TRUE=
29106 GS_DELEGATE_FALSE='#'
29107else
29108 GS_DELEGATE_TRUE='#'
29109 GS_DELEGATE_FALSE=
29110fi
29111
cristy3ed852e2009-09-05 21:47:34 +000029112
29113
29114# Set default font search path
29115
29116# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029117if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029118 withval=$with_fontpath; with_fontpath=$withval
29119else
29120 with_fontpath=''
29121fi
29122
29123
29124if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29125 with_fontpath=''
29126else
29127
29128cat >>confdefs.h <<_ACEOF
29129#define MAGICK_FONT_PATH "$with_fontpath"
29130_ACEOF
29131
29132fi
29133if test "$with_fontpath=" != ''; then
29134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29135fi
29136
29137# Set Ghostscript font directory
29138
29139# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029140if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29142else
29143 with_gs_font_dir='default'
29144fi
29145
29146
29147if test "$with_gs_font_dir" != 'default'; then
29148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29149fi
29150
29151
29152#
29153# Check for GVC delegate library.
29154#
29155
29156# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029157if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029158 withval=$with_gvc; with_gvc=$withval
29159else
29160 with_gvc='yes'
29161fi
29162
29163
29164if test "$with_gvc" != 'yes'; then
29165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29166fi
29167
29168GVC_PKG=""
29169if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29171$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029172
29173pkg_failed=no
29174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29175$as_echo_n "checking for GVC... " >&6; }
29176
29177if test -n "$GVC_CFLAGS"; then
29178 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29179 elif test -n "$PKG_CONFIG"; then
29180 if test -n "$PKG_CONFIG" && \
29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29182 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29183 ac_status=$?
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; then
29186 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29187else
29188 pkg_failed=yes
29189fi
29190 else
29191 pkg_failed=untried
29192fi
29193if test -n "$GVC_LIBS"; then
29194 pkg_cv_GVC_LIBS="$GVC_LIBS"
29195 elif test -n "$PKG_CONFIG"; then
29196 if test -n "$PKG_CONFIG" && \
29197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29198 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29199 ac_status=$?
29200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201 test $ac_status = 0; }; then
29202 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29203else
29204 pkg_failed=yes
29205fi
29206 else
29207 pkg_failed=untried
29208fi
29209
29210
29211
29212if test $pkg_failed = yes; then
29213
29214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29215 _pkg_short_errors_supported=yes
29216else
29217 _pkg_short_errors_supported=no
29218fi
29219 if test $_pkg_short_errors_supported = yes; then
29220 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29221 else
29222 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29223 fi
29224 # Put the nasty error message in config.log where it belongs
29225 echo "$GVC_PKG_ERRORS" >&5
29226
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29228$as_echo "no" >&6; }
29229 have_gvc=no
29230elif test $pkg_failed = untried; then
29231 have_gvc=no
29232else
29233 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29234 GVC_LIBS=$pkg_cv_GVC_LIBS
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236$as_echo "yes" >&6; }
29237 have_gvc=yes
29238fi
cristy09b53e12011-10-14 12:47:22 +000029239 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29240$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029241fi
29242
29243if test "$have_gvc" = 'yes'; then
29244
cristy8b350f62009-11-15 23:12:43 +000029245$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029246
29247 if test "$with_modules" = 'no'; then
29248 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29249 fi
29250fi
29251
cristy73bd4a52010-10-05 11:24:23 +000029252 if test "$have_gvc" = 'yes'; then
29253 GVC_DELEGATE_TRUE=
29254 GVC_DELEGATE_FALSE='#'
29255else
29256 GVC_DELEGATE_TRUE='#'
29257 GVC_DELEGATE_FALSE=
29258fi
29259
cristy3ed852e2009-09-05 21:47:34 +000029260
29261
29262
29263
29264#
29265# Check for JBIG delegate library.
29266#
29267
29268
29269# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029270if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029271 withval=$with_jbig; with_jbig=$withval
29272else
29273 with_jbig='yes'
29274fi
29275
29276
29277have_jbig='no'
29278JBIG_LIBS=''
29279if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029280 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29281$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029283$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29285$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029286 failed=0
29287 passed=0
cristy8b350f62009-11-15 23:12:43 +000029288 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029289if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029290 passed=`expr $passed + 1`
29291else
29292 failed=`expr $failed + 1`
29293fi
29294
29295
cristy8b350f62009-11-15 23:12:43 +000029296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029297$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029298if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029299 $as_echo_n "(cached) " >&6
29300else
29301 ac_check_lib_save_LIBS=$LIBS
29302LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029304/* end confdefs.h. */
29305
29306/* Override any GCC internal prototype to avoid an error.
29307 Use char because int might match the return type of a GCC
29308 builtin and then its argument prototype would still apply. */
29309#ifdef __cplusplus
29310extern "C"
29311#endif
29312char jbg_dec_init ();
29313int
29314main ()
29315{
29316return jbg_dec_init ();
29317 ;
29318 return 0;
29319}
29320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029322 ac_cv_lib_jbig_jbg_dec_init=yes
29323else
cristy8b350f62009-11-15 23:12:43 +000029324 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029325fi
cristy8b350f62009-11-15 23:12:43 +000029326rm -f core conftest.err conftest.$ac_objext \
29327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029328LIBS=$ac_check_lib_save_LIBS
29329fi
cristy8b350f62009-11-15 23:12:43 +000029330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029331$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029332if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029333 passed=`expr $passed + 1`
29334else
29335 failed=`expr $failed + 1`
29336fi
29337
cristy8b350f62009-11-15 23:12:43 +000029338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029339$as_echo_n "checking if JBIG package is complete... " >&6; }
29340 if test $passed -gt 0; then
29341 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029342 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29343$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029344 have_jbig='no (failed tests)'
29345 else
29346 JBIG_LIBS='-ljbig'
29347 LIBS="$JBIG_LIBS $LIBS"
29348
cristy8b350f62009-11-15 23:12:43 +000029349$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029350
cristy09b53e12011-10-14 12:47:22 +000029351 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29352$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029353 have_jbig='yes'
29354 fi
29355 else
cristy09b53e12011-10-14 12:47:22 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29357$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029358 fi
29359fi
cristy73bd4a52010-10-05 11:24:23 +000029360 if test "$have_jbig" = 'yes'; then
29361 JBIG_DELEGATE_TRUE=
29362 JBIG_DELEGATE_FALSE='#'
29363else
29364 JBIG_DELEGATE_TRUE='#'
29365 JBIG_DELEGATE_FALSE=
29366fi
29367
cristy3ed852e2009-09-05 21:47:34 +000029368
29369
29370
29371#
29372# Check for JPEG delegate library.
29373#
29374
29375# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029376if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029377 withval=$with_jpeg; with_jpeg=$withval
29378else
29379 with_jpeg='yes'
29380fi
29381
29382
29383if test "$with_jpeg" != 'yes'; then
29384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29385fi
29386
29387have_jpeg='no'
29388JPEG_LIBS=''
29389if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029390 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29391$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029393$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029394 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29395$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029396 failed=0
29397 passed=0
cristy8b350f62009-11-15 23:12:43 +000029398 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029399if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029400 passed=`expr $passed + 1`
29401else
29402 failed=`expr $failed + 1`
29403fi
29404
29405
cristy8b350f62009-11-15 23:12:43 +000029406 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029407if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029408 passed=`expr $passed + 1`
29409else
29410 failed=`expr $failed + 1`
29411fi
29412
29413
cristy8b350f62009-11-15 23:12:43 +000029414 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029415if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029416 passed=`expr $passed + 1`
29417else
29418 failed=`expr $failed + 1`
29419fi
29420
29421
cristy8b350f62009-11-15 23:12:43 +000029422 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029423if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029424 passed=`expr $passed + 1`
29425else
29426 failed=`expr $failed + 1`
29427fi
29428
29429
cristy8b350f62009-11-15 23:12:43 +000029430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029431$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029432if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029433 $as_echo_n "(cached) " >&6
29434else
29435 ac_check_lib_save_LIBS=$LIBS
29436LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029438/* end confdefs.h. */
29439
29440/* Override any GCC internal prototype to avoid an error.
29441 Use char because int might match the return type of a GCC
29442 builtin and then its argument prototype would still apply. */
29443#ifdef __cplusplus
29444extern "C"
29445#endif
29446char jpeg_read_header ();
29447int
29448main ()
29449{
29450return jpeg_read_header ();
29451 ;
29452 return 0;
29453}
29454_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029455if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029456 ac_cv_lib_jpeg_jpeg_read_header=yes
29457else
cristy8b350f62009-11-15 23:12:43 +000029458 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029459fi
cristy8b350f62009-11-15 23:12:43 +000029460rm -f core conftest.err conftest.$ac_objext \
29461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029462LIBS=$ac_check_lib_save_LIBS
29463fi
cristy8b350f62009-11-15 23:12:43 +000029464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029465$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029466if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 passed=`expr $passed + 1`
29468else
29469 failed=`expr $failed + 1`
29470fi
29471
29472
29473# Test for compatible JPEG library
29474if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029476$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029477if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029478 $as_echo_n "(cached) " >&6
29479else
cristy8b350f62009-11-15 23:12:43 +000029480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029481/* end confdefs.h. */
29482#include <stdio.h>
29483#include <stdlib.h>
29484#include <jpeglib.h>
29485
29486int
29487main ()
29488{
29489
29490#if JPEG_LIB_VERSION < 62
29491#error IJG JPEG library must be version 6b or newer!
29492#endif
29493return 0;
29494
29495 ;
29496 return 0;
29497}
29498_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029499if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029500 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29501else
cristy8b350f62009-11-15 23:12:43 +000029502 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029503fi
cristy3ed852e2009-09-05 21:47:34 +000029504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505fi
cristy8b350f62009-11-15 23:12:43 +000029506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029507$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29508fi
cristy8b350f62009-11-15 23:12:43 +000029509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029510$as_echo_n "checking if JPEG package is complete... " >&6; }
29511 if test $passed -gt 0; then
29512 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029513 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29514$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029515 have_jpeg='no (failed tests)'
29516 else
29517 JPEG_LIBS='-ljpeg'
29518 LIBS="$JPEG_LIBS $LIBS"
29519
cristy8b350f62009-11-15 23:12:43 +000029520$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029521
cristy09b53e12011-10-14 12:47:22 +000029522 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29523$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029524 have_jpeg='yes'
29525 fi
29526 else
cristy09b53e12011-10-14 12:47:22 +000029527 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29528$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029529 fi
29530fi
cristy73bd4a52010-10-05 11:24:23 +000029531 if test "$have_jpeg" = 'yes'; then
29532 JPEG_DELEGATE_TRUE=
29533 JPEG_DELEGATE_FALSE='#'
29534else
29535 JPEG_DELEGATE_TRUE='#'
29536 JPEG_DELEGATE_FALSE=
29537fi
29538
cristy3ed852e2009-09-05 21:47:34 +000029539
29540
29541
29542#
29543# Check for JPEG Version 2 delegate library.
29544#
29545
29546# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029547if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029548 withval=$with_jp2; with_jp2=$withval
29549else
29550 with_jp2='yes'
29551fi
29552
29553
29554if test "$with_jp2" != 'yes'; then
29555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29556fi
29557
29558have_jp2='no'
29559JP2_LIBS=''
29560if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029561 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29562$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029564$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029565 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29566$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029567 failed=0
29568 passed=0
cristy8b350f62009-11-15 23:12:43 +000029569 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 +000029570if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029571 passed=`expr $passed + 1`
29572else
29573 failed=`expr $failed + 1`
29574fi
29575
29576
cristy8b350f62009-11-15 23:12:43 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029578$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029579if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029580 $as_echo_n "(cached) " >&6
29581else
29582 ac_check_lib_save_LIBS=$LIBS
29583LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029585/* end confdefs.h. */
29586
29587/* Override any GCC internal prototype to avoid an error.
29588 Use char because int might match the return type of a GCC
29589 builtin and then its argument prototype would still apply. */
29590#ifdef __cplusplus
29591extern "C"
29592#endif
29593char jas_stream_fopen ();
29594int
29595main ()
29596{
29597return jas_stream_fopen ();
29598 ;
29599 return 0;
29600}
29601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029602if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029603 ac_cv_lib_jasper_jas_stream_fopen=yes
29604else
cristy8b350f62009-11-15 23:12:43 +000029605 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029606fi
cristy8b350f62009-11-15 23:12:43 +000029607rm -f core conftest.err conftest.$ac_objext \
29608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029609LIBS=$ac_check_lib_save_LIBS
29610fi
cristy8b350f62009-11-15 23:12:43 +000029611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 passed=`expr $passed + 1`
29615else
29616 failed=`expr $failed + 1`
29617fi
29618
cristy8b350f62009-11-15 23:12:43 +000029619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29621 if test $passed -gt 0; then
29622 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029623 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29624$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029625 have_jp2='no (failed tests)'
29626 else
29627 JP2_LIBS='-ljasper'
29628 LIBS="$JP2_LIBS $LIBS"
29629
cristy8b350f62009-11-15 23:12:43 +000029630$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029631
cristy09b53e12011-10-14 12:47:22 +000029632 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29633$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029634 have_jp2='yes'
29635 fi
29636 else
cristy09b53e12011-10-14 12:47:22 +000029637 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29638$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029639 fi
29640fi
cristy73bd4a52010-10-05 11:24:23 +000029641 if test "$have_jp2" = 'yes'; then
29642 JP2_DELEGATE_TRUE=
29643 JP2_DELEGATE_FALSE='#'
29644else
29645 JP2_DELEGATE_TRUE='#'
29646 JP2_DELEGATE_FALSE=
29647fi
29648
cristy3ed852e2009-09-05 21:47:34 +000029649
29650
29651
29652#
29653# Check for LCMS delegate library.
29654#
cristy71203402010-06-18 13:12:03 +000029655# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029656
29657# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029658if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029659 withval=$with_lcms; with_lcms=$withval
29660else
29661 with_lcms='yes'
29662fi
29663
cristy71203402010-06-18 13:12:03 +000029664if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029665 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29666fi
29667
cristy71203402010-06-18 13:12:03 +000029668# Disable LCMS2.
29669
29670# Check whether --with-lcms2 was given.
29671if test "${with_lcms2+set}" = set; then :
29672 withval=$with_lcms2; with_lcms2=$withval
29673else
29674 with_lcms2='yes'
29675fi
29676
29677if test "$with_lcms2" != 'yes' ; then
29678 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29679fi
29680
29681have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029682LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029683if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29685$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29687$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029688 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29689$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029690 failed=0
29691 passed=0
29692 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029693
29694 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029695 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029696if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029697 have_lcms_header='yes'
29698fi
29699
29700
29701 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029702
29703$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29704
cristy71203402010-06-18 13:12:03 +000029705 passed=`expr $passed + 1`
29706 fi
29707
29708 # Check for <lcms2/lcms2.h)
29709 if test "$have_lcms_header" != 'yes'; then
29710 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 +000029711if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029712 have_lcms_header='yes'
29713fi
29714
29715
cristy71203402010-06-18 13:12:03 +000029716 if test "$have_lcms_header" = 'yes'; then
29717 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029718
cristy71203402010-06-18 13:12:03 +000029719$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029720
cristy71203402010-06-18 13:12:03 +000029721 fi
cristyd09bcf92010-03-25 03:04:45 +000029722 fi
cristy71203402010-06-18 13:12:03 +000029723
29724 # Failed to find lcms header?
29725 if test "$have_lcms_header" != 'yes'; then
29726 failed=`expr $failed + 1`
29727 fi
29728
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29730$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029731if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029732 $as_echo_n "(cached) " >&6
29733else
29734 ac_check_lib_save_LIBS=$LIBS
29735LIBS="-llcms2 $LIBS"
29736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737/* end confdefs.h. */
29738
29739/* Override any GCC internal prototype to avoid an error.
29740 Use char because int might match the return type of a GCC
29741 builtin and then its argument prototype would still apply. */
29742#ifdef __cplusplus
29743extern "C"
29744#endif
cristy71203402010-06-18 13:12:03 +000029745char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029746int
29747main ()
29748{
cristy71203402010-06-18 13:12:03 +000029749return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029750 ;
29751 return 0;
29752}
29753_ACEOF
29754if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029755 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029756else
cristy71203402010-06-18 13:12:03 +000029757 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029758fi
29759rm -f core conftest.err conftest.$ac_objext \
29760 conftest$ac_exeext conftest.$ac_ext
29761LIBS=$ac_check_lib_save_LIBS
29762fi
cristy71203402010-06-18 13:12:03 +000029763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29764$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029765if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029766 passed=`expr $passed + 1`
29767else
29768 failed=`expr $failed + 1`
29769fi
29770
cristy71203402010-06-18 13:12:03 +000029771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29772$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029773 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029774 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029775 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29776$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029777 have_lcms2='no (failed tests)'
29778 else
29779 LCMS_LIBS='-llcms2'
29780 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029781 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29782$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029783 have_lcms2='yes'
29784 fi
cristyd09bcf92010-03-25 03:04:45 +000029785 else
cristy09b53e12011-10-14 12:47:22 +000029786 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29787$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029788 fi
29789fi
29790
cristy71203402010-06-18 13:12:03 +000029791#
29792# Check for LCMS v1 (1.11 or later)
29793#
29794if test $have_lcms2 = 'yes'; then
29795 with_lcms='no'
29796fi
29797
29798have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029799if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029800 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29801$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29803$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029804 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29805$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029806 failed=0
29807 passed=0
29808 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029809
29810 # Check for <lcms.h>
29811 if test "$have_lcms_header" != 'yes'; then
29812 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029813if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029814 have_lcms_header='yes'
29815fi
29816
29817
cristy71203402010-06-18 13:12:03 +000029818 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029819 passed=`expr $passed + 1`
29820
cristy8b350f62009-11-15 23:12:43 +000029821$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029822
cristy71203402010-06-18 13:12:03 +000029823 fi
29824 fi
29825
29826 # Check for <lcms/lcms.h>
29827 if test "$have_lcms_header" != 'yes'; then
29828 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 +000029829if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029830 have_lcms_header='yes'
29831fi
29832
29833
cristy71203402010-06-18 13:12:03 +000029834 if test "$have_lcms_header" = 'yes'; then
29835 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029836
cristy8b350f62009-11-15 23:12:43 +000029837$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029838
cristy71203402010-06-18 13:12:03 +000029839 fi
cristy3ed852e2009-09-05 21:47:34 +000029840 fi
cristy71203402010-06-18 13:12:03 +000029841
29842 # Failed to find lcms header?
29843 if test "$have_lcms_header" != 'yes'; then
29844 failed=`expr $failed + 1`
29845 fi
29846
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29848$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029849if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029850 $as_echo_n "(cached) " >&6
29851else
29852 ac_check_lib_save_LIBS=$LIBS
29853LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029855/* end confdefs.h. */
29856
29857/* Override any GCC internal prototype to avoid an error.
29858 Use char because int might match the return type of a GCC
29859 builtin and then its argument prototype would still apply. */
29860#ifdef __cplusplus
29861extern "C"
29862#endif
cristy71203402010-06-18 13:12:03 +000029863char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029864int
29865main ()
29866{
cristy71203402010-06-18 13:12:03 +000029867return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029868 ;
29869 return 0;
29870}
29871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029872if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029873 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029874else
cristy71203402010-06-18 13:12:03 +000029875 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029876fi
cristy8b350f62009-11-15 23:12:43 +000029877rm -f core conftest.err conftest.$ac_objext \
29878 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029879LIBS=$ac_check_lib_save_LIBS
29880fi
cristy71203402010-06-18 13:12:03 +000029881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29882$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029883if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029884 passed=`expr $passed + 1`
29885else
29886 failed=`expr $failed + 1`
29887fi
29888
cristy8b350f62009-11-15 23:12:43 +000029889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029890$as_echo_n "checking if LCMS package is complete... " >&6; }
29891 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029892 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029893 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29894$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029895 have_lcms='no (failed tests)'
29896 else
29897 LCMS_LIBS='-llcms'
29898 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029899 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29900$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029901 have_lcms='yes'
29902 fi
cristy3ed852e2009-09-05 21:47:34 +000029903 else
cristy09b53e12011-10-14 12:47:22 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29905$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029906 fi
29907fi
cristy71203402010-06-18 13:12:03 +000029908
cristy73bd4a52010-10-05 11:24:23 +000029909 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29910 LCMS_DELEGATE_TRUE=
29911 LCMS_DELEGATE_FALSE='#'
29912else
29913 LCMS_DELEGATE_TRUE='#'
29914 LCMS_DELEGATE_FALSE=
29915fi
29916
cristy71203402010-06-18 13:12:03 +000029917if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29918
29919$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29920
29921fi
29922
cristy3ed852e2009-09-05 21:47:34 +000029923
29924
29925
29926#
29927# Check for the LQR (Liquid Rescale) delegate library.
29928#
29929
29930# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029931if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029932 withval=$with_lqr; with_lqr=$withval
29933else
29934 with_lqr='yes'
29935fi
29936
29937
29938if test "$with_lqr" != 'yes'; then
29939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29940fi
29941
29942have_lqr='no'
29943LQR_CFLAGS=""
29944LQR_LIBS=""
29945LQR_PKG=""
29946if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29948$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029949
29950pkg_failed=no
29951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29952$as_echo_n "checking for LQR... " >&6; }
29953
29954if test -n "$LQR_CFLAGS"; then
29955 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29956 elif test -n "$PKG_CONFIG"; then
29957 if test -n "$PKG_CONFIG" && \
29958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29959 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29960 ac_status=$?
29961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29962 test $ac_status = 0; }; then
29963 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29964else
29965 pkg_failed=yes
29966fi
29967 else
29968 pkg_failed=untried
29969fi
29970if test -n "$LQR_LIBS"; then
29971 pkg_cv_LQR_LIBS="$LQR_LIBS"
29972 elif test -n "$PKG_CONFIG"; then
29973 if test -n "$PKG_CONFIG" && \
29974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29975 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29976 ac_status=$?
29977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978 test $ac_status = 0; }; then
29979 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29980else
29981 pkg_failed=yes
29982fi
29983 else
29984 pkg_failed=untried
29985fi
29986
29987
29988
29989if test $pkg_failed = yes; then
29990
29991if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29992 _pkg_short_errors_supported=yes
29993else
29994 _pkg_short_errors_supported=no
29995fi
29996 if test $_pkg_short_errors_supported = yes; then
29997 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29998 else
29999 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30000 fi
30001 # Put the nasty error message in config.log where it belongs
30002 echo "$LQR_PKG_ERRORS" >&5
30003
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30005$as_echo "no" >&6; }
30006 have_lqr=no
30007elif test $pkg_failed = untried; then
30008 have_lqr=no
30009else
30010 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30011 LQR_LIBS=$pkg_cv_LQR_LIBS
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013$as_echo "yes" >&6; }
30014 have_lqr=yes
30015fi
cristy09b53e12011-10-14 12:47:22 +000030016 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30017$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030018fi
30019
30020if test "$have_lqr" = 'yes'; then
30021
cristy8b350f62009-11-15 23:12:43 +000030022$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030023
30024 CFLAGS="$LQR_CFLAGS $CFLAGS"
30025fi
30026
cristy73bd4a52010-10-05 11:24:23 +000030027 if test "$have_lqr" = 'yes'; then
30028 LQR_DELEGATE_TRUE=
30029 LQR_DELEGATE_FALSE='#'
30030else
30031 LQR_DELEGATE_TRUE='#'
30032 LQR_DELEGATE_FALSE=
30033fi
30034
cristy3ed852e2009-09-05 21:47:34 +000030035
30036
30037
30038
cristy81beccd2011-10-03 18:17:24 +000030039# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030040
30041# Check whether --with-lzma was given.
30042if test "${with_lzma+set}" = set; then :
30043 withval=$with_lzma; with_lzma=$withval
30044else
30045 with_lzma='yes'
30046fi
30047
cristy81beccd2011-10-03 18:17:24 +000030048if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30050fi
30051
cristy81beccd2011-10-03 18:17:24 +000030052#
30053# Check for LZMA
30054#
30055have_lzma='no'
30056LZMA_LIBS=''
30057if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030058 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30059$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030061$as_echo_n "checking for LZMA... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030062 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30063$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030064 failed=0
30065 passed=0
30066 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30067if test "x$ac_cv_header_lzma_h" = xyes; then :
30068 passed=`expr $passed + 1`
30069else
30070 failed=`expr $failed + 1`
cristyfbb0ef02010-12-19 02:32:11 +000030071fi
30072
cristy81beccd2011-10-03 18:17:24 +000030073
30074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30075$as_echo_n "checking for lzma_code in -llzma... " >&6; }
30076if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30077 $as_echo_n "(cached) " >&6
30078else
30079 ac_check_lib_save_LIBS=$LIBS
30080LIBS="-llzma $LIBS"
30081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30082/* end confdefs.h. */
30083
30084/* Override any GCC internal prototype to avoid an error.
30085 Use char because int might match the return type of a GCC
30086 builtin and then its argument prototype would still apply. */
30087#ifdef __cplusplus
30088extern "C"
30089#endif
30090char lzma_code ();
30091int
30092main ()
30093{
30094return lzma_code ();
30095 ;
30096 return 0;
30097}
30098_ACEOF
30099if ac_fn_c_try_link "$LINENO"; then :
30100 ac_cv_lib_lzma_lzma_code=yes
30101else
30102 ac_cv_lib_lzma_lzma_code=no
30103fi
30104rm -f core conftest.err conftest.$ac_objext \
30105 conftest$ac_exeext conftest.$ac_ext
30106LIBS=$ac_check_lib_save_LIBS
30107fi
30108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30109$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30110if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30111 passed=`expr $passed + 1`
30112else
30113 failed=`expr $failed + 1`
30114fi
30115
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30117$as_echo_n "checking if LZMA package is complete... " >&6; }
30118 if test $passed -gt 0; then
30119 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030120 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30121$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030122 have_lzma='no (failed tests)'
30123 else
30124 LZMA_LIBS='-llzma'
30125 LIBS="$LZMA_LIBS $LIBS"
cristyfbb0ef02010-12-19 02:32:11 +000030126
30127$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30128
cristy09b53e12011-10-14 12:47:22 +000030129 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30130$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030131 have_lzma='yes'
cristyfbb0ef02010-12-19 02:32:11 +000030132 fi
cristy81beccd2011-10-03 18:17:24 +000030133 else
cristy09b53e12011-10-14 12:47:22 +000030134 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30135$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030136 fi
cristyfbb0ef02010-12-19 02:32:11 +000030137fi
30138 if test "$have_lzma" = 'yes'; then
30139 LZMA_DELEGATE_TRUE=
30140 LZMA_DELEGATE_FALSE='#'
30141else
30142 LZMA_DELEGATE_TRUE='#'
30143 LZMA_DELEGATE_FALSE=
30144fi
30145
30146
30147
30148
cristy3ed852e2009-09-05 21:47:34 +000030149#
30150# Check for the OpenEXR delegate library.
30151#
30152
30153# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030154if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030155 withval=$with_openexr; with_openexr=$withval
30156else
30157 with_openexr='yes'
30158fi
30159
30160
30161if test "$with_openexr" != 'yes'; then
30162 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30163fi
30164
30165have_openexr='no'
30166OPENEXR_CFLAGS=""
30167OPENEXR_LIBS=""
30168OPENEXR_PKG=""
30169if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030170 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30171$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030172
30173pkg_failed=no
30174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30175$as_echo_n "checking for OPENEXR... " >&6; }
30176
30177if test -n "$OPENEXR_CFLAGS"; then
30178 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30179 elif test -n "$PKG_CONFIG"; then
30180 if test -n "$PKG_CONFIG" && \
30181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30182 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30183 ac_status=$?
30184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185 test $ac_status = 0; }; then
30186 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30187else
30188 pkg_failed=yes
30189fi
30190 else
30191 pkg_failed=untried
30192fi
30193if test -n "$OPENEXR_LIBS"; then
30194 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30195 elif test -n "$PKG_CONFIG"; then
30196 if test -n "$PKG_CONFIG" && \
30197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30198 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30199 ac_status=$?
30200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30201 test $ac_status = 0; }; then
30202 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30203else
30204 pkg_failed=yes
30205fi
30206 else
30207 pkg_failed=untried
30208fi
30209
30210
30211
30212if test $pkg_failed = yes; then
30213
30214if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30215 _pkg_short_errors_supported=yes
30216else
30217 _pkg_short_errors_supported=no
30218fi
30219 if test $_pkg_short_errors_supported = yes; then
30220 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30221 else
30222 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30223 fi
30224 # Put the nasty error message in config.log where it belongs
30225 echo "$OPENEXR_PKG_ERRORS" >&5
30226
30227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30228$as_echo "no" >&6; }
30229 have_openexr=no
30230elif test $pkg_failed = untried; then
30231 have_openexr=no
30232else
30233 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30234 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236$as_echo "yes" >&6; }
30237 have_openexr=yes
30238fi
cristy09b53e12011-10-14 12:47:22 +000030239 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30240$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030241fi
30242
30243if test "$have_openexr" = 'yes'; then
30244
cristy8b350f62009-11-15 23:12:43 +000030245$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030246
30247 if test "$with_modules" = 'no'; then
30248 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30249 fi
30250fi
30251
cristy73bd4a52010-10-05 11:24:23 +000030252 if test "$have_openexr" = 'yes'; then
30253 OPENEXR_DELEGATE_TRUE=
30254 OPENEXR_DELEGATE_FALSE='#'
30255else
30256 OPENEXR_DELEGATE_TRUE='#'
30257 OPENEXR_DELEGATE_FALSE=
30258fi
30259
cristy3ed852e2009-09-05 21:47:34 +000030260
30261
30262
30263
30264#
cristy41cbe8a2011-10-27 01:35:18 +000030265# Check for PANGO delegate library.
30266#
30267
30268# Check whether --with-pango was given.
30269if test "${with_pango+set}" = set; then :
30270 withval=$with_pango; with_pango=$withval
30271else
30272 with_pango=$have_x
30273fi
30274
30275
30276if test "$with_pango" != 'yes'; then
30277 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30278fi
30279
30280have_pango='no'
30281have_pangoft2='no'
30282PANGO_CFLAGS=""
30283PANGO_LIBS=""
30284PANGO_PKG=""
30285if test "x$with_pango" = "xyes"; then
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30287$as_echo "-------------------------------------------------------------" >&6; }
30288
30289pkg_failed=no
30290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30291$as_echo_n "checking for PANGO... " >&6; }
30292
30293if test -n "$PANGO_CFLAGS"; then
30294 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30295 elif test -n "$PKG_CONFIG"; then
30296 if test -n "$PKG_CONFIG" && \
30297 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30298 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30299 ac_status=$?
30300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30301 test $ac_status = 0; }; then
30302 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30303else
30304 pkg_failed=yes
30305fi
30306 else
30307 pkg_failed=untried
30308fi
30309if test -n "$PANGO_LIBS"; then
30310 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30311 elif test -n "$PKG_CONFIG"; then
30312 if test -n "$PKG_CONFIG" && \
30313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30314 ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30315 ac_status=$?
30316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30317 test $ac_status = 0; }; then
30318 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30319else
30320 pkg_failed=yes
30321fi
30322 else
30323 pkg_failed=untried
30324fi
30325
30326
30327
30328if test $pkg_failed = yes; then
30329
30330if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30331 _pkg_short_errors_supported=yes
30332else
30333 _pkg_short_errors_supported=no
30334fi
30335 if test $_pkg_short_errors_supported = yes; then
30336 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30337 else
30338 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30339 fi
30340 # Put the nasty error message in config.log where it belongs
30341 echo "$PANGO_PKG_ERRORS" >&5
30342
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30344$as_echo "no" >&6; }
30345 have_pango=no
30346elif test $pkg_failed = untried; then
30347 have_pango=no
30348else
30349 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30350 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30352$as_echo "yes" >&6; }
30353 have_pango=yes
30354fi
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30356$as_echo "" >&6; }
30357
30358pkg_failed=no
30359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30360$as_echo_n "checking for PANGO... " >&6; }
30361
30362if test -n "$PANGO_CFLAGS"; then
30363 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30364 elif test -n "$PKG_CONFIG"; then
30365 if test -n "$PKG_CONFIG" && \
30366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30367 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30368 ac_status=$?
30369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30370 test $ac_status = 0; }; then
30371 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30372else
30373 pkg_failed=yes
30374fi
30375 else
30376 pkg_failed=untried
30377fi
30378if test -n "$PANGO_LIBS"; then
30379 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30380 elif test -n "$PKG_CONFIG"; then
30381 if test -n "$PKG_CONFIG" && \
30382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30383 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30384 ac_status=$?
30385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30386 test $ac_status = 0; }; then
30387 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30388else
30389 pkg_failed=yes
30390fi
30391 else
30392 pkg_failed=untried
30393fi
30394
30395
30396
30397if test $pkg_failed = yes; then
30398
30399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30400 _pkg_short_errors_supported=yes
30401else
30402 _pkg_short_errors_supported=no
30403fi
30404 if test $_pkg_short_errors_supported = yes; then
30405 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30406 else
30407 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30408 fi
30409 # Put the nasty error message in config.log where it belongs
30410 echo "$PANGO_PKG_ERRORS" >&5
30411
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30413$as_echo "no" >&6; }
30414 have_pangoft2=no
30415elif test $pkg_failed = untried; then
30416 have_pangoft2=no
30417else
30418 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30419 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30421$as_echo "yes" >&6; }
30422 have_pangoft2=yes
30423fi
30424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30425$as_echo "" >&6; }
30426fi
30427
30428if test "$have_pango" = 'yes'; then
30429
30430$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30431
30432 if test "$with_modules" = 'no'; then
30433 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30434 fi
30435fi
30436
30437if test "$have_pangoft2" = 'yes'; then
30438
30439$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30440
30441 if test "$with_modules" = 'no'; then
30442 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30443 fi
30444fi
30445
30446 if test "$have_pango" = 'yes'; then
30447 PANGO_DELEGATE_TRUE=
30448 PANGO_DELEGATE_FALSE='#'
30449else
30450 PANGO_DELEGATE_TRUE='#'
30451 PANGO_DELEGATE_FALSE=
30452fi
30453
30454 if test "$have_pangoft2" = 'yes'; then
30455 PANGOFT2_DELEGATE_TRUE=
30456 PANGOFT2_DELEGATE_FALSE='#'
30457else
30458 PANGOFT2_DELEGATE_TRUE='#'
30459 PANGOFT2_DELEGATE_FALSE=
30460fi
30461
30462
30463
30464
30465
30466#
cristy3ed852e2009-09-05 21:47:34 +000030467# Check for PNG delegate library.
30468#
30469
30470# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030471if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030472 withval=$with_png; with_png=$withval
30473else
30474 with_png='yes'
30475fi
30476
30477
30478if test "$with_png" != 'yes'; then
30479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30480fi
30481
cristy81beccd2011-10-03 18:17:24 +000030482have_png='no'
30483PNG_LIBS=''
30484
30485if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30487$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30489$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30491$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030492 failed=0
30493 passed=0
30494 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30495if test "x$ac_cv_header_png_h" = xyes; then :
30496 passed=`expr $passed + 1`
30497else
30498 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030499fi
30500
cristy81beccd2011-10-03 18:17:24 +000030501
30502
30503 if test $passed -gt 0; then
30504 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030505 if test "$have_png" = 'no' ; then
30506 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030507 pnglib='png'
30508 else
30509 pnglib="png1${var}"
30510 fi
30511
30512# Test for compatible LIBPNG library
30513 failed=0
30514 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030515 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030516 if test "${pnglib}" != 'png' ; then
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30518$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30520/* end confdefs.h. */
30521#include <stdio.h>
30522#include <stdlib.h>
30523#include <png.h>
30524
30525int
30526main ()
30527{
30528
30529#if PNG_LIBPNG_VER_MINOR != ${var}
30530#error LIBPNG library must be version 1${var}!
30531Kaboom, Kaboom
30532#endif
30533return 0;
30534
30535 ;
30536 return 0;
30537}
30538_ACEOF
30539if ac_fn_c_try_compile "$LINENO"; then :
30540 ac_cv_libpng_ok='yes'
30541else
30542 ac_cv_libpng_ok='no'
30543fi
30544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 if test "$ac_cv_libpng_ok" = 'yes' ; then
30546 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030547 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30548$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030549 else
30550 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030551 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30552$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030553 fi
30554 else
30555 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030556 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30557$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030558 fi
30559 fi
30560
30561 if test $passed -gt 0 -a $failed -le 0; then
30562 if test "1${var}" = '15' ; then
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30564$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30565if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30566 $as_echo_n "(cached) " >&6
30567else
30568 ac_check_lib_save_LIBS=$LIBS
30569LIBS="-lpng15 $LIBS"
30570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571/* end confdefs.h. */
30572
30573/* Override any GCC internal prototype to avoid an error.
30574 Use char because int might match the return type of a GCC
30575 builtin and then its argument prototype would still apply. */
30576#ifdef __cplusplus
30577extern "C"
30578#endif
30579char png_get_io_ptr ();
30580int
30581main ()
30582{
30583return png_get_io_ptr ();
30584 ;
30585 return 0;
30586}
30587_ACEOF
30588if ac_fn_c_try_link "$LINENO"; then :
30589 ac_cv_lib_png15_png_get_io_ptr=yes
30590else
30591 ac_cv_lib_png15_png_get_io_ptr=no
30592fi
30593rm -f core conftest.err conftest.$ac_objext \
30594 conftest$ac_exeext conftest.$ac_ext
30595LIBS=$ac_check_lib_save_LIBS
30596fi
30597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30598$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30599if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30600 passed=`expr $passed + 1`
30601else
30602 failed=`expr $failed + 1`
30603fi
30604
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30606$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30607if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30608 $as_echo_n "(cached) " >&6
30609else
30610 ac_check_lib_save_LIBS=$LIBS
30611LIBS="-lpng15 $LIBS"
30612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30613/* end confdefs.h. */
30614
30615/* Override any GCC internal prototype to avoid an error.
30616 Use char because int might match the return type of a GCC
30617 builtin and then its argument prototype would still apply. */
30618#ifdef __cplusplus
30619extern "C"
30620#endif
30621char png_longjmp ();
30622int
30623main ()
30624{
30625return png_longjmp ();
30626 ;
30627 return 0;
30628}
30629_ACEOF
30630if ac_fn_c_try_link "$LINENO"; then :
30631 ac_cv_lib_png15_png_longjmp=yes
30632else
30633 ac_cv_lib_png15_png_longjmp=no
30634fi
30635rm -f core conftest.err conftest.$ac_objext \
30636 conftest$ac_exeext conftest.$ac_ext
30637LIBS=$ac_check_lib_save_LIBS
30638fi
30639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30640$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30641if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30642 passed=`expr $passed + 1`
30643else
30644 failed=`expr $failed + 1`
30645fi
30646
30647 fi
30648 if test "1${var}" = '14' ; then
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30650$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30651if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30652 $as_echo_n "(cached) " >&6
30653else
30654 ac_check_lib_save_LIBS=$LIBS
30655LIBS="-lpng14 $LIBS"
30656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30657/* end confdefs.h. */
30658
30659/* Override any GCC internal prototype to avoid an error.
30660 Use char because int might match the return type of a GCC
30661 builtin and then its argument prototype would still apply. */
30662#ifdef __cplusplus
30663extern "C"
30664#endif
30665char png_get_io_ptr ();
30666int
30667main ()
30668{
30669return png_get_io_ptr ();
30670 ;
30671 return 0;
30672}
30673_ACEOF
30674if ac_fn_c_try_link "$LINENO"; then :
30675 ac_cv_lib_png14_png_get_io_ptr=yes
30676else
30677 ac_cv_lib_png14_png_get_io_ptr=no
30678fi
30679rm -f core conftest.err conftest.$ac_objext \
30680 conftest$ac_exeext conftest.$ac_ext
30681LIBS=$ac_check_lib_save_LIBS
30682fi
30683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30684$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30685if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30686 passed=`expr $passed + 1`
30687else
30688 failed=`expr $failed + 1`
30689fi
30690
30691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30692$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30693if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30694 $as_echo_n "(cached) " >&6
30695else
30696 ac_check_lib_save_LIBS=$LIBS
30697LIBS="-lpng14 $LIBS"
30698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699/* end confdefs.h. */
30700
30701/* Override any GCC internal prototype to avoid an error.
30702 Use char because int might match the return type of a GCC
30703 builtin and then its argument prototype would still apply. */
30704#ifdef __cplusplus
30705extern "C"
30706#endif
30707char png_get_io_state ();
30708int
30709main ()
30710{
30711return png_get_io_state ();
30712 ;
30713 return 0;
30714}
30715_ACEOF
30716if ac_fn_c_try_link "$LINENO"; then :
30717 ac_cv_lib_png14_png_get_io_state=yes
30718else
30719 ac_cv_lib_png14_png_get_io_state=no
30720fi
30721rm -f core conftest.err conftest.$ac_objext \
30722 conftest$ac_exeext conftest.$ac_ext
30723LIBS=$ac_check_lib_save_LIBS
30724fi
30725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30726$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30727if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30728 passed=`expr $passed + 1`
30729else
30730 failed=`expr $failed + 1`
30731fi
30732
30733 fi
30734 if test "1${var}" = '12' ; then
30735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30736$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30737if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30738 $as_echo_n "(cached) " >&6
30739else
30740 ac_check_lib_save_LIBS=$LIBS
30741LIBS="-lpng12 $LIBS"
30742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743/* end confdefs.h. */
30744
30745/* Override any GCC internal prototype to avoid an error.
30746 Use char because int might match the return type of a GCC
30747 builtin and then its argument prototype would still apply. */
30748#ifdef __cplusplus
30749extern "C"
30750#endif
30751char png_get_io_ptr ();
30752int
30753main ()
30754{
30755return png_get_io_ptr ();
30756 ;
30757 return 0;
30758}
30759_ACEOF
30760if ac_fn_c_try_link "$LINENO"; then :
30761 ac_cv_lib_png12_png_get_io_ptr=yes
30762else
30763 ac_cv_lib_png12_png_get_io_ptr=no
30764fi
30765rm -f core conftest.err conftest.$ac_objext \
30766 conftest$ac_exeext conftest.$ac_ext
30767LIBS=$ac_check_lib_save_LIBS
30768fi
30769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30770$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30771if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30772 passed=`expr $passed + 1`
30773else
30774 failed=`expr $failed + 1`
30775fi
30776
30777 fi
30778 if test "1${var}" = '1' ; then
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30780$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30781if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30782 $as_echo_n "(cached) " >&6
30783else
30784 ac_check_lib_save_LIBS=$LIBS
30785LIBS="-lpng $LIBS"
30786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30787/* end confdefs.h. */
30788
30789/* Override any GCC internal prototype to avoid an error.
30790 Use char because int might match the return type of a GCC
30791 builtin and then its argument prototype would still apply. */
30792#ifdef __cplusplus
30793extern "C"
30794#endif
30795char png_get_io_ptr ();
30796int
30797main ()
30798{
30799return png_get_io_ptr ();
30800 ;
30801 return 0;
30802}
30803_ACEOF
30804if ac_fn_c_try_link "$LINENO"; then :
30805 ac_cv_lib_png_png_get_io_ptr=yes
30806else
30807 ac_cv_lib_png_png_get_io_ptr=no
30808fi
30809rm -f core conftest.err conftest.$ac_objext \
30810 conftest$ac_exeext conftest.$ac_ext
30811LIBS=$ac_check_lib_save_LIBS
30812fi
30813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30814$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30815if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30816 passed=`expr $passed + 1`
30817else
30818 failed=`expr $failed + 1`
30819fi
30820
30821 fi
30822 if test $passed -gt 0 -a $failed -le 0 ; then
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30824$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30825 if test $passed -gt 0 ; then
30826 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030827 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30828$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030829 have_png='no (failed tests)'
30830 else
30831 PNG_LIBS="-l${pnglib}"
30832 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030833
cristy8b350f62009-11-15 23:12:43 +000030834$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030835
cristy09b53e12011-10-14 12:47:22 +000030836 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30837$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030838 have_png='yes'
30839 fi
30840 fi
30841 fi
30842 fi
30843 fi
30844 done
30845 fi
cristy3ed852e2009-09-05 21:47:34 +000030846fi
cristy64877302011-08-23 19:10:31 +000030847
cristy73bd4a52010-10-05 11:24:23 +000030848 if test "$have_png" = 'yes'; then
30849 PNG_DELEGATE_TRUE=
30850 PNG_DELEGATE_FALSE='#'
30851else
30852 PNG_DELEGATE_TRUE='#'
30853 PNG_DELEGATE_FALSE=
30854fi
30855
cristy3ed852e2009-09-05 21:47:34 +000030856
cristy50d3f5c2011-09-10 20:09:06 +000030857
cristy3ed852e2009-09-05 21:47:34 +000030858
30859
30860#
30861# Check for RSVG delegate library.
30862#
30863
30864# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030865if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030866 withval=$with_rsvg; with_rsvg=$withval
30867else
30868 with_rsvg=$have_x
30869fi
30870
30871
30872if test "$with_rsvg" != 'yes'; then
30873 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30874fi
30875
30876have_rsvg='no'
30877have_cairo='no'
30878RSVG_CFLAGS=""
30879RSVG_LIBS=""
30880RSVG_PKG=""
30881if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030882 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30883$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030884
30885pkg_failed=no
30886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30887$as_echo_n "checking for RSVG... " >&6; }
30888
30889if test -n "$RSVG_CFLAGS"; then
30890 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30891 elif test -n "$PKG_CONFIG"; then
30892 if test -n "$PKG_CONFIG" && \
30893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30894 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30895 ac_status=$?
30896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897 test $ac_status = 0; }; then
30898 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30899else
30900 pkg_failed=yes
30901fi
30902 else
30903 pkg_failed=untried
30904fi
30905if test -n "$RSVG_LIBS"; then
30906 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30907 elif test -n "$PKG_CONFIG"; then
30908 if test -n "$PKG_CONFIG" && \
30909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30910 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30911 ac_status=$?
30912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30913 test $ac_status = 0; }; then
30914 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30915else
30916 pkg_failed=yes
30917fi
30918 else
30919 pkg_failed=untried
30920fi
30921
30922
30923
30924if test $pkg_failed = yes; then
30925
30926if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30927 _pkg_short_errors_supported=yes
30928else
30929 _pkg_short_errors_supported=no
30930fi
30931 if test $_pkg_short_errors_supported = yes; then
30932 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30933 else
30934 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30935 fi
30936 # Put the nasty error message in config.log where it belongs
30937 echo "$RSVG_PKG_ERRORS" >&5
30938
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940$as_echo "no" >&6; }
30941 have_rsvg=no
30942elif test $pkg_failed = untried; then
30943 have_rsvg=no
30944else
30945 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30946 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30948$as_echo "yes" >&6; }
30949 have_rsvg=yes
30950fi
cristy09b53e12011-10-14 12:47:22 +000030951 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30952$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030953
30954pkg_failed=no
30955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30956$as_echo_n "checking for CAIRO_SVG... " >&6; }
30957
30958if test -n "$CAIRO_SVG_CFLAGS"; then
30959 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30960 elif test -n "$PKG_CONFIG"; then
30961 if test -n "$PKG_CONFIG" && \
30962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30963 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30964 ac_status=$?
30965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30966 test $ac_status = 0; }; then
30967 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30968else
30969 pkg_failed=yes
30970fi
30971 else
30972 pkg_failed=untried
30973fi
30974if test -n "$CAIRO_SVG_LIBS"; then
30975 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30976 elif test -n "$PKG_CONFIG"; then
30977 if test -n "$PKG_CONFIG" && \
30978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30979 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30980 ac_status=$?
30981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982 test $ac_status = 0; }; then
30983 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30984else
30985 pkg_failed=yes
30986fi
30987 else
30988 pkg_failed=untried
30989fi
30990
30991
30992
30993if test $pkg_failed = yes; then
30994
30995if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30996 _pkg_short_errors_supported=yes
30997else
30998 _pkg_short_errors_supported=no
30999fi
31000 if test $_pkg_short_errors_supported = yes; then
31001 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31002 else
31003 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31004 fi
31005 # Put the nasty error message in config.log where it belongs
31006 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31007
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31009$as_echo "no" >&6; }
31010 have_cairo=no
31011elif test $pkg_failed = untried; then
31012 have_cairo=no
31013else
31014 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31015 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31017$as_echo "yes" >&6; }
31018 have_cairo=yes
31019fi
cristy09b53e12011-10-14 12:47:22 +000031020 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31021$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031022fi
31023
31024if test "$have_rsvg" = 'yes'; then
31025
cristy8b350f62009-11-15 23:12:43 +000031026$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031027
31028 if test "$with_modules" = 'no'; then
31029 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31030 fi
31031fi
31032
31033if test "$have_cairo" = 'yes'; then
31034
cristy8b350f62009-11-15 23:12:43 +000031035$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031036
31037 if test "$with_modules" = 'no'; then
31038 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31039 fi
31040fi
31041
cristy73bd4a52010-10-05 11:24:23 +000031042 if test "$have_rsvg" = 'yes'; then
31043 RSVG_DELEGATE_TRUE=
31044 RSVG_DELEGATE_FALSE='#'
31045else
31046 RSVG_DELEGATE_TRUE='#'
31047 RSVG_DELEGATE_FALSE=
31048fi
31049
31050 if test "$have_cairo" = 'yes'; then
31051 CAIRO_DELEGATE_TRUE=
31052 CAIRO_DELEGATE_FALSE='#'
31053else
31054 CAIRO_DELEGATE_TRUE='#'
31055 CAIRO_DELEGATE_FALSE=
31056fi
31057
cristy3ed852e2009-09-05 21:47:34 +000031058
31059
31060
31061
31062#
31063# Check for TIFF delegate library.
31064#
31065
31066# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031067if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031068 withval=$with_tiff; with_tiff=$withval
31069else
31070 with_tiff='yes'
31071fi
31072
31073
31074if test "$with_tiff" != 'yes'; then
31075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31076fi
31077
31078have_tiff='no'
31079TIFF_LIBS=''
31080if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31082$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031084$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31086$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031087 failed=0
31088 passed=0
cristy8b350f62009-11-15 23:12:43 +000031089 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031090if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031091 passed=`expr $passed + 1`
31092else
31093 failed=`expr $failed + 1`
31094fi
31095
31096
cristy8b350f62009-11-15 23:12:43 +000031097 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031098if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031099 passed=`expr $passed + 1`
31100else
31101 failed=`expr $failed + 1`
31102fi
31103
31104
cristy8b350f62009-11-15 23:12:43 +000031105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031106$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031107if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031108 $as_echo_n "(cached) " >&6
31109else
31110 ac_check_lib_save_LIBS=$LIBS
31111LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031113/* end confdefs.h. */
31114
31115/* Override any GCC internal prototype to avoid an error.
31116 Use char because int might match the return type of a GCC
31117 builtin and then its argument prototype would still apply. */
31118#ifdef __cplusplus
31119extern "C"
31120#endif
31121char TIFFOpen ();
31122int
31123main ()
31124{
31125return TIFFOpen ();
31126 ;
31127 return 0;
31128}
31129_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031130if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031131 ac_cv_lib_tiff_TIFFOpen=yes
31132else
cristy8b350f62009-11-15 23:12:43 +000031133 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031134fi
cristy8b350f62009-11-15 23:12:43 +000031135rm -f core conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031137LIBS=$ac_check_lib_save_LIBS
31138fi
cristy8b350f62009-11-15 23:12:43 +000031139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031140$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031141if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031142 passed=`expr $passed + 1`
31143else
31144 failed=`expr $failed + 1`
31145fi
31146
cristy8b350f62009-11-15 23:12:43 +000031147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031148$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031149if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031150 $as_echo_n "(cached) " >&6
31151else
31152 ac_check_lib_save_LIBS=$LIBS
31153LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031155/* end confdefs.h. */
31156
31157/* Override any GCC internal prototype to avoid an error.
31158 Use char because int might match the return type of a GCC
31159 builtin and then its argument prototype would still apply. */
31160#ifdef __cplusplus
31161extern "C"
31162#endif
31163char TIFFClientOpen ();
31164int
31165main ()
31166{
31167return TIFFClientOpen ();
31168 ;
31169 return 0;
31170}
31171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031172if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031173 ac_cv_lib_tiff_TIFFClientOpen=yes
31174else
cristy8b350f62009-11-15 23:12:43 +000031175 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031176fi
cristy8b350f62009-11-15 23:12:43 +000031177rm -f core conftest.err conftest.$ac_objext \
31178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031179LIBS=$ac_check_lib_save_LIBS
31180fi
cristy8b350f62009-11-15 23:12:43 +000031181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031182$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031183if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031184 passed=`expr $passed + 1`
31185else
31186 failed=`expr $failed + 1`
31187fi
31188
cristyb97f1002010-07-26 14:02:57 +000031189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31190$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031191if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000031192 $as_echo_n "(cached) " >&6
31193else
31194 ac_check_lib_save_LIBS=$LIBS
31195LIBS="-ltiff $LIBS"
31196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31197/* end confdefs.h. */
31198
31199/* Override any GCC internal prototype to avoid an error.
31200 Use char because int might match the return type of a GCC
31201 builtin and then its argument prototype would still apply. */
31202#ifdef __cplusplus
31203extern "C"
31204#endif
31205char TIFFIsBigEndian ();
31206int
31207main ()
31208{
31209return TIFFIsBigEndian ();
31210 ;
31211 return 0;
31212}
31213_ACEOF
31214if ac_fn_c_try_link "$LINENO"; then :
31215 ac_cv_lib_tiff_TIFFIsBigEndian=yes
31216else
31217 ac_cv_lib_tiff_TIFFIsBigEndian=no
31218fi
31219rm -f core conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
31221LIBS=$ac_check_lib_save_LIBS
31222fi
31223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31224$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000031225if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000031226 passed=`expr $passed + 1`
31227else
31228 failed=`expr $failed + 1`
31229fi
31230
cristy8b350f62009-11-15 23:12:43 +000031231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031232$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031233if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031234 $as_echo_n "(cached) " >&6
31235else
31236 ac_check_lib_save_LIBS=$LIBS
31237LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031239/* end confdefs.h. */
31240
31241/* Override any GCC internal prototype to avoid an error.
31242 Use char because int might match the return type of a GCC
31243 builtin and then its argument prototype would still apply. */
31244#ifdef __cplusplus
31245extern "C"
31246#endif
31247char TIFFIsByteSwapped ();
31248int
31249main ()
31250{
31251return TIFFIsByteSwapped ();
31252 ;
31253 return 0;
31254}
31255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031257 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31258else
cristy8b350f62009-11-15 23:12:43 +000031259 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031260fi
cristy8b350f62009-11-15 23:12:43 +000031261rm -f core conftest.err conftest.$ac_objext \
31262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031263LIBS=$ac_check_lib_save_LIBS
31264fi
cristy8b350f62009-11-15 23:12:43 +000031265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031267if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031268 passed=`expr $passed + 1`
31269else
31270 failed=`expr $failed + 1`
31271fi
31272
cristy8b350f62009-11-15 23:12:43 +000031273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031274$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031275if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031276 $as_echo_n "(cached) " >&6
31277else
31278 ac_check_lib_save_LIBS=$LIBS
31279LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031281/* end confdefs.h. */
31282
31283/* Override any GCC internal prototype to avoid an error.
31284 Use char because int might match the return type of a GCC
31285 builtin and then its argument prototype would still apply. */
31286#ifdef __cplusplus
31287extern "C"
31288#endif
31289char TIFFReadRGBATile ();
31290int
31291main ()
31292{
31293return TIFFReadRGBATile ();
31294 ;
31295 return 0;
31296}
31297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031299 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31300else
cristy8b350f62009-11-15 23:12:43 +000031301 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031302fi
cristy8b350f62009-11-15 23:12:43 +000031303rm -f core conftest.err conftest.$ac_objext \
31304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031305LIBS=$ac_check_lib_save_LIBS
31306fi
cristy8b350f62009-11-15 23:12:43 +000031307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031308$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031309if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031310 passed=`expr $passed + 1`
31311else
31312 failed=`expr $failed + 1`
31313fi
31314
cristy8b350f62009-11-15 23:12:43 +000031315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031316$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031317if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031318 $as_echo_n "(cached) " >&6
31319else
31320 ac_check_lib_save_LIBS=$LIBS
31321LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031323/* end confdefs.h. */
31324
31325/* Override any GCC internal prototype to avoid an error.
31326 Use char because int might match the return type of a GCC
31327 builtin and then its argument prototype would still apply. */
31328#ifdef __cplusplus
31329extern "C"
31330#endif
31331char TIFFReadRGBAStrip ();
31332int
31333main ()
31334{
31335return TIFFReadRGBAStrip ();
31336 ;
31337 return 0;
31338}
31339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031340if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031341 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31342else
cristy8b350f62009-11-15 23:12:43 +000031343 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031344fi
cristy8b350f62009-11-15 23:12:43 +000031345rm -f core conftest.err conftest.$ac_objext \
31346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031347LIBS=$ac_check_lib_save_LIBS
31348fi
cristy8b350f62009-11-15 23:12:43 +000031349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031350$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031351if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031352 passed=`expr $passed + 1`
31353else
31354 failed=`expr $failed + 1`
31355fi
31356
cristy8b350f62009-11-15 23:12:43 +000031357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031358$as_echo_n "checking if TIFF package is complete... " >&6; }
31359 if test $passed -gt 0; then
31360 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31362$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031363 have_tiff='no (failed tests)'
31364 else
31365 TIFF_LIBS='-ltiff'
31366 LIBS="$TIFF_LIBS $LIBS"
31367
cristy8b350f62009-11-15 23:12:43 +000031368$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031369
cristy09b53e12011-10-14 12:47:22 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31371$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031372 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031373 for ac_header in tiffconf.h
31374do :
31375 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031376if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031377 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031378#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031379_ACEOF
31380
31381fi
31382
31383done
31384
cristy8b350f62009-11-15 23:12:43 +000031385 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000031386 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31387 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031388do :
31389 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31390ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031391if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031392 cat >>confdefs.h <<_ACEOF
31393#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31394_ACEOF
31395
31396fi
31397done
31398
31399 fi
31400 else
cristy09b53e12011-10-14 12:47:22 +000031401 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31402$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031403 fi
31404fi
cristy73bd4a52010-10-05 11:24:23 +000031405 if test "$have_tiff" = 'yes'; then
31406 TIFF_DELEGATE_TRUE=
31407 TIFF_DELEGATE_FALSE='#'
31408else
31409 TIFF_DELEGATE_TRUE='#'
31410 TIFF_DELEGATE_FALSE=
31411fi
31412
cristy3ed852e2009-09-05 21:47:34 +000031413
31414
31415
31416#
cristyb1860752011-03-14 00:27:46 +000031417# Check for WEBP delegate library.
31418#
31419
31420# Check whether --with-webp was given.
31421if test "${with_webp+set}" = set; then :
31422 withval=$with_webp; with_webp=$withval
31423else
31424 with_webp='yes'
31425fi
31426
31427
31428if test "$with_webp" != 'yes'; then
31429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31430fi
31431
31432have_webp='no'
31433WEBP_LIBS=''
31434if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031435 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31436$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31438$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031439 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31440$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031441 failed=0
31442 passed=0
31443 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31444if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31445 passed=`expr $passed + 1`
31446else
31447 failed=`expr $failed + 1`
31448fi
31449
31450
31451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31452$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31453if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31454 $as_echo_n "(cached) " >&6
31455else
31456 ac_check_lib_save_LIBS=$LIBS
31457LIBS="-lwebp $LIBS"
31458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459/* end confdefs.h. */
31460
31461/* Override any GCC internal prototype to avoid an error.
31462 Use char because int might match the return type of a GCC
31463 builtin and then its argument prototype would still apply. */
31464#ifdef __cplusplus
31465extern "C"
31466#endif
31467char WebPDecodeRGB ();
31468int
31469main ()
31470{
31471return WebPDecodeRGB ();
31472 ;
31473 return 0;
31474}
31475_ACEOF
31476if ac_fn_c_try_link "$LINENO"; then :
31477 ac_cv_lib_webp_WebPDecodeRGB=yes
31478else
31479 ac_cv_lib_webp_WebPDecodeRGB=no
31480fi
31481rm -f core conftest.err conftest.$ac_objext \
31482 conftest$ac_exeext conftest.$ac_ext
31483LIBS=$ac_check_lib_save_LIBS
31484fi
31485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31486$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31487if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31488 passed=`expr $passed + 1`
31489else
31490 failed=`expr $failed + 1`
31491fi
31492
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31494$as_echo_n "checking if WEBP package is complete... " >&6; }
31495 if test $passed -gt 0; then
31496 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31498$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031499 have_webp='no (failed tests)'
31500 else
31501 WEBP_LIBS='-lwebp'
31502 LIBS="$WEBP_LIBS $LIBS"
31503
31504$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31505
cristy09b53e12011-10-14 12:47:22 +000031506 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31507$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031508 have_webp='yes'
31509 fi
31510 else
cristy09b53e12011-10-14 12:47:22 +000031511 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31512$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031513 fi
31514fi
31515 if test "$have_webp" = 'yes'; then
31516 WEBP_DELEGATE_TRUE=
31517 WEBP_DELEGATE_FALSE='#'
31518else
31519 WEBP_DELEGATE_TRUE='#'
31520 WEBP_DELEGATE_FALSE=
31521fi
31522
31523
31524
31525
31526#
cristy3ed852e2009-09-05 21:47:34 +000031527# Set Windows font directory.
31528#
31529
31530# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031531if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031532 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31533else
31534 with_windows_font_dir=''
31535fi
31536
31537if test "$with_windows_font_dir" != '' ; then
31538 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31539fi
31540
31541
31542#
31543# Check for WMF delegate library.
31544#
31545
31546# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031547if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031548 withval=$with_wmf; with_wmf=$withval
31549else
cristy8d63d1d2010-01-06 20:38:37 +000031550 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000031551fi
31552
31553
31554if test "$with_wmf" != 'yes'; then
31555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31556fi
31557
31558have_wmf='no'
31559WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000031560if test "$with_wmf" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031561 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31562$as_echo "$as_me: -------------------------------------------------------------" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031564$as_echo_n "checking for WMF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031565 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31566$as_echo "$as_me: " >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031567 failed=0
31568 passed=0
31569 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31570if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31571 passed=`expr $passed + 1`
31572else
31573 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000031574fi
31575
31576
glennrp33e524b2011-08-24 17:41:57 +000031577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31578$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31579if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031580 $as_echo_n "(cached) " >&6
31581else
31582 ac_check_lib_save_LIBS=$LIBS
glennrp33e524b2011-08-24 17:41:57 +000031583LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031585/* end confdefs.h. */
31586
31587/* Override any GCC internal prototype to avoid an error.
31588 Use char because int might match the return type of a GCC
31589 builtin and then its argument prototype would still apply. */
31590#ifdef __cplusplus
31591extern "C"
31592#endif
glennrp33e524b2011-08-24 17:41:57 +000031593char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031594int
31595main ()
31596{
glennrp33e524b2011-08-24 17:41:57 +000031597return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000031598 ;
31599 return 0;
31600}
31601_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031602if ac_fn_c_try_link "$LINENO"; then :
glennrp33e524b2011-08-24 17:41:57 +000031603 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000031604else
glennrp33e524b2011-08-24 17:41:57 +000031605 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000031606fi
cristy8b350f62009-11-15 23:12:43 +000031607rm -f core conftest.err conftest.$ac_objext \
31608 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031609LIBS=$ac_check_lib_save_LIBS
31610fi
glennrp33e524b2011-08-24 17:41:57 +000031611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31612$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31613if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31614 passed=`expr $passed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031615else
glennrp33e524b2011-08-24 17:41:57 +000031616 failed=`expr $failed + 1`
cristy9243a2d2011-08-22 17:32:32 +000031617fi
31618
glennrp33e524b2011-08-24 17:41:57 +000031619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31620$as_echo_n "checking if WMF package is complete... " >&6; }
31621 if test $passed -gt 0; then
31622 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031623 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31624$as_echo "$as_me: no -- some components failed test" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031625 have_wmf='no (failed tests)'
31626 else
31627 WMF_LIBS='-lwmf -lwmflite'
31628 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031629
cristy8b350f62009-11-15 23:12:43 +000031630$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031631
cristy09b53e12011-10-14 12:47:22 +000031632 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31633$as_echo "$as_me: yes" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031634 have_wmf='yes'
31635 fi
31636 else
cristy09b53e12011-10-14 12:47:22 +000031637 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31638$as_echo "$as_me: no" >&6;}
glennrp33e524b2011-08-24 17:41:57 +000031639 fi
cristy3ed852e2009-09-05 21:47:34 +000031640fi
cristy73bd4a52010-10-05 11:24:23 +000031641 if test "$have_wmf" = 'yes'; then
31642 WMF_DELEGATE_TRUE=
31643 WMF_DELEGATE_FALSE='#'
31644else
31645 WMF_DELEGATE_TRUE='#'
31646 WMF_DELEGATE_FALSE=
31647fi
31648
cristy3ed852e2009-09-05 21:47:34 +000031649
31650
31651
cristy81beccd2011-10-03 18:17:24 +000031652
31653
cristy3ed852e2009-09-05 21:47:34 +000031654#
31655# Check for XML delegate library.
31656#
31657
31658# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031659if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031660 withval=$with_xml; with_xml=$withval
31661else
cristy81beccd2011-10-03 18:17:24 +000031662 with_xml=$have_x
cristy3ed852e2009-09-05 21:47:34 +000031663fi
31664
31665
cristy81beccd2011-10-03 18:17:24 +000031666if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031667 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31668fi
31669
cristy81beccd2011-10-03 18:17:24 +000031670have_xml='no'
31671XML_LIBS=''
31672if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031673 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31674$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31676$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031677 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31678$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031679 PERSIST_LDFLAGS=$LDFLAGS
31680 PERSIST_CPPFLAGS=$CPPFLAGS
31681 xml2_config=''
31682 # Extract the first word of "xml2-config", so it can be a program name with args.
31683set dummy xml2-config; ac_word=$2
31684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31685$as_echo_n "checking for $ac_word... " >&6; }
31686if ${ac_cv_path_xml2_config+:} false; then :
31687 $as_echo_n "(cached) " >&6
31688else
31689 case $xml2_config in
31690 [\\/]* | ?:[\\/]*)
31691 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31692 ;;
31693 *)
31694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31695for as_dir in $PATH
31696do
31697 IFS=$as_save_IFS
31698 test -z "$as_dir" && as_dir=.
31699 for ac_exec_ext in '' $ac_executable_extensions; do
31700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31701 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31703 break 2
31704 fi
31705done
31706 done
31707IFS=$as_save_IFS
31708
31709 ;;
31710esac
31711fi
31712xml2_config=$ac_cv_path_xml2_config
31713if test -n "$xml2_config"; then
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31715$as_echo "$xml2_config" >&6; }
31716else
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31718$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031719fi
31720
cristy81beccd2011-10-03 18:17:24 +000031721 if test -n "$xml2_config"; then
31722 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31723 # the shared library installed under /usr/lib, whereas the package
31724 # installs itself under $prefix/libxml and $prefix/lib.
31725 xml2_prefix=`xml2-config --prefix`
31726 if test -d "${xml2_prefix}/include/libxml2"; then
31727 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31728 fi
31729 if test "${xml2_prefix}" != '/usr'; then
31730 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31731 fi
31732 fi
31733 failed=0
31734 passed=0
31735 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31736if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31737 passed=`expr $passed + 1`
31738else
31739 failed=`expr $failed + 1`
31740fi
31741
31742
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31744$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31745if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31746 $as_echo_n "(cached) " >&6
31747else
31748 ac_check_lib_save_LIBS=$LIBS
31749LIBS="-lxml2 $LIBS"
31750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31751/* end confdefs.h. */
31752
31753/* Override any GCC internal prototype to avoid an error.
31754 Use char because int might match the return type of a GCC
31755 builtin and then its argument prototype would still apply. */
31756#ifdef __cplusplus
31757extern "C"
31758#endif
31759char xmlSAXVersion ();
31760int
31761main ()
31762{
31763return xmlSAXVersion ();
31764 ;
31765 return 0;
31766}
31767_ACEOF
31768if ac_fn_c_try_link "$LINENO"; then :
31769 ac_cv_lib_xml2_xmlSAXVersion=yes
31770else
31771 ac_cv_lib_xml2_xmlSAXVersion=no
31772fi
31773rm -f core conftest.err conftest.$ac_objext \
31774 conftest$ac_exeext conftest.$ac_ext
31775LIBS=$ac_check_lib_save_LIBS
31776fi
31777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31778$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31779if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31780 passed=`expr $passed + 1`
31781else
31782 failed=`expr $failed + 1`
31783fi
31784
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31786$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31787if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31788 $as_echo_n "(cached) " >&6
31789else
31790 ac_check_lib_save_LIBS=$LIBS
31791LIBS="-lxml2 $LIBS"
31792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31793/* end confdefs.h. */
31794
31795/* Override any GCC internal prototype to avoid an error.
31796 Use char because int might match the return type of a GCC
31797 builtin and then its argument prototype would still apply. */
31798#ifdef __cplusplus
31799extern "C"
31800#endif
31801char xmlParseChunk ();
31802int
31803main ()
31804{
31805return xmlParseChunk ();
31806 ;
31807 return 0;
31808}
31809_ACEOF
31810if ac_fn_c_try_link "$LINENO"; then :
31811 ac_cv_lib_xml2_xmlParseChunk=yes
31812else
31813 ac_cv_lib_xml2_xmlParseChunk=no
31814fi
31815rm -f core conftest.err conftest.$ac_objext \
31816 conftest$ac_exeext conftest.$ac_ext
31817LIBS=$ac_check_lib_save_LIBS
31818fi
31819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31820$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31821if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31822 passed=`expr $passed + 1`
31823else
31824 failed=`expr $failed + 1`
31825fi
31826
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31828$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31829if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31830 $as_echo_n "(cached) " >&6
31831else
31832 ac_check_lib_save_LIBS=$LIBS
31833LIBS="-lxml2 $LIBS"
31834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31835/* end confdefs.h. */
31836
31837/* Override any GCC internal prototype to avoid an error.
31838 Use char because int might match the return type of a GCC
31839 builtin and then its argument prototype would still apply. */
31840#ifdef __cplusplus
31841extern "C"
31842#endif
31843char xmlCreatePushParserCtxt ();
31844int
31845main ()
31846{
31847return xmlCreatePushParserCtxt ();
31848 ;
31849 return 0;
31850}
31851_ACEOF
31852if ac_fn_c_try_link "$LINENO"; then :
31853 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31854else
31855 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31856fi
31857rm -f core conftest.err conftest.$ac_objext \
31858 conftest$ac_exeext conftest.$ac_ext
31859LIBS=$ac_check_lib_save_LIBS
31860fi
31861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31862$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31863if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31864 passed=`expr $passed + 1`
31865else
31866 failed=`expr $failed + 1`
31867fi
31868
31869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31870$as_echo_n "checking if XML package is complete... " >&6; }
31871 if test $passed -gt 0; then
31872 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031873 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31874$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031875 have_xml='no (failed tests)'
31876 LDFLAGS="$PERSIST_LDFLAGS"
31877 CPPFLAGS="$PERSIST_CPPFLAGS"
31878 else
31879 XML_LIBS='-lxml2'
31880 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031881
cristy8b350f62009-11-15 23:12:43 +000031882$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031883
cristy09b53e12011-10-14 12:47:22 +000031884 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31885$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031886 have_xml='yes'
31887 fi
31888 else
cristy09b53e12011-10-14 12:47:22 +000031889 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31890$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031891 fi
31892fi
cristy73bd4a52010-10-05 11:24:23 +000031893 if test "$have_xml" = 'yes'; then
31894 XML_DELEGATE_TRUE=
31895 XML_DELEGATE_FALSE='#'
31896else
31897 XML_DELEGATE_TRUE='#'
31898 XML_DELEGATE_FALSE=
31899fi
31900
cristy3ed852e2009-09-05 21:47:34 +000031901
31902
31903
31904# Substitute compiler name to build/link PerlMagick
31905#
31906
31907
31908#
31909# Configure install Paths
31910#
31911
31912# Subdirectory under lib to place ImageMagick lib files
31913LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31914
31915cat >>confdefs.h <<_ACEOF
31916#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31917_ACEOF
31918
31919
31920# Path to ImageMagick bin directory
31921EXECUTABLE_PATH="${BIN_DIR}"
31922DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31923case "${build_os}" in
31924 mingw* )
31925 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31926 ;;
31927esac
31928
31929cat >>confdefs.h <<_ACEOF
31930#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31931_ACEOF
31932
31933
31934
31935# Path to ImageMagick lib
31936LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31937DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31938case "${build_os}" in
31939 mingw* )
31940 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31941 ;;
31942esac
31943
31944cat >>confdefs.h <<_ACEOF
31945#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31946_ACEOF
31947
31948
31949
cristy3ed852e2009-09-05 21:47:34 +000031950#
31951# Subdirectory under lib to place ImageMagick coder module files
31952CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31953
31954cat >>confdefs.h <<_ACEOF
31955#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31956_ACEOF
31957
31958CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31959DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31960case "${build_os}" in
31961 mingw* )
31962 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31963 ;;
31964esac
31965
31966cat >>confdefs.h <<_ACEOF
31967#define CODER_PATH "$DEFINE_CODER_PATH"
31968_ACEOF
31969
31970
31971
31972#
31973# Subdirectory under lib to place ImageMagick filter module files
31974FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31975
31976cat >>confdefs.h <<_ACEOF
31977#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31978_ACEOF
31979
31980FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31981DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31982case "${build_os}" in
31983 mingw* )
31984 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31985 ;;
31986esac
31987
31988cat >>confdefs.h <<_ACEOF
31989#define FILTER_PATH "$DEFINE_FILTER_PATH"
31990_ACEOF
31991
31992
31993
31994#
31995# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000031996DOCUMENTATION_RELATIVE_PATH=""
31997DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31998DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000031999case "${build_os}" in
32000 mingw* )
32001 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32002 ;;
32003esac
32004
32005cat >>confdefs.h <<_ACEOF
32006#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32007_ACEOF
32008
32009
32010
cristy3cf8a722011-03-20 23:32:22 +000032011# Subdirectory to place ImageMagick configuration files
cristyba0f1972011-03-28 12:42:52 +000032012CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032013
32014cat >>confdefs.h <<_ACEOF
32015#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32016_ACEOF
32017
32018CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32019DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32020case "${build_os}" in
32021 mingw* )
32022 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32023 ;;
32024esac
32025
32026cat >>confdefs.h <<_ACEOF
32027#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32028_ACEOF
32029
32030
32031
32032# Subdirectory to place ImageMagick configuration files
cristy4f820712011-04-01 12:35:43 +000032033SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032034
32035cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032036#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032037_ACEOF
32038
cristy4f820712011-04-01 12:35:43 +000032039SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32040DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032041case "${build_os}" in
32042 mingw* )
cristy4f820712011-04-01 12:35:43 +000032043 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032044 ;;
32045esac
32046
32047cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032048#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032049_ACEOF
32050
32051
32052
32053#
32054# program_transform_name is formed for use in a Makefile, so create a
32055# modified version for use in a shell script.
32056configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32057
32058# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032059{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32060$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032063{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32064$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032065AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032066BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032067BZIPDelegateDefault='bzip2'
32068BrowseDelegateDefault='xdg-open'
32069CGMDecodeDelegateDefault='ralcgm'
32070CatDelegateDefault='cat'
32071DNGDecodeDelegateDefault='ufraw-batch'
32072GVCDecodeDelegateDefault='dot'
32073DVIDecodeDelegateDefault='dvips'
32074EchoDelegateDefault='echo'
32075EditorDelegateDefault='xterm'
32076FIGDecodeDelegateDefault='fig2dev'
32077ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32078DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32079MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32080GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032081HPGLDecodeDelegateDefault='hp2xx'
32082HTMLDecodeDelegateDefault='html2ps'
32083ILBMDecodeDelegateDefault='ilbmtoppm'
32084ILBMEncodeDelegateDefault='ppmtoilbm'
32085LPDelegateDefault='lp'
32086LPRDelegateDefault='lpr'
32087LZWDecodeDelegateDefault='uncompress'
32088LZWEncodeDelegateDefault='compress'
32089LaunchDelegateDefault='gimp'
32090MANDelegateDefault='groff'
32091MPEGDecodeDelegateDefault='ffmpeg'
32092MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032093MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032094MVDelegateDefault='mv'
32095PCLDelegateDefault='pcl6'
32096PGPDecodeDelegateDefault='pgpv'
32097POVDelegateDefault='povray'
32098if test "$native_win32_build" = 'yes'; then
32099 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032100elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032101 PSDelegateDefault='gsc'
32102else
32103 PSDelegateDefault='gs'
32104fi
32105RLEEncodeDelegateDefault='rawtorle'
32106RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000032107RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000032108SCANDecodeDelegateDefault='scanimage'
32109TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032110UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032111WMFDecodeDelegateDefault='wmf2eps'
32112WWWDecodeDelegateDefault='curl'
32113XPSDelegateDefault='gxps'
32114ZipDelegateDefault='gzip'
32115
32116# Search for delegates
32117# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32118set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032121if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032122 $as_echo_n "(cached) " >&6
32123else
32124 case $AutotraceDecodeDelegate in
32125 [\\/]* | ?:[\\/]*)
32126 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32127 ;;
32128 *)
32129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32130for as_dir in $PATH
32131do
32132 IFS=$as_save_IFS
32133 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032134 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32136 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138 break 2
32139 fi
32140done
cristy8b350f62009-11-15 23:12:43 +000032141 done
cristy3ed852e2009-09-05 21:47:34 +000032142IFS=$as_save_IFS
32143
32144 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32145 ;;
32146esac
32147fi
32148AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32149if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032151$as_echo "$AutotraceDecodeDelegate" >&6; }
32152else
cristy8b350f62009-11-15 23:12:43 +000032153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032154$as_echo "no" >&6; }
32155fi
32156
32157
cristy3ed852e2009-09-05 21:47:34 +000032158# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32159set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032161$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032162if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032163 $as_echo_n "(cached) " >&6
32164else
32165 case $BlenderDecodeDelegate in
32166 [\\/]* | ?:[\\/]*)
32167 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32168 ;;
32169 *)
32170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32171for as_dir in $PATH
32172do
32173 IFS=$as_save_IFS
32174 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032175 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32177 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179 break 2
32180 fi
32181done
cristy8b350f62009-11-15 23:12:43 +000032182 done
cristy3ed852e2009-09-05 21:47:34 +000032183IFS=$as_save_IFS
32184
32185 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32186 ;;
32187esac
32188fi
32189BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32190if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032192$as_echo "$BlenderDecodeDelegate" >&6; }
32193else
cristy8b350f62009-11-15 23:12:43 +000032194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032195$as_echo "no" >&6; }
32196fi
32197
32198
32199# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32200set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032202$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032203if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032204 $as_echo_n "(cached) " >&6
32205else
32206 case $BZIPDelegate in
32207 [\\/]* | ?:[\\/]*)
32208 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32209 ;;
32210 *)
32211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32212for as_dir in $PATH
32213do
32214 IFS=$as_save_IFS
32215 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032216 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32218 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220 break 2
32221 fi
32222done
cristy8b350f62009-11-15 23:12:43 +000032223 done
cristy3ed852e2009-09-05 21:47:34 +000032224IFS=$as_save_IFS
32225
32226 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32227 ;;
32228esac
32229fi
32230BZIPDelegate=$ac_cv_path_BZIPDelegate
32231if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032233$as_echo "$BZIPDelegate" >&6; }
32234else
cristy8b350f62009-11-15 23:12:43 +000032235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032236$as_echo "no" >&6; }
32237fi
32238
32239
32240# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32241set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032244if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032245 $as_echo_n "(cached) " >&6
32246else
32247 case $BrowseDelegate in
32248 [\\/]* | ?:[\\/]*)
32249 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32250 ;;
32251 *)
32252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32253for as_dir in $PATH
32254do
32255 IFS=$as_save_IFS
32256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032257 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32259 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261 break 2
32262 fi
32263done
cristy8b350f62009-11-15 23:12:43 +000032264 done
cristy3ed852e2009-09-05 21:47:34 +000032265IFS=$as_save_IFS
32266
32267 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32268 ;;
32269esac
32270fi
32271BrowseDelegate=$ac_cv_path_BrowseDelegate
32272if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032274$as_echo "$BrowseDelegate" >&6; }
32275else
cristy8b350f62009-11-15 23:12:43 +000032276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032277$as_echo "no" >&6; }
32278fi
32279
32280
32281# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32282set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032284$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032285if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032286 $as_echo_n "(cached) " >&6
32287else
32288 case $CGMDecodeDelegate in
32289 [\\/]* | ?:[\\/]*)
32290 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32291 ;;
32292 *)
32293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32294for as_dir in $PATH
32295do
32296 IFS=$as_save_IFS
32297 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032302 break 2
32303 fi
32304done
cristy8b350f62009-11-15 23:12:43 +000032305 done
cristy3ed852e2009-09-05 21:47:34 +000032306IFS=$as_save_IFS
32307
32308 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32309 ;;
32310esac
32311fi
32312CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32313if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032315$as_echo "$CGMDecodeDelegate" >&6; }
32316else
cristy8b350f62009-11-15 23:12:43 +000032317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032318$as_echo "no" >&6; }
32319fi
32320
32321
32322# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32323set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032325$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032326if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032327 $as_echo_n "(cached) " >&6
32328else
32329 case $CatDelegate in
32330 [\\/]* | ?:[\\/]*)
32331 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32332 ;;
32333 *)
32334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335for as_dir in $PATH
32336do
32337 IFS=$as_save_IFS
32338 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032339 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032343 break 2
32344 fi
32345done
cristy8b350f62009-11-15 23:12:43 +000032346 done
cristy3ed852e2009-09-05 21:47:34 +000032347IFS=$as_save_IFS
32348
32349 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32350 ;;
32351esac
32352fi
32353CatDelegate=$ac_cv_path_CatDelegate
32354if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032356$as_echo "$CatDelegate" >&6; }
32357else
cristy8b350f62009-11-15 23:12:43 +000032358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo "no" >&6; }
32360fi
32361
32362
32363# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32364set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032366$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032367if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032368 $as_echo_n "(cached) " >&6
32369else
32370 case $DNGDecodeDelegate in
32371 [\\/]* | ?:[\\/]*)
32372 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32373 ;;
32374 *)
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376for as_dir in $PATH
32377do
32378 IFS=$as_save_IFS
32379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32382 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032384 break 2
32385 fi
32386done
cristy8b350f62009-11-15 23:12:43 +000032387 done
cristy3ed852e2009-09-05 21:47:34 +000032388IFS=$as_save_IFS
32389
32390 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32391 ;;
32392esac
32393fi
32394DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32395if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032397$as_echo "$DNGDecodeDelegate" >&6; }
32398else
cristy8b350f62009-11-15 23:12:43 +000032399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo "no" >&6; }
32401fi
32402
32403
32404# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32405set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032408if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032409 $as_echo_n "(cached) " >&6
32410else
32411 case $GVCDecodeDelegate in
32412 [\\/]* | ?:[\\/]*)
32413 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32414 ;;
32415 *)
32416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417for as_dir in $PATH
32418do
32419 IFS=$as_save_IFS
32420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32423 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032425 break 2
32426 fi
32427done
cristy8b350f62009-11-15 23:12:43 +000032428 done
cristy3ed852e2009-09-05 21:47:34 +000032429IFS=$as_save_IFS
32430
32431 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32432 ;;
32433esac
32434fi
32435GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32436if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032438$as_echo "$GVCDecodeDelegate" >&6; }
32439else
cristy8b350f62009-11-15 23:12:43 +000032440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo "no" >&6; }
32442fi
32443
32444
32445# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32446set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032449if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032450 $as_echo_n "(cached) " >&6
32451else
32452 case $DVIDecodeDelegate in
32453 [\\/]* | ?:[\\/]*)
32454 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32455 ;;
32456 *)
32457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32458for as_dir in $PATH
32459do
32460 IFS=$as_save_IFS
32461 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032462 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32464 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032466 break 2
32467 fi
32468done
cristy8b350f62009-11-15 23:12:43 +000032469 done
cristy3ed852e2009-09-05 21:47:34 +000032470IFS=$as_save_IFS
32471
32472 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32473 ;;
32474esac
32475fi
32476DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32477if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032479$as_echo "$DVIDecodeDelegate" >&6; }
32480else
cristy8b350f62009-11-15 23:12:43 +000032481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo "no" >&6; }
32483fi
32484
32485
32486# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32487set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032490if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032491 $as_echo_n "(cached) " >&6
32492else
32493 case $EchoDelegate in
32494 [\\/]* | ?:[\\/]*)
32495 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32496 ;;
32497 *)
32498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32499for as_dir in $PATH
32500do
32501 IFS=$as_save_IFS
32502 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32505 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032507 break 2
32508 fi
32509done
cristy8b350f62009-11-15 23:12:43 +000032510 done
cristy3ed852e2009-09-05 21:47:34 +000032511IFS=$as_save_IFS
32512
32513 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32514 ;;
32515esac
32516fi
32517EchoDelegate=$ac_cv_path_EchoDelegate
32518if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032520$as_echo "$EchoDelegate" >&6; }
32521else
cristy8b350f62009-11-15 23:12:43 +000032522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo "no" >&6; }
32524fi
32525
32526
32527# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32528set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032530$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032531if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032532 $as_echo_n "(cached) " >&6
32533else
32534 case $EditorDelegate in
32535 [\\/]* | ?:[\\/]*)
32536 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32537 ;;
32538 *)
32539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32540for as_dir in $PATH
32541do
32542 IFS=$as_save_IFS
32543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32546 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032548 break 2
32549 fi
32550done
cristy8b350f62009-11-15 23:12:43 +000032551 done
cristy3ed852e2009-09-05 21:47:34 +000032552IFS=$as_save_IFS
32553
32554 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32555 ;;
32556esac
32557fi
32558EditorDelegate=$ac_cv_path_EditorDelegate
32559if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032561$as_echo "$EditorDelegate" >&6; }
32562else
cristy8b350f62009-11-15 23:12:43 +000032563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo "no" >&6; }
32565fi
32566
32567
32568# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32569set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032571$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032572if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032573 $as_echo_n "(cached) " >&6
32574else
32575 case $FIGDecodeDelegate in
32576 [\\/]* | ?:[\\/]*)
32577 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32578 ;;
32579 *)
32580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32581for as_dir in $PATH
32582do
32583 IFS=$as_save_IFS
32584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32587 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032589 break 2
32590 fi
32591done
cristy8b350f62009-11-15 23:12:43 +000032592 done
cristy3ed852e2009-09-05 21:47:34 +000032593IFS=$as_save_IFS
32594
32595 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32596 ;;
32597esac
32598fi
32599FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32600if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032602$as_echo "$FIGDecodeDelegate" >&6; }
32603else
cristy8b350f62009-11-15 23:12:43 +000032604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo "no" >&6; }
32606fi
32607
32608
32609# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32610set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032612$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032613if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032614 $as_echo_n "(cached) " >&6
32615else
32616 case $ConvertDelegate in
32617 [\\/]* | ?:[\\/]*)
32618 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32619 ;;
32620 *)
32621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32622for as_dir in $PATH
32623do
32624 IFS=$as_save_IFS
32625 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032626 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32628 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032630 break 2
32631 fi
32632done
cristy8b350f62009-11-15 23:12:43 +000032633 done
cristy3ed852e2009-09-05 21:47:34 +000032634IFS=$as_save_IFS
32635
32636 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32637 ;;
32638esac
32639fi
32640ConvertDelegate=$ac_cv_path_ConvertDelegate
32641if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032643$as_echo "$ConvertDelegate" >&6; }
32644else
cristy8b350f62009-11-15 23:12:43 +000032645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo "no" >&6; }
32647fi
32648
32649
32650# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32651set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032653$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032654if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032655 $as_echo_n "(cached) " >&6
32656else
32657 case $DisplayDelegate in
32658 [\\/]* | ?:[\\/]*)
32659 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32660 ;;
32661 *)
32662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32663for as_dir in $PATH
32664do
32665 IFS=$as_save_IFS
32666 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32669 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032671 break 2
32672 fi
32673done
cristy8b350f62009-11-15 23:12:43 +000032674 done
cristy3ed852e2009-09-05 21:47:34 +000032675IFS=$as_save_IFS
32676
32677 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32678 ;;
32679esac
32680fi
32681DisplayDelegate=$ac_cv_path_DisplayDelegate
32682if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032684$as_echo "$DisplayDelegate" >&6; }
32685else
cristy8b350f62009-11-15 23:12:43 +000032686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687$as_echo "no" >&6; }
32688fi
32689
32690
32691# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32692set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032694$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032695if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032696 $as_echo_n "(cached) " >&6
32697else
32698 case $MogrifyDelegate in
32699 [\\/]* | ?:[\\/]*)
32700 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32701 ;;
32702 *)
32703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32704for as_dir in $PATH
32705do
32706 IFS=$as_save_IFS
32707 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032708 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32710 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032712 break 2
32713 fi
32714done
cristy8b350f62009-11-15 23:12:43 +000032715 done
cristy3ed852e2009-09-05 21:47:34 +000032716IFS=$as_save_IFS
32717
32718 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32719 ;;
32720esac
32721fi
32722MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32723if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032725$as_echo "$MogrifyDelegate" >&6; }
32726else
cristy8b350f62009-11-15 23:12:43 +000032727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032728$as_echo "no" >&6; }
32729fi
32730
32731
32732# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32733set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032735$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032736if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032737 $as_echo_n "(cached) " >&6
32738else
32739 case $GnuplotDecodeDelegate in
32740 [\\/]* | ?:[\\/]*)
32741 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32742 ;;
32743 *)
32744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32745for as_dir in $PATH
32746do
32747 IFS=$as_save_IFS
32748 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32751 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032753 break 2
32754 fi
32755done
cristy8b350f62009-11-15 23:12:43 +000032756 done
cristy3ed852e2009-09-05 21:47:34 +000032757IFS=$as_save_IFS
32758
32759 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32760 ;;
32761esac
32762fi
32763GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32764if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "$GnuplotDecodeDelegate" >&6; }
32767else
cristy8b350f62009-11-15 23:12:43 +000032768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo "no" >&6; }
32770fi
32771
32772
cristy3ed852e2009-09-05 21:47:34 +000032773# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32774set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032777if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032778 $as_echo_n "(cached) " >&6
32779else
32780 case $HPGLDecodeDelegate in
32781 [\\/]* | ?:[\\/]*)
32782 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32783 ;;
32784 *)
32785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32786for as_dir in $PATH
32787do
32788 IFS=$as_save_IFS
32789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32792 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794 break 2
32795 fi
32796done
cristy8b350f62009-11-15 23:12:43 +000032797 done
cristy3ed852e2009-09-05 21:47:34 +000032798IFS=$as_save_IFS
32799
32800 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32801 ;;
32802esac
32803fi
32804HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32805if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032807$as_echo "$HPGLDecodeDelegate" >&6; }
32808else
cristy8b350f62009-11-15 23:12:43 +000032809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo "no" >&6; }
32811fi
32812
32813
32814# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32815set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032818if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032819 $as_echo_n "(cached) " >&6
32820else
32821 case $HTMLDecodeDelegate in
32822 [\\/]* | ?:[\\/]*)
32823 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32824 ;;
32825 *)
32826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32827for as_dir in $PATH
32828do
32829 IFS=$as_save_IFS
32830 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032831 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32833 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032835 break 2
32836 fi
32837done
cristy8b350f62009-11-15 23:12:43 +000032838 done
cristy3ed852e2009-09-05 21:47:34 +000032839IFS=$as_save_IFS
32840
32841 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32842 ;;
32843esac
32844fi
32845HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32846if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032848$as_echo "$HTMLDecodeDelegate" >&6; }
32849else
cristy8b350f62009-11-15 23:12:43 +000032850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851$as_echo "no" >&6; }
32852fi
32853
32854
32855# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32856set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032859if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032860 $as_echo_n "(cached) " >&6
32861else
32862 case $ILBMDecodeDelegate in
32863 [\\/]* | ?:[\\/]*)
32864 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32865 ;;
32866 *)
32867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32868for as_dir in $PATH
32869do
32870 IFS=$as_save_IFS
32871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032872 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32874 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032876 break 2
32877 fi
32878done
cristy8b350f62009-11-15 23:12:43 +000032879 done
cristy3ed852e2009-09-05 21:47:34 +000032880IFS=$as_save_IFS
32881
32882 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32883 ;;
32884esac
32885fi
32886ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32887if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032889$as_echo "$ILBMDecodeDelegate" >&6; }
32890else
cristy8b350f62009-11-15 23:12:43 +000032891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo "no" >&6; }
32893fi
32894
32895
32896# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32897set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032899$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032900if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032901 $as_echo_n "(cached) " >&6
32902else
32903 case $ILBMEncodeDelegate in
32904 [\\/]* | ?:[\\/]*)
32905 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32906 ;;
32907 *)
32908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909for as_dir in $PATH
32910do
32911 IFS=$as_save_IFS
32912 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032913 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32915 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032917 break 2
32918 fi
32919done
cristy8b350f62009-11-15 23:12:43 +000032920 done
cristy3ed852e2009-09-05 21:47:34 +000032921IFS=$as_save_IFS
32922
32923 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32924 ;;
32925esac
32926fi
32927ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32928if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "$ILBMEncodeDelegate" >&6; }
32931else
cristy8b350f62009-11-15 23:12:43 +000032932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo "no" >&6; }
32934fi
32935
32936
32937# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32938set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032941if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032942 $as_echo_n "(cached) " >&6
32943else
32944 case $LPDelegate in
32945 [\\/]* | ?:[\\/]*)
32946 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32947 ;;
32948 *)
32949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32950for as_dir in $PATH
32951do
32952 IFS=$as_save_IFS
32953 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032954 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32956 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032958 break 2
32959 fi
32960done
cristy8b350f62009-11-15 23:12:43 +000032961 done
cristy3ed852e2009-09-05 21:47:34 +000032962IFS=$as_save_IFS
32963
32964 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32965 ;;
32966esac
32967fi
32968LPDelegate=$ac_cv_path_LPDelegate
32969if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032971$as_echo "$LPDelegate" >&6; }
32972else
cristy8b350f62009-11-15 23:12:43 +000032973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo "no" >&6; }
32975fi
32976
32977
32978# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32979set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032982if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032983 $as_echo_n "(cached) " >&6
32984else
32985 case $LPRDelegate in
32986 [\\/]* | ?:[\\/]*)
32987 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32988 ;;
32989 *)
32990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32991for as_dir in $PATH
32992do
32993 IFS=$as_save_IFS
32994 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032995 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32997 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032999 break 2
33000 fi
33001done
cristy8b350f62009-11-15 23:12:43 +000033002 done
cristy3ed852e2009-09-05 21:47:34 +000033003IFS=$as_save_IFS
33004
33005 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33006 ;;
33007esac
33008fi
33009LPRDelegate=$ac_cv_path_LPRDelegate
33010if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033012$as_echo "$LPRDelegate" >&6; }
33013else
cristy8b350f62009-11-15 23:12:43 +000033014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo "no" >&6; }
33016fi
33017
33018
33019# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33020set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033023if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033024 $as_echo_n "(cached) " >&6
33025else
33026 case $LZWDecodeDelegate in
33027 [\\/]* | ?:[\\/]*)
33028 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33029 ;;
33030 *)
33031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032for as_dir in $PATH
33033do
33034 IFS=$as_save_IFS
33035 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033036 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33038 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040 break 2
33041 fi
33042done
cristy8b350f62009-11-15 23:12:43 +000033043 done
cristy3ed852e2009-09-05 21:47:34 +000033044IFS=$as_save_IFS
33045
33046 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33047 ;;
33048esac
33049fi
33050LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33051if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033053$as_echo "$LZWDecodeDelegate" >&6; }
33054else
cristy8b350f62009-11-15 23:12:43 +000033055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo "no" >&6; }
33057fi
33058
33059
33060# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33061set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033064if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033065 $as_echo_n "(cached) " >&6
33066else
33067 case $LZWEncodeDelegate in
33068 [\\/]* | ?:[\\/]*)
33069 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33070 ;;
33071 *)
33072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33073for as_dir in $PATH
33074do
33075 IFS=$as_save_IFS
33076 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033077 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33079 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033081 break 2
33082 fi
33083done
cristy8b350f62009-11-15 23:12:43 +000033084 done
cristy3ed852e2009-09-05 21:47:34 +000033085IFS=$as_save_IFS
33086
33087 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33088 ;;
33089esac
33090fi
33091LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33092if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033094$as_echo "$LZWEncodeDelegate" >&6; }
33095else
cristy8b350f62009-11-15 23:12:43 +000033096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo "no" >&6; }
33098fi
33099
33100
33101# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33102set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033105if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033106 $as_echo_n "(cached) " >&6
33107else
33108 case $LaunchDelegate in
33109 [\\/]* | ?:[\\/]*)
33110 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33111 ;;
33112 *)
33113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33114for as_dir in $PATH
33115do
33116 IFS=$as_save_IFS
33117 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033118 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33120 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033122 break 2
33123 fi
33124done
cristy8b350f62009-11-15 23:12:43 +000033125 done
cristy3ed852e2009-09-05 21:47:34 +000033126IFS=$as_save_IFS
33127
33128 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33129 ;;
33130esac
33131fi
33132LaunchDelegate=$ac_cv_path_LaunchDelegate
33133if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033135$as_echo "$LaunchDelegate" >&6; }
33136else
cristy8b350f62009-11-15 23:12:43 +000033137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo "no" >&6; }
33139fi
33140
33141
33142# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33143set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033146if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033147 $as_echo_n "(cached) " >&6
33148else
33149 case $MANDelegate in
33150 [\\/]* | ?:[\\/]*)
33151 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33152 ;;
33153 *)
33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33155for as_dir in $PATH
33156do
33157 IFS=$as_save_IFS
33158 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033159 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33161 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033163 break 2
33164 fi
33165done
cristy8b350f62009-11-15 23:12:43 +000033166 done
cristy3ed852e2009-09-05 21:47:34 +000033167IFS=$as_save_IFS
33168
33169 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33170 ;;
33171esac
33172fi
33173MANDelegate=$ac_cv_path_MANDelegate
33174if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033176$as_echo "$MANDelegate" >&6; }
33177else
cristy8b350f62009-11-15 23:12:43 +000033178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo "no" >&6; }
33180fi
33181
33182
33183# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33184set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033186$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033187if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033188 $as_echo_n "(cached) " >&6
33189else
33190 case $MPEGDecodeDelegate in
33191 [\\/]* | ?:[\\/]*)
33192 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33193 ;;
33194 *)
33195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33196for as_dir in $PATH
33197do
33198 IFS=$as_save_IFS
33199 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033200 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33202 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204 break 2
33205 fi
33206done
cristy8b350f62009-11-15 23:12:43 +000033207 done
cristy3ed852e2009-09-05 21:47:34 +000033208IFS=$as_save_IFS
33209
33210 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33211 ;;
33212esac
33213fi
33214MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33215if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033217$as_echo "$MPEGDecodeDelegate" >&6; }
33218else
cristy8b350f62009-11-15 23:12:43 +000033219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo "no" >&6; }
33221fi
33222
33223
33224# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33225set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033228if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033229 $as_echo_n "(cached) " >&6
33230else
33231 case $MPEGEncodeDelegate in
33232 [\\/]* | ?:[\\/]*)
33233 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33234 ;;
33235 *)
33236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237for as_dir in $PATH
33238do
33239 IFS=$as_save_IFS
33240 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033241 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33243 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245 break 2
33246 fi
33247done
cristy8b350f62009-11-15 23:12:43 +000033248 done
cristy3ed852e2009-09-05 21:47:34 +000033249IFS=$as_save_IFS
33250
33251 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33252 ;;
33253esac
33254fi
33255MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33256if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033258$as_echo "$MPEGEncodeDelegate" >&6; }
33259else
cristy8b350f62009-11-15 23:12:43 +000033260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo "no" >&6; }
33262fi
33263
33264
cristy935c86e2010-06-05 23:50:07 +000033265# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33266set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33268$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033269if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033270 $as_echo_n "(cached) " >&6
33271else
33272 case $MrSIDDecodeDelegate in
33273 [\\/]* | ?:[\\/]*)
33274 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33275 ;;
33276 *)
33277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33278for as_dir in $PATH
33279do
33280 IFS=$as_save_IFS
33281 test -z "$as_dir" && as_dir=.
33282 for ac_exec_ext in '' $ac_executable_extensions; do
33283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33284 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33286 break 2
33287 fi
33288done
33289 done
33290IFS=$as_save_IFS
33291
33292 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33293 ;;
33294esac
33295fi
33296MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33297if test -n "$MrSIDDecodeDelegate"; then
33298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33299$as_echo "$MrSIDDecodeDelegate" >&6; }
33300else
33301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33302$as_echo "no" >&6; }
33303fi
33304
33305
cristy3ed852e2009-09-05 21:47:34 +000033306# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33307set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033310if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033311 $as_echo_n "(cached) " >&6
33312else
33313 case $MVDelegate in
33314 [\\/]* | ?:[\\/]*)
33315 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33316 ;;
33317 *)
33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319for as_dir in $PATH
33320do
33321 IFS=$as_save_IFS
33322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33325 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327 break 2
33328 fi
33329done
cristy8b350f62009-11-15 23:12:43 +000033330 done
cristy3ed852e2009-09-05 21:47:34 +000033331IFS=$as_save_IFS
33332
33333 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33334 ;;
33335esac
33336fi
33337MVDelegate=$ac_cv_path_MVDelegate
33338if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "$MVDelegate" >&6; }
33341else
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo "no" >&6; }
33344fi
33345
33346
33347# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33348set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033351if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033352 $as_echo_n "(cached) " >&6
33353else
33354 case $PCLDelegate in
33355 [\\/]* | ?:[\\/]*)
33356 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33357 ;;
33358 *)
33359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360for as_dir in $PATH
33361do
33362 IFS=$as_save_IFS
33363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33366 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368 break 2
33369 fi
33370done
cristy8b350f62009-11-15 23:12:43 +000033371 done
cristy3ed852e2009-09-05 21:47:34 +000033372IFS=$as_save_IFS
33373
33374 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33375 ;;
33376esac
33377fi
33378PCLDelegate=$ac_cv_path_PCLDelegate
33379if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "$PCLDelegate" >&6; }
33382else
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo "no" >&6; }
33385fi
33386
33387
33388# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33389set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033392if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033393 $as_echo_n "(cached) " >&6
33394else
33395 case $PGPDecodeDelegate in
33396 [\\/]* | ?:[\\/]*)
33397 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33398 ;;
33399 *)
33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401for as_dir in $PATH
33402do
33403 IFS=$as_save_IFS
33404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33407 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409 break 2
33410 fi
33411done
cristy8b350f62009-11-15 23:12:43 +000033412 done
cristy3ed852e2009-09-05 21:47:34 +000033413IFS=$as_save_IFS
33414
33415 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33416 ;;
33417esac
33418fi
33419PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33420if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033422$as_echo "$PGPDecodeDelegate" >&6; }
33423else
cristy8b350f62009-11-15 23:12:43 +000033424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo "no" >&6; }
33426fi
33427
33428
33429# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33430set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033433if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033434 $as_echo_n "(cached) " >&6
33435else
33436 case $POVDelegate in
33437 [\\/]* | ?:[\\/]*)
33438 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33439 ;;
33440 *)
33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442for as_dir in $PATH
33443do
33444 IFS=$as_save_IFS
33445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33448 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450 break 2
33451 fi
33452done
cristy8b350f62009-11-15 23:12:43 +000033453 done
cristy3ed852e2009-09-05 21:47:34 +000033454IFS=$as_save_IFS
33455
33456 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33457 ;;
33458esac
33459fi
33460POVDelegate=$ac_cv_path_POVDelegate
33461if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "$POVDelegate" >&6; }
33464else
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "no" >&6; }
33467fi
33468
33469
33470for ac_prog in gsx gsc "$PSDelegateDefault"
33471do
33472 # Extract the first word of "$ac_prog", so it can be a program name with args.
33473set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033476if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033477 $as_echo_n "(cached) " >&6
33478else
33479 case $PSDelegate in
33480 [\\/]* | ?:[\\/]*)
33481 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33482 ;;
33483 *)
33484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33485for as_dir in $PATH
33486do
33487 IFS=$as_save_IFS
33488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33491 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033493 break 2
33494 fi
33495done
cristy8b350f62009-11-15 23:12:43 +000033496 done
cristy3ed852e2009-09-05 21:47:34 +000033497IFS=$as_save_IFS
33498
33499 ;;
33500esac
33501fi
33502PSDelegate=$ac_cv_path_PSDelegate
33503if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033505$as_echo "$PSDelegate" >&6; }
33506else
cristy8b350f62009-11-15 23:12:43 +000033507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033508$as_echo "no" >&6; }
33509fi
33510
33511
33512 test -n "$PSDelegate" && break
33513done
33514test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33515
33516# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33517set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033519$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033520if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033521 $as_echo_n "(cached) " >&6
33522else
33523 case $RLEEncodeDelegate in
33524 [\\/]* | ?:[\\/]*)
33525 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33526 ;;
33527 *)
33528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33529for as_dir in $PATH
33530do
33531 IFS=$as_save_IFS
33532 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033533 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33535 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033537 break 2
33538 fi
33539done
cristy8b350f62009-11-15 23:12:43 +000033540 done
cristy3ed852e2009-09-05 21:47:34 +000033541IFS=$as_save_IFS
33542
33543 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33544 ;;
33545esac
33546fi
33547RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33548if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033550$as_echo "$RLEEncodeDelegate" >&6; }
33551else
cristy8b350f62009-11-15 23:12:43 +000033552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033553$as_echo "no" >&6; }
33554fi
33555
33556
33557# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33558set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033561if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033562 $as_echo_n "(cached) " >&6
33563else
33564 case $RMDelegate in
33565 [\\/]* | ?:[\\/]*)
33566 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33567 ;;
33568 *)
33569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33570for as_dir in $PATH
33571do
33572 IFS=$as_save_IFS
33573 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033574 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33576 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033578 break 2
33579 fi
33580done
cristy8b350f62009-11-15 23:12:43 +000033581 done
cristy3ed852e2009-09-05 21:47:34 +000033582IFS=$as_save_IFS
33583
33584 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33585 ;;
33586esac
33587fi
33588RMDelegate=$ac_cv_path_RMDelegate
33589if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033591$as_echo "$RMDelegate" >&6; }
33592else
cristy8b350f62009-11-15 23:12:43 +000033593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033594$as_echo "no" >&6; }
33595fi
33596
33597
cristy4689cf02010-02-17 21:15:45 +000033598# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33599set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033602if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033603 $as_echo_n "(cached) " >&6
33604else
33605 case $RSVGDecodeDelegate in
33606 [\\/]* | ?:[\\/]*)
33607 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33608 ;;
33609 *)
33610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611for as_dir in $PATH
33612do
33613 IFS=$as_save_IFS
33614 test -z "$as_dir" && as_dir=.
33615 for ac_exec_ext in '' $ac_executable_extensions; do
33616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33617 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33619 break 2
33620 fi
33621done
33622 done
33623IFS=$as_save_IFS
33624
33625 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33626 ;;
33627esac
33628fi
33629RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33630if test -n "$RSVGDecodeDelegate"; then
33631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33632$as_echo "$RSVGDecodeDelegate" >&6; }
33633else
33634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33635$as_echo "no" >&6; }
33636fi
33637
33638
cristy3ed852e2009-09-05 21:47:34 +000033639# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33640set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033642$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033643if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033644 $as_echo_n "(cached) " >&6
33645else
33646 case $SCANDecodeDelegate in
33647 [\\/]* | ?:[\\/]*)
33648 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33649 ;;
33650 *)
33651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33652for as_dir in $PATH
33653do
33654 IFS=$as_save_IFS
33655 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033656 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33658 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033660 break 2
33661 fi
33662done
cristy8b350f62009-11-15 23:12:43 +000033663 done
cristy3ed852e2009-09-05 21:47:34 +000033664IFS=$as_save_IFS
33665
33666 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33667 ;;
33668esac
33669fi
33670SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33671if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033673$as_echo "$SCANDecodeDelegate" >&6; }
33674else
cristy8b350f62009-11-15 23:12:43 +000033675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033676$as_echo "no" >&6; }
33677fi
33678
33679
33680# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33681set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033684if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033685 $as_echo_n "(cached) " >&6
33686else
33687 case $TXTDelegate in
33688 [\\/]* | ?:[\\/]*)
33689 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33690 ;;
33691 *)
33692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33693for as_dir in $PATH
33694do
33695 IFS=$as_save_IFS
33696 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033697 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33699 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033701 break 2
33702 fi
33703done
cristy8b350f62009-11-15 23:12:43 +000033704 done
cristy3ed852e2009-09-05 21:47:34 +000033705IFS=$as_save_IFS
33706
33707 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33708 ;;
33709esac
33710fi
33711TXTDelegate=$ac_cv_path_TXTDelegate
33712if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo "$TXTDelegate" >&6; }
33715else
cristy8b350f62009-11-15 23:12:43 +000033716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033717$as_echo "no" >&6; }
33718fi
33719
33720
cristy5ac9ac82010-07-29 13:24:24 +000033721# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33722set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033725if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033726 $as_echo_n "(cached) " >&6
33727else
33728 case $UniconvertorDelegate in
33729 [\\/]* | ?:[\\/]*)
33730 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33731 ;;
33732 *)
33733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33734for as_dir in $PATH
33735do
33736 IFS=$as_save_IFS
33737 test -z "$as_dir" && as_dir=.
33738 for ac_exec_ext in '' $ac_executable_extensions; do
33739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33740 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33742 break 2
33743 fi
33744done
33745 done
33746IFS=$as_save_IFS
33747
33748 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33749 ;;
33750esac
33751fi
33752UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33753if test -n "$UniconvertorDelegate"; then
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33755$as_echo "$UniconvertorDelegate" >&6; }
33756else
33757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33758$as_echo "no" >&6; }
33759fi
33760
33761
cristy3ed852e2009-09-05 21:47:34 +000033762# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33763set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033765$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033766if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033767 $as_echo_n "(cached) " >&6
33768else
33769 case $WMFDecodeDelegate in
33770 [\\/]* | ?:[\\/]*)
33771 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33772 ;;
33773 *)
33774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33775for as_dir in $PATH
33776do
33777 IFS=$as_save_IFS
33778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33781 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783 break 2
33784 fi
33785done
cristy8b350f62009-11-15 23:12:43 +000033786 done
cristy3ed852e2009-09-05 21:47:34 +000033787IFS=$as_save_IFS
33788
33789 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33790 ;;
33791esac
33792fi
33793WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33794if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033796$as_echo "$WMFDecodeDelegate" >&6; }
33797else
cristy8b350f62009-11-15 23:12:43 +000033798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo "no" >&6; }
33800fi
33801
33802
33803# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33804set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033806$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033807if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033808 $as_echo_n "(cached) " >&6
33809else
33810 case $WWWDecodeDelegate in
33811 [\\/]* | ?:[\\/]*)
33812 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33813 ;;
33814 *)
33815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33816for as_dir in $PATH
33817do
33818 IFS=$as_save_IFS
33819 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33822 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033824 break 2
33825 fi
33826done
cristy8b350f62009-11-15 23:12:43 +000033827 done
cristy3ed852e2009-09-05 21:47:34 +000033828IFS=$as_save_IFS
33829
33830 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33831 ;;
33832esac
33833fi
33834WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33835if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033837$as_echo "$WWWDecodeDelegate" >&6; }
33838else
cristy8b350f62009-11-15 23:12:43 +000033839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033840$as_echo "no" >&6; }
33841fi
33842
33843
33844# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33845set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033847$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033848if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033849 $as_echo_n "(cached) " >&6
33850else
33851 case $XPSDelegate in
33852 [\\/]* | ?:[\\/]*)
33853 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33854 ;;
33855 *)
33856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33857for as_dir in $PATH
33858do
33859 IFS=$as_save_IFS
33860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33863 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033865 break 2
33866 fi
33867done
cristy8b350f62009-11-15 23:12:43 +000033868 done
cristy3ed852e2009-09-05 21:47:34 +000033869IFS=$as_save_IFS
33870
33871 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33872 ;;
33873esac
33874fi
33875XPSDelegate=$ac_cv_path_XPSDelegate
33876if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033878$as_echo "$XPSDelegate" >&6; }
33879else
cristy8b350f62009-11-15 23:12:43 +000033880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo "no" >&6; }
33882fi
33883
33884
33885# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33886set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033889if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033890 $as_echo_n "(cached) " >&6
33891else
33892 case $ZipDelegate in
33893 [\\/]* | ?:[\\/]*)
33894 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33895 ;;
33896 *)
33897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33898for as_dir in $PATH
33899do
33900 IFS=$as_save_IFS
33901 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033902 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33904 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033906 break 2
33907 fi
33908done
cristy8b350f62009-11-15 23:12:43 +000033909 done
cristy3ed852e2009-09-05 21:47:34 +000033910IFS=$as_save_IFS
33911
33912 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33913 ;;
33914esac
33915fi
33916ZipDelegate=$ac_cv_path_ZipDelegate
33917if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033919$as_echo "$ZipDelegate" >&6; }
33920else
cristy8b350f62009-11-15 23:12:43 +000033921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo "no" >&6; }
33923fi
33924
33925
33926
33927# Prefer lpr to lp; lp needs options tacked on.
33928if test "$LPRDelegate" != no; then
33929 PrintDelegate="$LPRDelegate"
33930else
33931 PrintDelegate="$LPDelegate -c -s"
33932fi
33933
33934
33935# Installed ImageMagick utiltity paths
33936ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33937DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33938MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33939
33940# Set delegate booleans
33941have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33942have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33943have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33944have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33945have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033946have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033947have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33948have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033949have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33950have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33951
33952#
33953# Test for font directories
33954#
33955type_include_files=''
33956
cristy430a7312010-01-21 20:44:04 +000033957# Dejavu fonts.
33958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33959$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33960dejavu_font_dir=''
33961if test "${with_dejavu_font_dir}" != 'default'; then
33962 dejavu_font_dir="${with_dejavu_font_dir}/"
33963else
33964 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33965 if test -f "${font_dir}DejaVuSerif.ttf"; then
33966 dejavu_font_dir="${font_dir}"
33967 break 1
33968 fi
33969 done
33970fi
33971if test "${dejavu_font_dir}x" != 'x'; then
33972 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033973 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33974$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033975else
cristy09b53e12011-10-14 12:47:22 +000033976 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33977$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000033978fi
33979
33980
cristy3ed852e2009-09-05 21:47:34 +000033981# Windows
33982windows_font_dir=''
33983if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33984 windows_font_dir="${with_windows_font_dir}/"
33985fi
cristy430a7312010-01-21 20:44:04 +000033986if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033987 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33988 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33989 fi
33990 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33991 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33992 fi
33993 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33994 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33995 fi
33996fi
cristy430a7312010-01-21 20:44:04 +000033997if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000033998 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33999fi
34000
34001
34002# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034004$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34005ghostscript_font_dir=''
34006if test "${with_gs_font_dir}" != 'default'; then
34007 ghostscript_font_dir="${with_gs_font_dir}/"
34008else
34009 if test "${native_win32_build}" = 'yes'; then
34010 # Native Windows Build
34011 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34012 if test -f "${font_dir}a010013l.pfb"; then
34013 ghostscript_font_dir="$font_dir"
34014 break 1
34015 fi
34016 done
34017 if test "${PSDelegate}" != 'gswin32c'; then
34018 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34019 fi
34020 else
34021 # Linux / Mac OS X / Unix Build
34022 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
34023 if test -f "${font_dir}a010013l.pfb"; then
34024 ghostscript_font_dir="${font_dir}"
34025 break 1
34026 fi
34027 done
34028 if test "${ghostscript_font_dir}x" = 'x'; then
34029 if test "$PSDelegate" != 'gs'; then
34030 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34031 fi
34032 fi
34033 fi
34034fi
34035if test "${ghostscript_font_dir}x" != 'x'; then
34036 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034037 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34038$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034039else
cristy09b53e12011-10-14 12:47:22 +000034040 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34041$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034042fi
34043
34044case "${build_os}" in
34045 mingw* )
34046 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34047 ;;
34048esac
34049
34050
34051
34052#
34053# Handle case where user doesn't want frozen paths
34054#
34055if test "$with_frozenpaths" != 'yes'; then
34056 # Re-set delegate definitions to default (no paths)
34057 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034058 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34059 BZIPDelegate="$BZIPDelegateDefault"
34060 BrowseDelegate="$BrowseDelegateDefault"
34061 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34062 CatDelegate="$CatDelegateDefault"
34063 ConvertDelegate="$ConvertDelegateDefault"
34064 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34065 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34066 EchoDelegate="$EchoDelegateDefault"
34067 EditorDelegate="$EditorDelegateDefault"
34068 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34069 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34070 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34071 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34072 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34073 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34074 LPDelegate="$LPDelegateDefault"
34075 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34076 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34077 LaunchDelegate="$LaunchDelegateDefault"
34078 MANDelegate="$MANDelegateDefault"
34079 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34080 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034081 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034082 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34083 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034084 PCLDelegate="$PCLDelegateDefault"
34085 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34086 POVDelegate="$POVDelegateDefault"
34087 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034088 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34089 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034090 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034091 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34092 ShowImageDelegate="$ShowImageDelegateDefault"
34093 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034094 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034095 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34096 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34097 XPSDelegate="$XPSDelegateDefault"
34098 ZipDelegate="$ZipDelegateDefault"
34099fi
34100
34101# Delegate substitutions
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144#
34145# RPM support.
34146#
34147RPM=''
34148for ac_prog in gnutar gtar tar
34149do
34150 # Extract the first word of "$ac_prog", so it can be a program name with args.
34151set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034153$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034154if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034155 $as_echo_n "(cached) " >&6
34156else
34157 if test -n "$TAR"; then
34158 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34159else
34160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161for as_dir in $PATH
34162do
34163 IFS=$as_save_IFS
34164 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034165 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34167 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169 break 2
34170 fi
34171done
cristy8b350f62009-11-15 23:12:43 +000034172 done
cristy3ed852e2009-09-05 21:47:34 +000034173IFS=$as_save_IFS
34174
34175fi
34176fi
34177TAR=$ac_cv_prog_TAR
34178if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034180$as_echo "$TAR" >&6; }
34181else
cristy8b350f62009-11-15 23:12:43 +000034182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034183$as_echo "no" >&6; }
34184fi
34185
34186
34187 test -n "$TAR" && break
34188done
34189
34190for ac_prog in perl
34191do
34192 # Extract the first word of "$ac_prog", so it can be a program name with args.
34193set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034196if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034197 $as_echo_n "(cached) " >&6
34198else
34199 if test -n "$PERL"; then
34200 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34201else
34202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203for as_dir in $PATH
34204do
34205 IFS=$as_save_IFS
34206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34209 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034211 break 2
34212 fi
34213done
cristy8b350f62009-11-15 23:12:43 +000034214 done
cristy3ed852e2009-09-05 21:47:34 +000034215IFS=$as_save_IFS
34216
34217fi
34218fi
34219PERL=$ac_cv_prog_PERL
34220if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034222$as_echo "$PERL" >&6; }
34223else
cristy8b350f62009-11-15 23:12:43 +000034224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034225$as_echo "no" >&6; }
34226fi
34227
34228
34229 test -n "$PERL" && break
34230done
34231
34232for ac_prog in rpmbuild rpm
34233do
34234 # Extract the first word of "$ac_prog", so it can be a program name with args.
34235set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034237$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034238if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034239 $as_echo_n "(cached) " >&6
34240else
34241 if test -n "$RPM"; then
34242 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34243else
34244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34245for as_dir in $PATH
34246do
34247 IFS=$as_save_IFS
34248 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034249 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34251 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034253 break 2
34254 fi
34255done
cristy8b350f62009-11-15 23:12:43 +000034256 done
cristy3ed852e2009-09-05 21:47:34 +000034257IFS=$as_save_IFS
34258
34259fi
34260fi
34261RPM=$ac_cv_prog_RPM
34262if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034264$as_echo "$RPM" >&6; }
34265else
cristy8b350f62009-11-15 23:12:43 +000034266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034267$as_echo "no" >&6; }
34268fi
34269
34270
34271 test -n "$RPM" && break
34272done
34273
34274
cristy73bd4a52010-10-05 11:24:23 +000034275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34276
34277
34278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34279
34280
34281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34282
34283
34284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34285
34286
34287 if test "x$RPM" != "x" ; then
34288 RPM_DELEGATE_TRUE=
34289 RPM_DELEGATE_FALSE='#'
34290else
34291 RPM_DELEGATE_TRUE='#'
34292 RPM_DELEGATE_FALSE=
34293fi
34294
cristy3ed852e2009-09-05 21:47:34 +000034295
34296#
34297# 7ZIP support (http://p7zip.sourceforge.net/)
34298#
34299P7ZIP=''
34300for ac_prog in 7za
34301do
34302 # Extract the first word of "$ac_prog", so it can be a program name with args.
34303set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034306if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034307 $as_echo_n "(cached) " >&6
34308else
34309 if test -n "$P7ZIP"; then
34310 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34311else
34312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34313for as_dir in $PATH
34314do
34315 IFS=$as_save_IFS
34316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34319 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034321 break 2
34322 fi
34323done
cristy8b350f62009-11-15 23:12:43 +000034324 done
cristy3ed852e2009-09-05 21:47:34 +000034325IFS=$as_save_IFS
34326
34327fi
34328fi
34329P7ZIP=$ac_cv_prog_P7ZIP
34330if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034332$as_echo "$P7ZIP" >&6; }
34333else
cristy8b350f62009-11-15 23:12:43 +000034334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo "no" >&6; }
34336fi
34337
34338
34339 test -n "$P7ZIP" && break
34340done
34341
34342
cristy73bd4a52010-10-05 11:24:23 +000034343 if test "x$P7ZIP" != "x" ; then
34344 P7ZIP_DELEGATE_TRUE=
34345 P7ZIP_DELEGATE_FALSE='#'
34346else
34347 P7ZIP_DELEGATE_TRUE='#'
34348 P7ZIP_DELEGATE_FALSE=
34349fi
34350
cristy3ed852e2009-09-05 21:47:34 +000034351
34352#
34353# ZIP support (http://www.info-zip.org/Zip.html)
34354#
34355ZIP=''
34356for ac_prog in zip
34357do
34358 # Extract the first word of "$ac_prog", so it can be a program name with args.
34359set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034361$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034362if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034363 $as_echo_n "(cached) " >&6
34364else
34365 if test -n "$ZIP"; then
34366 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34367else
34368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369for as_dir in $PATH
34370do
34371 IFS=$as_save_IFS
34372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34375 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034377 break 2
34378 fi
34379done
cristy8b350f62009-11-15 23:12:43 +000034380 done
cristy3ed852e2009-09-05 21:47:34 +000034381IFS=$as_save_IFS
34382
34383fi
34384fi
34385ZIP=$ac_cv_prog_ZIP
34386if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388$as_echo "$ZIP" >&6; }
34389else
cristy8b350f62009-11-15 23:12:43 +000034390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034391$as_echo "no" >&6; }
34392fi
34393
34394
34395 test -n "$ZIP" && break
34396done
34397
34398
cristy73bd4a52010-10-05 11:24:23 +000034399 if test "x$ZIP" != "x" ; then
34400 ZIP_DELEGATE_TRUE=
34401 ZIP_DELEGATE_FALSE='#'
34402else
34403 ZIP_DELEGATE_TRUE='#'
34404 ZIP_DELEGATE_FALSE=
34405fi
34406
cristy3ed852e2009-09-05 21:47:34 +000034407
34408#
34409# GhostPCL related configuration.
34410#
34411PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034412PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034413PCLMonoDevice=pbmraw
34414if test -z "$PCLVersion"; then
34415 PCLVersion='unknown'
34416fi
34417if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034418 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34419$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034421$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34423$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034424 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034426$as_echo_n "checking for pcl color device... " >&6; }
34427 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34428 :
34429 else
34430 PCLColorDevice=ppmraw
34431 fi
cristy09b53e12011-10-14 12:47:22 +000034432 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34433$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034434
34435 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034437$as_echo_n "checking for pcl CMYK device... " >&6; }
34438 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34439 :
34440 else
34441 PCLCMYKDevice=$PCLColorDevice
34442 fi
cristy09b53e12011-10-14 12:47:22 +000034443 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34444$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034445
34446 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034448$as_echo_n "checking for pcl mono device... " >&6; }
34449 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34450 :
34451 else
34452 PCLMonoDevice=$PCLColorDevice
34453 fi
cristy09b53e12011-10-14 12:47:22 +000034454 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34455$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034456fi
34457
34458
34459
34460
34461
34462
34463#
34464# GhostXPS related configuration.
34465#
34466XPSColorDevice=ppmraw
34467XPSCMYKDevice=bmpsep8
34468XPSMonoDevice=pbmraw
34469if test -z "$XPSVersion"; then
34470 XPSVersion='unknown'
34471fi
34472if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34474$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034477 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34478$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034479 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481$as_echo_n "checking for xps color device... " >&6; }
34482 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34483 :
34484 else
34485 XPSColorDevice=ppmraw
34486 fi
cristy09b53e12011-10-14 12:47:22 +000034487 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34488$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034489
34490 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034492$as_echo_n "checking for xps CMYK device... " >&6; }
34493 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34494 :
34495 else
34496 XPSCMYKDevice=$XPSColorDevice
34497 fi
cristy09b53e12011-10-14 12:47:22 +000034498 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34499$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034500
34501 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo_n "checking for xps mono device... " >&6; }
34504 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34505 :
34506 else
34507 XPSMonoDevice=$XPSColorDevice
34508 fi
cristy09b53e12011-10-14 12:47:22 +000034509 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34510$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034511fi
34512
34513
34514
34515
34516
34517
34518#
34519# Ghostscript related configuration.
34520#
cristya97426c2011-02-04 01:41:27 +000034521GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034522GSColorDevice=pnmraw
34523GSCMYKDevice=pam
34524GSMonoDevice=pbmraw
34525GSPDFDevice=pdfwrite
34526GSPSDevice=pswrite
34527GSEPSDevice=epswrite
34528GSVersion='unknown'
34529if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034530 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34531$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034533$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34535$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034537$as_echo_n "checking for Ghostscript version... " >&6; }
34538 if GSVersion=`$PSDelegate --version`; then
34539 :
34540 else
34541 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34542 fi
cristy09b53e12011-10-14 12:47:22 +000034543 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34544$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034545
34546 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034548$as_echo_n "checking for gs alpha device... " >&6; }
34549 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34550 :
34551 else
34552 GSAlphaDevice=pnmraw
34553 fi
cristy09b53e12011-10-14 12:47:22 +000034554 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34555$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034556
34557 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034559$as_echo_n "checking for gs color device... " >&6; }
34560 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34561 :
34562 else
34563 GSColorDevice=pnmraw
34564 fi
cristy09b53e12011-10-14 12:47:22 +000034565 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34566$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034567
34568 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034570$as_echo_n "checking for gs CMYK device... " >&6; }
34571 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34572 :
34573 else
34574 GSCMYKDevice=bmpsep8
34575 fi
cristy09b53e12011-10-14 12:47:22 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34577$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034578
34579 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034581$as_echo_n "checking for gs mono device... " >&6; }
34582 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34583 :
34584 else
34585 GSMonoDevice=$GSColorDevice
34586 fi
cristy09b53e12011-10-14 12:47:22 +000034587 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34588$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034589
34590 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034592$as_echo_n "checking for gs PDF writing device... " >&6; }
34593 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34594 :
34595 else
34596 GSPDFDevice=nodevice
34597 fi
cristy09b53e12011-10-14 12:47:22 +000034598 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34599$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034600
34601 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034603$as_echo_n "checking for gs PS writing device... " >&6; }
34604 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34605 :
34606 else
34607 GSPSDevice=nodevice
34608 fi
cristy09b53e12011-10-14 12:47:22 +000034609 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34610$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034611
34612 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034614$as_echo_n "checking for gs EPS writing device... " >&6; }
34615 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34616 :
34617 else
34618 GSEPSDevice=nodevice
34619 fi
cristy09b53e12011-10-14 12:47:22 +000034620 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34621$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034622fi
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633#
34634# PerlMagick-related configuration
34635#
34636
34637# Look for PERL if PerlMagick requested
34638# If name/path of desired PERL interpreter is specified, look for that one first
34639have_perl='no'
34640if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034641 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34642$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034644$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034645 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34646$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034647 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034649$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034650if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034651 $as_echo_n "(cached) " >&6
34652else
34653 ac_cv_path_PERL="$with_perl"
34654fi
cristy8b350f62009-11-15 23:12:43 +000034655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo "$ac_cv_path_PERL" >&6; };
34657 PERL=$ac_cv_path_PERL
34658 have_perl="$ac_cv_path_PERL"
34659 else
34660 for ac_prog in perl perl5
34661do
34662 # Extract the first word of "$ac_prog", so it can be a program name with args.
34663set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034666if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034667 $as_echo_n "(cached) " >&6
34668else
34669 case $PERL in
34670 [\\/]* | ?:[\\/]*)
34671 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34672 ;;
34673 *)
34674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34675for as_dir in $PATH
34676do
34677 IFS=$as_save_IFS
34678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34681 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034683 break 2
34684 fi
34685done
cristy8b350f62009-11-15 23:12:43 +000034686 done
cristy3ed852e2009-09-05 21:47:34 +000034687IFS=$as_save_IFS
34688
34689 ;;
34690esac
34691fi
34692PERL=$ac_cv_path_PERL
34693if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo "$PERL" >&6; }
34696else
cristy8b350f62009-11-15 23:12:43 +000034697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698$as_echo "no" >&6; }
34699fi
34700
34701
34702 test -n "$PERL" && break
34703done
34704 if test "$ac_cv_path_PERL"; then
34705 have_perl="$ac_cv_path_PERL"
34706 fi
34707 fi
34708fi
34709
cristy949301e2010-01-06 01:38:40 +000034710if test "$with_perl" != 'yes' ; then
34711 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34712fi
34713
34714PERL_SUPPORTS_DESTDIR='no'
34715
cristy3ed852e2009-09-05 21:47:34 +000034716with_perl_static='no'
34717with_perl_dynamic='no'
34718if test "$have_perl" != 'no'; then
34719 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34720 with_perl_static='yes'
34721 fi
34722 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34723 with_perl_dynamic='yes'
34724 fi
34725 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034726
34727
34728
34729
34730 if test -n "$PERL"; then :
34731
34732 ax_perl_version="5.8.1"
34733
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34735$as_echo_n "checking for perl version... " >&6; }
34736
34737 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34738
34739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34740$as_echo "$perl_version" >&6; }
34741
34742 PERL_VERSION=$perl_version
34743
34744
34745
34746
34747
34748 # Used to indicate true or false condition
34749 ax_compare_version=false
34750
34751 # Convert the two version strings to be compared into a format that
34752 # allows a simple string comparison. The end result is that a version
34753 # string of the form 1.12.5-r617 will be converted to the form
34754 # 0001001200050617. In other words, each number is zero padded to four
34755 # digits, and non digits are removed.
34756
34757 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34758 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34759 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34760 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34761 -e 's/[^0-9]//g'`
34762
34763
34764 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34765 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34766 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34767 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34768 -e 's/[^0-9]//g'`
34769
34770
34771 ax_compare_version=`echo "x$ax_compare_version_A
34772x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34773
34774
34775
34776 if test "$ax_compare_version" = "true" ; then
34777
34778 :
34779 PERL_SUPPORTS_DESTDIR='yes'
34780
34781 else
34782 :
34783 PERL_SUPPORTS_DESTDIR='no'
34784
34785 fi
34786
34787
34788else
34789
34790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34791$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34792 PERL_SUPPORTS_DESTDIR='no'
34793
cristy3ed852e2009-09-05 21:47:34 +000034794fi
cristy73bd4a52010-10-05 11:24:23 +000034795
34796fi
34797 if test "$have_perl" != 'no'; then
34798 WITH_PERL_TRUE=
34799 WITH_PERL_FALSE='#'
34800else
34801 WITH_PERL_TRUE='#'
34802 WITH_PERL_FALSE=
34803fi
34804
34805 if test $with_perl_static = 'yes'; then
34806 WITH_PERL_STATIC_TRUE=
34807 WITH_PERL_STATIC_FALSE='#'
34808else
34809 WITH_PERL_STATIC_TRUE='#'
34810 WITH_PERL_STATIC_FALSE=
34811fi
34812
34813 if test $with_perl_dynamic = 'yes'; then
34814 WITH_PERL_DYNAMIC_TRUE=
34815 WITH_PERL_DYNAMIC_FALSE='#'
34816else
34817 WITH_PERL_DYNAMIC_TRUE='#'
34818 WITH_PERL_DYNAMIC_FALSE=
34819fi
34820
cristy3ed852e2009-09-05 21:47:34 +000034821
34822
34823# Determine path to pick up MagickCore library from for use with building PerlMagick
34824MAGICKCORE_PATH="${LIB_DIR}"
34825if test $with_perl_static = 'yes'; then
34826 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34827 libtool_objdir=$objdir
34828
34829 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034830 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034831fi
34832
34833
34834# Create a simple string containing format names for all delegate libraries
34835DELEGATES=''
34836if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34837if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34838if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34839if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34840if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34841if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34842if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34843if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34844if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34845if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34846if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34847if test "$have_jpeg" = 'yes'; then
34848 DELEGATES="$DELEGATES jpeg";
34849 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34850fi
34851if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034852if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034853if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34854if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034855if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034856if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34857if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34858if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34859if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34860if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34861if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34862if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34863if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34864if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34865
34866
34867
34868#
34869# Handle special compiler flags
34870#
34871
34872# Add '-p' if prof source profiling support enabled
34873if test "$enable_prof" = 'yes'; then
34874 CFLAGS="-p $CFLAGS"
34875 CXXFLAGS="-p $CXXFLAGS"
34876 LDFLAGS="-p $LDFLAGS"
34877fi
34878
34879# Add '-pg' if gprof source profiling support enabled
34880if test "$enable_gprof" = 'yes'; then
34881 CFLAGS="-pg $CFLAGS"
34882 CXXFLAGS="-pg $CXXFLAGS"
34883 LDFLAGS="-pg $LDFLAGS"
34884fi
34885
34886# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34887# This is a gcc-specific feature
34888if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034890$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034891if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034892 $as_echo_n "(cached) " >&6
34893else
34894 ac_check_lib_save_LIBS=$LIBS
34895LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034897/* end confdefs.h. */
34898
34899/* Override any GCC internal prototype to avoid an error.
34900 Use char because int might match the return type of a GCC
34901 builtin and then its argument prototype would still apply. */
34902#ifdef __cplusplus
34903extern "C"
34904#endif
34905char _gcov_init ();
34906int
34907main ()
34908{
34909return _gcov_init ();
34910 ;
34911 return 0;
34912}
34913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034915 ac_cv_lib_gcov__gcov_init=yes
34916else
cristy8b350f62009-11-15 23:12:43 +000034917 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034918fi
cristy8b350f62009-11-15 23:12:43 +000034919rm -f core conftest.err conftest.$ac_objext \
34920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034921LIBS=$ac_check_lib_save_LIBS
34922fi
cristy8b350f62009-11-15 23:12:43 +000034923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034924$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034925if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034926 cat >>confdefs.h <<_ACEOF
34927#define HAVE_LIBGCOV 1
34928_ACEOF
34929
34930 LIBS="-lgcov $LIBS"
34931
34932fi
34933
cristy8b350f62009-11-15 23:12:43 +000034934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034935$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034936if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034937 $as_echo_n "(cached) " >&6
34938else
34939 ac_check_lib_save_LIBS=$LIBS
34940LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034942/* end confdefs.h. */
34943
34944/* Override any GCC internal prototype to avoid an error.
34945 Use char because int might match the return type of a GCC
34946 builtin and then its argument prototype would still apply. */
34947#ifdef __cplusplus
34948extern "C"
34949#endif
34950char __gcov_init ();
34951int
34952main ()
34953{
34954return __gcov_init ();
34955 ;
34956 return 0;
34957}
34958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034960 ac_cv_lib_gcov___gcov_init=yes
34961else
cristy8b350f62009-11-15 23:12:43 +000034962 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034963fi
cristy8b350f62009-11-15 23:12:43 +000034964rm -f core conftest.err conftest.$ac_objext \
34965 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034966LIBS=$ac_check_lib_save_LIBS
34967fi
cristy8b350f62009-11-15 23:12:43 +000034968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034969$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034970if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034971 cat >>confdefs.h <<_ACEOF
34972#define HAVE_LIBGCOV 1
34973_ACEOF
34974
34975 LIBS="-lgcov $LIBS"
34976
34977fi
34978
34979 case "$target_os" in
34980 darwin*)
34981 OSX_GCOV_LDFLAG="-Wl,-single_module"
34982 ;;
34983 *)
34984 OSX_GCOV_LDFLAG=""
34985 ;;
34986 esac
34987
34988 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34989 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34990 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34991fi
34992
34993#
34994# Build library dependency list for libMagickCore
34995#
34996
34997MAGICK_LIBLTDL='' # Libltdl for build
34998MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34999MAGICK_LTDLDEPS='' # extra libltdl dependencies
35000if test "$with_ltdl" != 'no'
35001then
35002 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35003 MAGICK_API_LIBLTDL='-lltdl'
35004 fi
35005 MAGICK_LIBLTDL=${LIBLTDL}
35006 MAGICK_LTDLDEPS=${LTDLDEPS}
35007fi
35008
35009
35010
35011if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035012 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 +000035013else
cristy41cbe8a2011-10-27 01:35:18 +000035014 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035015fi
35016
35017
35018#
35019# Remove extraneous spaces from output variables (asthetic)
35020#
35021X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35022X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35023X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35024X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35025
35026CC=`echo $CC | sed -e 's/ */ /g'`
35027CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35028CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35029CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35030DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35031DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35032LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35033TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35034MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35035#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35036
35037# Pass only user-provided LIBS as "global" libraries
35038LIBS=$USER_LIBS
35039
35040#AC_SUBST(CPPFLAGS)
35041
35042#AC_SUBST(LDFLAGS)
35043#AC_SUBST(X_PRE_LIBS)
35044#AC_SUBST(X_LIBS)
35045#AC_SUBST(X_EXTRA_LIBS)
35046
35047MAGICK_CFLAGS=$CFLAGS
35048MAGICK_CXXFLAGS="$CXXFLAGS"
35049MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35050MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35051MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35052MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35053
35054
35055
35056
35057
35058
35059
35060
cristyfd9dcd42010-08-08 18:07:02 +000035061
cristy3ed852e2009-09-05 21:47:34 +000035062# Set configured scripts to executable.
35063ac_config_commands="$ac_config_commands default"
35064
35065ac_config_commands="$ac_config_commands MagickCore-config.in"
35066
cristy3ed852e2009-09-05 21:47:34 +000035067ac_config_commands="$ac_config_commands MagickWand-config.in"
35068
cristy3ed852e2009-09-05 21:47:34 +000035069ac_config_commands="$ac_config_commands Magick++-config.in"
35070
35071ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35072
35073
cristy09b53e12011-10-14 12:47:22 +000035074{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35075$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35076{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35077$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035078cat >confcache <<\_ACEOF
35079# This file is a shell script that caches the results of configure
35080# tests run on this system so they can be shared between configure
35081# scripts and configure runs, see configure's option --config-cache.
35082# It is not useful on other systems. If it contains results you don't
35083# want to keep, you may remove or edit it.
35084#
35085# config.status only pays attention to the cache file if you give it
35086# the --recheck option to rerun configure.
35087#
35088# `ac_cv_env_foo' variables (set or unset) will be overridden when
35089# loading this file, other *unset* `ac_cv_foo' will be assigned the
35090# following values.
35091
35092_ACEOF
35093
35094# The following way of writing the cache mishandles newlines in values,
35095# but we know of no workaround that is simple, portable, and efficient.
35096# So, we kill variables containing newlines.
35097# Ultrix sh set writes to stderr and can't be redirected directly,
35098# and sets the high bit in the cache file unless we assign to the vars.
35099(
35100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35101 eval ac_val=\$$ac_var
35102 case $ac_val in #(
35103 *${as_nl}*)
35104 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035106$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35107 esac
35108 case $ac_var in #(
35109 _ | IFS | as_nl) ;; #(
35110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035111 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035112 esac ;;
35113 esac
35114 done
35115
35116 (set) 2>&1 |
35117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35118 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035119 # `set' does not quote correctly, so add quotes: double-quote
35120 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035121 sed -n \
35122 "s/'/'\\\\''/g;
35123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35124 ;; #(
35125 *)
35126 # `set' quotes correctly as required by POSIX, so do not add quotes.
35127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35128 ;;
35129 esac |
35130 sort
35131) |
35132 sed '
35133 /^ac_cv_env_/b end
35134 t clear
35135 :clear
35136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35137 t end
35138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35139 :end' >>confcache
35140if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35141 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035142 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035145 if test ! -f "$cache_file" || test -h "$cache_file"; then
35146 cat confcache >"$cache_file"
35147 else
35148 case $cache_file in #(
35149 */* | ?:*)
35150 mv -f confcache "$cache_file"$$ &&
35151 mv -f "$cache_file"$$ "$cache_file" ;; #(
35152 *)
35153 mv -f confcache "$cache_file" ;;
35154 esac
35155 fi
35156 fi
cristy3ed852e2009-09-05 21:47:34 +000035157 else
cristy8b350f62009-11-15 23:12:43 +000035158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035159$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35160 fi
35161fi
35162rm -f confcache
35163
35164test "x$prefix" = xNONE && prefix=$ac_default_prefix
35165# Let make expand exec_prefix.
35166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35167
35168DEFS=-DHAVE_CONFIG_H
35169
35170ac_libobjs=
35171ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035172U=
cristy3ed852e2009-09-05 21:47:34 +000035173for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35174 # 1. Remove the extension, and $U if already installed.
35175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35178 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035181done
35182LIBOBJS=$ac_libobjs
35183
35184LTLIBOBJS=$ac_ltlibobjs
35185
35186
cristy73bd4a52010-10-05 11:24:23 +000035187 if test -n "$EXEEXT"; then
35188 am__EXEEXT_TRUE=
35189 am__EXEEXT_FALSE='#'
35190else
35191 am__EXEEXT_TRUE='#'
35192 am__EXEEXT_FALSE=
35193fi
cristy3ed852e2009-09-05 21:47:34 +000035194
cristy73bd4a52010-10-05 11:24:23 +000035195if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035196 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035197Usually this means the macro was only invoked conditionally." "$LINENO" 5
35198fi
35199if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035200 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035201Usually this means the macro was only invoked conditionally." "$LINENO" 5
35202fi
35203if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035204 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035205Usually this means the macro was only invoked conditionally." "$LINENO" 5
35206fi
35207if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035208 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035209Usually this means the macro was only invoked conditionally." "$LINENO" 5
35210fi
35211if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035212 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035213Usually this means the macro was only invoked conditionally." "$LINENO" 5
35214fi
35215if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035216 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035217Usually this means the macro was only invoked conditionally." "$LINENO" 5
35218fi
35219if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035220 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035221Usually this means the macro was only invoked conditionally." "$LINENO" 5
35222fi
35223if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035224 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035225Usually this means the macro was only invoked conditionally." "$LINENO" 5
35226fi
cristy73bd4a52010-10-05 11:24:23 +000035227if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035228 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035229Usually this means the macro was only invoked conditionally." "$LINENO" 5
35230fi
35231if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035232 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035233Usually this means the macro was only invoked conditionally." "$LINENO" 5
35234fi
35235LT_CONFIG_H=config/config.h
35236
35237 _ltdl_libobjs=
35238 _ltdl_ltlibobjs=
35239 if test -n "$_LT_LIBOBJS"; then
35240 # Remove the extension.
35241 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35242 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35243 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35244 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35245 done
35246 fi
35247 ltdl_LIBOBJS=$_ltdl_libobjs
35248
35249 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35250
35251
35252if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035253 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035254Usually this means the macro was only invoked conditionally." "$LINENO" 5
35255fi
35256if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035257 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035258Usually this means the macro was only invoked conditionally." "$LINENO" 5
35259fi
35260if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035261 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035262Usually this means the macro was only invoked conditionally." "$LINENO" 5
35263fi
35264if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035265 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035266Usually this means the macro was only invoked conditionally." "$LINENO" 5
35267fi
35268
35269if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035270 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035271Usually this means the macro was only invoked conditionally." "$LINENO" 5
35272fi
35273if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035274 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035275Usually this means the macro was only invoked conditionally." "$LINENO" 5
35276fi
35277if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035278 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035279Usually this means the macro was only invoked conditionally." "$LINENO" 5
35280fi
35281if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035282 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035283Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284fi
35285if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035286 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035287Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288fi
35289if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035290 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035291Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292fi
35293if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035294 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035295Usually this means the macro was only invoked conditionally." "$LINENO" 5
35296fi
35297if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035298 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035299Usually this means the macro was only invoked conditionally." "$LINENO" 5
35300fi
35301if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035302 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035303Usually this means the macro was only invoked conditionally." "$LINENO" 5
35304fi
35305if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035306 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035307Usually this means the macro was only invoked conditionally." "$LINENO" 5
35308fi
35309if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035310 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035311Usually this means the macro was only invoked conditionally." "$LINENO" 5
35312fi
35313if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035314 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035315Usually this means the macro was only invoked conditionally." "$LINENO" 5
35316fi
35317if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035318 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035319Usually this means the macro was only invoked conditionally." "$LINENO" 5
35320fi
35321if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035322 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035323Usually this means the macro was only invoked conditionally." "$LINENO" 5
35324fi
35325if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035326 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035327Usually this means the macro was only invoked conditionally." "$LINENO" 5
35328fi
35329if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035330 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035331Usually this means the macro was only invoked conditionally." "$LINENO" 5
35332fi
35333if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035334 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035335Usually this means the macro was only invoked conditionally." "$LINENO" 5
35336fi
35337if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035338 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035339Usually this means the macro was only invoked conditionally." "$LINENO" 5
35340fi
35341if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035342 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035343Usually this means the macro was only invoked conditionally." "$LINENO" 5
35344fi
35345if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035346 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035347Usually this means the macro was only invoked conditionally." "$LINENO" 5
35348fi
cristyfbb0ef02010-12-19 02:32:11 +000035349if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35350 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35351Usually this means the macro was only invoked conditionally." "$LINENO" 5
35352fi
cristy73bd4a52010-10-05 11:24:23 +000035353if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035354 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035355Usually this means the macro was only invoked conditionally." "$LINENO" 5
35356fi
cristy41cbe8a2011-10-27 01:35:18 +000035357if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35358 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35359Usually this means the macro was only invoked conditionally." "$LINENO" 5
35360fi
35361if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35362 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35363Usually this means the macro was only invoked conditionally." "$LINENO" 5
35364fi
cristy73bd4a52010-10-05 11:24:23 +000035365if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035366 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035367Usually this means the macro was only invoked conditionally." "$LINENO" 5
35368fi
35369if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035370 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035371Usually this means the macro was only invoked conditionally." "$LINENO" 5
35372fi
35373if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035374 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035375Usually this means the macro was only invoked conditionally." "$LINENO" 5
35376fi
35377if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035378 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035379Usually this means the macro was only invoked conditionally." "$LINENO" 5
35380fi
cristyb1860752011-03-14 00:27:46 +000035381if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35382 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35383Usually this means the macro was only invoked conditionally." "$LINENO" 5
35384fi
cristy73bd4a52010-10-05 11:24:23 +000035385if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035386 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035387Usually this means the macro was only invoked conditionally." "$LINENO" 5
35388fi
35389if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035390 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035391Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392fi
35393if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035394 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035395Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396fi
35397if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035398 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035399Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400fi
35401if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035402 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035403Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404fi
35405if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035406 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035407Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408fi
35409if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035410 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035411Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412fi
35413if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035414 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035415Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416fi
cristy3ed852e2009-09-05 21:47:34 +000035417
cristyda16f162011-02-19 23:52:17 +000035418: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035419ac_write_fail=0
35420ac_clean_files_save=$ac_clean_files
35421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035422{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035423$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035424as_write_fail=0
35425cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035426#! $SHELL
35427# Generated by $as_me.
35428# Run this file to recreate the current configuration.
35429# Compiler output produced by configure, useful for debugging
35430# configure, is in config.log if it exists.
35431
35432debug=false
35433ac_cs_recheck=false
35434ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035435
cristy8b350f62009-11-15 23:12:43 +000035436SHELL=\${CONFIG_SHELL-$SHELL}
35437export SHELL
35438_ASEOF
35439cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35440## -------------------- ##
35441## M4sh Initialization. ##
35442## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035443
35444# Be more Bourne compatible
35445DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035446if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035447 emulate sh
35448 NULLCMD=:
35449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35450 # is contrary to our usage. Disable this feature.
35451 alias -g '${1+"$@"}'='"$@"'
35452 setopt NO_GLOB_SUBST
35453else
cristy8b350f62009-11-15 23:12:43 +000035454 case `(set -o) 2>/dev/null` in #(
35455 *posix*) :
35456 set -o posix ;; #(
35457 *) :
35458 ;;
cristy3ed852e2009-09-05 21:47:34 +000035459esac
cristy3ed852e2009-09-05 21:47:34 +000035460fi
35461
35462
cristy3ed852e2009-09-05 21:47:34 +000035463as_nl='
35464'
35465export as_nl
35466# Printing a long string crashes Solaris 7 /usr/bin/printf.
35467as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035470# Prefer a ksh shell builtin over an external printf program on Solaris,
35471# but without wasting forks for bash or zsh.
35472if test -z "$BASH_VERSION$ZSH_VERSION" \
35473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35474 as_echo='print -r --'
35475 as_echo_n='print -rn --'
35476elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035477 as_echo='printf %s\n'
35478 as_echo_n='printf %s'
35479else
35480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35482 as_echo_n='/usr/ucb/echo -n'
35483 else
35484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35485 as_echo_n_body='eval
35486 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035487 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035488 *"$as_nl"*)
35489 expr "X$arg" : "X\\(.*\\)$as_nl";
35490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35491 esac;
35492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35493 '
35494 export as_echo_n_body
35495 as_echo_n='sh -c $as_echo_n_body as_echo'
35496 fi
35497 export as_echo_body
35498 as_echo='sh -c $as_echo_body as_echo'
35499fi
35500
35501# The user is always right.
35502if test "${PATH_SEPARATOR+set}" != set; then
35503 PATH_SEPARATOR=:
35504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35506 PATH_SEPARATOR=';'
35507 }
35508fi
35509
cristy3ed852e2009-09-05 21:47:34 +000035510
35511# IFS
35512# We need space, tab and new line, in precisely that order. Quoting is
35513# there to prevent editors from complaining about space-tab.
35514# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35515# splitting by setting IFS to empty value.)
35516IFS=" "" $as_nl"
35517
35518# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035519as_myself=
cristy8b350f62009-11-15 23:12:43 +000035520case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035521 *[\\/]* ) as_myself=$0 ;;
35522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523for as_dir in $PATH
35524do
35525 IFS=$as_save_IFS
35526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35528 done
cristy3ed852e2009-09-05 21:47:34 +000035529IFS=$as_save_IFS
35530
35531 ;;
35532esac
35533# We did not find ourselves, most probably we were run as `sh COMMAND'
35534# in which case we are not to be found in the path.
35535if test "x$as_myself" = x; then
35536 as_myself=$0
35537fi
35538if test ! -f "$as_myself"; then
35539 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035540 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035541fi
35542
cristy8b350f62009-11-15 23:12:43 +000035543# Unset variables that we do not need and which cause bugs (e.g. in
35544# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35545# suppresses any "Segmentation fault" message there. '((' could
35546# trigger a bug in pdksh 5.2.14.
35547for as_var in BASH_ENV ENV MAIL MAILPATH
35548do eval test x\${$as_var+set} = xset \
35549 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035550done
35551PS1='$ '
35552PS2='> '
35553PS4='+ '
35554
35555# NLS nuisances.
35556LC_ALL=C
35557export LC_ALL
35558LANGUAGE=C
35559export LANGUAGE
35560
cristy8b350f62009-11-15 23:12:43 +000035561# CDPATH.
35562(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35563
35564
cristy98dddb52010-11-04 00:30:15 +000035565# as_fn_error STATUS ERROR [LINENO LOG_FD]
35566# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035567# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35568# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035569# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035570as_fn_error ()
35571{
cristy98dddb52010-11-04 00:30:15 +000035572 as_status=$1; test $as_status -eq 0 && as_status=1
35573 if test "$4"; then
35574 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35575 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035576 fi
cristy98dddb52010-11-04 00:30:15 +000035577 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035578 as_fn_exit $as_status
35579} # as_fn_error
35580
35581
35582# as_fn_set_status STATUS
35583# -----------------------
35584# Set $? to STATUS, without forking.
35585as_fn_set_status ()
35586{
35587 return $1
35588} # as_fn_set_status
35589
35590# as_fn_exit STATUS
35591# -----------------
35592# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35593as_fn_exit ()
35594{
35595 set +e
35596 as_fn_set_status $1
35597 exit $1
35598} # as_fn_exit
35599
35600# as_fn_unset VAR
35601# ---------------
35602# Portably unset VAR.
35603as_fn_unset ()
35604{
35605 { eval $1=; unset $1;}
35606}
35607as_unset=as_fn_unset
35608# as_fn_append VAR VALUE
35609# ----------------------
35610# Append the text in VALUE to the end of the definition contained in VAR. Take
35611# advantage of any shell optimizations that allow amortized linear growth over
35612# repeated appends, instead of the typical quadratic growth present in naive
35613# implementations.
35614if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35615 eval 'as_fn_append ()
35616 {
35617 eval $1+=\$2
35618 }'
35619else
35620 as_fn_append ()
35621 {
35622 eval $1=\$$1\$2
35623 }
35624fi # as_fn_append
35625
35626# as_fn_arith ARG...
35627# ------------------
35628# Perform arithmetic evaluation on the ARGs, and store the result in the
35629# global $as_val. Take advantage of shells that can avoid forks. The arguments
35630# must be portable across $(()) and expr.
35631if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35632 eval 'as_fn_arith ()
35633 {
35634 as_val=$(( $* ))
35635 }'
35636else
35637 as_fn_arith ()
35638 {
35639 as_val=`expr "$@" || test $? -eq 1`
35640 }
35641fi # as_fn_arith
35642
35643
cristy3ed852e2009-09-05 21:47:34 +000035644if expr a : '\(a\)' >/dev/null 2>&1 &&
35645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35646 as_expr=expr
35647else
35648 as_expr=false
35649fi
35650
35651if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35652 as_basename=basename
35653else
35654 as_basename=false
35655fi
35656
cristy8b350f62009-11-15 23:12:43 +000035657if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35658 as_dirname=dirname
35659else
35660 as_dirname=false
35661fi
cristy3ed852e2009-09-05 21:47:34 +000035662
cristy3ed852e2009-09-05 21:47:34 +000035663as_me=`$as_basename -- "$0" ||
35664$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35665 X"$0" : 'X\(//\)$' \| \
35666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35667$as_echo X/"$0" |
35668 sed '/^.*\/\([^/][^/]*\)\/*$/{
35669 s//\1/
35670 q
35671 }
35672 /^X\/\(\/\/\)$/{
35673 s//\1/
35674 q
35675 }
35676 /^X\/\(\/\).*/{
35677 s//\1/
35678 q
35679 }
35680 s/.*/./; q'`
35681
cristy8b350f62009-11-15 23:12:43 +000035682# Avoid depending upon Character Ranges.
35683as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35684as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35685as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35686as_cr_digits='0123456789'
35687as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035688
35689ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035690case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035691-n*)
cristy8b350f62009-11-15 23:12:43 +000035692 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035694 xy) ECHO_C='\c';;
35695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35696 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035697 esac;;
35698*)
35699 ECHO_N='-n';;
35700esac
cristy3ed852e2009-09-05 21:47:34 +000035701
35702rm -f conf$$ conf$$.exe conf$$.file
35703if test -d conf$$.dir; then
35704 rm -f conf$$.dir/conf$$.file
35705else
35706 rm -f conf$$.dir
35707 mkdir conf$$.dir 2>/dev/null
35708fi
35709if (echo >conf$$.file) 2>/dev/null; then
35710 if ln -s conf$$.file conf$$ 2>/dev/null; then
35711 as_ln_s='ln -s'
35712 # ... but there are two gotchas:
35713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35715 # In both cases, we have to default to `cp -p'.
35716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35717 as_ln_s='cp -p'
35718 elif ln conf$$.file conf$$ 2>/dev/null; then
35719 as_ln_s=ln
35720 else
35721 as_ln_s='cp -p'
35722 fi
35723else
35724 as_ln_s='cp -p'
35725fi
35726rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35727rmdir conf$$.dir 2>/dev/null
35728
cristy8b350f62009-11-15 23:12:43 +000035729
35730# as_fn_mkdir_p
35731# -------------
35732# Create "$as_dir" as a directory, including parents if necessary.
35733as_fn_mkdir_p ()
35734{
35735
35736 case $as_dir in #(
35737 -*) as_dir=./$as_dir;;
35738 esac
35739 test -d "$as_dir" || eval $as_mkdir_p || {
35740 as_dirs=
35741 while :; do
35742 case $as_dir in #(
35743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35744 *) as_qdir=$as_dir;;
35745 esac
35746 as_dirs="'$as_qdir' $as_dirs"
35747 as_dir=`$as_dirname -- "$as_dir" ||
35748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35749 X"$as_dir" : 'X\(//\)[^/]' \| \
35750 X"$as_dir" : 'X\(//\)$' \| \
35751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35752$as_echo X"$as_dir" |
35753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35754 s//\1/
35755 q
35756 }
35757 /^X\(\/\/\)[^/].*/{
35758 s//\1/
35759 q
35760 }
35761 /^X\(\/\/\)$/{
35762 s//\1/
35763 q
35764 }
35765 /^X\(\/\).*/{
35766 s//\1/
35767 q
35768 }
35769 s/.*/./; q'`
35770 test -d "$as_dir" && break
35771 done
35772 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035773 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035774
35775
35776} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035777if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035778 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035779else
35780 test -d ./-p && rmdir ./-p
35781 as_mkdir_p=false
35782fi
35783
35784if test -x / >/dev/null 2>&1; then
35785 as_test_x='test -x'
35786else
35787 if ls -dL / >/dev/null 2>&1; then
35788 as_ls_L_option=L
35789 else
35790 as_ls_L_option=
35791 fi
35792 as_test_x='
35793 eval sh -c '\''
35794 if test -d "$1"; then
35795 test -d "$1/.";
35796 else
cristy8b350f62009-11-15 23:12:43 +000035797 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000035798 -*)set "./$1";;
35799 esac;
cristy8b350f62009-11-15 23:12:43 +000035800 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000035801 ???[sx]*):;;*)false;;esac;fi
35802 '\'' sh
35803 '
35804fi
35805as_executable_p=$as_test_x
35806
35807# Sed expression to map a string onto a valid CPP name.
35808as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35809
35810# Sed expression to map a string onto a valid variable name.
35811as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35812
35813
35814exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035815## ----------------------------------- ##
35816## Main body of $CONFIG_STATUS script. ##
35817## ----------------------------------- ##
35818_ASEOF
35819test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035820
cristy8b350f62009-11-15 23:12:43 +000035821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35822# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035823# report actual input values of CONFIG_FILES etc. instead of their
35824# values after options handling.
35825ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035826This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000035827generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035828
35829 CONFIG_FILES = $CONFIG_FILES
35830 CONFIG_HEADERS = $CONFIG_HEADERS
35831 CONFIG_LINKS = $CONFIG_LINKS
35832 CONFIG_COMMANDS = $CONFIG_COMMANDS
35833 $ $0 $@
35834
35835on `(hostname || uname -n) 2>/dev/null | sed 1q`
35836"
35837
35838_ACEOF
35839
35840case $ac_config_files in *"
35841"*) set x $ac_config_files; shift; ac_config_files=$*;;
35842esac
35843
35844case $ac_config_headers in *"
35845"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35846esac
35847
35848
35849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35850# Files that config.status was made for.
35851config_files="$ac_config_files"
35852config_headers="$ac_config_headers"
35853config_commands="$ac_config_commands"
35854
35855_ACEOF
35856
35857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35858ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035859\`$as_me' instantiates files and other configuration actions
35860from templates according to the current configuration. Unless the files
35861and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035862
cristy8b350f62009-11-15 23:12:43 +000035863Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035864
35865 -h, --help print this help, then exit
35866 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035867 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035868 -q, --quiet, --silent
35869 do not print progress messages
35870 -d, --debug don't remove temporary files
35871 --recheck update $as_me by reconfiguring in the same conditions
35872 --file=FILE[:TEMPLATE]
35873 instantiate the configuration file FILE
35874 --header=FILE[:TEMPLATE]
35875 instantiate the configuration header FILE
35876
35877Configuration files:
35878$config_files
35879
35880Configuration headers:
35881$config_headers
35882
35883Configuration commands:
35884$config_commands
35885
cristy8b350f62009-11-15 23:12:43 +000035886Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035887
35888_ACEOF
35889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035890ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035891ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035892ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000035893configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000035894 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035895
cristy98dddb52010-11-04 00:30:15 +000035896Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035897This config.status script is free software; the Free Software Foundation
35898gives unlimited permission to copy, distribute and modify it."
35899
35900ac_pwd='$ac_pwd'
35901srcdir='$srcdir'
35902INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035903MKDIR_P='$MKDIR_P'
35904AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035905test -n "\$AWK" || AWK=awk
35906_ACEOF
35907
35908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35909# The default lists apply if the user does not specify any file.
35910ac_need_defaults=:
35911while test $# != 0
35912do
35913 case $1 in
cristyda16f162011-02-19 23:52:17 +000035914 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35917 ac_shift=:
35918 ;;
cristyda16f162011-02-19 23:52:17 +000035919 --*=)
35920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35921 ac_optarg=
35922 ac_shift=:
35923 ;;
cristy3ed852e2009-09-05 21:47:34 +000035924 *)
35925 ac_option=$1
35926 ac_optarg=$2
35927 ac_shift=shift
35928 ;;
35929 esac
35930
35931 case $ac_option in
35932 # Handling of the options.
35933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35934 ac_cs_recheck=: ;;
35935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35936 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035937 --config | --confi | --conf | --con | --co | --c )
35938 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035939 --debug | --debu | --deb | --de | --d | -d )
35940 debug=: ;;
35941 --file | --fil | --fi | --f )
35942 $ac_shift
35943 case $ac_optarg in
35944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035945 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035946 esac
cristy8b350f62009-11-15 23:12:43 +000035947 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035948 ac_need_defaults=false;;
35949 --header | --heade | --head | --hea )
35950 $ac_shift
35951 case $ac_optarg in
35952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35953 esac
cristy8b350f62009-11-15 23:12:43 +000035954 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035955 ac_need_defaults=false;;
35956 --he | --h)
35957 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035958 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035959Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035960 --help | --hel | -h )
35961 $as_echo "$ac_cs_usage"; exit ;;
35962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35964 ac_cs_silent=: ;;
35965
35966 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035967 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035968Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035969
cristy8b350f62009-11-15 23:12:43 +000035970 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035971 ac_need_defaults=false ;;
35972
35973 esac
35974 shift
35975done
35976
35977ac_configure_extra_args=
35978
35979if $ac_cs_silent; then
35980 exec 6>/dev/null
35981 ac_configure_extra_args="$ac_configure_extra_args --silent"
35982fi
35983
35984_ACEOF
35985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35986if \$ac_cs_recheck; then
35987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35988 shift
35989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35990 CONFIG_SHELL='$SHELL'
35991 export CONFIG_SHELL
35992 exec "\$@"
35993fi
35994
35995_ACEOF
35996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35997exec 5>>config.log
35998{
35999 echo
36000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36001## Running $as_me. ##
36002_ASBOX
36003 $as_echo "$ac_log"
36004} >&5
36005
36006_ACEOF
36007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036008#
36009# INIT-COMMANDS
36010#
36011PACKAGE="$PACKAGE"
36012AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36013
36014
36015# The HP-UX ksh and POSIX shell print the target directory to stdout
36016# if CDPATH is set.
36017(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36018
36019sed_quote_subst='$sed_quote_subst'
36020double_quote_subst='$double_quote_subst'
36021delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036022SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36023Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36024GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36025EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36026FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36027SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36028ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36029LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36030macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36031macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36032AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36033DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36034OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36035enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36036enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36037pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36038enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36039host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36040host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36041host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36042build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36043build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36044build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36045NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36046LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36047max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36048ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36049exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36050lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36051lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36052lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036053lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36054lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036055reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36056reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36057deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36058file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036059file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36060want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36061sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036062AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36063AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036064archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36078lt_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 +000036079nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36080lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036081objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36082MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36083lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036084lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036085lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036086lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36087lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36088need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036089MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036090DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36091NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36092LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36093OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36094OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36095libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36096shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36097extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36098archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36099enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36100export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36101whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36102compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36103old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36104old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36105archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36106archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36107module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36108module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36109with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36110allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36111no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36112hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36113hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36114hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36115hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36116hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36117hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36118hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36119hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36120inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36121link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036122always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36123export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36124exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36125include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36126prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036127postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036128file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36129variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36130need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36131need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36132version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36133runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36134shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36135shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36136libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36137library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36138soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36139install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36140postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36141postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36142finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36143finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36144hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36145sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36146sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36147hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36148enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36149enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36150enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36151old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36152striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36153compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36154predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36155postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36156predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36157postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36158compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36159LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36160reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36161reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36162old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36163compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36164GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36165lt_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 +000036166lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036167lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036168lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36169lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36170archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36171enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36172export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36173whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36174compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36175old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36176old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36177archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36178archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36179module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36180module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36181with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36182allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36183no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36184hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36185hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36186hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36187hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36188hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36189hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36190hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36191hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36192inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36193link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036194always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36195export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36197include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36198prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036199postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036200file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36201hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36202compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36203predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36204postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36205predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36206postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36207compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036208
36209LTCC='$LTCC'
36210LTCFLAGS='$LTCFLAGS'
36211compiler='$compiler_DEFAULT'
36212
cristy0c60a692010-11-04 01:09:47 +000036213# A function that is used when there is no print builtin or printf.
36214func_fallback_echo ()
36215{
36216 eval 'cat <<_LTECHO_EOF
36217\$1
36218_LTECHO_EOF'
36219}
36220
cristy73bd4a52010-10-05 11:24:23 +000036221# Quote evaled strings.
36222for var in SED \
36223GREP \
36224EGREP \
36225FGREP \
cristy0c60a692010-11-04 01:09:47 +000036226SHELL \
36227ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036228LD \
cristy0c60a692010-11-04 01:09:47 +000036229AS \
36230DLLTOOL \
36231OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000036232NM \
36233LN_S \
36234lt_SP2NL \
36235lt_NL2SP \
36236reload_flag \
36237deplibs_check_method \
36238file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036239file_magic_glob \
36240want_nocaseglob \
36241sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036242AR \
36243AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036244archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036245STRIP \
36246RANLIB \
36247CC \
36248CFLAGS \
36249compiler \
36250lt_cv_sys_global_symbol_pipe \
36251lt_cv_sys_global_symbol_to_cdecl \
36252lt_cv_sys_global_symbol_to_c_name_address \
36253lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036254nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036255lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036256lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036257lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036258lt_prog_compiler_static \
36259lt_cv_prog_compiler_c_o \
36260need_locks \
cristyda16f162011-02-19 23:52:17 +000036261MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036262DSYMUTIL \
36263NMEDIT \
36264LIPO \
36265OTOOL \
36266OTOOL64 \
36267shrext_cmds \
36268export_dynamic_flag_spec \
36269whole_archive_flag_spec \
36270compiler_needs_object \
36271with_gnu_ld \
36272allow_undefined_flag \
36273no_undefined_flag \
36274hardcode_libdir_flag_spec \
36275hardcode_libdir_flag_spec_ld \
36276hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036277exclude_expsyms \
36278include_expsyms \
36279file_list_spec \
36280variables_saved_for_relink \
36281libname_spec \
36282library_names_spec \
36283soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036284install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036285finish_eval \
36286old_striplib \
36287striplib \
36288compiler_lib_search_dirs \
36289predep_objects \
36290postdep_objects \
36291predeps \
36292postdeps \
36293compiler_lib_search_path \
36294LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036295reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036296compiler_CXX \
36297lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036298lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036299lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036300lt_prog_compiler_static_CXX \
36301lt_cv_prog_compiler_c_o_CXX \
36302export_dynamic_flag_spec_CXX \
36303whole_archive_flag_spec_CXX \
36304compiler_needs_object_CXX \
36305with_gnu_ld_CXX \
36306allow_undefined_flag_CXX \
36307no_undefined_flag_CXX \
36308hardcode_libdir_flag_spec_CXX \
36309hardcode_libdir_flag_spec_ld_CXX \
36310hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036311exclude_expsyms_CXX \
36312include_expsyms_CXX \
36313file_list_spec_CXX \
36314compiler_lib_search_dirs_CXX \
36315predep_objects_CXX \
36316postdep_objects_CXX \
36317predeps_CXX \
36318postdeps_CXX \
36319compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036320 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036321 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036322 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036323 ;;
36324 *)
36325 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36326 ;;
36327 esac
36328done
36329
36330# Double-quote double-evaled strings.
36331for var in reload_cmds \
36332old_postinstall_cmds \
36333old_postuninstall_cmds \
36334old_archive_cmds \
36335extract_expsyms_cmds \
36336old_archive_from_new_cmds \
36337old_archive_from_expsyms_cmds \
36338archive_cmds \
36339archive_expsym_cmds \
36340module_cmds \
36341module_expsym_cmds \
36342export_symbols_cmds \
36343prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036344postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036345postinstall_cmds \
36346postuninstall_cmds \
36347finish_cmds \
36348sys_lib_search_path_spec \
36349sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036350reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036351old_archive_cmds_CXX \
36352old_archive_from_new_cmds_CXX \
36353old_archive_from_expsyms_cmds_CXX \
36354archive_cmds_CXX \
36355archive_expsym_cmds_CXX \
36356module_cmds_CXX \
36357module_expsym_cmds_CXX \
36358export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036359prelink_cmds_CXX \
36360postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036362 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036364 ;;
36365 *)
36366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36367 ;;
36368 esac
36369done
36370
cristy73bd4a52010-10-05 11:24:23 +000036371ac_aux_dir='$ac_aux_dir'
36372xsi_shell='$xsi_shell'
36373lt_shell_append='$lt_shell_append'
36374
36375# See if we are running on zsh, and set the options which allow our
36376# commands through without removal of \ escapes INIT.
36377if test -n "\${ZSH_VERSION+set}" ; then
36378 setopt NO_GLOB_SUBST
36379fi
36380
36381
36382 PACKAGE='$PACKAGE'
36383 VERSION='$VERSION'
36384 TIMESTAMP='$TIMESTAMP'
36385 RM='$RM'
36386 ofile='$ofile'
36387
36388
36389
36390
36391
36392
cristy3ed852e2009-09-05 21:47:34 +000036393_ACEOF
36394
36395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36396
36397# Handling of arguments.
36398for ac_config_target in $ac_config_targets
36399do
36400 case $ac_config_target in
36401 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036402 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036403 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36404 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36405 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36406 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36407 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036408 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036409 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36410 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36411 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36412 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36413 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036414 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036415 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36416 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036417 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36418 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36419 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036420 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36421 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36422 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36423 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36424 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36425 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36426 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36427 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36428 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36429 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36430 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36431 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36432 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36433 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36434 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36435 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36436 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036437 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36438 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036439 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36440 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036441 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36442 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036443 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036444 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36445 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36446
cristy98dddb52010-11-04 00:30:15 +000036447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036448 esac
36449done
36450
36451
36452# If the user did not use the arguments to specify the items to instantiate,
36453# then the envvar interface is used. Set only those that are not.
36454# We use the long form for the default assignment because of an extremely
36455# bizarre bug on SunOS 4.1.3.
36456if $ac_need_defaults; then
36457 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36458 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36459 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36460fi
36461
36462# Have a temporary directory for convenience. Make it in the build tree
36463# simply because there is no reason against having it here, and in addition,
36464# creating and moving files from /tmp can sometimes cause problems.
36465# Hook for its removal unless debugging.
36466# Note that there is a small window in which the directory will not be cleaned:
36467# after its creation but before its name has been assigned to `$tmp'.
36468$debug ||
36469{
cristyda16f162011-02-19 23:52:17 +000036470 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036471 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036472 : "${ac_tmp:=$tmp}"
36473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036474' 0
cristy8b350f62009-11-15 23:12:43 +000036475 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036476}
36477# Create a (secure) tmp directory for tmp files.
36478
36479{
36480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036481 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036482} ||
36483{
36484 tmp=./conf$$-$RANDOM
36485 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036486} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036487ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036488
36489# Set up the scripts for CONFIG_FILES section.
36490# No need to generate them if there are no CONFIG_FILES.
36491# This happens for instance with `./config.status config.h'.
36492if test -n "$CONFIG_FILES"; then
36493
36494
cristy8b350f62009-11-15 23:12:43 +000036495ac_cr=`echo X | tr X '\015'`
36496# On cygwin, bash can eat \r inside `` if the user requested igncr.
36497# But we know of no other shell where ac_cr would be empty at this
36498# point, so we can use a bashism as a fallback.
36499if test "x$ac_cr" = x; then
36500 eval ac_cr=\$\'\\r\'
36501fi
cristy3ed852e2009-09-05 21:47:34 +000036502ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36503if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036504 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036505else
36506 ac_cs_awk_cr=$ac_cr
36507fi
36508
cristyda16f162011-02-19 23:52:17 +000036509echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036510_ACEOF
36511
36512
36513{
36514 echo "cat >conf$$subs.awk <<_ACEOF" &&
36515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36516 echo "_ACEOF"
36517} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36519ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036520ac_delim='%!_!# '
36521for ac_last_try in false false false false false :; do
36522 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036524
36525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36526 if test $ac_delim_n = $ac_delim_num; then
36527 break
36528 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036530 else
36531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36532 fi
36533done
36534rm -f conf$$subs.sh
36535
36536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036537cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036538_ACEOF
36539sed -n '
36540h
36541s/^/S["/; s/!.*/"]=/
36542p
36543g
36544s/^[^!]*!//
36545:repl
36546t repl
36547s/'"$ac_delim"'$//
36548t delim
36549:nl
36550h
cristycd4c5312009-11-22 01:19:08 +000036551s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036552t more1
36553s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36554p
36555n
36556b repl
36557:more1
36558s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36559p
36560g
36561s/.\{148\}//
36562t nl
36563:delim
36564h
cristycd4c5312009-11-22 01:19:08 +000036565s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036566t more2
36567s/["\\]/\\&/g; s/^/"/; s/$/"/
36568p
36569b
36570:more2
36571s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36572p
36573g
36574s/.\{148\}//
36575t delim
36576' <conf$$subs.awk | sed '
36577/^[^""]/{
36578 N
36579 s/\n//
36580}
36581' >>$CONFIG_STATUS || ac_write_fail=1
36582rm -f conf$$subs.awk
36583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36584_ACAWK
cristyda16f162011-02-19 23:52:17 +000036585cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036586 for (key in S) S_is_set[key] = 1
36587 FS = ""
36588
36589}
36590{
36591 line = $ 0
36592 nfields = split(line, field, "@")
36593 substed = 0
36594 len = length(field[1])
36595 for (i = 2; i < nfields; i++) {
36596 key = field[i]
36597 keylen = length(key)
36598 if (S_is_set[key]) {
36599 value = S[key]
36600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36601 len += length(value) + length(field[++i])
36602 substed = 1
36603 } else
36604 len += 1 + keylen
36605 }
36606
36607 print line
36608}
36609
36610_ACAWK
36611_ACEOF
36612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36613if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36615else
36616 cat
cristyda16f162011-02-19 23:52:17 +000036617fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036619_ACEOF
36620
cristy98dddb52010-11-04 00:30:15 +000036621# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36622# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036623# trailing colons and then remove the whole line if VPATH becomes empty
36624# (actually we leave an empty line to preserve line numbers).
36625if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36627h
36628s///
36629s/^/:/
36630s/[ ]*$/:/
36631s/:\$(srcdir):/:/g
36632s/:\${srcdir}:/:/g
36633s/:@srcdir@:/:/g
36634s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036635s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036636x
36637s/\(=[ ]*\).*/\1/
36638G
36639s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036640s/^[^=]*=[ ]*$//
36641}'
36642fi
36643
36644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36645fi # test -n "$CONFIG_FILES"
36646
36647# Set up the scripts for CONFIG_HEADERS section.
36648# No need to generate them if there are no CONFIG_HEADERS.
36649# This happens for instance with `./config.status Makefile'.
36650if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036651cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036652BEGIN {
36653_ACEOF
36654
36655# Transform confdefs.h into an awk script `defines.awk', embedded as
36656# here-document in config.status, that substitutes the proper values into
36657# config.h.in to produce config.h.
36658
36659# Create a delimiter string that does not exist in confdefs.h, to ease
36660# handling of long lines.
36661ac_delim='%!_!# '
36662for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36664 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036665 break
36666 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036668 else
36669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36670 fi
36671done
36672
36673# For the awk script, D is an array of macro values keyed by name,
36674# likewise P contains macro parameters if any. Preserve backslash
36675# newline sequences.
36676
36677ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36678sed -n '
36679s/.\{148\}/&'"$ac_delim"'/g
36680t rset
36681:rset
36682s/^[ ]*#[ ]*define[ ][ ]*/ /
36683t def
36684d
36685:def
36686s/\\$//
36687t bsnl
36688s/["\\]/\\&/g
36689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36690D["\1"]=" \3"/p
36691s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36692d
36693:bsnl
36694s/["\\]/\\&/g
36695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36696D["\1"]=" \3\\\\\\n"\\/p
36697t cont
36698s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36699t cont
36700d
36701:cont
36702n
36703s/.\{148\}/&'"$ac_delim"'/g
36704t clear
36705:clear
36706s/\\$//
36707t bsnlc
36708s/["\\]/\\&/g; s/^/"/; s/$/"/p
36709d
36710:bsnlc
36711s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36712b cont
36713' <confdefs.h | sed '
36714s/'"$ac_delim"'/"\\\
36715"/g' >>$CONFIG_STATUS || ac_write_fail=1
36716
36717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36718 for (key in D) D_is_set[key] = 1
36719 FS = ""
36720}
36721/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36722 line = \$ 0
36723 split(line, arg, " ")
36724 if (arg[1] == "#") {
36725 defundef = arg[2]
36726 mac1 = arg[3]
36727 } else {
36728 defundef = substr(arg[1], 2)
36729 mac1 = arg[2]
36730 }
36731 split(mac1, mac2, "(") #)
36732 macro = mac2[1]
36733 prefix = substr(line, 1, index(line, defundef) - 1)
36734 if (D_is_set[macro]) {
36735 # Preserve the white space surrounding the "#".
36736 print prefix "define", macro P[macro] D[macro]
36737 next
36738 } else {
36739 # Replace #undef with comments. This is necessary, for example,
36740 # in the case of _POSIX_SOURCE, which is predefined and required
36741 # on some systems where configure will not decide to define it.
36742 if (defundef == "undef") {
36743 print "/*", prefix defundef, macro, "*/"
36744 next
36745 }
36746 }
36747}
36748{ print }
36749_ACAWK
36750_ACEOF
36751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036753fi # test -n "$CONFIG_HEADERS"
36754
36755
36756eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36757shift
36758for ac_tag
36759do
36760 case $ac_tag in
36761 :[FHLC]) ac_mode=$ac_tag; continue;;
36762 esac
36763 case $ac_mode$ac_tag in
36764 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036766 :[FH]-) ac_tag=-:-;;
36767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36768 esac
36769 ac_save_IFS=$IFS
36770 IFS=:
36771 set x $ac_tag
36772 IFS=$ac_save_IFS
36773 shift
36774 ac_file=$1
36775 shift
36776
36777 case $ac_mode in
36778 :L) ac_source=$1;;
36779 :[FH])
36780 ac_file_inputs=
36781 for ac_f
36782 do
36783 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036784 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036785 *) # Look for the file first in the build tree, then in the source tree
36786 # (if the path is not absolute). The absolute path cannot be DOS-style,
36787 # because $ac_f cannot contain `:'.
36788 test -f "$ac_f" ||
36789 case $ac_f in
36790 [\\/$]*) false;;
36791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36792 esac ||
cristy98dddb52010-11-04 00:30:15 +000036793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036794 esac
36795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036796 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036797 done
36798
36799 # Let's still pretend it is `configure' which instantiates (i.e., don't
36800 # use $as_me), people would be surprised to read:
36801 # /* config.h. Generated by config.status. */
36802 configure_input='Generated from '`
36803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36804 `' by configure.'
36805 if test x"$ac_file" != x-; then
36806 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036808$as_echo "$as_me: creating $ac_file" >&6;}
36809 fi
36810 # Neutralize special characters interpreted by sed in replacement strings.
36811 case $configure_input in #(
36812 *\&* | *\|* | *\\* )
36813 ac_sed_conf_input=`$as_echo "$configure_input" |
36814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36815 *) ac_sed_conf_input=$configure_input;;
36816 esac
36817
36818 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036821 esac
36822 ;;
36823 esac
36824
36825 ac_dir=`$as_dirname -- "$ac_file" ||
36826$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36827 X"$ac_file" : 'X\(//\)[^/]' \| \
36828 X"$ac_file" : 'X\(//\)$' \| \
36829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36830$as_echo X"$ac_file" |
36831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36832 s//\1/
36833 q
36834 }
36835 /^X\(\/\/\)[^/].*/{
36836 s//\1/
36837 q
36838 }
36839 /^X\(\/\/\)$/{
36840 s//\1/
36841 q
36842 }
36843 /^X\(\/\).*/{
36844 s//\1/
36845 q
36846 }
36847 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036848 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036849 ac_builddir=.
36850
36851case "$ac_dir" in
36852.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36853*)
36854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36855 # A ".." for each directory in $ac_dir_suffix.
36856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36857 case $ac_top_builddir_sub in
36858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36860 esac ;;
36861esac
36862ac_abs_top_builddir=$ac_pwd
36863ac_abs_builddir=$ac_pwd$ac_dir_suffix
36864# for backward compatibility:
36865ac_top_builddir=$ac_top_build_prefix
36866
36867case $srcdir in
36868 .) # We are building in place.
36869 ac_srcdir=.
36870 ac_top_srcdir=$ac_top_builddir_sub
36871 ac_abs_top_srcdir=$ac_pwd ;;
36872 [\\/]* | ?:[\\/]* ) # Absolute name.
36873 ac_srcdir=$srcdir$ac_dir_suffix;
36874 ac_top_srcdir=$srcdir
36875 ac_abs_top_srcdir=$srcdir ;;
36876 *) # Relative name.
36877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36878 ac_top_srcdir=$ac_top_build_prefix$srcdir
36879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36880esac
36881ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36882
36883
36884 case $ac_mode in
36885 :F)
36886 #
36887 # CONFIG_FILE
36888 #
36889
36890 case $INSTALL in
36891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36893 esac
cristy73bd4a52010-10-05 11:24:23 +000036894 ac_MKDIR_P=$MKDIR_P
36895 case $MKDIR_P in
36896 [\\/$]* | ?:[\\/]* ) ;;
36897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36898 esac
cristy3ed852e2009-09-05 21:47:34 +000036899_ACEOF
36900
36901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36902# If the template does not know about datarootdir, expand it.
36903# FIXME: This hack should be removed a few years after 2.60.
36904ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036905ac_sed_dataroot='
36906/datarootdir/ {
36907 p
36908 q
36909}
36910/@datadir@/p
36911/@docdir@/p
36912/@infodir@/p
36913/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036914/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036915case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36916*datarootdir*) ac_datarootdir_seen=yes;;
36917*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036919$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36920_ACEOF
36921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36922 ac_datarootdir_hack='
36923 s&@datadir@&$datadir&g
36924 s&@docdir@&$docdir&g
36925 s&@infodir@&$infodir&g
36926 s&@localedir@&$localedir&g
36927 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036928 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036929esac
36930_ACEOF
36931
36932# Neutralize VPATH when `$srcdir' = `.'.
36933# Shell code in configure.ac might set extrasub.
36934# FIXME: do we really want to maintain this feature?
36935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36936ac_sed_extra="$ac_vpsub
36937$extrasub
36938_ACEOF
36939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36940:t
36941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36942s|@configure_input@|$ac_sed_conf_input|;t t
36943s&@top_builddir@&$ac_top_builddir_sub&;t t
36944s&@top_build_prefix@&$ac_top_build_prefix&;t t
36945s&@srcdir@&$ac_srcdir&;t t
36946s&@abs_srcdir@&$ac_abs_srcdir&;t t
36947s&@top_srcdir@&$ac_top_srcdir&;t t
36948s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36949s&@builddir@&$ac_builddir&;t t
36950s&@abs_builddir@&$ac_abs_builddir&;t t
36951s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36952s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036953s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036954$ac_datarootdir_hack
36955"
cristyda16f162011-02-19 23:52:17 +000036956eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036958
36959test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36962 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036964which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036965$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036966which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036967
cristyda16f162011-02-19 23:52:17 +000036968 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036969 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036972 esac \
cristy98dddb52010-11-04 00:30:15 +000036973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036974 ;;
36975 :H)
36976 #
36977 # CONFIG_HEADER
36978 #
36979 if test x"$ac_file" != x-; then
36980 {
36981 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36983 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036986 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036987$as_echo "$as_me: $ac_file is unchanged" >&6;}
36988 else
36989 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036990 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036992 fi
36993 else
36994 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036996 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036997 fi
cristy73bd4a52010-10-05 11:24:23 +000036998# Compute "$ac_file"'s index in $config_headers.
36999_am_arg="$ac_file"
37000_am_stamp_count=1
37001for _am_header in $config_headers :; do
37002 case $_am_header in
37003 $_am_arg | $_am_arg:* )
37004 break ;;
37005 * )
37006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37007 esac
37008done
37009echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37010$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37011 X"$_am_arg" : 'X\(//\)[^/]' \| \
37012 X"$_am_arg" : 'X\(//\)$' \| \
37013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37014$as_echo X"$_am_arg" |
37015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37016 s//\1/
37017 q
37018 }
37019 /^X\(\/\/\)[^/].*/{
37020 s//\1/
37021 q
37022 }
37023 /^X\(\/\/\)$/{
37024 s//\1/
37025 q
37026 }
37027 /^X\(\/\).*/{
37028 s//\1/
37029 q
37030 }
37031 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037032 ;;
37033
cristy8b350f62009-11-15 23:12:43 +000037034 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037035$as_echo "$as_me: executing $ac_file commands" >&6;}
37036 ;;
37037 esac
37038
37039
37040 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037041 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037042ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37043ac_prefix_conf_PKG=`echo MagickCore`
37044ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37045ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37046ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37047if test ".$ac_prefix_conf_INP" = "."; then
37048 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37049 case "$ac_file" in
37050 *.h) ac_prefix_conf_INP=$ac_file ;;
37051 *)
37052 esac
37053 test ".$ac_prefix_conf_INP" != "." && break
37054 done
37055fi
37056if test ".$ac_prefix_conf_INP" = "."; then
37057 case "$ac_prefix_conf_OUT" in
37058 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37059 ;;
37060 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37061 ;;
37062 *) ac_prefix_conf_INP=config.h
37063 ;;
37064 esac
37065fi
37066if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037067 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037068else
37069 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37070 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37071 fi fi
37072 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37073$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37074 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037075 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37076 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37077 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37078 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37079 $as_echo "#endif/" >> conftest.prefix
37080 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37081 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37082 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037083 # now executing _script on _DEF input to create _OUT output file
37084 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37085 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37086 echo ' ' >>$tmp/pconfig.h
37087 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37088
37089 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37090 echo ' ' >>$tmp/pconfig.h
37091 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37092 echo "#endif" >>$tmp/pconfig.h
37093 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37094 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37095$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37096 else
37097 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37098$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37099 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37100 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37101 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37102$as_echo X"$ac_prefix_conf_OUT" |
37103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37104 s//\1/
37105 q
37106 }
37107 /^X\(\/\/\)[^/].*/{
37108 s//\1/
37109 q
37110 }
37111 /^X\(\/\/\)$/{
37112 s//\1/
37113 q
37114 }
37115 /^X\(\/\).*/{
37116 s//\1/
37117 q
37118 }
37119 s/.*/./; q'`
37120 as_dir="$ac_dir"; as_fn_mkdir_p
37121 rm -f "$ac_prefix_conf_OUT"
37122 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37123 fi
37124 cp conftest.prefix _configs.sed
37125 else
cristy98dddb52010-11-04 00:30:15 +000037126 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 +000037127 fi
37128 rm -f conftest.*
37129fi
37130 ;;
37131 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37132 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37133 # are listed without --file. Let's play safe and only enable the eval
37134 # if we detect the quoting.
37135 case $CONFIG_FILES in
37136 *\'*) eval set x "$CONFIG_FILES" ;;
37137 *) set x $CONFIG_FILES ;;
37138 esac
37139 shift
37140 for mf
37141 do
37142 # Strip MF so we end up with the name of the file.
37143 mf=`echo "$mf" | sed -e 's/:.*$//'`
37144 # Check whether this is an Automake generated Makefile or not.
37145 # We used to match only the files named `Makefile.in', but
37146 # some people rename them; so instead we look at the file content.
37147 # Grep'ing the first line is not enough: some people post-process
37148 # each Makefile.in and add a new line on top of each file to say so.
37149 # Grep'ing the whole file is not good either: AIX grep has a line
37150 # limit of 2048, but all sed's we know have understand at least 4000.
37151 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37152 dirpart=`$as_dirname -- "$mf" ||
37153$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37154 X"$mf" : 'X\(//\)[^/]' \| \
37155 X"$mf" : 'X\(//\)$' \| \
37156 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37157$as_echo X"$mf" |
37158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37159 s//\1/
37160 q
37161 }
37162 /^X\(\/\/\)[^/].*/{
37163 s//\1/
37164 q
37165 }
37166 /^X\(\/\/\)$/{
37167 s//\1/
37168 q
37169 }
37170 /^X\(\/\).*/{
37171 s//\1/
37172 q
37173 }
37174 s/.*/./; q'`
37175 else
37176 continue
37177 fi
37178 # Extract the definition of DEPDIR, am__include, and am__quote
37179 # from the Makefile without running `make'.
37180 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37181 test -z "$DEPDIR" && continue
37182 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37183 test -z "am__include" && continue
37184 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37185 # When using ansi2knr, U may be empty or an underscore; expand it
37186 U=`sed -n 's/^U = //p' < "$mf"`
37187 # Find all dependency output files, they are included files with
37188 # $(DEPDIR) in their names. We invoke sed twice because it is the
37189 # simplest approach to changing $(DEPDIR) to its actual value in the
37190 # expansion.
37191 for file in `sed -n "
37192 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37193 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37194 # Make sure the directory exists.
37195 test -f "$dirpart/$file" && continue
37196 fdir=`$as_dirname -- "$file" ||
37197$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37198 X"$file" : 'X\(//\)[^/]' \| \
37199 X"$file" : 'X\(//\)$' \| \
37200 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37201$as_echo X"$file" |
37202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37203 s//\1/
37204 q
37205 }
37206 /^X\(\/\/\)[^/].*/{
37207 s//\1/
37208 q
37209 }
37210 /^X\(\/\/\)$/{
37211 s//\1/
37212 q
37213 }
37214 /^X\(\/\).*/{
37215 s//\1/
37216 q
37217 }
37218 s/.*/./; q'`
37219 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37220 # echo "creating $dirpart/$file"
37221 echo '# dummy' > "$dirpart/$file"
37222 done
37223 done
37224}
37225 ;;
37226 "libtool":C)
37227
37228 # See if we are running on zsh, and set the options which allow our
37229 # commands through without removal of \ escapes.
37230 if test -n "${ZSH_VERSION+set}" ; then
37231 setopt NO_GLOB_SUBST
37232 fi
37233
37234 cfgfile="${ofile}T"
37235 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37236 $RM "$cfgfile"
37237
37238 cat <<_LT_EOF >> "$cfgfile"
37239#! $SHELL
37240
37241# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37242# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37243# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37244# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37245#
37246# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000037247# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37248# Inc.
cristy73bd4a52010-10-05 11:24:23 +000037249# Written by Gordon Matzigkeit, 1996
37250#
37251# This file is part of GNU Libtool.
37252#
37253# GNU Libtool is free software; you can redistribute it and/or
37254# modify it under the terms of the GNU General Public License as
37255# published by the Free Software Foundation; either version 2 of
37256# the License, or (at your option) any later version.
37257#
37258# As a special exception to the GNU General Public License,
37259# if you distribute this file as part of a program or library that
37260# is built using GNU Libtool, you may include this file under the
37261# same distribution terms that you use for the rest of that program.
37262#
37263# GNU Libtool is distributed in the hope that it will be useful,
37264# but WITHOUT ANY WARRANTY; without even the implied warranty of
37265# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37266# GNU General Public License for more details.
37267#
37268# You should have received a copy of the GNU General Public License
37269# along with GNU Libtool; see the file COPYING. If not, a copy
37270# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37271# obtained by writing to the Free Software Foundation, Inc.,
37272# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37273
37274
37275# The names of the tagged configurations supported by this script.
37276available_tags="CXX "
37277
37278# ### BEGIN LIBTOOL CONFIG
37279
37280# A sed program that does not truncate output.
37281SED=$lt_SED
37282
37283# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37284Xsed="\$SED -e 1s/^X//"
37285
37286# A grep program that handles long lines.
37287GREP=$lt_GREP
37288
37289# An ERE matcher.
37290EGREP=$lt_EGREP
37291
37292# A literal string matcher.
37293FGREP=$lt_FGREP
37294
cristy0c60a692010-11-04 01:09:47 +000037295# Shell to use when invoking shell scripts.
37296SHELL=$lt_SHELL
37297
37298# An echo program that protects backslashes.
37299ECHO=$lt_ECHO
37300
cristy73bd4a52010-10-05 11:24:23 +000037301# Which release of libtool.m4 was used?
37302macro_version=$macro_version
37303macro_revision=$macro_revision
37304
37305# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037306AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037307
37308# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037309DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037310
37311# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037312OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037313
37314# Whether or not to build shared libraries.
37315build_libtool_libs=$enable_shared
37316
37317# Whether or not to build static libraries.
37318build_old_libs=$enable_static
37319
37320# What type of objects to build.
37321pic_mode=$pic_mode
37322
37323# Whether or not to optimize for fast installation.
37324fast_install=$enable_fast_install
37325
37326# The host system.
37327host_alias=$host_alias
37328host=$host
37329host_os=$host_os
37330
37331# The build system.
37332build_alias=$build_alias
37333build=$build
37334build_os=$build_os
37335
37336# A BSD- or MS-compatible name lister.
37337NM=$lt_NM
37338
37339# Whether we need soft or hard links.
37340LN_S=$lt_LN_S
37341
37342# What is the maximum length of a command?
37343max_cmd_len=$max_cmd_len
37344
37345# Object file suffix (normally "o").
37346objext=$ac_objext
37347
37348# Executable file suffix (normally "").
37349exeext=$exeext
37350
37351# whether the shell understands "unset".
37352lt_unset=$lt_unset
37353
37354# turn spaces into newlines.
37355SP2NL=$lt_lt_SP2NL
37356
37357# turn newlines into spaces.
37358NL2SP=$lt_lt_NL2SP
37359
cristyda16f162011-02-19 23:52:17 +000037360# convert \$build file names to \$host format.
37361to_host_file_cmd=$lt_cv_to_host_file_cmd
37362
37363# convert \$build files to toolchain format.
37364to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37365
cristy73bd4a52010-10-05 11:24:23 +000037366# Method to check whether dependent libraries are shared objects.
37367deplibs_check_method=$lt_deplibs_check_method
37368
cristyda16f162011-02-19 23:52:17 +000037369# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037370file_magic_cmd=$lt_file_magic_cmd
37371
cristyda16f162011-02-19 23:52:17 +000037372# How to find potential files when deplibs_check_method = "file_magic".
37373file_magic_glob=$lt_file_magic_glob
37374
37375# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37376want_nocaseglob=$lt_want_nocaseglob
37377
37378# Command to associate shared and link libraries.
37379sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37380
cristy73bd4a52010-10-05 11:24:23 +000037381# The archiver.
37382AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037383
37384# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037385AR_FLAGS=$lt_AR_FLAGS
37386
cristyda16f162011-02-19 23:52:17 +000037387# How to feed a file listing to the archiver.
37388archiver_list_spec=$lt_archiver_list_spec
37389
cristy73bd4a52010-10-05 11:24:23 +000037390# A symbol stripping program.
37391STRIP=$lt_STRIP
37392
37393# Commands used to install an old-style archive.
37394RANLIB=$lt_RANLIB
37395old_postinstall_cmds=$lt_old_postinstall_cmds
37396old_postuninstall_cmds=$lt_old_postuninstall_cmds
37397
cristy0c60a692010-11-04 01:09:47 +000037398# Whether to use a lock for old archive extraction.
37399lock_old_archive_extraction=$lock_old_archive_extraction
37400
cristy73bd4a52010-10-05 11:24:23 +000037401# A C compiler.
37402LTCC=$lt_CC
37403
37404# LTCC compiler flags.
37405LTCFLAGS=$lt_CFLAGS
37406
37407# Take the output of nm and produce a listing of raw symbols and C names.
37408global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37409
37410# Transform the output of nm in a proper C declaration.
37411global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37412
37413# Transform the output of nm in a C name address pair.
37414global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37415
37416# Transform the output of nm in a C name address pair when lib prefix is needed.
37417global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37418
cristyda16f162011-02-19 23:52:17 +000037419# Specify filename containing input files for \$NM.
37420nm_file_list_spec=$lt_nm_file_list_spec
37421
37422# The root where to search for dependent libraries,and in which our libraries should be installed.
37423lt_sysroot=$lt_sysroot
37424
cristy73bd4a52010-10-05 11:24:23 +000037425# The name of the directory that contains temporary libtool files.
37426objdir=$objdir
37427
cristy73bd4a52010-10-05 11:24:23 +000037428# Used to examine libraries when file_magic_cmd begins with "file".
37429MAGIC_CMD=$MAGIC_CMD
37430
37431# Must we lock files when doing compilation?
37432need_locks=$lt_need_locks
37433
cristyda16f162011-02-19 23:52:17 +000037434# Manifest tool.
37435MANIFEST_TOOL=$lt_MANIFEST_TOOL
37436
cristy73bd4a52010-10-05 11:24:23 +000037437# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37438DSYMUTIL=$lt_DSYMUTIL
37439
37440# Tool to change global to local symbols on Mac OS X.
37441NMEDIT=$lt_NMEDIT
37442
37443# Tool to manipulate fat objects and archives on Mac OS X.
37444LIPO=$lt_LIPO
37445
37446# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37447OTOOL=$lt_OTOOL
37448
37449# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37450OTOOL64=$lt_OTOOL64
37451
37452# Old archive suffix (normally "a").
37453libext=$libext
37454
37455# Shared library suffix (normally ".so").
37456shrext_cmds=$lt_shrext_cmds
37457
37458# The commands to extract the exported symbol list from a shared archive.
37459extract_expsyms_cmds=$lt_extract_expsyms_cmds
37460
37461# Variables whose values should be saved in libtool wrapper scripts and
37462# restored at link time.
37463variables_saved_for_relink=$lt_variables_saved_for_relink
37464
37465# Do we need the "lib" prefix for modules?
37466need_lib_prefix=$need_lib_prefix
37467
37468# Do we need a version for libraries?
37469need_version=$need_version
37470
37471# Library versioning type.
37472version_type=$version_type
37473
37474# Shared library runtime path variable.
37475runpath_var=$runpath_var
37476
37477# Shared library path variable.
37478shlibpath_var=$shlibpath_var
37479
37480# Is shlibpath searched before the hard-coded library search path?
37481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37482
37483# Format of library name prefix.
37484libname_spec=$lt_libname_spec
37485
37486# List of archive names. First name is the real one, the rest are links.
37487# The last name is the one that the linker finds with -lNAME
37488library_names_spec=$lt_library_names_spec
37489
37490# The coded name of the library, if different from the real name.
37491soname_spec=$lt_soname_spec
37492
cristy0c60a692010-11-04 01:09:47 +000037493# Permission mode override for installation of shared libraries.
37494install_override_mode=$lt_install_override_mode
37495
cristy73bd4a52010-10-05 11:24:23 +000037496# Command to use after installation of a shared archive.
37497postinstall_cmds=$lt_postinstall_cmds
37498
37499# Command to use after uninstallation of a shared archive.
37500postuninstall_cmds=$lt_postuninstall_cmds
37501
37502# Commands used to finish a libtool library installation in a directory.
37503finish_cmds=$lt_finish_cmds
37504
37505# As "finish_cmds", except a single script fragment to be evaled but
37506# not shown.
37507finish_eval=$lt_finish_eval
37508
37509# Whether we should hardcode library paths into libraries.
37510hardcode_into_libs=$hardcode_into_libs
37511
37512# Compile-time system search path for libraries.
37513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37514
37515# Run-time system search path for libraries.
37516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37517
37518# Whether dlopen is supported.
37519dlopen_support=$enable_dlopen
37520
37521# Whether dlopen of programs is supported.
37522dlopen_self=$enable_dlopen_self
37523
37524# Whether dlopen of statically linked programs is supported.
37525dlopen_self_static=$enable_dlopen_self_static
37526
37527# Commands to strip libraries.
37528old_striplib=$lt_old_striplib
37529striplib=$lt_striplib
37530
37531
37532# The linker used to build libraries.
37533LD=$lt_LD
37534
cristy0c60a692010-11-04 01:09:47 +000037535# How to create reloadable object files.
37536reload_flag=$lt_reload_flag
37537reload_cmds=$lt_reload_cmds
37538
cristy73bd4a52010-10-05 11:24:23 +000037539# Commands used to build an old-style archive.
37540old_archive_cmds=$lt_old_archive_cmds
37541
37542# A language specific compiler.
37543CC=$lt_compiler
37544
37545# Is the compiler the GNU compiler?
37546with_gcc=$GCC
37547
37548# Compiler flag to turn off builtin functions.
37549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37550
cristy73bd4a52010-10-05 11:24:23 +000037551# Additional compiler flags for building library objects.
37552pic_flag=$lt_lt_prog_compiler_pic
37553
cristyda16f162011-02-19 23:52:17 +000037554# How to pass a linker flag through the compiler.
37555wl=$lt_lt_prog_compiler_wl
37556
cristy73bd4a52010-10-05 11:24:23 +000037557# Compiler flag to prevent dynamic linking.
37558link_static_flag=$lt_lt_prog_compiler_static
37559
37560# Does compiler simultaneously support -c and -o options?
37561compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37562
37563# Whether or not to add -lc for building shared libraries.
37564build_libtool_need_lc=$archive_cmds_need_lc
37565
37566# Whether or not to disallow shared libs when runtime libs are static.
37567allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37568
37569# Compiler flag to allow reflexive dlopens.
37570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37571
37572# Compiler flag to generate shared objects directly from archives.
37573whole_archive_flag_spec=$lt_whole_archive_flag_spec
37574
37575# Whether the compiler copes with passing no objects directly.
37576compiler_needs_object=$lt_compiler_needs_object
37577
37578# Create an old-style archive from a shared archive.
37579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37580
37581# Create a temporary old-style archive to link instead of a shared archive.
37582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37583
37584# Commands used to build a shared archive.
37585archive_cmds=$lt_archive_cmds
37586archive_expsym_cmds=$lt_archive_expsym_cmds
37587
37588# Commands used to build a loadable module if different from building
37589# a shared archive.
37590module_cmds=$lt_module_cmds
37591module_expsym_cmds=$lt_module_expsym_cmds
37592
37593# Whether we are building with GNU ld or not.
37594with_gnu_ld=$lt_with_gnu_ld
37595
37596# Flag that allows shared libraries with undefined symbols to be built.
37597allow_undefined_flag=$lt_allow_undefined_flag
37598
37599# Flag that enforces no undefined symbols.
37600no_undefined_flag=$lt_no_undefined_flag
37601
37602# Flag to hardcode \$libdir into a binary during linking.
37603# This must work even if \$libdir does not exist
37604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37605
37606# If ld is used when linking, flag to hardcode \$libdir into a binary
37607# during linking. This must work even if \$libdir does not exist.
37608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37609
37610# Whether we need a single "-rpath" flag with a separated argument.
37611hardcode_libdir_separator=$lt_hardcode_libdir_separator
37612
37613# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37614# DIR into the resulting binary.
37615hardcode_direct=$hardcode_direct
37616
37617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37618# DIR into the resulting binary and the resulting library dependency is
37619# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37620# library is relocated.
37621hardcode_direct_absolute=$hardcode_direct_absolute
37622
37623# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37624# into the resulting binary.
37625hardcode_minus_L=$hardcode_minus_L
37626
37627# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37628# into the resulting binary.
37629hardcode_shlibpath_var=$hardcode_shlibpath_var
37630
37631# Set to "yes" if building a shared library automatically hardcodes DIR
37632# into the library and all subsequent libraries and executables linked
37633# against it.
37634hardcode_automatic=$hardcode_automatic
37635
37636# Set to yes if linker adds runtime paths of dependent libraries
37637# to runtime path list.
37638inherit_rpath=$inherit_rpath
37639
37640# Whether libtool must link a program against all its dependency libraries.
37641link_all_deplibs=$link_all_deplibs
37642
cristy73bd4a52010-10-05 11:24:23 +000037643# Set to "yes" if exported symbols are required.
37644always_export_symbols=$always_export_symbols
37645
37646# The commands to list exported symbols.
37647export_symbols_cmds=$lt_export_symbols_cmds
37648
37649# Symbols that should not be listed in the preloaded symbols.
37650exclude_expsyms=$lt_exclude_expsyms
37651
37652# Symbols that must always be exported.
37653include_expsyms=$lt_include_expsyms
37654
37655# Commands necessary for linking programs (against libraries) with templates.
37656prelink_cmds=$lt_prelink_cmds
37657
cristyda16f162011-02-19 23:52:17 +000037658# Commands necessary for finishing linking programs.
37659postlink_cmds=$lt_postlink_cmds
37660
cristy73bd4a52010-10-05 11:24:23 +000037661# Specify filename containing input files.
37662file_list_spec=$lt_file_list_spec
37663
37664# How to hardcode a shared library path into an executable.
37665hardcode_action=$hardcode_action
37666
37667# The directories searched by this compiler when creating a shared library.
37668compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37669
37670# Dependencies to place before and after the objects being linked to
37671# create a shared library.
37672predep_objects=$lt_predep_objects
37673postdep_objects=$lt_postdep_objects
37674predeps=$lt_predeps
37675postdeps=$lt_postdeps
37676
37677# The library search path used internally by the compiler when linking
37678# a shared library.
37679compiler_lib_search_path=$lt_compiler_lib_search_path
37680
37681# ### END LIBTOOL CONFIG
37682
37683_LT_EOF
37684
37685 case $host_os in
37686 aix3*)
37687 cat <<\_LT_EOF >> "$cfgfile"
37688# AIX sometimes has problems with the GCC collect2 program. For some
37689# reason, if we set the COLLECT_NAMES environment variable, the problems
37690# vanish in a puff of smoke.
37691if test "X${COLLECT_NAMES+set}" != Xset; then
37692 COLLECT_NAMES=
37693 export COLLECT_NAMES
37694fi
37695_LT_EOF
37696 ;;
37697 esac
37698
37699
37700ltmain="$ac_aux_dir/ltmain.sh"
37701
37702
37703 # We use sed instead of cat because bash on DJGPP gets confused if
37704 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37705 # text mode, it properly converts lines to CR/LF. This bash problem
37706 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037707 sed '$q' "$ltmain" >> "$cfgfile" \
37708 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037709
cristyda16f162011-02-19 23:52:17 +000037710 if test x"$xsi_shell" = xyes; then
37711 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37712func_dirname ()\
37713{\
37714\ case ${1} in\
37715\ */*) func_dirname_result="${1%/*}${2}" ;;\
37716\ * ) func_dirname_result="${3}" ;;\
37717\ esac\
37718} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37719 && mv -f "$cfgfile.tmp" "$cfgfile" \
37720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37721test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037722
37723
cristyda16f162011-02-19 23:52:17 +000037724 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37725func_basename ()\
37726{\
37727\ func_basename_result="${1##*/}"\
37728} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37729 && mv -f "$cfgfile.tmp" "$cfgfile" \
37730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37731test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037732
37733
cristyda16f162011-02-19 23:52:17 +000037734 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37735func_dirname_and_basename ()\
37736{\
37737\ case ${1} in\
37738\ */*) func_dirname_result="${1%/*}${2}" ;;\
37739\ * ) func_dirname_result="${3}" ;;\
37740\ esac\
37741\ func_basename_result="${1##*/}"\
37742} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37743 && mv -f "$cfgfile.tmp" "$cfgfile" \
37744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37745test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037746
cristyda16f162011-02-19 23:52:17 +000037747
37748 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37749func_stripname ()\
37750{\
37751\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37752\ # positional parameters, so assign one to ordinary parameter first.\
37753\ func_stripname_result=${3}\
37754\ func_stripname_result=${func_stripname_result#"${1}"}\
37755\ func_stripname_result=${func_stripname_result%"${2}"}\
37756} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37757 && mv -f "$cfgfile.tmp" "$cfgfile" \
37758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37759test 0 -eq $? || _lt_function_replace_fail=:
37760
37761
37762 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37763func_split_long_opt ()\
37764{\
37765\ func_split_long_opt_name=${1%%=*}\
37766\ func_split_long_opt_arg=${1#*=}\
37767} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37768 && mv -f "$cfgfile.tmp" "$cfgfile" \
37769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37770test 0 -eq $? || _lt_function_replace_fail=:
37771
37772
37773 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37774func_split_short_opt ()\
37775{\
37776\ func_split_short_opt_arg=${1#??}\
37777\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37778} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37779 && mv -f "$cfgfile.tmp" "$cfgfile" \
37780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37781test 0 -eq $? || _lt_function_replace_fail=:
37782
37783
37784 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37785func_lo2o ()\
37786{\
37787\ case ${1} in\
37788\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37789\ *) func_lo2o_result=${1} ;;\
37790\ esac\
37791} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37792 && mv -f "$cfgfile.tmp" "$cfgfile" \
37793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37794test 0 -eq $? || _lt_function_replace_fail=:
37795
37796
37797 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37798func_xform ()\
37799{\
37800 func_xform_result=${1%.*}.lo\
37801} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37802 && mv -f "$cfgfile.tmp" "$cfgfile" \
37803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37804test 0 -eq $? || _lt_function_replace_fail=:
37805
37806
37807 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37808func_arith ()\
37809{\
37810 func_arith_result=$(( $* ))\
37811} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37812 && mv -f "$cfgfile.tmp" "$cfgfile" \
37813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814test 0 -eq $? || _lt_function_replace_fail=:
37815
37816
37817 sed -e '/^func_len ()$/,/^} # func_len /c\
37818func_len ()\
37819{\
37820 func_len_result=${#1}\
37821} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37822 && mv -f "$cfgfile.tmp" "$cfgfile" \
37823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37824test 0 -eq $? || _lt_function_replace_fail=:
37825
37826fi
37827
37828if test x"$lt_shell_append" = xyes; then
37829 sed -e '/^func_append ()$/,/^} # func_append /c\
37830func_append ()\
37831{\
37832 eval "${1}+=\\${2}"\
37833} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37834 && mv -f "$cfgfile.tmp" "$cfgfile" \
37835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836test 0 -eq $? || _lt_function_replace_fail=:
37837
37838
37839 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37840func_append_quoted ()\
37841{\
37842\ func_quote_for_eval "${2}"\
37843\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37844} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37845 && mv -f "$cfgfile.tmp" "$cfgfile" \
37846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37847test 0 -eq $? || _lt_function_replace_fail=:
37848
37849
37850 # Save a `func_append' function call where possible by direct use of '+='
37851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37852 && mv -f "$cfgfile.tmp" "$cfgfile" \
37853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37854 test 0 -eq $? || _lt_function_replace_fail=:
37855else
37856 # Save a `func_append' function call even when '+=' is not available
37857 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37858 && mv -f "$cfgfile.tmp" "$cfgfile" \
37859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37860 test 0 -eq $? || _lt_function_replace_fail=:
37861fi
37862
37863if test x"$_lt_function_replace_fail" = x":"; then
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37865$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37866fi
37867
37868
37869 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37871 chmod +x "$ofile"
37872
37873
37874 cat <<_LT_EOF >> "$ofile"
37875
37876# ### BEGIN LIBTOOL TAG CONFIG: CXX
37877
37878# The linker used to build libraries.
37879LD=$lt_LD_CXX
37880
cristy0c60a692010-11-04 01:09:47 +000037881# How to create reloadable object files.
37882reload_flag=$lt_reload_flag_CXX
37883reload_cmds=$lt_reload_cmds_CXX
37884
cristy73bd4a52010-10-05 11:24:23 +000037885# Commands used to build an old-style archive.
37886old_archive_cmds=$lt_old_archive_cmds_CXX
37887
37888# A language specific compiler.
37889CC=$lt_compiler_CXX
37890
37891# Is the compiler the GNU compiler?
37892with_gcc=$GCC_CXX
37893
37894# Compiler flag to turn off builtin functions.
37895no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37896
cristy73bd4a52010-10-05 11:24:23 +000037897# Additional compiler flags for building library objects.
37898pic_flag=$lt_lt_prog_compiler_pic_CXX
37899
cristyda16f162011-02-19 23:52:17 +000037900# How to pass a linker flag through the compiler.
37901wl=$lt_lt_prog_compiler_wl_CXX
37902
cristy73bd4a52010-10-05 11:24:23 +000037903# Compiler flag to prevent dynamic linking.
37904link_static_flag=$lt_lt_prog_compiler_static_CXX
37905
37906# Does compiler simultaneously support -c and -o options?
37907compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37908
37909# Whether or not to add -lc for building shared libraries.
37910build_libtool_need_lc=$archive_cmds_need_lc_CXX
37911
37912# Whether or not to disallow shared libs when runtime libs are static.
37913allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37914
37915# Compiler flag to allow reflexive dlopens.
37916export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37917
37918# Compiler flag to generate shared objects directly from archives.
37919whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37920
37921# Whether the compiler copes with passing no objects directly.
37922compiler_needs_object=$lt_compiler_needs_object_CXX
37923
37924# Create an old-style archive from a shared archive.
37925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37926
37927# Create a temporary old-style archive to link instead of a shared archive.
37928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37929
37930# Commands used to build a shared archive.
37931archive_cmds=$lt_archive_cmds_CXX
37932archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37933
37934# Commands used to build a loadable module if different from building
37935# a shared archive.
37936module_cmds=$lt_module_cmds_CXX
37937module_expsym_cmds=$lt_module_expsym_cmds_CXX
37938
37939# Whether we are building with GNU ld or not.
37940with_gnu_ld=$lt_with_gnu_ld_CXX
37941
37942# Flag that allows shared libraries with undefined symbols to be built.
37943allow_undefined_flag=$lt_allow_undefined_flag_CXX
37944
37945# Flag that enforces no undefined symbols.
37946no_undefined_flag=$lt_no_undefined_flag_CXX
37947
37948# Flag to hardcode \$libdir into a binary during linking.
37949# This must work even if \$libdir does not exist
37950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37951
37952# If ld is used when linking, flag to hardcode \$libdir into a binary
37953# during linking. This must work even if \$libdir does not exist.
37954hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37955
37956# Whether we need a single "-rpath" flag with a separated argument.
37957hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37958
37959# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37960# DIR into the resulting binary.
37961hardcode_direct=$hardcode_direct_CXX
37962
37963# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37964# DIR into the resulting binary and the resulting library dependency is
37965# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37966# library is relocated.
37967hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37968
37969# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37970# into the resulting binary.
37971hardcode_minus_L=$hardcode_minus_L_CXX
37972
37973# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37974# into the resulting binary.
37975hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37976
37977# Set to "yes" if building a shared library automatically hardcodes DIR
37978# into the library and all subsequent libraries and executables linked
37979# against it.
37980hardcode_automatic=$hardcode_automatic_CXX
37981
37982# Set to yes if linker adds runtime paths of dependent libraries
37983# to runtime path list.
37984inherit_rpath=$inherit_rpath_CXX
37985
37986# Whether libtool must link a program against all its dependency libraries.
37987link_all_deplibs=$link_all_deplibs_CXX
37988
cristy73bd4a52010-10-05 11:24:23 +000037989# Set to "yes" if exported symbols are required.
37990always_export_symbols=$always_export_symbols_CXX
37991
37992# The commands to list exported symbols.
37993export_symbols_cmds=$lt_export_symbols_cmds_CXX
37994
37995# Symbols that should not be listed in the preloaded symbols.
37996exclude_expsyms=$lt_exclude_expsyms_CXX
37997
37998# Symbols that must always be exported.
37999include_expsyms=$lt_include_expsyms_CXX
38000
38001# Commands necessary for linking programs (against libraries) with templates.
38002prelink_cmds=$lt_prelink_cmds_CXX
38003
cristyda16f162011-02-19 23:52:17 +000038004# Commands necessary for finishing linking programs.
38005postlink_cmds=$lt_postlink_cmds_CXX
38006
cristy73bd4a52010-10-05 11:24:23 +000038007# Specify filename containing input files.
38008file_list_spec=$lt_file_list_spec_CXX
38009
38010# How to hardcode a shared library path into an executable.
38011hardcode_action=$hardcode_action_CXX
38012
38013# The directories searched by this compiler when creating a shared library.
38014compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38015
38016# Dependencies to place before and after the objects being linked to
38017# create a shared library.
38018predep_objects=$lt_predep_objects_CXX
38019postdep_objects=$lt_postdep_objects_CXX
38020predeps=$lt_predeps_CXX
38021postdeps=$lt_postdeps_CXX
38022
38023# The library search path used internally by the compiler when linking
38024# a shared library.
38025compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38026
38027# ### END LIBTOOL TAG CONFIG: CXX
38028_LT_EOF
38029
38030 ;;
cristy4c08aed2011-07-01 19:47:50 +000038031 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038032 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038033 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38034 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38035
38036 esac
38037done # for ac_tag
38038
38039
cristy8b350f62009-11-15 23:12:43 +000038040as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038041_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038042ac_clean_files=$ac_clean_files_save
38043
38044test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038045 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038046
38047
38048# configure is writing to config.log, and then calls config.status.
38049# config.status does its own redirection, appending to config.log.
38050# Unfortunately, on DOS this fails, as config.log is still kept open
38051# by configure, so config.status won't be able to write to it; its
38052# output is simply discarded. So we exec the FD to /dev/null,
38053# effectively closing config.log, so it can be properly (re)opened and
38054# appended to by config.status. When coming back to configure, we
38055# need to make the FD available again.
38056if test "$no_create" != yes; then
38057 ac_cs_success=:
38058 ac_config_status_args=
38059 test "$silent" = yes &&
38060 ac_config_status_args="$ac_config_status_args --quiet"
38061 exec 5>/dev/null
38062 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38063 exec 5>>config.log
38064 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38065 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038066 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038067fi
38068if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038070$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38071fi
38072
38073
38074rm -f magick-version
38075
cristy430a7312010-01-21 20:44:04 +000038076result_dejavu_font_dir='none'
38077if test "${dejavu_font_dir}x" != 'x'; then
38078 result_dejavu_font_dir=$dejavu_font_dir
38079fi
38080
cristy3ed852e2009-09-05 21:47:34 +000038081result_ghostscript_font_dir='none'
38082if test "${ghostscript_font_dir}x" != 'x'; then
38083 result_ghostscript_font_dir=$ghostscript_font_dir
38084fi
38085
38086result_windows_font_dir='none'
38087if test "${windows_font_dir}x" != 'x'; then
38088 result_windows_font_dir=${windows_font_dir}
38089fi
38090
cristy09b53e12011-10-14 12:47:22 +000038091{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038092ImageMagick is configured as follows. Please verify that this configuration
38093matches your expectations.
38094
38095Host system type: $host
38096Build system type: $build
38097
38098 Option Value
38099-------------------------------------------------------------------------------
38100Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38101Static libraries --enable-static=$enable_static $libtool_build_static_libs
38102Module support --with-modules=$with_modules $with_modules
38103GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38104Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38105High Dynamic Range Imagery
38106 --enable-hdri=$enable_hdri $enable_hdri
38107
38108Delegate Configuration:
38109BZLIB --with-bzlib=$with_bzlib $have_bzlib
38110Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038111Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038112DJVU --with-djvu=$with_djvu $have_djvu
38113DPS --with-dps=$with_dps $have_dps
38114FFTW --with-fftw=$with_fftw $have_fftw
38115FlashPIX --with-fpx=$with_fpx $have_fpx
38116FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38117FreeType --with-freetype=$with_freetype $have_freetype
38118GhostPCL None $PCLDelegate ($PCLVersion)
38119GhostXPS None $XPSDelegate ($XPSVersion)
38120Ghostscript None $PSDelegate ($GSVersion)
38121Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38122Ghostscript lib --with-gslib=$with_gslib $have_gslib
38123Graphviz --with-gvc=$with_gvc $have_gvc
38124JBIG --with-jbig=$with_jbig $have_jbig
38125JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38126JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038127LCMS v1 --with-lcms=$with_lcms $have_lcms
38128LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038129LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038130LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038131Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38132OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038133PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038134PERL --with-perl=$with_perl $have_perl
38135PNG --with-png=$with_png $have_png
38136RSVG --with-rsvg=$with_rsvg $have_rsvg
38137TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038138WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038139Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38140WMF --with-wmf=$with_wmf $have_wmf
38141X11 --with-x=$with_x $have_x
38142XML --with-xml=$with_xml $have_xml
38143ZLIB --with-zlib=$with_zlib $have_zlib
38144
38145X11 Configuration:
38146 X_CFLAGS = $X_CFLAGS
38147 X_PRE_LIBS = $X_PRE_LIBS
38148 X_LIBS = $X_LIBS
38149 X_EXTRA_LIBS = $X_EXTRA_LIBS
38150
38151Options used to compile and link:
38152 PREFIX = $PREFIX_DIR
38153 EXEC-PREFIX = $EXEC_PREFIX_DIR
38154 VERSION = $PACKAGE_VERSION
38155 CC = $CC
38156 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038157 CPPFLAGS = $MAGICK_CPPFLAGS
38158 PCFLAGS = $MAGICK_PCFLAGS
38159 DEFS = $DEFS
38160 LDFLAGS = $LDFLAGS
38161 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38162 LIBS = $MAGICK_LIBS
38163 CXX = $CXX
38164 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038165 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038166" >&5
cristy09b53e12011-10-14 12:47:22 +000038167$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038168ImageMagick is configured as follows. Please verify that this configuration
38169matches your expectations.
38170
38171Host system type: $host
38172Build system type: $build
38173
38174 Option Value
38175-------------------------------------------------------------------------------
38176Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38177Static libraries --enable-static=$enable_static $libtool_build_static_libs
38178Module support --with-modules=$with_modules $with_modules
38179GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38180Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38181High Dynamic Range Imagery
38182 --enable-hdri=$enable_hdri $enable_hdri
38183
38184Delegate Configuration:
38185BZLIB --with-bzlib=$with_bzlib $have_bzlib
38186Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038187Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038188DJVU --with-djvu=$with_djvu $have_djvu
38189DPS --with-dps=$with_dps $have_dps
38190FFTW --with-fftw=$with_fftw $have_fftw
38191FlashPIX --with-fpx=$with_fpx $have_fpx
38192FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38193FreeType --with-freetype=$with_freetype $have_freetype
38194GhostPCL None $PCLDelegate ($PCLVersion)
38195GhostXPS None $XPSDelegate ($XPSVersion)
38196Ghostscript None $PSDelegate ($GSVersion)
38197Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38198Ghostscript lib --with-gslib=$with_gslib $have_gslib
38199Graphviz --with-gvc=$with_gvc $have_gvc
38200JBIG --with-jbig=$with_jbig $have_jbig
38201JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38202JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038203LCMS v1 --with-lcms=$with_lcms $have_lcms
38204LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038205LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038206LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038207Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38208OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038209PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038210PERL --with-perl=$with_perl $have_perl
38211PNG --with-png=$with_png $have_png
38212RSVG --with-rsvg=$with_rsvg $have_rsvg
38213TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038214WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038215Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38216WMF --with-wmf=$with_wmf $have_wmf
38217X11 --with-x=$with_x $have_x
38218XML --with-xml=$with_xml $have_xml
38219ZLIB --with-zlib=$with_zlib $have_zlib
38220
38221X11 Configuration:
38222 X_CFLAGS = $X_CFLAGS
38223 X_PRE_LIBS = $X_PRE_LIBS
38224 X_LIBS = $X_LIBS
38225 X_EXTRA_LIBS = $X_EXTRA_LIBS
38226
38227Options used to compile and link:
38228 PREFIX = $PREFIX_DIR
38229 EXEC-PREFIX = $EXEC_PREFIX_DIR
38230 VERSION = $PACKAGE_VERSION
38231 CC = $CC
38232 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038233 CPPFLAGS = $MAGICK_CPPFLAGS
38234 PCFLAGS = $MAGICK_PCFLAGS
38235 DEFS = $DEFS
38236 LDFLAGS = $LDFLAGS
38237 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38238 LIBS = $MAGICK_LIBS
38239 CXX = $CXX
38240 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038241 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038242" >&6;}