blob: dee9fecd37ad92d48bec8d659a9f25a47bdda0dd [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyee742642011-02-26 02:49:59 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 6.6.8.
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'
576PACKAGE_TARNAME='ImageMagick'
cristyee742642011-02-26 02:49:59 +0000577PACKAGE_VERSION='6.6.8'
578PACKAGE_STRING='ImageMagick 6.6.8'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
582ac_unique_file="magick/MagickCore.h"
583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy23f7a922010-10-11 00:27:48 +0000684WEBPDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000685UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000686TXTDelegate
687SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000688RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000689RMDelegate
690RLEEncodeDelegate
691PSDelegate
692POVDelegate
693PGPDecodeDelegate
694PCLDelegate
695MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000696MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000697MPEGEncodeDelegate
698MPEGDecodeDelegate
699MANDelegate
700LaunchDelegate
701LZWEncodeDelegate
702LZWDecodeDelegate
703LPRDelegate
704LPDelegate
705ILBMEncodeDelegate
706ILBMDecodeDelegate
707HTMLDecodeDelegate
708HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000709GnuplotDecodeDelegate
710MogrifyDelegate
711DisplayDelegate
712ConvertDelegate
713FIGDecodeDelegate
714EditorDelegate
715EchoDelegate
716DVIDecodeDelegate
717GVCDecodeDelegate
718DNGDecodeDelegate
719CatDelegate
720CGMDecodeDelegate
721BrowseDelegate
722BZIPDelegate
723BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724AutotraceDecodeDelegate
725SHARE_CONFIGURE_PATH
726SHARE_PATH
727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
730CONFIGURE_PATH
731LIBRARY_PATH
732EXECUTABLE_PATH
733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000737xml2_config
cristy3ed852e2009-09-05 21:47:34 +0000738WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000739WMF_DELEGATE_FALSE
740WMF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000741TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000742TIFF_DELEGATE_FALSE
743TIFF_DELEGATE_TRUE
744CAIRO_DELEGATE_FALSE
745CAIRO_DELEGATE_TRUE
746RSVG_DELEGATE_FALSE
747RSVG_DELEGATE_TRUE
748CAIRO_SVG_LIBS
749CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000750RSVG_LIBS
751RSVG_CFLAGS
752PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000753PNG_DELEGATE_FALSE
754PNG_DELEGATE_TRUE
755OPENEXR_DELEGATE_FALSE
756OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000757OPENEXR_LIBS
758OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000759LZMA_LIBS
760LZMA_DELEGATE_FALSE
761LZMA_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000762LQR_DELEGATE_FALSE
763LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764LQR_LIBS
765LQR_CFLAGS
766LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767LCMS_DELEGATE_FALSE
768LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000769JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000770JP2_DELEGATE_FALSE
771JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000772JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000773JPEG_DELEGATE_FALSE
774JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776JBIG_DELEGATE_FALSE
777JBIG_DELEGATE_TRUE
778GVC_DELEGATE_FALSE
779GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780GVC_LIBS
781GVC_CFLAGS
782GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000783GS_DELEGATE_FALSE
784GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000786FREETYPE_DELEGATE_FALSE
787FREETYPE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000788freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000789FONTCONFIG_DELEGATE_FALSE
790FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791FONTCONFIG_LIBS
792FONTCONFIG_CFLAGS
793FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794FPX_DELEGATE_FALSE
795FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FFTW_DELEGATE_FALSE
798FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800DJVU_DELEGATE_FALSE
801DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803DPS_DELEGATE_FALSE
804DPS_DELEGATE_TRUE
805AUTOTRACE_DELEGATE_FALSE
806AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807AUTOTRACE_LIBS
808AUTOTRACE_CFLAGS
809LIB_DL
810ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811ZLIB_DELEGATE_FALSE
812ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813XEXT_LIBS
814X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815X11_DELEGATE_FALSE
816X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817X_EXTRA_LIBS
818X_LIBS
819X_PRE_LIBS
820X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000821XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000822BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000823BZLIB_DELEGATE_FALSE
824BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000825CCMALLOCDelegate
826UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827HasUMEM_FALSE
828HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829THREAD_LIBS
830GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831WITH_MAGICK_PLUS_PLUS_FALSE
832WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000834MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000835POW_LIB
836LIBOBJS
837UINTPTR_T
838UINTMAX_T
839UINT64_T
840INT64_T
841UINT32_T
842INT32_T
843UINT16_T
844INT16_T
845UINT8_T
846INT8_T
847LIBRARY_EXTRA_CPPFLAGS
848MODULE_EXTRA_CPPFLAGS
849LIBSTDCLDFLAGS
850PERL_MAKE_OPTIONS
851QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000852MAINT
853MAINTAINER_MODE_FALSE
854MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855MAGICK_HDRI
856DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000857WITH_LTDL_FALSE
858WITH_LTDL_TRUE
859WITH_MODULES_FALSE
860WITH_MODULES_TRUE
861WITH_SHARED_LIBS_FALSE
862WITH_SHARED_LIBS_TRUE
863LTDLOPEN
864LT_CONFIG_H
865CONVENIENCE_LTDL_FALSE
866CONVENIENCE_LTDL_TRUE
867INSTALL_LTDL_FALSE
868INSTALL_LTDL_TRUE
869ARGZ_H
870sys_symbol_underscore
871LIBADD_DL
872LT_DLPREOPEN
873LIBADD_DLD_LINK
874LIBADD_SHL_LOAD
875LIBADD_DLOPEN
876LT_DLLOADERS
877INCLTDL
878LTDLINCL
879LTDLDEPS
880LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000881LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000882CXXCPP
883OTOOL64
884OTOOL
885LIPO
886NMEDIT
887DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000888MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000889RANLIB
cristyda16f162011-02-19 23:52:17 +0000890ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000891AR
892NM
893ac_ct_DUMPBIN
894DUMPBIN
895LIBTOOL
896OBJDUMP
897DLLTOOL
898AS
cristy3ed852e2009-09-05 21:47:34 +0000899LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000900CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000901CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000902OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000903PTHREAD_CFLAGS
904PTHREAD_LIBS
905PTHREAD_CC
906ax_pthread_config
cristy3ed852e2009-09-05 21:47:34 +0000907WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000908USING_CL_FALSE
909USING_CL_TRUE
910CYGWIN_BUILD_FALSE
911CYGWIN_BUILD_TRUE
912WIN32_NATIVE_BUILD_FALSE
913WIN32_NATIVE_BUILD_TRUE
914WINGDI32_DELEGATE_FALSE
915WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000916GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000917PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000918LN_S
cristy3ed852e2009-09-05 21:47:34 +0000919LD
cristy73bd4a52010-10-05 11:24:23 +0000920FGREP
921SED
922am__fastdepCXX_FALSE
923am__fastdepCXX_TRUE
924CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000925ac_ct_CXX
926CXXFLAGS
927CXX
cristya0b81c32010-01-22 02:54:33 +0000928EGREP
929GREP
930CPP
cristy73bd4a52010-10-05 11:24:23 +0000931am__fastdepCC_FALSE
932am__fastdepCC_TRUE
933CCDEPMODE
934AMDEPBACKSLASH
935AMDEP_FALSE
936AMDEP_TRUE
937am__quote
938am__include
939DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000940OBJEXT
941EXEEXT
942ac_ct_CC
943CPPFLAGS
944LDFLAGS
945CFLAGS
946CC
947DIRSEP
948MAGICK_FILTER_MODULE_PATH
949MAGICK_CONFIGURE_BUILD_PATH
950MAGICK_CONFIGURE_SRC_PATH
951MAGICK_CODER_MODULE_PATH
952MAN_DIR
953INFO_DIR
954PERSISTINCLUDE_DIR
955INCLUDE_DIR
956LIB_DIR
957LOCALSTATE_DIR
958SHAREDSTATE_DIR
959SYSCONF_DIR
960DATA_DIR
961LIBEXEC_DIR
962SBIN_DIR
963BIN_DIR
964EXEC_PREFIX_DIR
965PREFIX_DIR
966CONFIG_STATUS_DEPENDENCIES
967MAGICK_LIB_VERSION_NUMBER
968MAGICK_LIB_VERSION_TEXT
969MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000970AM_BACKSLASH
971AM_DEFAULT_VERBOSITY
972am__untar
973am__tar
974AMTAR
975am__leading_dot
976SET_MAKE
977AWK
978mkdir_p
979MKDIR_P
980INSTALL_STRIP_PROGRAM
981STRIP
982install_sh
983MAKEINFO
984AUTOHEADER
985AUTOMAKE
986AUTOCONF
987ACLOCAL
988VERSION
989PACKAGE
990CYGPATH_W
991am__isrc
992INSTALL_DATA
993INSTALL_SCRIPT
994INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +0000995PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +0000996PACKAGE_RELEASE_DATE
997PACKAGE_LIB_VERSION_NUMBER
998PACKAGE_LIB_VERSION
999PACKAGE_CHANGE_DATE
1000PACKAGE_RELEASE
cristybab87c32010-02-09 20:54:22 +00001001MAGICK_LIBRARY_VERSION_INFO
1002MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001003MAGICK_LIBRARY_AGE
1004MAGICK_LIBRARY_REVISION
1005MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001006MAGICK_TARGET_OS
1007MAGICK_TARGET_VENDOR
1008MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001009target_os
1010target_vendor
1011target_cpu
1012target
1013host_os
1014host_vendor
1015host_cpu
1016host
1017build_os
1018build_vendor
1019build_cpu
1020build
1021CONFIGURE_ARGS
1022DISTCHECK_CONFIG_FLAGS
1023target_alias
1024host_alias
1025build_alias
1026LIBS
1027ECHO_T
1028ECHO_N
1029ECHO_C
1030DEFS
1031mandir
1032localedir
1033libdir
1034psdir
1035pdfdir
1036dvidir
1037htmldir
1038infodir
1039docdir
1040oldincludedir
1041includedir
1042localstatedir
1043sharedstatedir
1044sysconfdir
1045datadir
1046datarootdir
1047libexecdir
1048sbindir
1049bindir
1050program_transform_name
1051prefix
1052exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001053PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001054PACKAGE_BUGREPORT
1055PACKAGE_STRING
1056PACKAGE_VERSION
1057PACKAGE_TARNAME
1058PACKAGE_NAME
1059PATH_SEPARATOR
1060SHELL'
1061ac_subst_files=''
1062ac_user_opts='
1063enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001064enable_silent_rules
1065enable_dependency_tracking
1066with_gnu_ld
1067with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001068enable_bounds_checking
1069enable_osx_universal_binary
1070with_threads
1071enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001072enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001073enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001074enable_shared
1075enable_static
1076with_pic
1077enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001078with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001079enable_libtool_lock
1080with_included_ltdl
1081with_ltdl_include
1082with_ltdl_lib
1083enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001084with_modules
1085enable_delegate_build
1086enable_deprecated
1087enable_installed
1088enable_cipher
1089enable_embeddable
1090enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001091enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001092enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001093enable_ccmalloc
1094enable_efence
1095enable_prof
1096enable_gprof
1097enable_gcov
1098with_method_prefix
1099with_quantum_depth
1100with_cache
1101with_frozenpaths
1102with_magick_plus_plus
1103with_perl
1104with_perl_options
1105with_umem
1106with_libstdc
1107with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001108with_x
cristy3ed852e2009-09-05 21:47:34 +00001109with_zlib
1110with_autotrace
1111with_dps
1112with_djvu
cristy430a7312010-01-21 20:44:04 +00001113with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001114with_fftw
1115with_fpx
1116with_fontconfig
1117with_freetype
1118with_gslib
1119with_fontpath
1120with_gs_font_dir
1121with_gvc
1122with_jbig
1123with_jpeg
1124with_jp2
1125with_lcms
cristy71203402010-06-18 13:12:03 +00001126with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001127with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001128with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001129with_openexr
1130with_png
1131with_rsvg
1132with_tiff
1133with_windows_font_dir
1134with_wmf
1135with_xml
1136'
1137 ac_precious_vars='build_alias
1138host_alias
1139target_alias
1140CC
1141CFLAGS
1142LDFLAGS
1143LIBS
1144CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001145CPP
cristy3ed852e2009-09-05 21:47:34 +00001146CXX
1147CXXFLAGS
1148CCC
cristy73bd4a52010-10-05 11:24:23 +00001149PKG_CONFIG
1150CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001151XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001152AUTOTRACE_CFLAGS
1153AUTOTRACE_LIBS
1154FONTCONFIG_CFLAGS
1155FONTCONFIG_LIBS
1156GVC_CFLAGS
1157GVC_LIBS
1158LQR_CFLAGS
1159LQR_LIBS
1160OPENEXR_CFLAGS
1161OPENEXR_LIBS
1162RSVG_CFLAGS
1163RSVG_LIBS
1164CAIRO_SVG_CFLAGS
1165CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001166
1167
1168# Initialize some variables set by options.
1169ac_init_help=
1170ac_init_version=false
1171ac_unrecognized_opts=
1172ac_unrecognized_sep=
1173# The variables have the same names as the options, with
1174# dashes changed to underlines.
1175cache_file=/dev/null
1176exec_prefix=NONE
1177no_create=
1178no_recursion=
1179prefix=NONE
1180program_prefix=NONE
1181program_suffix=NONE
1182program_transform_name=s,x,x,
1183silent=
1184site=
1185srcdir=
1186verbose=
1187x_includes=NONE
1188x_libraries=NONE
1189
1190# Installation directory options.
1191# These are left unexpanded so users can "make install exec_prefix=/foo"
1192# and all the variables that are supposed to be based on exec_prefix
1193# by default will actually change.
1194# Use braces instead of parens because sh, perl, etc. also accept them.
1195# (The list follows the same order as the GNU Coding Standards.)
1196bindir='${exec_prefix}/bin'
1197sbindir='${exec_prefix}/sbin'
1198libexecdir='${exec_prefix}/libexec'
1199datarootdir='${prefix}/share'
1200datadir='${datarootdir}'
1201sysconfdir='${prefix}/etc'
1202sharedstatedir='${prefix}/com'
1203localstatedir='${prefix}/var'
1204includedir='${prefix}/include'
1205oldincludedir='/usr/include'
1206docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1207infodir='${datarootdir}/info'
1208htmldir='${docdir}'
1209dvidir='${docdir}'
1210pdfdir='${docdir}'
1211psdir='${docdir}'
1212libdir='${exec_prefix}/lib'
1213localedir='${datarootdir}/locale'
1214mandir='${datarootdir}/man'
1215
1216ac_prev=
1217ac_dashdash=
1218for ac_option
1219do
1220 # If the previous option needs an argument, assign it.
1221 if test -n "$ac_prev"; then
1222 eval $ac_prev=\$ac_option
1223 ac_prev=
1224 continue
1225 fi
1226
1227 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001228 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1229 *=) ac_optarg= ;;
1230 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001231 esac
1232
1233 # Accept the important Cygnus configure options, so we can diagnose typos.
1234
1235 case $ac_dashdash$ac_option in
1236 --)
1237 ac_dashdash=yes ;;
1238
1239 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1240 ac_prev=bindir ;;
1241 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1242 bindir=$ac_optarg ;;
1243
1244 -build | --build | --buil | --bui | --bu)
1245 ac_prev=build_alias ;;
1246 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1247 build_alias=$ac_optarg ;;
1248
1249 -cache-file | --cache-file | --cache-fil | --cache-fi \
1250 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1251 ac_prev=cache_file ;;
1252 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1253 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1254 cache_file=$ac_optarg ;;
1255
1256 --config-cache | -C)
1257 cache_file=config.cache ;;
1258
1259 -datadir | --datadir | --datadi | --datad)
1260 ac_prev=datadir ;;
1261 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1262 datadir=$ac_optarg ;;
1263
1264 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1265 | --dataroo | --dataro | --datar)
1266 ac_prev=datarootdir ;;
1267 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1268 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1269 datarootdir=$ac_optarg ;;
1270
1271 -disable-* | --disable-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001275 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"enable_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval enable_$ac_useropt=no ;;
1286
1287 -docdir | --docdir | --docdi | --doc | --do)
1288 ac_prev=docdir ;;
1289 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1290 docdir=$ac_optarg ;;
1291
1292 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1293 ac_prev=dvidir ;;
1294 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1295 dvidir=$ac_optarg ;;
1296
1297 -enable-* | --enable-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001301 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"enable_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval enable_$ac_useropt=\$ac_optarg ;;
1312
1313 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1314 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1315 | --exec | --exe | --ex)
1316 ac_prev=exec_prefix ;;
1317 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1318 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1319 | --exec=* | --exe=* | --ex=*)
1320 exec_prefix=$ac_optarg ;;
1321
1322 -gas | --gas | --ga | --g)
1323 # Obsolete; use --with-gas.
1324 with_gas=yes ;;
1325
1326 -help | --help | --hel | --he | -h)
1327 ac_init_help=long ;;
1328 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1329 ac_init_help=recursive ;;
1330 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1331 ac_init_help=short ;;
1332
1333 -host | --host | --hos | --ho)
1334 ac_prev=host_alias ;;
1335 -host=* | --host=* | --hos=* | --ho=*)
1336 host_alias=$ac_optarg ;;
1337
1338 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1339 ac_prev=htmldir ;;
1340 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1341 | --ht=*)
1342 htmldir=$ac_optarg ;;
1343
1344 -includedir | --includedir | --includedi | --included | --include \
1345 | --includ | --inclu | --incl | --inc)
1346 ac_prev=includedir ;;
1347 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1348 | --includ=* | --inclu=* | --incl=* | --inc=*)
1349 includedir=$ac_optarg ;;
1350
1351 -infodir | --infodir | --infodi | --infod | --info | --inf)
1352 ac_prev=infodir ;;
1353 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1354 infodir=$ac_optarg ;;
1355
1356 -libdir | --libdir | --libdi | --libd)
1357 ac_prev=libdir ;;
1358 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1359 libdir=$ac_optarg ;;
1360
1361 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1362 | --libexe | --libex | --libe)
1363 ac_prev=libexecdir ;;
1364 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1365 | --libexe=* | --libex=* | --libe=*)
1366 libexecdir=$ac_optarg ;;
1367
1368 -localedir | --localedir | --localedi | --localed | --locale)
1369 ac_prev=localedir ;;
1370 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1371 localedir=$ac_optarg ;;
1372
1373 -localstatedir | --localstatedir | --localstatedi | --localstated \
1374 | --localstate | --localstat | --localsta | --localst | --locals)
1375 ac_prev=localstatedir ;;
1376 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1377 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1378 localstatedir=$ac_optarg ;;
1379
1380 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1381 ac_prev=mandir ;;
1382 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1383 mandir=$ac_optarg ;;
1384
1385 -nfp | --nfp | --nf)
1386 # Obsolete; use --without-fp.
1387 with_fp=no ;;
1388
1389 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1390 | --no-cr | --no-c | -n)
1391 no_create=yes ;;
1392
1393 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1394 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1395 no_recursion=yes ;;
1396
1397 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1398 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1399 | --oldin | --oldi | --old | --ol | --o)
1400 ac_prev=oldincludedir ;;
1401 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1402 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1403 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1404 oldincludedir=$ac_optarg ;;
1405
1406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1407 ac_prev=prefix ;;
1408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1409 prefix=$ac_optarg ;;
1410
1411 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1412 | --program-pre | --program-pr | --program-p)
1413 ac_prev=program_prefix ;;
1414 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1415 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1416 program_prefix=$ac_optarg ;;
1417
1418 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1419 | --program-suf | --program-su | --program-s)
1420 ac_prev=program_suffix ;;
1421 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1422 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1423 program_suffix=$ac_optarg ;;
1424
1425 -program-transform-name | --program-transform-name \
1426 | --program-transform-nam | --program-transform-na \
1427 | --program-transform-n | --program-transform- \
1428 | --program-transform | --program-transfor \
1429 | --program-transfo | --program-transf \
1430 | --program-trans | --program-tran \
1431 | --progr-tra | --program-tr | --program-t)
1432 ac_prev=program_transform_name ;;
1433 -program-transform-name=* | --program-transform-name=* \
1434 | --program-transform-nam=* | --program-transform-na=* \
1435 | --program-transform-n=* | --program-transform-=* \
1436 | --program-transform=* | --program-transfor=* \
1437 | --program-transfo=* | --program-transf=* \
1438 | --program-trans=* | --program-tran=* \
1439 | --progr-tra=* | --program-tr=* | --program-t=*)
1440 program_transform_name=$ac_optarg ;;
1441
1442 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1443 ac_prev=pdfdir ;;
1444 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1445 pdfdir=$ac_optarg ;;
1446
1447 -psdir | --psdir | --psdi | --psd | --ps)
1448 ac_prev=psdir ;;
1449 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1450 psdir=$ac_optarg ;;
1451
1452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1453 | -silent | --silent | --silen | --sile | --sil)
1454 silent=yes ;;
1455
1456 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1457 ac_prev=sbindir ;;
1458 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1459 | --sbi=* | --sb=*)
1460 sbindir=$ac_optarg ;;
1461
1462 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1463 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1464 | --sharedst | --shareds | --shared | --share | --shar \
1465 | --sha | --sh)
1466 ac_prev=sharedstatedir ;;
1467 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1468 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1469 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1470 | --sha=* | --sh=*)
1471 sharedstatedir=$ac_optarg ;;
1472
1473 -site | --site | --sit)
1474 ac_prev=site ;;
1475 -site=* | --site=* | --sit=*)
1476 site=$ac_optarg ;;
1477
1478 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1479 ac_prev=srcdir ;;
1480 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1481 srcdir=$ac_optarg ;;
1482
1483 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1484 | --syscon | --sysco | --sysc | --sys | --sy)
1485 ac_prev=sysconfdir ;;
1486 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1487 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1488 sysconfdir=$ac_optarg ;;
1489
1490 -target | --target | --targe | --targ | --tar | --ta | --t)
1491 ac_prev=target_alias ;;
1492 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1493 target_alias=$ac_optarg ;;
1494
1495 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1496 verbose=yes ;;
1497
1498 -version | --version | --versio | --versi | --vers | -V)
1499 ac_init_version=: ;;
1500
1501 -with-* | --with-*)
1502 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1503 # Reject names that are not valid shell variable names.
1504 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001505 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001506 ac_useropt_orig=$ac_useropt
1507 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1508 case $ac_user_opts in
1509 *"
1510"with_$ac_useropt"
1511"*) ;;
1512 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1513 ac_unrecognized_sep=', ';;
1514 esac
1515 eval with_$ac_useropt=\$ac_optarg ;;
1516
1517 -without-* | --without-*)
1518 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1519 # Reject names that are not valid shell variable names.
1520 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001521 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001522 ac_useropt_orig=$ac_useropt
1523 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1524 case $ac_user_opts in
1525 *"
1526"with_$ac_useropt"
1527"*) ;;
1528 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1529 ac_unrecognized_sep=', ';;
1530 esac
1531 eval with_$ac_useropt=no ;;
1532
1533 --x)
1534 # Obsolete; use --with-x.
1535 with_x=yes ;;
1536
1537 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1538 | --x-incl | --x-inc | --x-in | --x-i)
1539 ac_prev=x_includes ;;
1540 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1541 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1542 x_includes=$ac_optarg ;;
1543
1544 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1545 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1546 ac_prev=x_libraries ;;
1547 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1548 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1549 x_libraries=$ac_optarg ;;
1550
cristy98dddb52010-11-04 00:30:15 +00001551 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1552Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001553 ;;
1554
1555 *=*)
1556 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1557 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001558 case $ac_envvar in #(
1559 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001560 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001561 esac
cristy3ed852e2009-09-05 21:47:34 +00001562 eval $ac_envvar=\$ac_optarg
1563 export $ac_envvar ;;
1564
1565 *)
1566 # FIXME: should be removed in autoconf 3.0.
1567 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1568 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1569 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001570 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001571 ;;
1572
1573 esac
1574done
1575
1576if test -n "$ac_prev"; then
1577 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001578 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001579fi
1580
1581if test -n "$ac_unrecognized_opts"; then
1582 case $enable_option_checking in
1583 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001584 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001585 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1586 esac
1587fi
1588
1589# Check all directory arguments for consistency.
1590for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1591 datadir sysconfdir sharedstatedir localstatedir includedir \
1592 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1593 libdir localedir mandir
1594do
1595 eval ac_val=\$$ac_var
1596 # Remove trailing slashes.
1597 case $ac_val in
1598 */ )
1599 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1600 eval $ac_var=\$ac_val;;
1601 esac
1602 # Be sure to have absolute directory names.
1603 case $ac_val in
1604 [\\/$]* | ?:[\\/]* ) continue;;
1605 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1606 esac
cristy98dddb52010-11-04 00:30:15 +00001607 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001608done
1609
1610# There might be people who depend on the old broken behavior: `$host'
1611# used to hold the argument of --host etc.
1612# FIXME: To remove some day.
1613build=$build_alias
1614host=$host_alias
1615target=$target_alias
1616
1617# FIXME: To remove some day.
1618if test "x$host_alias" != x; then
1619 if test "x$build_alias" = x; then
1620 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001621 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1622 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001623 elif test "x$build_alias" != "x$host_alias"; then
1624 cross_compiling=yes
1625 fi
1626fi
1627
1628ac_tool_prefix=
1629test -n "$host_alias" && ac_tool_prefix=$host_alias-
1630
1631test "$silent" = yes && exec 6>/dev/null
1632
1633
1634ac_pwd=`pwd` && test -n "$ac_pwd" &&
1635ac_ls_di=`ls -di .` &&
1636ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001638test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001639 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001640
1641
1642# Find the source files, if location was not specified.
1643if test -z "$srcdir"; then
1644 ac_srcdir_defaulted=yes
1645 # Try the directory containing this script, then the parent directory.
1646 ac_confdir=`$as_dirname -- "$as_myself" ||
1647$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1648 X"$as_myself" : 'X\(//\)[^/]' \| \
1649 X"$as_myself" : 'X\(//\)$' \| \
1650 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1651$as_echo X"$as_myself" |
1652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1653 s//\1/
1654 q
1655 }
1656 /^X\(\/\/\)[^/].*/{
1657 s//\1/
1658 q
1659 }
1660 /^X\(\/\/\)$/{
1661 s//\1/
1662 q
1663 }
1664 /^X\(\/\).*/{
1665 s//\1/
1666 q
1667 }
1668 s/.*/./; q'`
1669 srcdir=$ac_confdir
1670 if test ! -r "$srcdir/$ac_unique_file"; then
1671 srcdir=..
1672 fi
1673else
1674 ac_srcdir_defaulted=no
1675fi
1676if test ! -r "$srcdir/$ac_unique_file"; then
1677 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001678 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001679fi
1680ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1681ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001682 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001683 pwd)`
1684# When building in place, set srcdir=.
1685if test "$ac_abs_confdir" = "$ac_pwd"; then
1686 srcdir=.
1687fi
1688# Remove unnecessary trailing slashes from srcdir.
1689# Double slashes in file names in object file debugging info
1690# mess up M-x gdb in Emacs.
1691case $srcdir in
1692*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1693esac
1694for ac_var in $ac_precious_vars; do
1695 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1696 eval ac_env_${ac_var}_value=\$${ac_var}
1697 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1698 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1699done
1700
1701#
1702# Report the --help message.
1703#
1704if test "$ac_init_help" = "long"; then
1705 # Omit some internal or obsolete options to make the list less imposing.
1706 # This message is too long to be a string in the A/UX 3.1 sh.
1707 cat <<_ACEOF
cristyee742642011-02-26 02:49:59 +00001708\`configure' configures ImageMagick 6.6.8 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001709
1710Usage: $0 [OPTION]... [VAR=VALUE]...
1711
1712To assign environment variables (e.g., CC, CFLAGS...), specify them as
1713VAR=VALUE. See below for descriptions of some of the useful variables.
1714
1715Defaults for the options are specified in brackets.
1716
1717Configuration:
1718 -h, --help display this help and exit
1719 --help=short display options specific to this package
1720 --help=recursive display the short help of all the included packages
1721 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001722 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001723 --cache-file=FILE cache test results in FILE [disabled]
1724 -C, --config-cache alias for \`--cache-file=config.cache'
1725 -n, --no-create do not create output files
1726 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1727
1728Installation directories:
1729 --prefix=PREFIX install architecture-independent files in PREFIX
1730 [$ac_default_prefix]
1731 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1732 [PREFIX]
1733
1734By default, \`make install' will install all the files in
1735\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1736an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1737for instance \`--prefix=\$HOME'.
1738
1739For better control, use the options below.
1740
1741Fine tuning of the installation directories:
1742 --bindir=DIR user executables [EPREFIX/bin]
1743 --sbindir=DIR system admin executables [EPREFIX/sbin]
1744 --libexecdir=DIR program executables [EPREFIX/libexec]
1745 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1746 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1747 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1748 --libdir=DIR object code libraries [EPREFIX/lib]
1749 --includedir=DIR C header files [PREFIX/include]
1750 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1751 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1752 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1753 --infodir=DIR info documentation [DATAROOTDIR/info]
1754 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1755 --mandir=DIR man documentation [DATAROOTDIR/man]
1756 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1757 --htmldir=DIR html documentation [DOCDIR]
1758 --dvidir=DIR dvi documentation [DOCDIR]
1759 --pdfdir=DIR pdf documentation [DOCDIR]
1760 --psdir=DIR ps documentation [DOCDIR]
1761_ACEOF
1762
1763 cat <<\_ACEOF
1764
cristy73bd4a52010-10-05 11:24:23 +00001765Program names:
1766 --program-prefix=PREFIX prepend PREFIX to installed program names
1767 --program-suffix=SUFFIX append SUFFIX to installed program names
1768 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1769
cristy3ed852e2009-09-05 21:47:34 +00001770X features:
1771 --x-includes=DIR X include files are in DIR
1772 --x-libraries=DIR X library files are in DIR
1773
1774System types:
1775 --build=BUILD configure for building on BUILD [guessed]
1776 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1777 --target=TARGET configure for building compilers for TARGET [HOST]
1778_ACEOF
1779fi
1780
1781if test -n "$ac_init_help"; then
1782 case $ac_init_help in
cristyee742642011-02-26 02:49:59 +00001783 short | recursive ) echo "Configuration of ImageMagick 6.6.8:";;
cristy3ed852e2009-09-05 21:47:34 +00001784 esac
1785 cat <<\_ACEOF
1786
1787Optional Features:
1788 --disable-option-checking ignore unrecognized --enable/--with options
1789 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1790 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001791 --enable-silent-rules less verbose build output (undo: `make V=1')
1792 --disable-silent-rules verbose build output (undo: `make V=0')
1793 --disable-dependency-tracking speeds up one-time build
1794 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001795 --bounds-checking enable run-time bounds-checking
1796 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001797 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001798 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001799 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001800 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001801 --enable-shared[=PKGS] build shared libraries [default=yes]
1802 --enable-static[=PKGS] build static libraries [default=yes]
1803 --enable-fast-install[=PKGS]
1804 optimize for fast installation [default=yes]
1805 --disable-libtool-lock avoid locking (might break parallel builds)
1806 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001807 --enable-delegate-build look for delegate libraries in build directory
1808 --disable-deprecated exclude deprecated methods in MagickCore and
1809 MagickWand API's
1810 --disable-installed Formally install ImageMagick under PREFIX
1811 --disable-cipher disable enciphering and deciphering image pixels
1812 --enable-embeddable enable self-contained, embeddable,
1813 zero-configuration ImageMagick
1814 --enable-hdri accurately represent the wide range of intensity
1815 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001816 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001817 --enable-maintainer-mode enable make rules and dependencies not useful
1818 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001819 --enable-ccmalloc enable 'ccmalloc' memory debug support
1820 --enable-efence enable 'efence' memory debug support
1821 --enable-prof enable 'prof' profiling support
1822 --enable-gprof enable 'gprof' profiling support
1823 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001824 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001825
1826Optional Packages:
1827 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1828 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001829 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1830 --with-dmalloc use dmalloc, as in
1831 http://www.dmalloc.com/dmalloc.tar.gz
cristy3ed852e2009-09-05 21:47:34 +00001832 --without-threads disable threads support
cristy73bd4a52010-10-05 11:24:23 +00001833 --with-pic try to use only PIC/non-PIC objects [default=use
1834 both]
cristyda16f162011-02-19 23:52:17 +00001835 --with-sysroot=DIR Search for dependent libraries within DIR
1836 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001837 --with-included-ltdl use the GNU ltdl sources included here
1838 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1839 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001840 --with-modules enable building dynamically loadable modules
1841 --with-method-prefix=PREFIX
1842 prefix MagickCore API methods
1843 --with-quantum-depth=DEPTH
1844 number of bits in a pixel quantum (default 16)
1845 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1846 memory)
1847 --with-frozenpaths freeze delegate paths
1848 --without-magick-plus-plus
1849 disable build/install of Magick++
1850 --with-perl enable build/install of PerlMagick
1851 --with-perl-options=OPTIONS
1852 options to pass on command-line when generating
1853 PerlMagick's build file
1854 --with-umem enable umem memory allocation library support
1855 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1856 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001857 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001858 --without-zlib disable ZLIB support
1859 --with-autotrace enable autotrace support
1860 --without-dps disable Display Postscript support
1861 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001862 --with-dejavu-font-dir=DIR
1863 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001864 --without-fftw disable FFTW support
1865 --without-fpx disable FlashPIX support
1866 --without-fontconfig disable fontconfig support
1867 --without-freetype disable Freetype support
1868 --without-gslib enable Ghostscript library support
1869 --with-fontpath=DIR prepend to default font search path
1870 --with-gs-font-dir=DIR Ghostscript font directory
1871 --without-gvc disable GVC support
1872 --without-jbig disable JBIG support
1873 --without-jpeg disable JPEG support
1874 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001875 --without-lcms disable lcms (v1.1X) support
1876 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001877 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001878 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001879 --without-openexr disable OpenEXR support
1880 --without-png disable PNG support
1881 --without-rsvg disable RSVG support
1882 --without-tiff disable TIFF support
1883 --with-windows-font-dir=DIR
1884 directory containing MS-Windows fonts
1885 --without-wmf disable WMF support
1886 --without-xml disable XML support
1887
1888Some influential environment variables:
1889 CC C compiler command
1890 CFLAGS C compiler flags
1891 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1892 nonstandard directory <lib dir>
1893 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001894 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001895 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001896 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001897 CXX C++ compiler command
1898 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001899 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001900 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001901 XMKMF Path to xmkmf, Makefile generator for X Window System
1902 AUTOTRACE_CFLAGS
1903 C compiler flags for AUTOTRACE, overriding pkg-config
1904 AUTOTRACE_LIBS
1905 linker flags for AUTOTRACE, overriding pkg-config
1906 FONTCONFIG_CFLAGS
1907 C compiler flags for FONTCONFIG, overriding pkg-config
1908 FONTCONFIG_LIBS
1909 linker flags for FONTCONFIG, overriding pkg-config
1910 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1911 GVC_LIBS linker flags for GVC, overriding pkg-config
1912 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1913 LQR_LIBS linker flags for LQR, overriding pkg-config
1914 OPENEXR_CFLAGS
1915 C compiler flags for OPENEXR, overriding pkg-config
1916 OPENEXR_LIBS
1917 linker flags for OPENEXR, overriding pkg-config
1918 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1919 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1920 CAIRO_SVG_CFLAGS
1921 C compiler flags for CAIRO_SVG, overriding pkg-config
1922 CAIRO_SVG_LIBS
1923 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001924
1925Use these variables to override the choices made by `configure' or to help
1926it to find libraries and programs with nonstandard names/locations.
1927
1928Report bugs to <http://www.imagemagick.org>.
1929_ACEOF
1930ac_status=$?
1931fi
1932
1933if test "$ac_init_help" = "recursive"; then
1934 # If there are subdirs, report their specific --help.
1935 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1936 test -d "$ac_dir" ||
1937 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1938 continue
1939 ac_builddir=.
1940
1941case "$ac_dir" in
1942.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1943*)
1944 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1945 # A ".." for each directory in $ac_dir_suffix.
1946 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1947 case $ac_top_builddir_sub in
1948 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1949 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1950 esac ;;
1951esac
1952ac_abs_top_builddir=$ac_pwd
1953ac_abs_builddir=$ac_pwd$ac_dir_suffix
1954# for backward compatibility:
1955ac_top_builddir=$ac_top_build_prefix
1956
1957case $srcdir in
1958 .) # We are building in place.
1959 ac_srcdir=.
1960 ac_top_srcdir=$ac_top_builddir_sub
1961 ac_abs_top_srcdir=$ac_pwd ;;
1962 [\\/]* | ?:[\\/]* ) # Absolute name.
1963 ac_srcdir=$srcdir$ac_dir_suffix;
1964 ac_top_srcdir=$srcdir
1965 ac_abs_top_srcdir=$srcdir ;;
1966 *) # Relative name.
1967 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1968 ac_top_srcdir=$ac_top_build_prefix$srcdir
1969 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1970esac
1971ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1972
1973 cd "$ac_dir" || { ac_status=$?; continue; }
1974 # Check for guested configure.
1975 if test -f "$ac_srcdir/configure.gnu"; then
1976 echo &&
1977 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1978 elif test -f "$ac_srcdir/configure"; then
1979 echo &&
1980 $SHELL "$ac_srcdir/configure" --help=recursive
1981 else
1982 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1983 fi || ac_status=$?
1984 cd "$ac_pwd" || { ac_status=$?; break; }
1985 done
1986fi
1987
1988test -n "$ac_init_help" && exit $ac_status
1989if $ac_init_version; then
1990 cat <<\_ACEOF
cristyee742642011-02-26 02:49:59 +00001991ImageMagick configure 6.6.8
cristyda16f162011-02-19 23:52:17 +00001992generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00001993
cristy98dddb52010-11-04 00:30:15 +00001994Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00001995This configure script is free software; the Free Software Foundation
1996gives unlimited permission to copy, distribute and modify it.
1997_ACEOF
1998 exit
1999fi
cristy8b350f62009-11-15 23:12:43 +00002000
2001## ------------------------ ##
2002## Autoconf initialization. ##
2003## ------------------------ ##
2004
2005# ac_fn_c_try_compile LINENO
2006# --------------------------
2007# Try to compile conftest.$ac_ext, and return whether this succeeded.
2008ac_fn_c_try_compile ()
2009{
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 rm -f conftest.$ac_objext
2012 if { { ac_try="$ac_compile"
2013case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016esac
2017eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018$as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_compile") 2>conftest.err
2020 ac_status=$?
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2025 fi
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && {
2028 test -z "$ac_c_werror_flag" ||
2029 test ! -s conftest.err
2030 } && test -s conftest.$ac_objext; then :
2031 ac_retval=0
2032else
2033 $as_echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=1
2037fi
cristyda16f162011-02-19 23:52:17 +00002038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002039 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002040
2041} # ac_fn_c_try_compile
2042
cristy95646052009-11-28 23:05:30 +00002043# ac_fn_c_try_cpp LINENO
2044# ----------------------
2045# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2046ac_fn_c_try_cpp ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 if { { ac_try="$ac_cpp conftest.$ac_ext"
2050case "(($ac_try" in
2051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2053esac
2054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055$as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2057 ac_status=$?
2058 if test -s conftest.err; then
2059 grep -v '^ *+' conftest.err >conftest.er1
2060 cat conftest.er1 >&5
2061 mv -f conftest.er1 conftest.err
2062 fi
2063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002064 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2066 test ! -s conftest.err
2067 }; then :
2068 ac_retval=0
2069else
2070 $as_echo "$as_me: failed program was:" >&5
2071sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_retval=1
2074fi
cristyda16f162011-02-19 23:52:17 +00002075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002076 as_fn_set_status $ac_retval
2077
2078} # ac_fn_c_try_cpp
2079
cristy8b350f62009-11-15 23:12:43 +00002080# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2081# -------------------------------------------------------
2082# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2083# the include files in INCLUDES and setting the cache variable VAR
2084# accordingly.
2085ac_fn_c_check_header_mongrel ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002088 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002091if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002092 $as_echo_n "(cached) " >&6
2093fi
2094eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096$as_echo "$ac_res" >&6; }
2097else
2098 # Is the header compilable?
2099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2100$as_echo_n "checking $2 usability... " >&6; }
2101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102/* end confdefs.h. */
2103$4
2104#include <$2>
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
2107 ac_header_compiler=yes
2108else
2109 ac_header_compiler=no
2110fi
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2113$as_echo "$ac_header_compiler" >&6; }
2114
2115# Is the header present?
2116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2117$as_echo_n "checking $2 presence... " >&6; }
2118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119/* end confdefs.h. */
2120#include <$2>
2121_ACEOF
2122if ac_fn_c_try_cpp "$LINENO"; then :
2123 ac_header_preproc=yes
2124else
2125 ac_header_preproc=no
2126fi
cristyda16f162011-02-19 23:52:17 +00002127rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2129$as_echo "$ac_header_preproc" >&6; }
2130
2131# So? What about this header?
2132case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2133 yes:no: )
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2135$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2137$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2138 ;;
2139 no:yes:* )
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2141$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2143$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2145$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2147$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2149$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002150( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002151## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002152## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002153 ) | sed "s/^/$as_me: WARNING: /" >&2
2154 ;;
2155esac
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002158if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002159 $as_echo_n "(cached) " >&6
2160else
2161 eval "$3=\$ac_header_compiler"
2162fi
2163eval ac_res=\$$3
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166fi
cristyda16f162011-02-19 23:52:17 +00002167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002168
2169} # ac_fn_c_check_header_mongrel
2170
2171# ac_fn_c_try_run LINENO
2172# ----------------------
2173# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2174# that executables *can* be run.
2175ac_fn_c_try_run ()
2176{
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if { { ac_try="$ac_link"
2179case "(($ac_try" in
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2182esac
2183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2184$as_echo "$ac_try_echo"; } >&5
2185 (eval "$ac_link") 2>&5
2186 ac_status=$?
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2189 { { case "(($ac_try" in
2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191 *) ac_try_echo=$ac_try;;
2192esac
2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194$as_echo "$ac_try_echo"; } >&5
2195 (eval "$ac_try") 2>&5
2196 ac_status=$?
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; }; }; then :
2199 ac_retval=0
2200else
2201 $as_echo "$as_me: program exited with status $ac_status" >&5
2202 $as_echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_retval=$ac_status
2206fi
2207 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002209 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002210
2211} # ac_fn_c_try_run
2212
2213# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2214# -------------------------------------------------------
2215# Tests whether HEADER exists and can be compiled using the include files in
2216# INCLUDES, setting the cache variable VAR accordingly.
2217ac_fn_c_check_header_compile ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002222if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002223 $as_echo_n "(cached) " >&6
2224else
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h. */
2227$4
2228#include <$2>
2229_ACEOF
2230if ac_fn_c_try_compile "$LINENO"; then :
2231 eval "$3=yes"
2232else
2233 eval "$3=no"
2234fi
2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002240 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002241
2242} # ac_fn_c_check_header_compile
2243
cristya0b81c32010-01-22 02:54:33 +00002244# ac_fn_cxx_try_compile LINENO
2245# ----------------------------
2246# Try to compile conftest.$ac_ext, and return whether this succeeded.
2247ac_fn_cxx_try_compile ()
2248{
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 rm -f conftest.$ac_objext
2251 if { { ac_try="$ac_compile"
2252case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257$as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_compile") 2>conftest.err
2259 ac_status=$?
2260 if test -s conftest.err; then
2261 grep -v '^ *+' conftest.err >conftest.er1
2262 cat conftest.er1 >&5
2263 mv -f conftest.er1 conftest.err
2264 fi
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } && {
2267 test -z "$ac_cxx_werror_flag" ||
2268 test ! -s conftest.err
2269 } && test -s conftest.$ac_objext; then :
2270 ac_retval=0
2271else
2272 $as_echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275 ac_retval=1
2276fi
cristyda16f162011-02-19 23:52:17 +00002277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002278 as_fn_set_status $ac_retval
2279
2280} # ac_fn_cxx_try_compile
2281
cristy8b350f62009-11-15 23:12:43 +00002282# ac_fn_c_try_link LINENO
2283# -----------------------
2284# Try to link conftest.$ac_ext, and return whether this succeeded.
2285ac_fn_c_try_link ()
2286{
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 rm -f conftest.$ac_objext conftest$ac_exeext
2289 if { { ac_try="$ac_link"
2290case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293esac
2294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295$as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>conftest.err
2297 ac_status=$?
2298 if test -s conftest.err; then
2299 grep -v '^ *+' conftest.err >conftest.er1
2300 cat conftest.er1 >&5
2301 mv -f conftest.er1 conftest.err
2302 fi
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; } && {
2305 test -z "$ac_c_werror_flag" ||
2306 test ! -s conftest.err
2307 } && test -s conftest$ac_exeext && {
2308 test "$cross_compiling" = yes ||
2309 $as_test_x conftest$ac_exeext
2310 }; then :
2311 ac_retval=0
2312else
2313 $as_echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316 ac_retval=1
2317fi
2318 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2319 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2320 # interfere with the next link command; also delete a directory that is
2321 # left behind by Apple's compiler. We do this before executing the actions.
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002324 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002325
2326} # ac_fn_c_try_link
2327
cristy73bd4a52010-10-05 11:24:23 +00002328# ac_fn_c_check_func LINENO FUNC VAR
2329# ----------------------------------
2330# Tests whether FUNC exists, setting the cache variable VAR accordingly
2331ac_fn_c_check_func ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002336if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002337 $as_echo_n "(cached) " >&6
2338else
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340/* end confdefs.h. */
2341/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2343#define $2 innocuous_$2
2344
2345/* System header to define __stub macros and hopefully few prototypes,
2346 which can conflict with char $2 (); below.
2347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2348 <limits.h> exists even on freestanding compilers. */
2349
2350#ifdef __STDC__
2351# include <limits.h>
2352#else
2353# include <assert.h>
2354#endif
2355
2356#undef $2
2357
2358/* Override any GCC internal prototype to avoid an error.
2359 Use char because int might match the return type of a GCC
2360 builtin and then its argument prototype would still apply. */
2361#ifdef __cplusplus
2362extern "C"
2363#endif
2364char $2 ();
2365/* The GNU C library defines this for functions which it implements
2366 to always fail with ENOSYS. Some functions are actually named
2367 something starting with __ and the normal name is an alias. */
2368#if defined __stub_$2 || defined __stub___$2
2369choke me
2370#endif
2371
2372int
2373main ()
2374{
2375return $2 ();
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380if ac_fn_c_try_link "$LINENO"; then :
2381 eval "$3=yes"
2382else
2383 eval "$3=no"
2384fi
2385rm -f core conftest.err conftest.$ac_objext \
2386 conftest$ac_exeext conftest.$ac_ext
2387fi
2388eval ac_res=\$$3
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002392
2393} # ac_fn_c_check_func
2394
2395# ac_fn_cxx_try_cpp LINENO
2396# ------------------------
2397# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2398ac_fn_cxx_try_cpp ()
2399{
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 if { { ac_try="$ac_cpp conftest.$ac_ext"
2402case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2405esac
2406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407$as_echo "$ac_try_echo"; } >&5
2408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2409 ac_status=$?
2410 if test -s conftest.err; then
2411 grep -v '^ *+' conftest.err >conftest.er1
2412 cat conftest.er1 >&5
2413 mv -f conftest.er1 conftest.err
2414 fi
2415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002416 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002417 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2418 test ! -s conftest.err
2419 }; then :
2420 ac_retval=0
2421else
2422 $as_echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 ac_retval=1
2426fi
cristyda16f162011-02-19 23:52:17 +00002427 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002428 as_fn_set_status $ac_retval
2429
2430} # ac_fn_cxx_try_cpp
2431
2432# ac_fn_cxx_try_link LINENO
2433# -------------------------
2434# Try to link conftest.$ac_ext, and return whether this succeeded.
2435ac_fn_cxx_try_link ()
2436{
2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438 rm -f conftest.$ac_objext conftest$ac_exeext
2439 if { { ac_try="$ac_link"
2440case "(($ac_try" in
2441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442 *) ac_try_echo=$ac_try;;
2443esac
2444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445$as_echo "$ac_try_echo"; } >&5
2446 (eval "$ac_link") 2>conftest.err
2447 ac_status=$?
2448 if test -s conftest.err; then
2449 grep -v '^ *+' conftest.err >conftest.er1
2450 cat conftest.er1 >&5
2451 mv -f conftest.er1 conftest.err
2452 fi
2453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454 test $ac_status = 0; } && {
2455 test -z "$ac_cxx_werror_flag" ||
2456 test ! -s conftest.err
2457 } && test -s conftest$ac_exeext && {
2458 test "$cross_compiling" = yes ||
2459 $as_test_x conftest$ac_exeext
2460 }; then :
2461 ac_retval=0
2462else
2463 $as_echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466 ac_retval=1
2467fi
2468 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2469 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2470 # interfere with the next link command; also delete a directory that is
2471 # left behind by Apple's compiler. We do this before executing the actions.
2472 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002474 as_fn_set_status $ac_retval
2475
2476} # ac_fn_cxx_try_link
2477
cristy98dddb52010-11-04 00:30:15 +00002478# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2479# ---------------------------------------------
2480# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2481# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002482ac_fn_c_check_decl ()
2483{
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002485 as_decl_name=`echo $2|sed 's/ *(.*//'`
2486 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2488$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002489if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002490 $as_echo_n "(cached) " >&6
2491else
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493/* end confdefs.h. */
2494$4
2495int
2496main ()
2497{
cristy98dddb52010-11-04 00:30:15 +00002498#ifndef $as_decl_name
2499#ifdef __cplusplus
2500 (void) $as_decl_use;
2501#else
2502 (void) $as_decl_name;
2503#endif
cristy73bd4a52010-10-05 11:24:23 +00002504#endif
2505
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 eval "$3=yes"
2512else
2513 eval "$3=no"
2514fi
2515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516fi
2517eval ac_res=\$$3
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002521
2522} # ac_fn_c_check_decl
2523
cristy8b350f62009-11-15 23:12:43 +00002524# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2525# -------------------------------------------
2526# Tests whether TYPE exists after having included INCLUDES, setting cache
2527# variable VAR accordingly.
2528ac_fn_c_check_type ()
2529{
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2532$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002533if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002534 $as_echo_n "(cached) " >&6
2535else
2536 eval "$3=no"
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h. */
2539$4
2540int
2541main ()
2542{
2543if (sizeof ($2))
2544 return 0;
2545 ;
2546 return 0;
2547}
2548_ACEOF
2549if ac_fn_c_try_compile "$LINENO"; then :
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h. */
2552$4
2553int
2554main ()
2555{
2556if (sizeof (($2)))
2557 return 0;
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563
2564else
2565 eval "$3=yes"
2566fi
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2568fi
2569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570fi
2571eval ac_res=\$$3
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2573$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002575
2576} # ac_fn_c_check_type
2577
cristy92703d82010-04-26 00:18:18 +00002578# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2579# ----------------------------------------------------
2580# Tries to find if the field MEMBER exists in type AGGR, after including
2581# INCLUDES, setting cache variable VAR accordingly.
2582ac_fn_c_check_member ()
2583{
2584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2586$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002587if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002588 $as_echo_n "(cached) " >&6
2589else
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591/* end confdefs.h. */
2592$5
2593int
2594main ()
2595{
2596static $2 ac_aggr;
2597if (ac_aggr.$3)
2598return 0;
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603if ac_fn_c_try_compile "$LINENO"; then :
2604 eval "$4=yes"
2605else
2606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h. */
2608$5
2609int
2610main ()
2611{
2612static $2 ac_aggr;
2613if (sizeof ac_aggr.$3)
2614return 0;
2615 ;
2616 return 0;
2617}
2618_ACEOF
2619if ac_fn_c_try_compile "$LINENO"; then :
2620 eval "$4=yes"
2621else
2622 eval "$4=no"
2623fi
2624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2625fi
2626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627fi
2628eval ac_res=\$$4
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002632
2633} # ac_fn_c_check_member
2634
cristy8b350f62009-11-15 23:12:43 +00002635# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2636# --------------------------------------------
2637# Tries to find the compile-time value of EXPR in a program that includes
2638# INCLUDES, setting VAR accordingly. Returns whether the value could be
2639# computed
2640ac_fn_c_compute_int ()
2641{
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 if test "$cross_compiling" = yes; then
2644 # Depending upon the size, compute the lo and hi bounds.
2645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h. */
2647$4
2648int
2649main ()
2650{
2651static int test_array [1 - 2 * !(($2) >= 0)];
2652test_array [0] = 0
2653
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658if ac_fn_c_try_compile "$LINENO"; then :
2659 ac_lo=0 ac_mid=0
2660 while :; do
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662/* end confdefs.h. */
2663$4
2664int
2665main ()
2666{
2667static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2668test_array [0] = 0
2669
2670 ;
2671 return 0;
2672}
2673_ACEOF
2674if ac_fn_c_try_compile "$LINENO"; then :
2675 ac_hi=$ac_mid; break
2676else
2677 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2678 if test $ac_lo -le $ac_mid; then
2679 ac_lo= ac_hi=
2680 break
2681 fi
2682 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2683fi
2684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 done
2686else
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688/* end confdefs.h. */
2689$4
2690int
2691main ()
2692{
2693static int test_array [1 - 2 * !(($2) < 0)];
2694test_array [0] = 0
2695
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700if ac_fn_c_try_compile "$LINENO"; then :
2701 ac_hi=-1 ac_mid=-1
2702 while :; do
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h. */
2705$4
2706int
2707main ()
2708{
2709static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2710test_array [0] = 0
2711
2712 ;
2713 return 0;
2714}
2715_ACEOF
2716if ac_fn_c_try_compile "$LINENO"; then :
2717 ac_lo=$ac_mid; break
2718else
2719 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2720 if test $ac_mid -le $ac_hi; then
2721 ac_lo= ac_hi=
2722 break
2723 fi
2724 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2725fi
2726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727 done
2728else
2729 ac_lo= ac_hi=
2730fi
2731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732fi
2733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734# Binary search between lo and hi bounds.
2735while test "x$ac_lo" != "x$ac_hi"; do
2736 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$4
2740int
2741main ()
2742{
2743static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2744test_array [0] = 0
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750if ac_fn_c_try_compile "$LINENO"; then :
2751 ac_hi=$ac_mid
2752else
2753 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2754fi
2755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2756done
2757case $ac_lo in #((
2758?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2759'') ac_retval=1 ;;
2760esac
2761 else
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763/* end confdefs.h. */
2764$4
2765static long int longval () { return $2; }
2766static unsigned long int ulongval () { return $2; }
2767#include <stdio.h>
2768#include <stdlib.h>
2769int
2770main ()
2771{
2772
2773 FILE *f = fopen ("conftest.val", "w");
2774 if (! f)
2775 return 1;
2776 if (($2) < 0)
2777 {
2778 long int i = longval ();
2779 if (i != ($2))
2780 return 1;
2781 fprintf (f, "%ld", i);
2782 }
2783 else
2784 {
2785 unsigned long int i = ulongval ();
2786 if (i != ($2))
2787 return 1;
2788 fprintf (f, "%lu", i);
2789 }
2790 /* Do not output a trailing newline, as this causes \r\n confusion
2791 on some platforms. */
2792 return ferror (f) || fclose (f) != 0;
2793
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798if ac_fn_c_try_run "$LINENO"; then :
2799 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2800else
2801 ac_retval=1
2802fi
2803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2804 conftest.$ac_objext conftest.beam conftest.$ac_ext
2805rm -f conftest.val
2806
2807 fi
cristyda16f162011-02-19 23:52:17 +00002808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002809 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002810
2811} # ac_fn_c_compute_int
2812
2813# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2814# ---------------------------------------------------------
2815# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2816# the include files in INCLUDES and setting the cache variable VAR
2817# accordingly.
2818ac_fn_cxx_check_header_mongrel ()
2819{
2820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002821 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2823$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002824if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002825 $as_echo_n "(cached) " >&6
2826fi
2827eval ac_res=\$$3
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829$as_echo "$ac_res" >&6; }
2830else
2831 # Is the header compilable?
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2833$as_echo_n "checking $2 usability... " >&6; }
2834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836$4
2837#include <$2>
2838_ACEOF
2839if ac_fn_cxx_try_compile "$LINENO"; then :
2840 ac_header_compiler=yes
2841else
2842 ac_header_compiler=no
2843fi
2844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2846$as_echo "$ac_header_compiler" >&6; }
2847
2848# Is the header present?
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2850$as_echo_n "checking $2 presence... " >&6; }
2851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853#include <$2>
2854_ACEOF
2855if ac_fn_cxx_try_cpp "$LINENO"; then :
2856 ac_header_preproc=yes
2857else
2858 ac_header_preproc=no
2859fi
cristyda16f162011-02-19 23:52:17 +00002860rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2862$as_echo "$ac_header_preproc" >&6; }
2863
2864# So? What about this header?
2865case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2866 yes:no: )
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2868$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2871 ;;
2872 no:yes:* )
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2874$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2876$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2878$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2880$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2882$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002883( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002884## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002885## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002886 ) | sed "s/^/$as_me: WARNING: /" >&2
2887 ;;
2888esac
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002891if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002892 $as_echo_n "(cached) " >&6
2893else
2894 eval "$3=\$ac_header_compiler"
2895fi
2896eval ac_res=\$$3
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2898$as_echo "$ac_res" >&6; }
2899fi
cristyda16f162011-02-19 23:52:17 +00002900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002901
2902} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00002903cat >config.log <<_ACEOF
2904This file contains any messages produced by compilers while
2905running configure, to aid debugging if configure makes a mistake.
2906
cristyee742642011-02-26 02:49:59 +00002907It was created by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +00002908generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00002909
2910 $ $0 $@
2911
2912_ACEOF
2913exec 5>>config.log
2914{
2915cat <<_ASUNAME
2916## --------- ##
2917## Platform. ##
2918## --------- ##
2919
2920hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2921uname -m = `(uname -m) 2>/dev/null || echo unknown`
2922uname -r = `(uname -r) 2>/dev/null || echo unknown`
2923uname -s = `(uname -s) 2>/dev/null || echo unknown`
2924uname -v = `(uname -v) 2>/dev/null || echo unknown`
2925
2926/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2927/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2928
2929/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2930/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2931/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2932/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2933/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2934/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2935/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2936
2937_ASUNAME
2938
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00002944 $as_echo "PATH: $as_dir"
2945 done
cristy3ed852e2009-09-05 21:47:34 +00002946IFS=$as_save_IFS
2947
2948} >&5
2949
2950cat >&5 <<_ACEOF
2951
2952
2953## ----------- ##
2954## Core tests. ##
2955## ----------- ##
2956
2957_ACEOF
2958
2959
2960# Keep a trace of the command line.
2961# Strip out --no-create and --no-recursion so they do not pile up.
2962# Strip out --silent because we don't want to record it for future runs.
2963# Also quote any args containing shell meta-characters.
2964# Make two passes to allow for proper duplicate-argument suppression.
2965ac_configure_args=
2966ac_configure_args0=
2967ac_configure_args1=
2968ac_must_keep_next=false
2969for ac_pass in 1 2
2970do
2971 for ac_arg
2972 do
2973 case $ac_arg in
2974 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2975 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2976 | -silent | --silent | --silen | --sile | --sil)
2977 continue ;;
2978 *\'*)
2979 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 esac
2981 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00002982 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00002983 2)
cristy8b350f62009-11-15 23:12:43 +00002984 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00002985 if test $ac_must_keep_next = true; then
2986 ac_must_keep_next=false # Got value, back to normal.
2987 else
2988 case $ac_arg in
2989 *=* | --config-cache | -C | -disable-* | --disable-* \
2990 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2991 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2992 | -with-* | --with-* | -without-* | --without-* | --x)
2993 case "$ac_configure_args0 " in
2994 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2995 esac
2996 ;;
2997 -* ) ac_must_keep_next=true ;;
2998 esac
2999 fi
cristy8b350f62009-11-15 23:12:43 +00003000 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003001 ;;
3002 esac
3003 done
3004done
cristy8b350f62009-11-15 23:12:43 +00003005{ ac_configure_args0=; unset ac_configure_args0;}
3006{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003007
3008# When interrupted or exit'd, cleanup temporary files, and complete
3009# config.log. We remove comments because anyway the quotes in there
3010# would cause problems or look ugly.
3011# WARNING: Use '\'' to represent an apostrophe within the trap.
3012# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3013trap 'exit_status=$?
3014 # Save into config.log some information that might help in debugging.
3015 {
3016 echo
3017
cristy98dddb52010-11-04 00:30:15 +00003018 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003019## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003020## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003021 echo
3022 # The following way of writing the cache mishandles newlines in values,
3023(
3024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3025 eval ac_val=\$$ac_var
3026 case $ac_val in #(
3027 *${as_nl}*)
3028 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3031 esac
3032 case $ac_var in #(
3033 _ | IFS | as_nl) ;; #(
3034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003035 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003036 esac ;;
3037 esac
3038 done
3039 (set) 2>&1 |
3040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3041 *${as_nl}ac_space=\ *)
3042 sed -n \
3043 "s/'\''/'\''\\\\'\'''\''/g;
3044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3045 ;; #(
3046 *)
3047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3048 ;;
3049 esac |
3050 sort
3051)
3052 echo
3053
cristy98dddb52010-11-04 00:30:15 +00003054 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003055## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003056## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003057 echo
3058 for ac_var in $ac_subst_vars
3059 do
3060 eval ac_val=\$$ac_var
3061 case $ac_val in
3062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3063 esac
3064 $as_echo "$ac_var='\''$ac_val'\''"
3065 done | sort
3066 echo
3067
3068 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003069 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003070## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003071## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003072 echo
3073 for ac_var in $ac_subst_files
3074 do
3075 eval ac_val=\$$ac_var
3076 case $ac_val in
3077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3078 esac
3079 $as_echo "$ac_var='\''$ac_val'\''"
3080 done | sort
3081 echo
3082 fi
3083
3084 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003085 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003086## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003087## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003088 echo
3089 cat confdefs.h
3090 echo
3091 fi
3092 test "$ac_signal" != 0 &&
3093 $as_echo "$as_me: caught signal $ac_signal"
3094 $as_echo "$as_me: exit $exit_status"
3095 } >&5
3096 rm -f core *.core core.conftest.* &&
3097 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3098 exit $exit_status
3099' 0
3100for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003101 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003102done
3103ac_signal=0
3104
3105# confdefs.h avoids OS command line length limits that DEFS can exceed.
3106rm -f -r conftest* confdefs.h
3107
cristy8b350f62009-11-15 23:12:43 +00003108$as_echo "/* confdefs.h */" > confdefs.h
3109
cristy3ed852e2009-09-05 21:47:34 +00003110# Predefined preprocessor variables.
3111
3112cat >>confdefs.h <<_ACEOF
3113#define PACKAGE_NAME "$PACKAGE_NAME"
3114_ACEOF
3115
cristy3ed852e2009-09-05 21:47:34 +00003116cat >>confdefs.h <<_ACEOF
3117#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3118_ACEOF
3119
cristy3ed852e2009-09-05 21:47:34 +00003120cat >>confdefs.h <<_ACEOF
3121#define PACKAGE_VERSION "$PACKAGE_VERSION"
3122_ACEOF
3123
cristy3ed852e2009-09-05 21:47:34 +00003124cat >>confdefs.h <<_ACEOF
3125#define PACKAGE_STRING "$PACKAGE_STRING"
3126_ACEOF
3127
cristy3ed852e2009-09-05 21:47:34 +00003128cat >>confdefs.h <<_ACEOF
3129#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3130_ACEOF
3131
cristy8b350f62009-11-15 23:12:43 +00003132cat >>confdefs.h <<_ACEOF
3133#define PACKAGE_URL "$PACKAGE_URL"
3134_ACEOF
3135
cristy3ed852e2009-09-05 21:47:34 +00003136
3137# Let the site file select an alternate cache file if it wants to.
3138# Prefer an explicitly selected file to automatically selected ones.
3139ac_site_file1=NONE
3140ac_site_file2=NONE
3141if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003142 # We do not want a PATH search for config.site.
3143 case $CONFIG_SITE in #((
3144 -*) ac_site_file1=./$CONFIG_SITE;;
3145 */*) ac_site_file1=$CONFIG_SITE;;
3146 *) ac_site_file1=./$CONFIG_SITE;;
3147 esac
cristy3ed852e2009-09-05 21:47:34 +00003148elif test "x$prefix" != xNONE; then
3149 ac_site_file1=$prefix/share/config.site
3150 ac_site_file2=$prefix/etc/config.site
3151else
3152 ac_site_file1=$ac_default_prefix/share/config.site
3153 ac_site_file2=$ac_default_prefix/etc/config.site
3154fi
3155for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3156do
3157 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003158 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003160$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3161 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003162 . "$ac_site_file" \
3163 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165as_fn_error $? "failed to load site script $ac_site_file
3166See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003167 fi
3168done
3169
3170if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003171 # Some versions of bash will fail to source /dev/null (special files
3172 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3173 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003175$as_echo "$as_me: loading cache $cache_file" >&6;}
3176 case $cache_file in
3177 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3178 *) . "./$cache_file";;
3179 esac
3180 fi
3181else
cristy8b350f62009-11-15 23:12:43 +00003182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003183$as_echo "$as_me: creating cache $cache_file" >&6;}
3184 >$cache_file
3185fi
3186
cristycd4c5312009-11-22 01:19:08 +00003187as_fn_append ac_header_list " stdlib.h"
3188as_fn_append ac_header_list " unistd.h"
3189as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003190# Check that the precious variables saved in the cache have kept the same
3191# value.
3192ac_cache_corrupted=false
3193for ac_var in $ac_precious_vars; do
3194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3195 eval ac_new_set=\$ac_env_${ac_var}_set
3196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3197 eval ac_new_val=\$ac_env_${ac_var}_value
3198 case $ac_old_set,$ac_new_set in
3199 set,)
cristy8b350f62009-11-15 23:12:43 +00003200 { $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 +00003201$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3202 ac_cache_corrupted=: ;;
3203 ,set)
cristy8b350f62009-11-15 23:12:43 +00003204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003205$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3206 ac_cache_corrupted=: ;;
3207 ,);;
3208 *)
3209 if test "x$ac_old_val" != "x$ac_new_val"; then
3210 # differences in whitespace do not lead to failure.
3211 ac_old_val_w=`echo x $ac_old_val`
3212 ac_new_val_w=`echo x $ac_new_val`
3213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003215$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3216 ac_cache_corrupted=:
3217 else
cristy8b350f62009-11-15 23:12:43 +00003218 { $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 +00003219$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3220 eval $ac_var=\$ac_old_val
3221 fi
cristy8b350f62009-11-15 23:12:43 +00003222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003223$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003225$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3226 fi;;
3227 esac
3228 # Pass precious variables to config.status.
3229 if test "$ac_new_set" = set; then
3230 case $ac_new_val in
3231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3232 *) ac_arg=$ac_var=$ac_new_val ;;
3233 esac
3234 case " $ac_configure_args " in
3235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003237 esac
3238 fi
3239done
3240if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003244$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003246fi
cristy8b350f62009-11-15 23:12:43 +00003247## -------------------- ##
3248## Main body of script. ##
3249## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003250
3251ac_ext=c
3252ac_cpp='$CPP $CPPFLAGS'
3253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256
3257
3258
3259ac_aux_dir=
3260for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003261 if test -f "$ac_dir/install-sh"; then
3262 ac_aux_dir=$ac_dir
3263 ac_install_sh="$ac_aux_dir/install-sh -c"
3264 break
3265 elif test -f "$ac_dir/install.sh"; then
3266 ac_aux_dir=$ac_dir
3267 ac_install_sh="$ac_aux_dir/install.sh -c"
3268 break
3269 elif test -f "$ac_dir/shtool"; then
3270 ac_aux_dir=$ac_dir
3271 ac_install_sh="$ac_aux_dir/shtool install -c"
3272 break
3273 fi
cristy3ed852e2009-09-05 21:47:34 +00003274done
3275if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003277fi
3278
3279# These three variables are undocumented and unsupported,
3280# and are intended to be withdrawn in a future Autoconf release.
3281# They can cause serious problems if a builder's source tree is in a directory
3282# whose full name contains unusual characters.
3283ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3284ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3285ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3286
3287
3288
3289
3290ac_config_headers="$ac_config_headers config/config.h"
3291
cristy24fc1fe2010-10-23 21:13:01 +00003292
cristy73bd4a52010-10-05 11:24:23 +00003293ac_config_commands="$ac_config_commands magick/magick-config.h"
3294
cristy430a7312010-01-21 20:44:04 +00003295ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003296
3297
3298#
3299# Save initial user-tunable values
3300#
3301USER_LIBS=$LIBS
3302for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3303 eval isset=\${$var+set}
3304 if test "$isset" = 'set'; then
3305 eval val=$`echo $var`
3306 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3307 fi
3308done
3309
3310
3311CONFIGURE_ARGS="$0 ${ac_configure_args}"
3312
3313
3314# Source file containing package/library versioning information.
3315. ${srcdir}/version.sh
3316
cristy15a88782010-01-31 23:24:49 +00003317echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003318# Make sure we can run config.sub.
3319$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003321
cristy8b350f62009-11-15 23:12:43 +00003322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003323$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003324if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003325 $as_echo_n "(cached) " >&6
3326else
3327 ac_build_alias=$build_alias
3328test "x$ac_build_alias" = x &&
3329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3330test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003332ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003334
3335fi
cristy8b350f62009-11-15 23:12:43 +00003336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003337$as_echo "$ac_cv_build" >&6; }
3338case $ac_cv_build in
3339*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003340*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003341esac
3342build=$ac_cv_build
3343ac_save_IFS=$IFS; IFS='-'
3344set x $ac_cv_build
3345shift
3346build_cpu=$1
3347build_vendor=$2
3348shift; shift
3349# Remember, the first character of IFS is used to create $*,
3350# except with old shells:
3351build_os=$*
3352IFS=$ac_save_IFS
3353case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3354
3355
cristy8b350f62009-11-15 23:12:43 +00003356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003357$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003358if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003359 $as_echo_n "(cached) " >&6
3360else
3361 if test "x$host_alias" = x; then
3362 ac_cv_host=$ac_cv_build
3363else
3364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003366fi
3367
3368fi
cristy8b350f62009-11-15 23:12:43 +00003369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo "$ac_cv_host" >&6; }
3371case $ac_cv_host in
3372*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003373*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003374esac
3375host=$ac_cv_host
3376ac_save_IFS=$IFS; IFS='-'
3377set x $ac_cv_host
3378shift
3379host_cpu=$1
3380host_vendor=$2
3381shift; shift
3382# Remember, the first character of IFS is used to create $*,
3383# except with old shells:
3384host_os=$*
3385IFS=$ac_save_IFS
3386case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3387
3388
cristy8b350f62009-11-15 23:12:43 +00003389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003390$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003391if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003392 $as_echo_n "(cached) " >&6
3393else
3394 if test "x$target_alias" = x; then
3395 ac_cv_target=$ac_cv_host
3396else
3397 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003399fi
3400
3401fi
cristy8b350f62009-11-15 23:12:43 +00003402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$ac_cv_target" >&6; }
3404case $ac_cv_target in
3405*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003406*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003407esac
3408target=$ac_cv_target
3409ac_save_IFS=$IFS; IFS='-'
3410set x $ac_cv_target
3411shift
3412target_cpu=$1
3413target_vendor=$2
3414shift; shift
3415# Remember, the first character of IFS is used to create $*,
3416# except with old shells:
3417target_os=$*
3418IFS=$ac_save_IFS
3419case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3420
3421
3422# The aliases save the names the user supplied, while $host etc.
3423# will get canonicalized.
3424test -n "$target_alias" &&
3425 test "$program_prefix$program_suffix$program_transform_name" = \
3426 NONENONEs,x,x, &&
3427 program_prefix=${target_alias}-
3428
cristy837d6dc2010-02-27 01:16:57 +00003429
3430
3431
3432
cristy3225a072010-04-17 01:47:28 +00003433MAGICK_TARGET_CPU=$target_cpu
3434
3435
3436MAGICK_TARGET_VENDOR=$target_vendor
3437
3438
3439MAGICK_TARGET_OS=$target_os
3440
3441
cristy3ed852e2009-09-05 21:47:34 +00003442# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003443MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3444
3445MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3446
cristy3ed852e2009-09-05 21:47:34 +00003447
3448
3449# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3451$as_echo_n "checking whether build environment is sane... " >&6; }
3452# Just in case
3453sleep 1
3454echo timestamp > conftest.file
3455# Reject unsafe characters in $srcdir or the absolute working directory
3456# name. Accept space and tab only in the latter.
3457am_lf='
3458'
3459case `pwd` in
3460 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003461 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003462esac
3463case $srcdir in
3464 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003465 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003466esac
cristy3ed852e2009-09-05 21:47:34 +00003467
cristy73bd4a52010-10-05 11:24:23 +00003468# Do `set' in a subshell so we don't clobber the current shell's
3469# arguments. Must try -L first in case configure is actually a
3470# symlink; some systems play weird games with the mod time of symlinks
3471# (eg FreeBSD returns the mod time of the symlink's containing
3472# directory).
3473if (
3474 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3475 if test "$*" = "X"; then
3476 # -L didn't work.
3477 set X `ls -t "$srcdir/configure" conftest.file`
3478 fi
3479 rm -f conftest.file
3480 if test "$*" != "X $srcdir/configure conftest.file" \
3481 && test "$*" != "X conftest.file $srcdir/configure"; then
3482
3483 # If neither matched, then we have a broken ls. This can happen
3484 # if, for instance, CONFIG_SHELL is bash and it inherits a
3485 # broken ls alias from the environment. This has actually
3486 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003487 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003488alias in your environment" "$LINENO" 5
3489 fi
3490
3491 test "$2" = conftest.file
3492 )
3493then
3494 # Ok.
3495 :
3496else
cristy98dddb52010-11-04 00:30:15 +00003497 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003498Check your system clock" "$LINENO" 5
3499fi
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502
3503am__api_version='1.11'
3504
3505# Find a good install program. We prefer a C program (faster),
3506# so one script is as good as another. But avoid the broken or
3507# incompatible versions:
3508# SysV /etc/install, /usr/sbin/install
3509# SunOS /usr/etc/install
3510# IRIX /sbin/install
3511# AIX /bin/install
3512# AmigaOS /C/install, which installs bootblocks on floppy discs
3513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3516# OS/2's system install, which has a completely different semantic
3517# ./install, which can be erroneously created by make from ./install.sh.
3518# Reject install programs that cannot install multiple files.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3520$as_echo_n "checking for a BSD-compatible install... " >&6; }
3521if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003522if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003523 $as_echo_n "(cached) " >&6
3524else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 # Account for people who put trailing slashes in PATH elements.
3531case $as_dir/ in #((
3532 ./ | .// | /[cC]/* | \
3533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3535 /usr/ucb/* ) ;;
3536 *)
3537 # OSF1 and SCO ODT 3.0 have their own names for install.
3538 # Don't use installbsd from OSF since it installs stuff as root
3539 # by default.
3540 for ac_prog in ginstall scoinst install; do
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3543 if test $ac_prog = install &&
3544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3545 # AIX install. It has an incompatible calling convention.
3546 :
3547 elif test $ac_prog = install &&
3548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3549 # program-specific install script used by HP pwplus--don't use.
3550 :
3551 else
3552 rm -rf conftest.one conftest.two conftest.dir
3553 echo one > conftest.one
3554 echo two > conftest.two
3555 mkdir conftest.dir
3556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3557 test -s conftest.one && test -s conftest.two &&
3558 test -s conftest.dir/conftest.one &&
3559 test -s conftest.dir/conftest.two
3560 then
3561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3562 break 3
3563 fi
3564 fi
3565 fi
3566 done
3567 done
3568 ;;
3569esac
3570
3571 done
3572IFS=$as_save_IFS
3573
3574rm -rf conftest.one conftest.two conftest.dir
3575
3576fi
3577 if test "${ac_cv_path_install+set}" = set; then
3578 INSTALL=$ac_cv_path_install
3579 else
3580 # As a last resort, use the slow shell script. Don't cache a
3581 # value for INSTALL within a source directory, because that will
3582 # break other packages using the cache if that directory is
3583 # removed, or if the value is a relative name.
3584 INSTALL=$ac_install_sh
3585 fi
3586fi
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3588$as_echo "$INSTALL" >&6; }
3589
3590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3591# It thinks the first close brace ends the variable substitution.
3592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3593
3594test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3595
3596test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3597
3598test "$program_prefix" != NONE &&
3599 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3600# Use a double $ so make ignores it.
3601test "$program_suffix" != NONE &&
3602 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3603# Double any \ or $.
3604# By default was `s,x,x', remove it if useless.
3605ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3606program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3607
3608# expand $ac_aux_dir to an absolute path
3609am_aux_dir=`cd $ac_aux_dir && pwd`
3610
3611if test x"${MISSING+set}" != xset; then
3612 case $am_aux_dir in
3613 *\ * | *\ *)
3614 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3615 *)
3616 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3617 esac
3618fi
3619# Use eval to expand $SHELL
3620if eval "$MISSING --run true"; then
3621 am_missing_run="$MISSING --run "
3622else
3623 am_missing_run=
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3625$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3626fi
3627
3628if test x"${install_sh}" != xset; then
3629 case $am_aux_dir in
3630 *\ * | *\ *)
3631 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3632 *)
3633 install_sh="\${SHELL} $am_aux_dir/install-sh"
3634 esac
3635fi
3636
3637# Installed binaries are usually stripped using `strip' when the user
3638# run `make install-strip'. However `strip' might not be the right
3639# tool to use in cross-compilation environments, therefore Automake
3640# will honor the `STRIP' environment variable to overrule this program.
3641if test "$cross_compiling" != no; then
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3644set dummy ${ac_tool_prefix}strip; ac_word=$2
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003647if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003648 $as_echo_n "(cached) " >&6
3649else
3650 if test -n "$STRIP"; then
3651 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664done
3665 done
3666IFS=$as_save_IFS
3667
3668fi
3669fi
3670STRIP=$ac_cv_prog_STRIP
3671if test -n "$STRIP"; then
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3673$as_echo "$STRIP" >&6; }
3674else
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676$as_echo "no" >&6; }
3677fi
3678
3679
3680fi
3681if test -z "$ac_cv_prog_STRIP"; then
3682 ac_ct_STRIP=$STRIP
3683 # Extract the first word of "strip", so it can be a program name with args.
3684set dummy strip; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003687if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003688 $as_echo_n "(cached) " >&6
3689else
3690 if test -n "$ac_ct_STRIP"; then
3691 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_ac_ct_STRIP="strip"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3703 fi
3704done
3705 done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3711if test -n "$ac_ct_STRIP"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3713$as_echo "$ac_ct_STRIP" >&6; }
3714else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719 if test "x$ac_ct_STRIP" = x; then
3720 STRIP=":"
3721 else
3722 case $cross_compiling:$ac_tool_warned in
3723yes:)
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3726ac_tool_warned=yes ;;
3727esac
3728 STRIP=$ac_ct_STRIP
3729 fi
3730else
3731 STRIP="$ac_cv_prog_STRIP"
3732fi
3733
3734fi
3735INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3736
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3738$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3739if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003740 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003741 $as_echo_n "(cached) " >&6
3742else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_prog in mkdir gmkdir; do
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3751 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3752 'mkdir (GNU coreutils) '* | \
3753 'mkdir (coreutils) '* | \
3754 'mkdir (fileutils) '4.1*)
3755 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3756 break 3;;
3757 esac
3758 done
3759 done
3760 done
3761IFS=$as_save_IFS
3762
3763fi
3764
3765 test -d ./--version && rmdir ./--version
3766 if test "${ac_cv_path_mkdir+set}" = set; then
3767 MKDIR_P="$ac_cv_path_mkdir -p"
3768 else
3769 # As a last resort, use the slow shell script. Don't cache a
3770 # value for MKDIR_P within a source directory, because that will
3771 # break other packages using the cache if that directory is
3772 # removed, or if the value is a relative name.
3773 MKDIR_P="$ac_install_sh -d"
3774 fi
3775fi
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3777$as_echo "$MKDIR_P" >&6; }
3778
3779mkdir_p="$MKDIR_P"
3780case $mkdir_p in
3781 [\\/$]* | ?:[\\/]*) ;;
3782 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3783esac
3784
3785for ac_prog in gawk mawk nawk awk
3786do
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788set dummy $ac_prog; ac_word=$2
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003791if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003792 $as_echo_n "(cached) " >&6
3793else
3794 if test -n "$AWK"; then
3795 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3796else
3797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798for as_dir in $PATH
3799do
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_AWK="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3807 fi
3808done
3809 done
3810IFS=$as_save_IFS
3811
3812fi
3813fi
3814AWK=$ac_cv_prog_AWK
3815if test -n "$AWK"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3817$as_echo "$AWK" >&6; }
3818else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820$as_echo "no" >&6; }
3821fi
3822
3823
3824 test -n "$AWK" && break
3825done
3826
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3828$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3829set x ${MAKE-make}
3830ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00003831if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003832 $as_echo_n "(cached) " >&6
3833else
3834 cat >conftest.make <<\_ACEOF
3835SHELL = /bin/sh
3836all:
3837 @echo '@@@%%%=$(MAKE)=@@@%%%'
3838_ACEOF
cristy98dddb52010-11-04 00:30:15 +00003839# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00003840case `${MAKE-make} -f conftest.make 2>/dev/null` in
3841 *@@@%%%=?*=@@@%%%*)
3842 eval ac_cv_prog_make_${ac_make}_set=yes;;
3843 *)
3844 eval ac_cv_prog_make_${ac_make}_set=no;;
3845esac
3846rm -f conftest.make
3847fi
3848if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3850$as_echo "yes" >&6; }
3851 SET_MAKE=
3852else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854$as_echo "no" >&6; }
3855 SET_MAKE="MAKE=${MAKE-make}"
3856fi
3857
3858rm -rf .tst 2>/dev/null
3859mkdir .tst 2>/dev/null
3860if test -d .tst; then
3861 am__leading_dot=.
3862else
3863 am__leading_dot=_
3864fi
3865rmdir .tst 2>/dev/null
3866
3867if test "`cd $srcdir && pwd`" != "`pwd`"; then
3868 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3869 # is not polluted with repeated "-I."
3870 am__isrc=' -I$(srcdir)'
3871 # test to see if srcdir already configured
3872 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00003873 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00003874 fi
3875fi
3876
3877# test whether we have cygpath
3878if test -z "$CYGPATH_W"; then
3879 if (cygpath --version) >/dev/null 2>/dev/null; then
3880 CYGPATH_W='cygpath -w'
3881 else
3882 CYGPATH_W=echo
3883 fi
3884fi
3885
3886
3887# Define the identity of the package.
3888 PACKAGE=$PACKAGE_NAME
3889 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3890
3891
3892# Some tools Automake needs.
3893
3894ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3895
3896
3897AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3898
3899
3900AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3901
3902
3903AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3904
3905
3906MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3907
3908# We need awk for the "check" target. The system "awk" is bad on
3909# some platforms.
3910# Always define AMTAR for backward compatibility.
3911
3912AMTAR=${AMTAR-"${am_missing_run}tar"}
3913
3914am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3915
3916
3917
3918
3919
cristy3ed852e2009-09-05 21:47:34 +00003920
3921# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00003922# Check whether --enable-silent-rules was given.
3923if test "${enable_silent_rules+set}" = set; then :
3924 enableval=$enable_silent_rules;
3925fi
3926
3927case $enable_silent_rules in
3928yes) AM_DEFAULT_VERBOSITY=0;;
3929no) AM_DEFAULT_VERBOSITY=1;;
3930*) AM_DEFAULT_VERBOSITY=0;;
3931esac
3932AM_BACKSLASH='\'
3933
cristy3ed852e2009-09-05 21:47:34 +00003934
3935MAGICK_LIB_VERSION="0x"
3936if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3937 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3938fi
3939MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3940if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3941 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3942fi
3943MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3944if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3945 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3946fi
3947MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3948
3949
3950# Definition used to define MagickLibVersionText in version.h
3951MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3952
3953
3954# Definition used to define MagickLibVersionNumber in version.h
3955MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3956
3957
3958# Regenerate config.status if ChangeLog or version.sh is updated.
3959CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3960
3961
3962PERLMAINCC=$CC
3963
3964MAGICK_CFLAGS=''
3965MAGICK_CPPFLAGS=$CPPFLAGS_USER
3966MAGICK_PCFLAGS=$CPPFLAGS_USER
3967MAGICK_LDFLAGS=''
3968MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00003969MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00003970
3971#
3972# Evaluate shell variable equivalents to Makefile directory variables
3973#
3974if test "x$prefix" = xNONE; then
3975 prefix=$ac_default_prefix
3976fi
3977# Let make expand exec_prefix.
3978if test "x$exec_prefix" = xNONE; then
3979 exec_prefix='${prefix}'
3980fi
3981
3982#
3983eval "eval PREFIX_DIR=${prefix}"
3984
3985eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3986
3987eval "eval BIN_DIR=$bindir"
3988
3989eval "eval SBIN_DIR=$sbindir"
3990
3991eval "eval LIBEXEC_DIR=$libexecdir"
3992
3993eval "eval DATA_DIR=$datadir"
3994
3995eval "eval SYSCONF_DIR=$sysconfdir"
3996
3997eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3998
3999eval "eval LOCALSTATE_DIR=$localstatedir"
4000
4001eval "eval LIB_DIR=$libdir"
4002
4003eval "eval INCLUDE_DIR=$includedir"
4004
4005eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4006
4007eval "eval INFO_DIR=$infodir"
4008
4009eval "eval MAN_DIR=$mandir"
4010
4011
4012# Get full paths to source and build directories
4013srcdirfull="`cd $srcdir && pwd`"
4014builddir="`pwd`"
4015
4016#
4017# Compute variables useful for running uninstalled software.
4018#
4019MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4020MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4021MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4022MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4023DIRSEP=':'
4024case "${build_os}" in
4025 mingw* )
4026 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4027 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4028 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4029 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4030 DIRSEP=';'
4031 ;;
4032esac
4033case "${host_os}" in
4034 mingw* )
4035 DIRSEP=';'
4036 ;;
4037esac
4038
4039
4040
4041
4042
4043
cristya0b81c32010-01-22 02:54:33 +00004044
4045#
4046# Enable OS features.
4047#
cristy73bd4a52010-10-05 11:24:23 +00004048DEPDIR="${am__leading_dot}deps"
4049
4050ac_config_commands="$ac_config_commands depfiles"
4051
4052
4053am_make=${MAKE-make}
4054cat > confinc << 'END'
4055am__doit:
4056 @echo this is the am__doit target
4057.PHONY: am__doit
4058END
4059# If we don't find an include directive, just comment out the code.
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4061$as_echo_n "checking for style of include used by $am_make... " >&6; }
4062am__include="#"
4063am__quote=
4064_am_result=none
4065# First try GNU make style include.
4066echo "include confinc" > confmf
4067# Ignore all kinds of additional output from `make'.
4068case `$am_make -s -f confmf 2> /dev/null` in #(
4069*the\ am__doit\ target*)
4070 am__include=include
4071 am__quote=
4072 _am_result=GNU
4073 ;;
4074esac
4075# Now try BSD make style include.
4076if test "$am__include" = "#"; then
4077 echo '.include "confinc"' > confmf
4078 case `$am_make -s -f confmf 2> /dev/null` in #(
4079 *the\ am__doit\ target*)
4080 am__include=.include
4081 am__quote="\""
4082 _am_result=BSD
4083 ;;
4084 esac
4085fi
4086
4087
4088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4089$as_echo "$_am_result" >&6; }
4090rm -f confinc confmf
4091
4092# Check whether --enable-dependency-tracking was given.
4093if test "${enable_dependency_tracking+set}" = set; then :
4094 enableval=$enable_dependency_tracking;
4095fi
4096
4097if test "x$enable_dependency_tracking" != xno; then
4098 am_depcomp="$ac_aux_dir/depcomp"
4099 AMDEPBACKSLASH='\'
4100fi
4101 if test "x$enable_dependency_tracking" != xno; then
4102 AMDEP_TRUE=
4103 AMDEP_FALSE='#'
4104else
4105 AMDEP_TRUE='#'
4106 AMDEP_FALSE=
4107fi
4108
4109
cristy3ed852e2009-09-05 21:47:34 +00004110ac_ext=c
4111ac_cpp='$CPP $CPPFLAGS'
4112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4117set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004119$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004120if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004121 $as_echo_n "(cached) " >&6
4122else
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004131 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004135 break 2
4136 fi
4137done
cristy8b350f62009-11-15 23:12:43 +00004138 done
cristy3ed852e2009-09-05 21:47:34 +00004139IFS=$as_save_IFS
4140
4141fi
4142fi
4143CC=$ac_cv_prog_CC
4144if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004146$as_echo "$CC" >&6; }
4147else
cristy8b350f62009-11-15 23:12:43 +00004148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004149$as_echo "no" >&6; }
4150fi
4151
4152
4153fi
4154if test -z "$ac_cv_prog_CC"; then
4155 ac_ct_CC=$CC
4156 # Extract the first word of "gcc", so it can be a program name with args.
4157set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004159$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004160if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004161 $as_echo_n "(cached) " >&6
4162else
4163 if test -n "$ac_ct_CC"; then
4164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004175 break 2
4176 fi
4177done
cristy8b350f62009-11-15 23:12:43 +00004178 done
cristy3ed852e2009-09-05 21:47:34 +00004179IFS=$as_save_IFS
4180
4181fi
4182fi
4183ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004186$as_echo "$ac_ct_CC" >&6; }
4187else
cristy8b350f62009-11-15 23:12:43 +00004188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004189$as_echo "no" >&6; }
4190fi
4191
4192 if test "x$ac_ct_CC" = x; then
4193 CC=""
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196yes:)
cristy8b350f62009-11-15 23:12:43 +00004197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199ac_tool_warned=yes ;;
4200esac
4201 CC=$ac_ct_CC
4202 fi
4203else
4204 CC="$ac_cv_prog_CC"
4205fi
4206
4207if test -z "$CC"; then
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4210set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004213if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004214 $as_echo_n "(cached) " >&6
4215else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218else
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004228 break 2
4229 fi
4230done
cristy8b350f62009-11-15 23:12:43 +00004231 done
cristy3ed852e2009-09-05 21:47:34 +00004232IFS=$as_save_IFS
4233
4234fi
4235fi
4236CC=$ac_cv_prog_CC
4237if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004239$as_echo "$CC" >&6; }
4240else
cristy8b350f62009-11-15 23:12:43 +00004241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004242$as_echo "no" >&6; }
4243fi
4244
4245
4246 fi
4247fi
4248if test -z "$CC"; then
4249 # Extract the first word of "cc", so it can be a program name with args.
4250set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004252$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004253if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004254 $as_echo_n "(cached) " >&6
4255else
4256 if test -n "$CC"; then
4257 ac_cv_prog_CC="$CC" # Let the user override the test.
4258else
4259 ac_prog_rejected=no
4260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004265 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4268 ac_prog_rejected=yes
4269 continue
4270 fi
4271 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004273 break 2
4274 fi
4275done
cristy8b350f62009-11-15 23:12:43 +00004276 done
cristy3ed852e2009-09-05 21:47:34 +00004277IFS=$as_save_IFS
4278
4279if test $ac_prog_rejected = yes; then
4280 # We found a bogon in the path, so make sure we never use it.
4281 set dummy $ac_cv_prog_CC
4282 shift
4283 if test $# != 0; then
4284 # We chose a different compiler from the bogus one.
4285 # However, it has the same basename, so the bogon will be chosen
4286 # first if we set CC to just the basename; use the full file name.
4287 shift
4288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4289 fi
4290fi
4291fi
4292fi
4293CC=$ac_cv_prog_CC
4294if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004296$as_echo "$CC" >&6; }
4297else
cristy8b350f62009-11-15 23:12:43 +00004298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004299$as_echo "no" >&6; }
4300fi
4301
4302
4303fi
4304if test -z "$CC"; then
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in cl.exe
4307 do
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004311$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004312if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004313 $as_echo_n "(cached) " >&6
4314else
4315 if test -n "$CC"; then
4316 ac_cv_prog_CC="$CC" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004327 break 2
4328 fi
4329done
cristy8b350f62009-11-15 23:12:43 +00004330 done
cristy3ed852e2009-09-05 21:47:34 +00004331IFS=$as_save_IFS
4332
4333fi
4334fi
4335CC=$ac_cv_prog_CC
4336if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004338$as_echo "$CC" >&6; }
4339else
cristy8b350f62009-11-15 23:12:43 +00004340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004341$as_echo "no" >&6; }
4342fi
4343
4344
4345 test -n "$CC" && break
4346 done
4347fi
4348if test -z "$CC"; then
4349 ac_ct_CC=$CC
4350 for ac_prog in cl.exe
4351do
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004355$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004356if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004357 $as_echo_n "(cached) " >&6
4358else
4359 if test -n "$ac_ct_CC"; then
4360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004371 break 2
4372 fi
4373done
cristy8b350f62009-11-15 23:12:43 +00004374 done
cristy3ed852e2009-09-05 21:47:34 +00004375IFS=$as_save_IFS
4376
4377fi
4378fi
4379ac_ct_CC=$ac_cv_prog_ac_ct_CC
4380if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004382$as_echo "$ac_ct_CC" >&6; }
4383else
cristy8b350f62009-11-15 23:12:43 +00004384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004385$as_echo "no" >&6; }
4386fi
4387
4388
4389 test -n "$ac_ct_CC" && break
4390done
4391
4392 if test "x$ac_ct_CC" = x; then
4393 CC=""
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396yes:)
cristy8b350f62009-11-15 23:12:43 +00004397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399ac_tool_warned=yes ;;
4400esac
4401 CC=$ac_ct_CC
4402 fi
4403fi
4404
4405fi
4406
4407
cristy8b350f62009-11-15 23:12:43 +00004408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004410as_fn_error $? "no acceptable C compiler found in \$PATH
4411See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004412
4413# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004415set X $ac_compile
4416ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004417for ac_option in --version -v -V -qversion; do
4418 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
cristy8b350f62009-11-15 23:12:43 +00004423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424$as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004426 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004427 if test -s conftest.err; then
4428 sed '10a\
4429... rest of stderr output deleted ...
4430 10q' conftest.err >conftest.er1
4431 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004432 fi
cristycd4c5312009-11-22 01:19:08 +00004433 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }
4436done
cristy3ed852e2009-09-05 21:47:34 +00004437
cristy8b350f62009-11-15 23:12:43 +00004438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004439/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004440
cristy3ed852e2009-09-05 21:47:34 +00004441int
4442main ()
4443{
4444
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004450ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004451# Try to create an executable without -o first, disregard a.out.
4452# It will help us diagnose broken compilers, and finding out an intuition
4453# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4455$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004456ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4457
4458# The possible output files:
4459ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4460
4461ac_rmfiles=
4462for ac_file in $ac_files
4463do
4464 case $ac_file in
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4467 esac
4468done
4469rm -f $ac_rmfiles
4470
cristy8b350f62009-11-15 23:12:43 +00004471if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004472case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475esac
cristy8b350f62009-11-15 23:12:43 +00004476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4477$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004478 (eval "$ac_link_default") 2>&5
4479 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4481 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4483# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4484# in a Makefile. We should not override ac_cv_exeext if it was cached,
4485# so that the user can short-circuit this test for compilers unknown to
4486# Autoconf.
4487for ac_file in $ac_files ''
4488do
4489 test -f "$ac_file" || continue
4490 case $ac_file in
4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4492 ;;
4493 [ab].out )
4494 # We found the default executable, but exeext='' is most
4495 # certainly right.
4496 break;;
4497 *.* )
cristy8b350f62009-11-15 23:12:43 +00004498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004499 then :; else
4500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4501 fi
4502 # We set ac_cv_exeext here because the later test for it is not
4503 # safe: cross compilers may not add the suffix if given an `-o'
4504 # argument, so we may need to know it at that point already.
4505 # Even if this section looks crufty: it has the advantage of
4506 # actually working.
4507 break;;
4508 * )
4509 break;;
4510 esac
4511done
4512test "$ac_cv_exeext" = no && ac_cv_exeext=
4513
4514else
4515 ac_file=''
4516fi
cristy8b350f62009-11-15 23:12:43 +00004517if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519$as_echo "no" >&6; }
4520$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004521sed 's/^/| /' conftest.$ac_ext >&5
4522
cristy8b350f62009-11-15 23:12:43 +00004523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004525as_fn_error 77 "C compiler cannot create executables
4526See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004527else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4529$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004530fi
cristycd4c5312009-11-22 01:19:08 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4532$as_echo_n "checking for C compiler default output file name... " >&6; }
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4534$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004535ac_exeext=$ac_cv_exeext
4536
cristycd4c5312009-11-22 01:19:08 +00004537rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004538ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004540$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004541if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
cristy8b350f62009-11-15 23:12:43 +00004546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004548 (eval "$ac_link") 2>&5
4549 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4554# work properly (i.e., refer to `conftest.exe'), while it won't with
4555# `rm'.
4556for ac_file in conftest.exe conftest conftest.*; do
4557 test -f "$ac_file" || continue
4558 case $ac_file in
4559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4561 break;;
4562 * ) break;;
4563 esac
4564done
4565else
cristy8b350f62009-11-15 23:12:43 +00004566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004568as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4569See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004570fi
cristycd4c5312009-11-22 01:19:08 +00004571rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo "$ac_cv_exeext" >&6; }
4574
4575rm -f conftest.$ac_ext
4576EXEEXT=$ac_cv_exeext
4577ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580#include <stdio.h>
4581int
4582main ()
4583{
4584FILE *f = fopen ("conftest.out", "w");
4585 return ferror (f) || fclose (f) != 0;
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591ac_clean_files="$ac_clean_files conftest.out"
4592# Check that the compiler produces executables we can run. If not, either
4593# the compiler is broken, or we cross compile.
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4595$as_echo_n "checking whether we are cross compiling... " >&6; }
4596if test "$cross_compiling" != yes; then
4597 { { ac_try="$ac_link"
4598case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601esac
4602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4603$as_echo "$ac_try_echo"; } >&5
4604 (eval "$ac_link") 2>&5
4605 ac_status=$?
4606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4607 test $ac_status = 0; }
4608 if { ac_try='./conftest$ac_cv_exeext'
4609 { { case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614$as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_try") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }; }; then
4619 cross_compiling=no
4620 else
4621 if test "$cross_compiling" = maybe; then
4622 cross_compiling=yes
4623 else
4624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004626as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004627If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004628See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004629 fi
4630 fi
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4633$as_echo "$cross_compiling" >&6; }
4634
4635rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4636ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004639if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004640 $as_echo_n "(cached) " >&6
4641else
cristy8b350f62009-11-15 23:12:43 +00004642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004643/* end confdefs.h. */
4644
4645int
4646main ()
4647{
4648
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004654if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004655case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
cristy8b350f62009-11-15 23:12:43 +00004659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004661 (eval "$ac_compile") 2>&5
4662 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004665 for ac_file in conftest.o conftest.obj conftest.*; do
4666 test -f "$ac_file" || continue;
4667 case $ac_file in
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4670 break;;
4671 esac
4672done
4673else
4674 $as_echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
cristy8b350f62009-11-15 23:12:43 +00004677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004679as_fn_error $? "cannot compute suffix of object files: cannot compile
4680See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004681fi
cristy3ed852e2009-09-05 21:47:34 +00004682rm -f conftest.$ac_cv_objext conftest.$ac_ext
4683fi
cristy8b350f62009-11-15 23:12:43 +00004684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004685$as_echo "$ac_cv_objext" >&6; }
4686OBJEXT=$ac_cv_objext
4687ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004689$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004690if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004691 $as_echo_n "(cached) " >&6
4692else
cristy8b350f62009-11-15 23:12:43 +00004693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004694/* end confdefs.h. */
4695
4696int
4697main ()
4698{
4699#ifndef __GNUC__
4700 choke me
4701#endif
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004707if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004708 ac_compiler_gnu=yes
4709else
cristy8b350f62009-11-15 23:12:43 +00004710 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004711fi
cristy3ed852e2009-09-05 21:47:34 +00004712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713ac_cv_c_compiler_gnu=$ac_compiler_gnu
4714
4715fi
cristy8b350f62009-11-15 23:12:43 +00004716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004717$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4718if test $ac_compiler_gnu = yes; then
4719 GCC=yes
4720else
4721 GCC=
4722fi
4723ac_test_CFLAGS=${CFLAGS+set}
4724ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004726$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004727if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004728 $as_echo_n "(cached) " >&6
4729else
4730 ac_save_c_werror_flag=$ac_c_werror_flag
4731 ac_c_werror_flag=yes
4732 ac_cv_prog_cc_g=no
4733 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740
4741 ;
4742 return 0;
4743}
4744_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004745if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_cv_prog_cc_g=yes
4747else
cristy8b350f62009-11-15 23:12:43 +00004748 CFLAGS=""
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004760if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004761
cristy8b350f62009-11-15 23:12:43 +00004762else
4763 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00004764 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004776if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004777 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00004778fi
cristy3ed852e2009-09-05 21:47:34 +00004779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780fi
cristy3ed852e2009-09-05 21:47:34 +00004781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
cristy3ed852e2009-09-05 21:47:34 +00004783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 ac_c_werror_flag=$ac_save_c_werror_flag
4785fi
cristy8b350f62009-11-15 23:12:43 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004787$as_echo "$ac_cv_prog_cc_g" >&6; }
4788if test "$ac_test_CFLAGS" = set; then
4789 CFLAGS=$ac_save_CFLAGS
4790elif test $ac_cv_prog_cc_g = yes; then
4791 if test "$GCC" = yes; then
4792 CFLAGS="-g -O2"
4793 else
4794 CFLAGS="-g"
4795 fi
4796else
4797 if test "$GCC" = yes; then
4798 CFLAGS="-O2"
4799 else
4800 CFLAGS=
4801 fi
4802fi
cristy8b350f62009-11-15 23:12:43 +00004803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004804$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004805if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004806 $as_echo_n "(cached) " >&6
4807else
4808 ac_cv_prog_cc_c89=no
4809ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00004810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004811/* end confdefs.h. */
4812#include <stdarg.h>
4813#include <stdio.h>
4814#include <sys/types.h>
4815#include <sys/stat.h>
4816/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4817struct buf { int x; };
4818FILE * (*rcsopen) (struct buf *, struct stat *, int);
4819static char *e (p, i)
4820 char **p;
4821 int i;
4822{
4823 return p[i];
4824}
4825static char *f (char * (*g) (char **, int), char **p, ...)
4826{
4827 char *s;
4828 va_list v;
4829 va_start (v,p);
4830 s = g (p, va_arg (v,int));
4831 va_end (v);
4832 return s;
4833}
4834
4835/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4836 function prototypes and stuff, but not '\xHH' hex character constants.
4837 These don't provoke an error unfortunately, instead are silently treated
4838 as 'x'. The following induces an error, until -std is added to get
4839 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4840 array size at least. It's necessary to write '\x00'==0 to get something
4841 that's true only with -std. */
4842int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4843
4844/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4845 inside strings and character constants. */
4846#define FOO(x) 'x'
4847int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4848
4849int test (int i, double x);
4850struct s1 {int (*f) (int a);};
4851struct s2 {int (*f) (double a);};
4852int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4853int argc;
4854char **argv;
4855int
4856main ()
4857{
4858return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4859 ;
4860 return 0;
4861}
4862_ACEOF
4863for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4864 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4865do
4866 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00004867 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004868 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00004869fi
cristy3ed852e2009-09-05 21:47:34 +00004870rm -f core conftest.err conftest.$ac_objext
4871 test "x$ac_cv_prog_cc_c89" != "xno" && break
4872done
4873rm -f conftest.$ac_ext
4874CC=$ac_save_CC
4875
4876fi
4877# AC_CACHE_VAL
4878case "x$ac_cv_prog_cc_c89" in
4879 x)
cristy8b350f62009-11-15 23:12:43 +00004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00004881$as_echo "none needed" >&6; } ;;
4882 xno)
cristy8b350f62009-11-15 23:12:43 +00004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00004884$as_echo "unsupported" >&6; } ;;
4885 *)
4886 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4889esac
cristy8b350f62009-11-15 23:12:43 +00004890if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00004891
cristy8b350f62009-11-15 23:12:43 +00004892fi
cristy3ed852e2009-09-05 21:47:34 +00004893
4894ac_ext=c
4895ac_cpp='$CPP $CPPFLAGS'
4896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00004899
cristy73bd4a52010-10-05 11:24:23 +00004900depcc="$CC" am_compiler_list=
4901
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4903$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004904if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004905 $as_echo_n "(cached) " >&6
4906else
4907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4908 # We make a subdir and do the tests there. Otherwise we can end up
4909 # making bogus files that we don't know about and never remove. For
4910 # instance it was reported that on HP-UX the gcc test will end up
4911 # making a dummy file named `D' -- because `-MD' means `put the output
4912 # in D'.
4913 mkdir conftest.dir
4914 # Copy depcomp to subdir because otherwise we won't find it if we're
4915 # using a relative directory.
4916 cp "$am_depcomp" conftest.dir
4917 cd conftest.dir
4918 # We will build objects and dependencies in a subdirectory because
4919 # it helps to detect inapplicable dependency modes. For instance
4920 # both Tru64's cc and ICC support -MD to output dependencies as a
4921 # side effect of compilation, but ICC will put the dependencies in
4922 # the current directory while Tru64 will put them in the object
4923 # directory.
4924 mkdir sub
4925
4926 am_cv_CC_dependencies_compiler_type=none
4927 if test "$am_compiler_list" = ""; then
4928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4929 fi
4930 am__universal=false
4931 case " $depcc " in #(
4932 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4933 esac
4934
4935 for depmode in $am_compiler_list; do
4936 # Setup a source with many dependencies, because some compilers
4937 # like to wrap large dependency lists on column 80 (with \), and
4938 # we should not choose a depcomp mode which is confused by this.
4939 #
4940 # We need to recreate these files for each test, as the compiler may
4941 # overwrite some of them when testing with obscure command lines.
4942 # This happens at least with the AIX C compiler.
4943 : > sub/conftest.c
4944 for i in 1 2 3 4 5 6; do
4945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4946 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4947 # Solaris 8's {/usr,}/bin/sh.
4948 touch sub/conftst$i.h
4949 done
4950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4951
4952 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4953 # mode. It turns out that the SunPro C++ compiler does not properly
4954 # handle `-M -o', and we need to detect this. Also, some Intel
4955 # versions had trouble with output in subdirs
4956 am__obj=sub/conftest.${OBJEXT-o}
4957 am__minus_obj="-o $am__obj"
4958 case $depmode in
4959 gcc)
4960 # This depmode causes a compiler race in universal mode.
4961 test "$am__universal" = false || continue
4962 ;;
4963 nosideeffect)
4964 # after this tag, mechanisms are not by side-effect, so they'll
4965 # only be used when explicitly requested
4966 if test "x$enable_dependency_tracking" = xyes; then
4967 continue
4968 else
4969 break
4970 fi
4971 ;;
4972 msvisualcpp | msvcmsys)
4973 # This compiler won't grok `-c -o', but also, the minuso test has
4974 # not run yet. These depmodes are late enough in the game, and
4975 # so weak that their functioning should not be impacted.
4976 am__obj=conftest.${OBJEXT-o}
4977 am__minus_obj=
4978 ;;
4979 none) break ;;
4980 esac
4981 if depmode=$depmode \
4982 source=sub/conftest.c object=$am__obj \
4983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4985 >/dev/null 2>conftest.err &&
4986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4990 # icc doesn't choke on unknown options, it will just issue warnings
4991 # or remarks (even with -Werror). So we grep stderr for any message
4992 # that says an option was ignored or not supported.
4993 # When given -MP, icc 7.0 and 7.1 complain thusly:
4994 # icc: Command line warning: ignoring option '-M'; no argument required
4995 # The diagnosis changed in icc 8.0:
4996 # icc: Command line remark: option '-MP' not supported
4997 if (grep 'ignoring option' conftest.err ||
4998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4999 am_cv_CC_dependencies_compiler_type=$depmode
5000 break
5001 fi
5002 fi
5003 done
5004
5005 cd ..
5006 rm -rf conftest.dir
5007else
5008 am_cv_CC_dependencies_compiler_type=none
5009fi
5010
5011fi
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5013$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5014CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5015
5016 if
5017 test "x$enable_dependency_tracking" != xno \
5018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5019 am__fastdepCC_TRUE=
5020 am__fastdepCC_FALSE='#'
5021else
5022 am__fastdepCC_TRUE='#'
5023 am__fastdepCC_FALSE=
5024fi
5025
5026
cristy3ed852e2009-09-05 21:47:34 +00005027
cristya0b81c32010-01-22 02:54:33 +00005028ac_ext=c
5029ac_cpp='$CPP $CPPFLAGS'
5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5034$as_echo_n "checking how to run the C preprocessor... " >&6; }
5035# On Suns, sometimes $CPP names a directory.
5036if test -n "$CPP" && test -d "$CPP"; then
5037 CPP=
5038fi
5039if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005040 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005041 $as_echo_n "(cached) " >&6
5042else
5043 # Double quotes because CPP needs to be expanded
5044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5045 do
5046 ac_preproc_ok=false
5047for ac_c_preproc_warn_flag in '' yes
5048do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h. */
5057#ifdef __STDC__
5058# include <limits.h>
5059#else
5060# include <assert.h>
5061#endif
5062 Syntax error
5063_ACEOF
5064if ac_fn_c_try_cpp "$LINENO"; then :
5065
5066else
5067 # Broken: fails on valid input.
5068continue
5069fi
cristyda16f162011-02-19 23:52:17 +00005070rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005071
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h. */
5076#include <ac_nonexistent.h>
5077_ACEOF
5078if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: success on invalid input.
5080continue
5081else
5082 # Passes both tests.
5083ac_preproc_ok=:
5084break
5085fi
cristyda16f162011-02-19 23:52:17 +00005086rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005090rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005091if $ac_preproc_ok; then :
5092 break
5093fi
5094
5095 done
5096 ac_cv_prog_CPP=$CPP
5097
5098fi
5099 CPP=$ac_cv_prog_CPP
5100else
5101 ac_cv_prog_CPP=$CPP
5102fi
5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5104$as_echo "$CPP" >&6; }
5105ac_preproc_ok=false
5106for ac_c_preproc_warn_flag in '' yes
5107do
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116#ifdef __STDC__
5117# include <limits.h>
5118#else
5119# include <assert.h>
5120#endif
5121 Syntax error
5122_ACEOF
5123if ac_fn_c_try_cpp "$LINENO"; then :
5124
5125else
5126 # Broken: fails on valid input.
5127continue
5128fi
cristyda16f162011-02-19 23:52:17 +00005129rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005130
5131 # OK, works on sane cases. Now check whether nonexistent headers
5132 # can be detected and how.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135#include <ac_nonexistent.h>
5136_ACEOF
5137if ac_fn_c_try_cpp "$LINENO"; then :
5138 # Broken: success on invalid input.
5139continue
5140else
5141 # Passes both tests.
5142ac_preproc_ok=:
5143break
5144fi
cristyda16f162011-02-19 23:52:17 +00005145rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005146
5147done
5148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005149rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005150if $ac_preproc_ok; then :
5151
5152else
5153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005155as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5156See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005157fi
5158
5159ac_ext=c
5160ac_cpp='$CPP $CPPFLAGS'
5161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164
5165
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5167$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005168if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005169 $as_echo_n "(cached) " >&6
5170else
5171 if test -z "$GREP"; then
5172 ac_path_GREP_found=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_prog in grep ggrep; do
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5183# Check for GNU ac_path_GREP and select it if it is found.
5184 # Check for GNU $ac_path_GREP
5185case `"$ac_path_GREP" --version 2>&1` in
5186*GNU*)
5187 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5188*)
5189 ac_count=0
5190 $as_echo_n 0123456789 >"conftest.in"
5191 while :
5192 do
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'GREP' >> "conftest.nl"
5197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5199 as_fn_arith $ac_count + 1 && ac_count=$as_val
5200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_GREP="$ac_path_GREP"
5203 ac_path_GREP_max=$ac_count
5204 fi
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5207 done
5208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5209esac
5210
5211 $ac_path_GREP_found && break 3
5212 done
5213 done
5214 done
5215IFS=$as_save_IFS
5216 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005217 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005218 fi
5219else
5220 ac_cv_path_GREP=$GREP
5221fi
5222
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5225$as_echo "$ac_cv_path_GREP" >&6; }
5226 GREP="$ac_cv_path_GREP"
5227
5228
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5230$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005231if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005232 $as_echo_n "(cached) " >&6
5233else
5234 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5235 then ac_cv_path_EGREP="$GREP -E"
5236 else
5237 if test -z "$EGREP"; then
5238 ac_path_EGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in egrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5248 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5249# Check for GNU ac_path_EGREP and select it if it is found.
5250 # Check for GNU $ac_path_EGREP
5251case `"$ac_path_EGREP" --version 2>&1` in
5252*GNU*)
5253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5254*)
5255 ac_count=0
5256 $as_echo_n 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'EGREP' >> "conftest.nl"
5263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_EGREP="$ac_path_EGREP"
5269 ac_path_EGREP_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275esac
5276
5277 $ac_path_EGREP_found && break 3
5278 done
5279 done
5280 done
5281IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005283 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005284 fi
5285else
5286 ac_cv_path_EGREP=$EGREP
5287fi
5288
5289 fi
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5292$as_echo "$ac_cv_path_EGREP" >&6; }
5293 EGREP="$ac_cv_path_EGREP"
5294
5295
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5297$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005298if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005299 $as_echo_n "(cached) " >&6
5300else
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h. */
5303#include <stdlib.h>
5304#include <stdarg.h>
5305#include <string.h>
5306#include <float.h>
5307
5308int
5309main ()
5310{
5311
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317 ac_cv_header_stdc=yes
5318else
5319 ac_cv_header_stdc=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322
5323if test $ac_cv_header_stdc = yes; then
5324 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326/* end confdefs.h. */
5327#include <string.h>
5328
5329_ACEOF
5330if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "memchr" >/dev/null 2>&1; then :
5332
5333else
5334 ac_cv_header_stdc=no
5335fi
5336rm -f conftest*
5337
5338fi
5339
5340if test $ac_cv_header_stdc = yes; then
5341 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343/* end confdefs.h. */
5344#include <stdlib.h>
5345
5346_ACEOF
5347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5348 $EGREP "free" >/dev/null 2>&1; then :
5349
5350else
5351 ac_cv_header_stdc=no
5352fi
5353rm -f conftest*
5354
5355fi
5356
5357if test $ac_cv_header_stdc = yes; then
5358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5359 if test "$cross_compiling" = yes; then :
5360 :
5361else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363/* end confdefs.h. */
5364#include <ctype.h>
5365#include <stdlib.h>
5366#if ((' ' & 0x0FF) == 0x020)
5367# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5368# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5369#else
5370# define ISLOWER(c) \
5371 (('a' <= (c) && (c) <= 'i') \
5372 || ('j' <= (c) && (c) <= 'r') \
5373 || ('s' <= (c) && (c) <= 'z'))
5374# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5375#endif
5376
5377#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5378int
5379main ()
5380{
5381 int i;
5382 for (i = 0; i < 256; i++)
5383 if (XOR (islower (i), ISLOWER (i))
5384 || toupper (i) != TOUPPER (i))
5385 return 2;
5386 return 0;
5387}
5388_ACEOF
5389if ac_fn_c_try_run "$LINENO"; then :
5390
5391else
5392 ac_cv_header_stdc=no
5393fi
5394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5395 conftest.$ac_objext conftest.beam conftest.$ac_ext
5396fi
5397
5398fi
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5401$as_echo "$ac_cv_header_stdc" >&6; }
5402if test $ac_cv_header_stdc = yes; then
5403
5404$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5405
5406fi
5407
5408# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5409for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5410 inttypes.h stdint.h unistd.h
5411do :
5412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5413ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5414"
cristy98dddb52010-11-04 00:30:15 +00005415if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005416 cat >>confdefs.h <<_ACEOF
5417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418_ACEOF
5419
5420fi
5421
5422done
5423
5424
5425
5426 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 +00005427if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005428 MINIX=yes
5429else
5430 MINIX=
5431fi
5432
5433
5434 if test "$MINIX" = yes; then
5435
5436$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5437
5438
5439$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5440
5441
5442$as_echo "#define _MINIX 1" >>confdefs.h
5443
5444 fi
5445
5446
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5448$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005449if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005450 $as_echo_n "(cached) " >&6
5451else
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454
5455# define __EXTENSIONS__ 1
5456 $ac_includes_default
5457int
5458main ()
5459{
5460
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"; then :
5466 ac_cv_safe_to_define___extensions__=yes
5467else
5468 ac_cv_safe_to_define___extensions__=no
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5473$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5474 test $ac_cv_safe_to_define___extensions__ = yes &&
5475 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5476
5477 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5478
5479 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5480
5481 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5482
5483 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5484
5485
5486
5487# Check for programs
5488ac_ext=c
5489ac_cpp='$CPP $CPPFLAGS'
5490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5495set dummy ${ac_tool_prefix}gcc; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005498if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005499 $as_echo_n "(cached) " >&6
5500else
5501 if test -n "$CC"; then
5502 ac_cv_prog_CC="$CC" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516 done
5517IFS=$as_save_IFS
5518
5519fi
5520fi
5521CC=$ac_cv_prog_CC
5522if test -n "$CC"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5524$as_echo "$CC" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530
5531fi
5532if test -z "$ac_cv_prog_CC"; then
5533 ac_ct_CC=$CC
5534 # Extract the first word of "gcc", so it can be a program name with args.
5535set dummy gcc; ac_word=$2
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005538if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005539 $as_echo_n "(cached) " >&6
5540else
5541 if test -n "$ac_ct_CC"; then
5542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_ac_ct_CC="gcc"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556 done
5557IFS=$as_save_IFS
5558
5559fi
5560fi
5561ac_ct_CC=$ac_cv_prog_ac_ct_CC
5562if test -n "$ac_ct_CC"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5564$as_echo "$ac_ct_CC" >&6; }
5565else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567$as_echo "no" >&6; }
5568fi
5569
5570 if test "x$ac_ct_CC" = x; then
5571 CC=""
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574yes:)
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5577ac_tool_warned=yes ;;
5578esac
5579 CC=$ac_ct_CC
5580 fi
5581else
5582 CC="$ac_cv_prog_CC"
5583fi
5584
5585if test -z "$CC"; then
5586 if test -n "$ac_tool_prefix"; then
5587 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5588set dummy ${ac_tool_prefix}cc; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005591if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005592 $as_echo_n "(cached) " >&6
5593else
5594 if test -n "$CC"; then
5595 ac_cv_prog_CC="$CC" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_CC="${ac_tool_prefix}cc"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609 done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614CC=$ac_cv_prog_CC
5615if test -n "$CC"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5617$as_echo "$CC" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624 fi
5625fi
5626if test -z "$CC"; then
5627 # Extract the first word of "cc", so it can be a program name with args.
5628set dummy cc; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005631if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005632 $as_echo_n "(cached) " >&6
5633else
5634 if test -n "$CC"; then
5635 ac_cv_prog_CC="$CC" # Let the user override the test.
5636else
5637 ac_prog_rejected=no
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5646 ac_prog_rejected=yes
5647 continue
5648 fi
5649 ac_cv_prog_CC="cc"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653done
5654 done
5655IFS=$as_save_IFS
5656
5657if test $ac_prog_rejected = yes; then
5658 # We found a bogon in the path, so make sure we never use it.
5659 set dummy $ac_cv_prog_CC
5660 shift
5661 if test $# != 0; then
5662 # We chose a different compiler from the bogus one.
5663 # However, it has the same basename, so the bogon will be chosen
5664 # first if we set CC to just the basename; use the full file name.
5665 shift
5666 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5667 fi
5668fi
5669fi
5670fi
5671CC=$ac_cv_prog_CC
5672if test -n "$CC"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5674$as_echo "$CC" >&6; }
5675else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681fi
5682if test -z "$CC"; then
5683 if test -n "$ac_tool_prefix"; then
5684 for ac_prog in cl.exe
5685 do
5686 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5687set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005690if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005691 $as_echo_n "(cached) " >&6
5692else
5693 if test -n "$CC"; then
5694 ac_cv_prog_CC="$CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 break 2
5706 fi
5707done
5708 done
5709IFS=$as_save_IFS
5710
5711fi
5712fi
5713CC=$ac_cv_prog_CC
5714if test -n "$CC"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5716$as_echo "$CC" >&6; }
5717else
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719$as_echo "no" >&6; }
5720fi
5721
5722
5723 test -n "$CC" && break
5724 done
5725fi
5726if test -z "$CC"; then
5727 ac_ct_CC=$CC
5728 for ac_prog in cl.exe
5729do
5730 # Extract the first word of "$ac_prog", so it can be a program name with args.
5731set dummy $ac_prog; ac_word=$2
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005734if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005735 $as_echo_n "(cached) " >&6
5736else
5737 if test -n "$ac_ct_CC"; then
5738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747 ac_cv_prog_ac_ct_CC="$ac_prog"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 break 2
5750 fi
5751done
5752 done
5753IFS=$as_save_IFS
5754
5755fi
5756fi
5757ac_ct_CC=$ac_cv_prog_ac_ct_CC
5758if test -n "$ac_ct_CC"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5760$as_echo "$ac_ct_CC" >&6; }
5761else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
5764fi
5765
5766
5767 test -n "$ac_ct_CC" && break
5768done
5769
5770 if test "x$ac_ct_CC" = x; then
5771 CC=""
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774yes:)
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777ac_tool_warned=yes ;;
5778esac
5779 CC=$ac_ct_CC
5780 fi
5781fi
5782
5783fi
5784
5785
5786test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005788as_fn_error $? "no acceptable C compiler found in \$PATH
5789See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005790
5791# Provide some information about the compiler.
5792$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5793set X $ac_compile
5794ac_compiler=$2
5795for ac_option in --version -v -V -qversion; do
5796 { { ac_try="$ac_compiler $ac_option >&5"
5797case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800esac
5801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5802$as_echo "$ac_try_echo"; } >&5
5803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5804 ac_status=$?
5805 if test -s conftest.err; then
5806 sed '10a\
5807... rest of stderr output deleted ...
5808 10q' conftest.err >conftest.er1
5809 cat conftest.er1 >&5
5810 fi
5811 rm -f conftest.er1 conftest.err
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }
5814done
5815
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5817$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005818if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005819 $as_echo_n "(cached) " >&6
5820else
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h. */
5823
5824int
5825main ()
5826{
5827#ifndef __GNUC__
5828 choke me
5829#endif
5830
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835if ac_fn_c_try_compile "$LINENO"; then :
5836 ac_compiler_gnu=yes
5837else
5838 ac_compiler_gnu=no
5839fi
5840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841ac_cv_c_compiler_gnu=$ac_compiler_gnu
5842
5843fi
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5845$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5846if test $ac_compiler_gnu = yes; then
5847 GCC=yes
5848else
5849 GCC=
5850fi
5851ac_test_CFLAGS=${CFLAGS+set}
5852ac_save_CFLAGS=$CFLAGS
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5854$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005855if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005856 $as_echo_n "(cached) " >&6
5857else
5858 ac_save_c_werror_flag=$ac_c_werror_flag
5859 ac_c_werror_flag=yes
5860 ac_cv_prog_cc_g=no
5861 CFLAGS="-g"
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h. */
5864
5865int
5866main ()
5867{
5868
5869 ;
5870 return 0;
5871}
5872_ACEOF
5873if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_cv_prog_cc_g=yes
5875else
5876 CFLAGS=""
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h. */
5879
5880int
5881main ()
5882{
5883
5884 ;
5885 return 0;
5886}
5887_ACEOF
5888if ac_fn_c_try_compile "$LINENO"; then :
5889
5890else
5891 ac_c_werror_flag=$ac_save_c_werror_flag
5892 CFLAGS="-g"
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894/* end confdefs.h. */
5895
5896int
5897main ()
5898{
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904if ac_fn_c_try_compile "$LINENO"; then :
5905 ac_cv_prog_cc_g=yes
5906fi
5907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5908fi
5909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5910fi
5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 ac_c_werror_flag=$ac_save_c_werror_flag
5913fi
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5915$as_echo "$ac_cv_prog_cc_g" >&6; }
5916if test "$ac_test_CFLAGS" = set; then
5917 CFLAGS=$ac_save_CFLAGS
5918elif test $ac_cv_prog_cc_g = yes; then
5919 if test "$GCC" = yes; then
5920 CFLAGS="-g -O2"
5921 else
5922 CFLAGS="-g"
5923 fi
5924else
5925 if test "$GCC" = yes; then
5926 CFLAGS="-O2"
5927 else
5928 CFLAGS=
5929 fi
5930fi
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5932$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005933if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005934 $as_echo_n "(cached) " >&6
5935else
5936 ac_cv_prog_cc_c89=no
5937ac_save_CC=$CC
5938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5939/* end confdefs.h. */
5940#include <stdarg.h>
5941#include <stdio.h>
5942#include <sys/types.h>
5943#include <sys/stat.h>
5944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5945struct buf { int x; };
5946FILE * (*rcsopen) (struct buf *, struct stat *, int);
5947static char *e (p, i)
5948 char **p;
5949 int i;
5950{
5951 return p[i];
5952}
5953static char *f (char * (*g) (char **, int), char **p, ...)
5954{
5955 char *s;
5956 va_list v;
5957 va_start (v,p);
5958 s = g (p, va_arg (v,int));
5959 va_end (v);
5960 return s;
5961}
5962
5963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5964 function prototypes and stuff, but not '\xHH' hex character constants.
5965 These don't provoke an error unfortunately, instead are silently treated
5966 as 'x'. The following induces an error, until -std is added to get
5967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5968 array size at least. It's necessary to write '\x00'==0 to get something
5969 that's true only with -std. */
5970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5971
5972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5973 inside strings and character constants. */
5974#define FOO(x) 'x'
5975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5976
5977int test (int i, double x);
5978struct s1 {int (*f) (int a);};
5979struct s2 {int (*f) (double a);};
5980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5981int argc;
5982char **argv;
5983int
5984main ()
5985{
5986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5993do
5994 CC="$ac_save_CC $ac_arg"
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 ac_cv_prog_cc_c89=$ac_arg
5997fi
5998rm -f core conftest.err conftest.$ac_objext
5999 test "x$ac_cv_prog_cc_c89" != "xno" && break
6000done
6001rm -f conftest.$ac_ext
6002CC=$ac_save_CC
6003
6004fi
6005# AC_CACHE_VAL
6006case "x$ac_cv_prog_cc_c89" in
6007 x)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6009$as_echo "none needed" >&6; } ;;
6010 xno)
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6012$as_echo "unsupported" >&6; } ;;
6013 *)
6014 CC="$CC $ac_cv_prog_cc_c89"
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6017esac
6018if test "x$ac_cv_prog_cc_c89" != xno; then :
6019
6020fi
6021
6022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
cristy73bd4a52010-10-05 11:24:23 +00006028depcc="$CC" am_compiler_list=
6029
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6031$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006032if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006033 $as_echo_n "(cached) " >&6
6034else
6035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6036 # We make a subdir and do the tests there. Otherwise we can end up
6037 # making bogus files that we don't know about and never remove. For
6038 # instance it was reported that on HP-UX the gcc test will end up
6039 # making a dummy file named `D' -- because `-MD' means `put the output
6040 # in D'.
6041 mkdir conftest.dir
6042 # Copy depcomp to subdir because otherwise we won't find it if we're
6043 # using a relative directory.
6044 cp "$am_depcomp" conftest.dir
6045 cd conftest.dir
6046 # We will build objects and dependencies in a subdirectory because
6047 # it helps to detect inapplicable dependency modes. For instance
6048 # both Tru64's cc and ICC support -MD to output dependencies as a
6049 # side effect of compilation, but ICC will put the dependencies in
6050 # the current directory while Tru64 will put them in the object
6051 # directory.
6052 mkdir sub
6053
6054 am_cv_CC_dependencies_compiler_type=none
6055 if test "$am_compiler_list" = ""; then
6056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6057 fi
6058 am__universal=false
6059 case " $depcc " in #(
6060 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6061 esac
6062
6063 for depmode in $am_compiler_list; do
6064 # Setup a source with many dependencies, because some compilers
6065 # like to wrap large dependency lists on column 80 (with \), and
6066 # we should not choose a depcomp mode which is confused by this.
6067 #
6068 # We need to recreate these files for each test, as the compiler may
6069 # overwrite some of them when testing with obscure command lines.
6070 # This happens at least with the AIX C compiler.
6071 : > sub/conftest.c
6072 for i in 1 2 3 4 5 6; do
6073 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6074 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6075 # Solaris 8's {/usr,}/bin/sh.
6076 touch sub/conftst$i.h
6077 done
6078 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6079
6080 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6081 # mode. It turns out that the SunPro C++ compiler does not properly
6082 # handle `-M -o', and we need to detect this. Also, some Intel
6083 # versions had trouble with output in subdirs
6084 am__obj=sub/conftest.${OBJEXT-o}
6085 am__minus_obj="-o $am__obj"
6086 case $depmode in
6087 gcc)
6088 # This depmode causes a compiler race in universal mode.
6089 test "$am__universal" = false || continue
6090 ;;
6091 nosideeffect)
6092 # after this tag, mechanisms are not by side-effect, so they'll
6093 # only be used when explicitly requested
6094 if test "x$enable_dependency_tracking" = xyes; then
6095 continue
6096 else
6097 break
6098 fi
6099 ;;
6100 msvisualcpp | msvcmsys)
6101 # This compiler won't grok `-c -o', but also, the minuso test has
6102 # not run yet. These depmodes are late enough in the game, and
6103 # so weak that their functioning should not be impacted.
6104 am__obj=conftest.${OBJEXT-o}
6105 am__minus_obj=
6106 ;;
6107 none) break ;;
6108 esac
6109 if depmode=$depmode \
6110 source=sub/conftest.c object=$am__obj \
6111 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6112 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6113 >/dev/null 2>conftest.err &&
6114 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6115 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6116 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6117 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6118 # icc doesn't choke on unknown options, it will just issue warnings
6119 # or remarks (even with -Werror). So we grep stderr for any message
6120 # that says an option was ignored or not supported.
6121 # When given -MP, icc 7.0 and 7.1 complain thusly:
6122 # icc: Command line warning: ignoring option '-M'; no argument required
6123 # The diagnosis changed in icc 8.0:
6124 # icc: Command line remark: option '-MP' not supported
6125 if (grep 'ignoring option' conftest.err ||
6126 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6127 am_cv_CC_dependencies_compiler_type=$depmode
6128 break
6129 fi
6130 fi
6131 done
6132
6133 cd ..
6134 rm -rf conftest.dir
6135else
6136 am_cv_CC_dependencies_compiler_type=none
6137fi
6138
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6141$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6142CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6143
6144 if
6145 test "x$enable_dependency_tracking" != xno \
6146 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6147 am__fastdepCC_TRUE=
6148 am__fastdepCC_FALSE='#'
6149else
6150 am__fastdepCC_TRUE='#'
6151 am__fastdepCC_FALSE=
6152fi
6153
6154
cristy95646052009-11-28 23:05:30 +00006155ac_ext=cpp
6156ac_cpp='$CXXCPP $CPPFLAGS'
6157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6160if test -z "$CXX"; then
6161 if test -n "$CCC"; then
6162 CXX=$CCC
6163 else
6164 if test -n "$ac_tool_prefix"; then
6165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6166 do
6167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6168set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006171if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006172 $as_echo_n "(cached) " >&6
6173else
6174 if test -n "$CXX"; then
6175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6176else
6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178for as_dir in $PATH
6179do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188done
6189 done
6190IFS=$as_save_IFS
6191
6192fi
6193fi
6194CXX=$ac_cv_prog_CXX
6195if test -n "$CXX"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6197$as_echo "$CXX" >&6; }
6198else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200$as_echo "no" >&6; }
6201fi
6202
6203
6204 test -n "$CXX" && break
6205 done
6206fi
6207if test -z "$CXX"; then
6208 ac_ct_CXX=$CXX
6209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6210do
6211 # Extract the first word of "$ac_prog", so it can be a program name with args.
6212set dummy $ac_prog; ac_word=$2
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006215if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006216 $as_echo_n "(cached) " >&6
6217else
6218 if test -n "$ac_ct_CXX"; then
6219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_CXX="$ac_prog"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6231 fi
6232done
6233 done
6234IFS=$as_save_IFS
6235
6236fi
6237fi
6238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6239if test -n "$ac_ct_CXX"; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6241$as_echo "$ac_ct_CXX" >&6; }
6242else
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244$as_echo "no" >&6; }
6245fi
6246
6247
6248 test -n "$ac_ct_CXX" && break
6249done
6250
6251 if test "x$ac_ct_CXX" = x; then
6252 CXX="g++"
6253 else
6254 case $cross_compiling:$ac_tool_warned in
6255yes:)
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258ac_tool_warned=yes ;;
6259esac
6260 CXX=$ac_ct_CXX
6261 fi
6262fi
6263
6264 fi
6265fi
6266# Provide some information about the compiler.
6267$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6268set X $ac_compile
6269ac_compiler=$2
6270for ac_option in --version -v -V -qversion; do
6271 { { ac_try="$ac_compiler $ac_option >&5"
6272case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6277$as_echo "$ac_try_echo"; } >&5
6278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6279 ac_status=$?
6280 if test -s conftest.err; then
6281 sed '10a\
6282... rest of stderr output deleted ...
6283 10q' conftest.err >conftest.er1
6284 cat conftest.er1 >&5
6285 fi
6286 rm -f conftest.er1 conftest.err
6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288 test $ac_status = 0; }
6289done
6290
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6292$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006293if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006294 $as_echo_n "(cached) " >&6
6295else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h. */
6298
6299int
6300main ()
6301{
6302#ifndef __GNUC__
6303 choke me
6304#endif
6305
6306 ;
6307 return 0;
6308}
6309_ACEOF
6310if ac_fn_cxx_try_compile "$LINENO"; then :
6311 ac_compiler_gnu=yes
6312else
6313 ac_compiler_gnu=no
6314fi
6315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6317
6318fi
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6320$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6321if test $ac_compiler_gnu = yes; then
6322 GXX=yes
6323else
6324 GXX=
6325fi
6326ac_test_CXXFLAGS=${CXXFLAGS+set}
6327ac_save_CXXFLAGS=$CXXFLAGS
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6329$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006330if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006331 $as_echo_n "(cached) " >&6
6332else
6333 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6334 ac_cxx_werror_flag=yes
6335 ac_cv_prog_cxx_g=no
6336 CXXFLAGS="-g"
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h. */
6339
6340int
6341main ()
6342{
6343
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348if ac_fn_cxx_try_compile "$LINENO"; then :
6349 ac_cv_prog_cxx_g=yes
6350else
6351 CXXFLAGS=""
6352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h. */
6354
6355int
6356main ()
6357{
6358
6359 ;
6360 return 0;
6361}
6362_ACEOF
6363if ac_fn_cxx_try_compile "$LINENO"; then :
6364
6365else
6366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6367 CXXFLAGS="-g"
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370
6371int
6372main ()
6373{
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379if ac_fn_cxx_try_compile "$LINENO"; then :
6380 ac_cv_prog_cxx_g=yes
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383fi
6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385fi
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6388fi
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6390$as_echo "$ac_cv_prog_cxx_g" >&6; }
6391if test "$ac_test_CXXFLAGS" = set; then
6392 CXXFLAGS=$ac_save_CXXFLAGS
6393elif test $ac_cv_prog_cxx_g = yes; then
6394 if test "$GXX" = yes; then
6395 CXXFLAGS="-g -O2"
6396 else
6397 CXXFLAGS="-g"
6398 fi
6399else
6400 if test "$GXX" = yes; then
6401 CXXFLAGS="-O2"
6402 else
6403 CXXFLAGS=
6404 fi
6405fi
6406ac_ext=c
6407ac_cpp='$CPP $CPPFLAGS'
6408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_c_compiler_gnu
6411
cristy73bd4a52010-10-05 11:24:23 +00006412depcc="$CXX" am_compiler_list=
6413
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6415$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006416if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006417 $as_echo_n "(cached) " >&6
6418else
6419 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6420 # We make a subdir and do the tests there. Otherwise we can end up
6421 # making bogus files that we don't know about and never remove. For
6422 # instance it was reported that on HP-UX the gcc test will end up
6423 # making a dummy file named `D' -- because `-MD' means `put the output
6424 # in D'.
6425 mkdir conftest.dir
6426 # Copy depcomp to subdir because otherwise we won't find it if we're
6427 # using a relative directory.
6428 cp "$am_depcomp" conftest.dir
6429 cd conftest.dir
6430 # We will build objects and dependencies in a subdirectory because
6431 # it helps to detect inapplicable dependency modes. For instance
6432 # both Tru64's cc and ICC support -MD to output dependencies as a
6433 # side effect of compilation, but ICC will put the dependencies in
6434 # the current directory while Tru64 will put them in the object
6435 # directory.
6436 mkdir sub
6437
6438 am_cv_CXX_dependencies_compiler_type=none
6439 if test "$am_compiler_list" = ""; then
6440 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6441 fi
6442 am__universal=false
6443 case " $depcc " in #(
6444 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6445 esac
6446
6447 for depmode in $am_compiler_list; do
6448 # Setup a source with many dependencies, because some compilers
6449 # like to wrap large dependency lists on column 80 (with \), and
6450 # we should not choose a depcomp mode which is confused by this.
6451 #
6452 # We need to recreate these files for each test, as the compiler may
6453 # overwrite some of them when testing with obscure command lines.
6454 # This happens at least with the AIX C compiler.
6455 : > sub/conftest.c
6456 for i in 1 2 3 4 5 6; do
6457 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6458 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6459 # Solaris 8's {/usr,}/bin/sh.
6460 touch sub/conftst$i.h
6461 done
6462 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6463
6464 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6465 # mode. It turns out that the SunPro C++ compiler does not properly
6466 # handle `-M -o', and we need to detect this. Also, some Intel
6467 # versions had trouble with output in subdirs
6468 am__obj=sub/conftest.${OBJEXT-o}
6469 am__minus_obj="-o $am__obj"
6470 case $depmode in
6471 gcc)
6472 # This depmode causes a compiler race in universal mode.
6473 test "$am__universal" = false || continue
6474 ;;
6475 nosideeffect)
6476 # after this tag, mechanisms are not by side-effect, so they'll
6477 # only be used when explicitly requested
6478 if test "x$enable_dependency_tracking" = xyes; then
6479 continue
6480 else
6481 break
6482 fi
6483 ;;
6484 msvisualcpp | msvcmsys)
6485 # This compiler won't grok `-c -o', but also, the minuso test has
6486 # not run yet. These depmodes are late enough in the game, and
6487 # so weak that their functioning should not be impacted.
6488 am__obj=conftest.${OBJEXT-o}
6489 am__minus_obj=
6490 ;;
6491 none) break ;;
6492 esac
6493 if depmode=$depmode \
6494 source=sub/conftest.c object=$am__obj \
6495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6496 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6497 >/dev/null 2>conftest.err &&
6498 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6499 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6500 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6501 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6502 # icc doesn't choke on unknown options, it will just issue warnings
6503 # or remarks (even with -Werror). So we grep stderr for any message
6504 # that says an option was ignored or not supported.
6505 # When given -MP, icc 7.0 and 7.1 complain thusly:
6506 # icc: Command line warning: ignoring option '-M'; no argument required
6507 # The diagnosis changed in icc 8.0:
6508 # icc: Command line remark: option '-MP' not supported
6509 if (grep 'ignoring option' conftest.err ||
6510 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6511 am_cv_CXX_dependencies_compiler_type=$depmode
6512 break
6513 fi
6514 fi
6515 done
6516
6517 cd ..
6518 rm -rf conftest.dir
6519else
6520 am_cv_CXX_dependencies_compiler_type=none
6521fi
6522
6523fi
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6525$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6526CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6527
6528 if
6529 test "x$enable_dependency_tracking" != xno \
6530 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6531 am__fastdepCXX_TRUE=
6532 am__fastdepCXX_FALSE='#'
6533else
6534 am__fastdepCXX_TRUE='#'
6535 am__fastdepCXX_FALSE=
6536fi
6537
6538
cristy8b350f62009-11-15 23:12:43 +00006539 case $ac_cv_prog_cc_stdc in #(
6540 no) :
6541 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6542 *) :
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006544$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006545if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006546 $as_echo_n "(cached) " >&6
6547else
6548 ac_cv_prog_cc_c99=no
6549ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006551/* end confdefs.h. */
6552#include <stdarg.h>
6553#include <stdbool.h>
6554#include <stdlib.h>
6555#include <wchar.h>
6556#include <stdio.h>
6557
6558// Check varargs macros. These examples are taken from C99 6.10.3.5.
6559#define debug(...) fprintf (stderr, __VA_ARGS__)
6560#define showlist(...) puts (#__VA_ARGS__)
6561#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6562static void
6563test_varargs_macros (void)
6564{
6565 int x = 1234;
6566 int y = 5678;
6567 debug ("Flag");
6568 debug ("X = %d\n", x);
6569 showlist (The first, second, and third items.);
6570 report (x>y, "x is %d but y is %d", x, y);
6571}
6572
6573// Check long long types.
6574#define BIG64 18446744073709551615ull
6575#define BIG32 4294967295ul
6576#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6577#if !BIG_OK
6578 your preprocessor is broken;
6579#endif
6580#if BIG_OK
6581#else
6582 your preprocessor is broken;
6583#endif
6584static long long int bignum = -9223372036854775807LL;
6585static unsigned long long int ubignum = BIG64;
6586
6587struct incomplete_array
6588{
6589 int datasize;
6590 double data[];
6591};
6592
6593struct named_init {
6594 int number;
6595 const wchar_t *name;
6596 double average;
6597};
6598
6599typedef const char *ccp;
6600
6601static inline int
6602test_restrict (ccp restrict text)
6603{
6604 // See if C++-style comments work.
6605 // Iterate through items via the restricted pointer.
6606 // Also check for declarations in for loops.
6607 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6608 continue;
6609 return 0;
6610}
6611
6612// Check varargs and va_copy.
6613static void
6614test_varargs (const char *format, ...)
6615{
6616 va_list args;
6617 va_start (args, format);
6618 va_list args_copy;
6619 va_copy (args_copy, args);
6620
6621 const char *str;
6622 int number;
6623 float fnumber;
6624
6625 while (*format)
6626 {
6627 switch (*format++)
6628 {
6629 case 's': // string
6630 str = va_arg (args_copy, const char *);
6631 break;
6632 case 'd': // int
6633 number = va_arg (args_copy, int);
6634 break;
6635 case 'f': // float
6636 fnumber = va_arg (args_copy, double);
6637 break;
6638 default:
6639 break;
6640 }
6641 }
6642 va_end (args_copy);
6643 va_end (args);
6644}
6645
6646int
6647main ()
6648{
6649
6650 // Check bool.
6651 _Bool success = false;
6652
6653 // Check restrict.
6654 if (test_restrict ("String literal") == 0)
6655 success = true;
6656 char *restrict newvar = "Another string";
6657
6658 // Check varargs.
6659 test_varargs ("s, d' f .", "string", 65, 34.234);
6660 test_varargs_macros ();
6661
6662 // Check flexible array members.
6663 struct incomplete_array *ia =
6664 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6665 ia->datasize = 10;
6666 for (int i = 0; i < ia->datasize; ++i)
6667 ia->data[i] = i * 1.234;
6668
6669 // Check named initializers.
6670 struct named_init ni = {
6671 .number = 34,
6672 .name = L"Test wide string",
6673 .average = 543.34343,
6674 };
6675
6676 ni.number = 58;
6677
6678 int dynamic_array[ni.number];
6679 dynamic_array[ni.number - 1] = 543;
6680
6681 // work around unused variable warnings
6682 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6683 || dynamic_array[ni.number - 1] != 543);
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6690do
6691 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006692 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006693 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006694fi
cristy3ed852e2009-09-05 21:47:34 +00006695rm -f core conftest.err conftest.$ac_objext
6696 test "x$ac_cv_prog_cc_c99" != "xno" && break
6697done
6698rm -f conftest.$ac_ext
6699CC=$ac_save_CC
6700
6701fi
6702# AC_CACHE_VAL
6703case "x$ac_cv_prog_cc_c99" in
6704 x)
cristy8b350f62009-11-15 23:12:43 +00006705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006706$as_echo "none needed" >&6; } ;;
6707 xno)
cristy8b350f62009-11-15 23:12:43 +00006708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006709$as_echo "unsupported" >&6; } ;;
6710 *)
6711 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006713$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6714esac
cristy8b350f62009-11-15 23:12:43 +00006715if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006716 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6717else
cristy8b350f62009-11-15 23:12:43 +00006718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006719$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006720if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006721 $as_echo_n "(cached) " >&6
6722else
6723 ac_cv_prog_cc_c89=no
6724ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006726/* end confdefs.h. */
6727#include <stdarg.h>
6728#include <stdio.h>
6729#include <sys/types.h>
6730#include <sys/stat.h>
6731/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6732struct buf { int x; };
6733FILE * (*rcsopen) (struct buf *, struct stat *, int);
6734static char *e (p, i)
6735 char **p;
6736 int i;
6737{
6738 return p[i];
6739}
6740static char *f (char * (*g) (char **, int), char **p, ...)
6741{
6742 char *s;
6743 va_list v;
6744 va_start (v,p);
6745 s = g (p, va_arg (v,int));
6746 va_end (v);
6747 return s;
6748}
6749
6750/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6751 function prototypes and stuff, but not '\xHH' hex character constants.
6752 These don't provoke an error unfortunately, instead are silently treated
6753 as 'x'. The following induces an error, until -std is added to get
6754 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6755 array size at least. It's necessary to write '\x00'==0 to get something
6756 that's true only with -std. */
6757int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6758
6759/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6760 inside strings and character constants. */
6761#define FOO(x) 'x'
6762int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6763
6764int test (int i, double x);
6765struct s1 {int (*f) (int a);};
6766struct s2 {int (*f) (double a);};
6767int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6768int argc;
6769char **argv;
6770int
6771main ()
6772{
6773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6774 ;
6775 return 0;
6776}
6777_ACEOF
6778for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6779 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6780do
6781 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006782 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006783 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006784fi
cristy3ed852e2009-09-05 21:47:34 +00006785rm -f core conftest.err conftest.$ac_objext
6786 test "x$ac_cv_prog_cc_c89" != "xno" && break
6787done
6788rm -f conftest.$ac_ext
6789CC=$ac_save_CC
6790
6791fi
6792# AC_CACHE_VAL
6793case "x$ac_cv_prog_cc_c89" in
6794 x)
cristy8b350f62009-11-15 23:12:43 +00006795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo "none needed" >&6; } ;;
6797 xno)
cristy8b350f62009-11-15 23:12:43 +00006798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006799$as_echo "unsupported" >&6; } ;;
6800 *)
6801 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00006802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006803$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6804esac
cristy8b350f62009-11-15 23:12:43 +00006805if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006806 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6807else
6808 ac_cv_prog_cc_stdc=no
6809fi
6810
cristy3ed852e2009-09-05 21:47:34 +00006811fi
cristy3ed852e2009-09-05 21:47:34 +00006812 ;;
6813esac
cristy8b350f62009-11-15 23:12:43 +00006814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00006815$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006816 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006817 $as_echo_n "(cached) " >&6
6818fi
6819
cristy8b350f62009-11-15 23:12:43 +00006820 case $ac_cv_prog_cc_stdc in #(
6821 no) :
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6823$as_echo "unsupported" >&6; } ;; #(
6824 '') :
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6826$as_echo "none needed" >&6; } ;; #(
6827 *) :
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00006829$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6830esac
6831
cristy3ed852e2009-09-05 21:47:34 +00006832ac_ext=c
6833ac_cpp='$CPP $CPPFLAGS'
6834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6836ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00006837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00006838$as_echo_n "checking how to run the C preprocessor... " >&6; }
6839# On Suns, sometimes $CPP names a directory.
6840if test -n "$CPP" && test -d "$CPP"; then
6841 CPP=
6842fi
6843if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00006844 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006845 $as_echo_n "(cached) " >&6
6846else
6847 # Double quotes because CPP needs to be expanded
6848 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6849 do
6850 ac_preproc_ok=false
6851for ac_c_preproc_warn_flag in '' yes
6852do
6853 # Use a header file that comes with gcc, so configuring glibc
6854 # with a fresh cross-compiler works.
6855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856 # <limits.h> exists even on freestanding compilers.
6857 # On the NeXT, cc -E runs the code through the compiler's parser,
6858 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006860/* end confdefs.h. */
6861#ifdef __STDC__
6862# include <limits.h>
6863#else
6864# include <assert.h>
6865#endif
6866 Syntax error
6867_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006868if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006869
cristy8b350f62009-11-15 23:12:43 +00006870else
cristy3ed852e2009-09-05 21:47:34 +00006871 # Broken: fails on valid input.
6872continue
6873fi
cristyda16f162011-02-19 23:52:17 +00006874rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006875
6876 # OK, works on sane cases. Now check whether nonexistent headers
6877 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006879/* end confdefs.h. */
6880#include <ac_nonexistent.h>
6881_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006882if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006883 # Broken: success on invalid input.
6884continue
6885else
cristy3ed852e2009-09-05 21:47:34 +00006886 # Passes both tests.
6887ac_preproc_ok=:
6888break
6889fi
cristyda16f162011-02-19 23:52:17 +00006890rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006891
6892done
6893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006894rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006895if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00006896 break
6897fi
6898
6899 done
6900 ac_cv_prog_CPP=$CPP
6901
6902fi
6903 CPP=$ac_cv_prog_CPP
6904else
6905 ac_cv_prog_CPP=$CPP
6906fi
cristy8b350f62009-11-15 23:12:43 +00006907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00006908$as_echo "$CPP" >&6; }
6909ac_preproc_ok=false
6910for ac_c_preproc_warn_flag in '' yes
6911do
6912 # Use a header file that comes with gcc, so configuring glibc
6913 # with a fresh cross-compiler works.
6914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6915 # <limits.h> exists even on freestanding compilers.
6916 # On the NeXT, cc -E runs the code through the compiler's parser,
6917 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00006918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006919/* end confdefs.h. */
6920#ifdef __STDC__
6921# include <limits.h>
6922#else
6923# include <assert.h>
6924#endif
6925 Syntax error
6926_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006927if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006928
cristy8b350f62009-11-15 23:12:43 +00006929else
cristy3ed852e2009-09-05 21:47:34 +00006930 # Broken: fails on valid input.
6931continue
6932fi
cristyda16f162011-02-19 23:52:17 +00006933rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006934
6935 # OK, works on sane cases. Now check whether nonexistent headers
6936 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00006937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006938/* end confdefs.h. */
6939#include <ac_nonexistent.h>
6940_ACEOF
cristy8b350f62009-11-15 23:12:43 +00006941if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006942 # Broken: success on invalid input.
6943continue
6944else
cristy3ed852e2009-09-05 21:47:34 +00006945 # Passes both tests.
6946ac_preproc_ok=:
6947break
6948fi
cristyda16f162011-02-19 23:52:17 +00006949rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006950
6951done
6952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00006953rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00006954if $ac_preproc_ok; then :
6955
cristy3ed852e2009-09-05 21:47:34 +00006956else
cristy8b350f62009-11-15 23:12:43 +00006957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00006958$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006959as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6960See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00006961fi
6962
6963ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
cristy73bd4a52010-10-05 11:24:23 +00006969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6970$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006971if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006972 $as_echo_n "(cached) " >&6
6973else
6974 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6975 for ac_i in 1 2 3 4 5 6 7; do
6976 ac_script="$ac_script$as_nl$ac_script"
6977 done
6978 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6979 { ac_script=; unset ac_script;}
6980 if test -z "$SED"; then
6981 ac_path_SED_found=false
6982 # Loop through the user's path and test for each of PROGNAME-LIST
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_prog in sed gsed; do
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6991 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6992# Check for GNU ac_path_SED and select it if it is found.
6993 # Check for GNU $ac_path_SED
6994case `"$ac_path_SED" --version 2>&1` in
6995*GNU*)
6996 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6997*)
6998 ac_count=0
6999 $as_echo_n 0123456789 >"conftest.in"
7000 while :
7001 do
7002 cat "conftest.in" "conftest.in" >"conftest.tmp"
7003 mv "conftest.tmp" "conftest.in"
7004 cp "conftest.in" "conftest.nl"
7005 $as_echo '' >> "conftest.nl"
7006 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7008 as_fn_arith $ac_count + 1 && ac_count=$as_val
7009 if test $ac_count -gt ${ac_path_SED_max-0}; then
7010 # Best one so far, save it but keep looking for a better one
7011 ac_cv_path_SED="$ac_path_SED"
7012 ac_path_SED_max=$ac_count
7013 fi
7014 # 10*(2^10) chars as input seems more than enough
7015 test $ac_count -gt 10 && break
7016 done
7017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7018esac
7019
7020 $ac_path_SED_found && break 3
7021 done
7022 done
7023 done
7024IFS=$as_save_IFS
7025 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007026 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007027 fi
7028else
7029 ac_cv_path_SED=$SED
7030fi
7031
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7034$as_echo "$ac_cv_path_SED" >&6; }
7035 SED="$ac_cv_path_SED"
7036 rm -f conftest.sed
7037
7038test -z "$SED" && SED=sed
7039Xsed="$SED -e 1s/^X//"
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7052$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007053if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007054 $as_echo_n "(cached) " >&6
7055else
7056 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7057 then ac_cv_path_FGREP="$GREP -F"
7058 else
7059 if test -z "$FGREP"; then
7060 ac_path_FGREP_found=false
7061 # Loop through the user's path and test for each of PROGNAME-LIST
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_prog in fgrep; do
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7070 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7071# Check for GNU ac_path_FGREP and select it if it is found.
7072 # Check for GNU $ac_path_FGREP
7073case `"$ac_path_FGREP" --version 2>&1` in
7074*GNU*)
7075 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7076*)
7077 ac_count=0
7078 $as_echo_n 0123456789 >"conftest.in"
7079 while :
7080 do
7081 cat "conftest.in" "conftest.in" >"conftest.tmp"
7082 mv "conftest.tmp" "conftest.in"
7083 cp "conftest.in" "conftest.nl"
7084 $as_echo 'FGREP' >> "conftest.nl"
7085 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7087 as_fn_arith $ac_count + 1 && ac_count=$as_val
7088 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7089 # Best one so far, save it but keep looking for a better one
7090 ac_cv_path_FGREP="$ac_path_FGREP"
7091 ac_path_FGREP_max=$ac_count
7092 fi
7093 # 10*(2^10) chars as input seems more than enough
7094 test $ac_count -gt 10 && break
7095 done
7096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7097esac
7098
7099 $ac_path_FGREP_found && break 3
7100 done
7101 done
7102 done
7103IFS=$as_save_IFS
7104 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007105 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007106 fi
7107else
7108 ac_cv_path_FGREP=$FGREP
7109fi
7110
7111 fi
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7114$as_echo "$ac_cv_path_FGREP" >&6; }
7115 FGREP="$ac_cv_path_FGREP"
7116
7117
7118test -z "$GREP" && GREP=grep
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
cristy0c60a692010-11-04 01:09:47 +00007136ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7137ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7138ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7139
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7141$as_echo_n "checking how to print strings... " >&6; }
7142# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007143if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007144 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7145 ECHO='print -r --'
7146elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7147 ECHO='printf %s\n'
7148else
7149 # Use this function as a fallback that always works.
7150 func_fallback_echo ()
7151 {
7152 eval 'cat <<_LTECHO_EOF
7153$1
7154_LTECHO_EOF'
7155 }
7156 ECHO='func_fallback_echo'
7157fi
7158
7159# func_echo_all arg...
7160# Invoke $ECHO with all args, space-separated.
7161func_echo_all ()
7162{
7163 $ECHO ""
7164}
7165
7166case "$ECHO" in
7167 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7168$as_echo "printf" >&6; } ;;
7169 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7170$as_echo "print -r" >&6; } ;;
7171 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7172$as_echo "cat" >&6; } ;;
7173esac
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
cristy73bd4a52010-10-05 11:24:23 +00007188
7189
7190# Check whether --with-gnu-ld was given.
7191if test "${with_gnu_ld+set}" = set; then :
7192 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7193else
7194 with_gnu_ld=no
7195fi
7196
7197ac_prog=ld
7198if test "$GCC" = yes; then
7199 # Check if gcc -print-prog-name=ld gives a path.
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7201$as_echo_n "checking for ld used by $CC... " >&6; }
7202 case $host in
7203 *-*-mingw*)
7204 # gcc leaves a trailing carriage return which upsets mingw
7205 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7206 *)
7207 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7208 esac
7209 case $ac_prog in
7210 # Accept absolute paths.
7211 [\\/]* | ?:[\\/]*)
7212 re_direlt='/[^/][^/]*/\.\./'
7213 # Canonicalize the pathname of ld
7214 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7215 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7216 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7217 done
7218 test -z "$LD" && LD="$ac_prog"
7219 ;;
7220 "")
7221 # If it fails, then pretend we aren't using GCC.
7222 ac_prog=ld
7223 ;;
7224 *)
7225 # If it is relative, then search for the first ld in PATH.
7226 with_gnu_ld=unknown
7227 ;;
7228 esac
7229elif test "$with_gnu_ld" = yes; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7231$as_echo_n "checking for GNU ld... " >&6; }
7232else
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7234$as_echo_n "checking for non-GNU ld... " >&6; }
7235fi
cristyda16f162011-02-19 23:52:17 +00007236if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007237 $as_echo_n "(cached) " >&6
7238else
7239 if test -z "$LD"; then
7240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241 for ac_dir in $PATH; do
7242 IFS="$lt_save_ifs"
7243 test -z "$ac_dir" && ac_dir=.
7244 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7245 lt_cv_path_LD="$ac_dir/$ac_prog"
7246 # Check to see if the program is GNU ld. I'd rather use --version,
7247 # but apparently some variants of GNU ld only accept -v.
7248 # Break only if it was the GNU/non-GNU ld that we prefer.
7249 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7250 *GNU* | *'with BFD'*)
7251 test "$with_gnu_ld" != no && break
7252 ;;
7253 *)
7254 test "$with_gnu_ld" != yes && break
7255 ;;
7256 esac
7257 fi
7258 done
7259 IFS="$lt_save_ifs"
7260else
7261 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7262fi
7263fi
7264
7265LD="$lt_cv_path_LD"
7266if test -n "$LD"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7268$as_echo "$LD" >&6; }
7269else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
7272fi
cristy98dddb52010-11-04 00:30:15 +00007273test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7275$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007276if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007277 $as_echo_n "(cached) " >&6
7278else
7279 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7280case `$LD -v 2>&1 </dev/null` in
7281*GNU* | *'with BFD'*)
7282 lt_cv_prog_gnu_ld=yes
7283 ;;
7284*)
7285 lt_cv_prog_gnu_ld=no
7286 ;;
7287esac
7288fi
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7290$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7291with_gnu_ld=$lt_cv_prog_gnu_ld
7292
7293
7294
7295
7296
7297
7298
7299
7300
cristy3ed852e2009-09-05 21:47:34 +00007301
cristy837d6dc2010-02-27 01:16:57 +00007302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7303$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007304if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007305 $as_echo_n "(cached) " >&6
7306else
7307 ac_cv_prog_cc_c99=no
7308ac_save_CC=$CC
7309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310/* end confdefs.h. */
7311#include <stdarg.h>
7312#include <stdbool.h>
7313#include <stdlib.h>
7314#include <wchar.h>
7315#include <stdio.h>
7316
7317// Check varargs macros. These examples are taken from C99 6.10.3.5.
7318#define debug(...) fprintf (stderr, __VA_ARGS__)
7319#define showlist(...) puts (#__VA_ARGS__)
7320#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7321static void
7322test_varargs_macros (void)
7323{
7324 int x = 1234;
7325 int y = 5678;
7326 debug ("Flag");
7327 debug ("X = %d\n", x);
7328 showlist (The first, second, and third items.);
7329 report (x>y, "x is %d but y is %d", x, y);
7330}
7331
7332// Check long long types.
7333#define BIG64 18446744073709551615ull
7334#define BIG32 4294967295ul
7335#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7336#if !BIG_OK
7337 your preprocessor is broken;
7338#endif
7339#if BIG_OK
7340#else
7341 your preprocessor is broken;
7342#endif
7343static long long int bignum = -9223372036854775807LL;
7344static unsigned long long int ubignum = BIG64;
7345
7346struct incomplete_array
7347{
7348 int datasize;
7349 double data[];
7350};
7351
7352struct named_init {
7353 int number;
7354 const wchar_t *name;
7355 double average;
7356};
7357
7358typedef const char *ccp;
7359
7360static inline int
7361test_restrict (ccp restrict text)
7362{
7363 // See if C++-style comments work.
7364 // Iterate through items via the restricted pointer.
7365 // Also check for declarations in for loops.
7366 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7367 continue;
7368 return 0;
7369}
7370
7371// Check varargs and va_copy.
7372static void
7373test_varargs (const char *format, ...)
7374{
7375 va_list args;
7376 va_start (args, format);
7377 va_list args_copy;
7378 va_copy (args_copy, args);
7379
7380 const char *str;
7381 int number;
7382 float fnumber;
7383
7384 while (*format)
7385 {
7386 switch (*format++)
7387 {
7388 case 's': // string
7389 str = va_arg (args_copy, const char *);
7390 break;
7391 case 'd': // int
7392 number = va_arg (args_copy, int);
7393 break;
7394 case 'f': // float
7395 fnumber = va_arg (args_copy, double);
7396 break;
7397 default:
7398 break;
7399 }
7400 }
7401 va_end (args_copy);
7402 va_end (args);
7403}
7404
7405int
7406main ()
7407{
7408
7409 // Check bool.
7410 _Bool success = false;
7411
7412 // Check restrict.
7413 if (test_restrict ("String literal") == 0)
7414 success = true;
7415 char *restrict newvar = "Another string";
7416
7417 // Check varargs.
7418 test_varargs ("s, d' f .", "string", 65, 34.234);
7419 test_varargs_macros ();
7420
7421 // Check flexible array members.
7422 struct incomplete_array *ia =
7423 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7424 ia->datasize = 10;
7425 for (int i = 0; i < ia->datasize; ++i)
7426 ia->data[i] = i * 1.234;
7427
7428 // Check named initializers.
7429 struct named_init ni = {
7430 .number = 34,
7431 .name = L"Test wide string",
7432 .average = 543.34343,
7433 };
7434
7435 ni.number = 58;
7436
7437 int dynamic_array[ni.number];
7438 dynamic_array[ni.number - 1] = 543;
7439
7440 // work around unused variable warnings
7441 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7442 || dynamic_array[ni.number - 1] != 543);
7443
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7449do
7450 CC="$ac_save_CC $ac_arg"
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452 ac_cv_prog_cc_c99=$ac_arg
7453fi
7454rm -f core conftest.err conftest.$ac_objext
7455 test "x$ac_cv_prog_cc_c99" != "xno" && break
7456done
7457rm -f conftest.$ac_ext
7458CC=$ac_save_CC
7459
7460fi
7461# AC_CACHE_VAL
7462case "x$ac_cv_prog_cc_c99" in
7463 x)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7465$as_echo "none needed" >&6; } ;;
7466 xno)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7468$as_echo "unsupported" >&6; } ;;
7469 *)
7470 CC="$CC $ac_cv_prog_cc_c99"
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7472$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7473esac
7474if test "x$ac_cv_prog_cc_c99" != xno; then :
7475
7476fi
7477
7478
cristy73bd4a52010-10-05 11:24:23 +00007479if test "x$CC" != xcc; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7481$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7482else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7484$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7485fi
7486set dummy $CC; ac_cc=`$as_echo "$2" |
7487 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007488if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007489 $as_echo_n "(cached) " >&6
7490else
cristy73bd4a52010-10-05 11:24:23 +00007491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492/* end confdefs.h. */
7493
7494int
7495main ()
7496{
7497
7498 ;
7499 return 0;
7500}
7501_ACEOF
7502# Make sure it works both with $CC and with simple cc.
7503# We do the test twice because some compilers refuse to overwrite an
7504# existing .o file with -o, though they will create one.
7505ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7506rm -f conftest2.*
7507if { { case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510esac
7511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7512$as_echo "$ac_try_echo"; } >&5
7513 (eval "$ac_try") 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; } &&
7517 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7520esac
7521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522$as_echo "$ac_try_echo"; } >&5
7523 (eval "$ac_try") 2>&5
7524 ac_status=$?
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; };
7527then
7528 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7529 if test "x$CC" != xcc; then
7530 # Test first that cc exists at all.
7531 if { ac_try='cc -c conftest.$ac_ext >&5'
7532 { { case "(($ac_try" in
7533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534 *) ac_try_echo=$ac_try;;
7535esac
7536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537$as_echo "$ac_try_echo"; } >&5
7538 (eval "$ac_try") 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; }; then
7542 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7543 rm -f conftest2.*
7544 if { { case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547esac
7548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549$as_echo "$ac_try_echo"; } >&5
7550 (eval "$ac_try") 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; } &&
7554 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557esac
7558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7559$as_echo "$ac_try_echo"; } >&5
7560 (eval "$ac_try") 2>&5
7561 ac_status=$?
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; };
7564 then
7565 # cc works too.
7566 :
7567 else
7568 # cc exists but doesn't like -o.
7569 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7570 fi
7571 fi
7572 fi
7573else
7574 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7575fi
7576rm -f core conftest*
7577
7578fi
7579if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581$as_echo "yes" >&6; }
7582else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585
7586$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7587
7588fi
7589
7590# FIXME: we rely on the cache variable name because
7591# there is no other way.
7592set dummy $CC
7593am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7594eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7595if test "$am_t" != yes; then
7596 # Losing compiler, so override with the script.
7597 # FIXME: It is wrong to rewrite CC.
7598 # But if we don't then we get into trouble of one sort or another.
7599 # A longer-term fix would be to have automake use am__CC in this case,
7600 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7601 CC="$am_aux_dir/compile $CC"
7602fi
7603
7604
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7606$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007607if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007608 $as_echo_n "(cached) " >&6
7609else
7610 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007611 ac_ext=c
7612ac_cpp='$CPP $CPPFLAGS'
7613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_c_compiler_gnu
7616
7617 ac_save_CFLAGS="$CFLAGS"
7618for 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" #
7619do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h. */
7622
7623int
7624main ()
7625{
cristy24fc1fe2010-10-23 21:13:01 +00007626
cristy73bd4a52010-10-05 11:24:23 +00007627 ;
7628 return 0;
7629}
7630_ACEOF
7631if ac_fn_c_try_compile "$LINENO"; then :
7632 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635done
7636 CFLAGS="$ac_save_CFLAGS"
7637 ac_ext=c
7638ac_cpp='$CPP $CPPFLAGS'
7639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642
7643
7644fi
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7646$as_echo "$ac_cv_cflags_warn_all" >&6; }
7647case ".$ac_cv_cflags_warn_all" in
7648 .ok|.ok,*) ;;
7649 .|.no|.no,*)
7650 ;;
7651 *)
7652 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7653 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7654 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7655 ac_status=$?
7656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 test $ac_status = 0; }
7658 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7659 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7660 ac_status=$?
7661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }
7663 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7664 fi
7665 ;;
nicolas6237c462010-10-05 06:11:49 +00007666esac
cristy3ed852e2009-09-05 21:47:34 +00007667
cristya0b81c32010-01-22 02:54:33 +00007668
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7670$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7671set x ${MAKE-make}
7672ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007673if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007674 $as_echo_n "(cached) " >&6
7675else
7676 cat >conftest.make <<\_ACEOF
7677SHELL = /bin/sh
7678all:
7679 @echo '@@@%%%=$(MAKE)=@@@%%%'
7680_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007681# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007682case `${MAKE-make} -f conftest.make 2>/dev/null` in
7683 *@@@%%%=?*=@@@%%%*)
7684 eval ac_cv_prog_make_${ac_make}_set=yes;;
7685 *)
7686 eval ac_cv_prog_make_${ac_make}_set=no;;
7687esac
7688rm -f conftest.make
7689fi
7690if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7692$as_echo "yes" >&6; }
7693 SET_MAKE=
7694else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697 SET_MAKE="MAKE=${MAKE-make}"
7698fi
7699
cristy8b350f62009-11-15 23:12:43 +00007700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo_n "checking whether ln -s works... " >&6; }
7702LN_S=$as_ln_s
7703if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007705$as_echo "yes" >&6; }
7706else
cristy8b350f62009-11-15 23:12:43 +00007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007708$as_echo "no, using $LN_S" >&6; }
7709fi
7710
cristy73bd4a52010-10-05 11:24:23 +00007711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7712$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7713
7714# Check whether --with-dmalloc was given.
7715if test "${with_dmalloc+set}" = set; then :
7716 withval=$with_dmalloc; if test "$withval" = yes; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718$as_echo "yes" >&6; }
7719
7720$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7721
7722 LIBS="$LIBS -ldmalloc"
7723 LDFLAGS="$LDFLAGS -g"
7724else
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
7727fi
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7736$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007737if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007738 $as_echo_n "(cached) " >&6
7739else
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h. */
7742#include <stdlib.h>
7743 static void foo(void) __attribute__ ((unused));
7744 static void
7745 foo(void) {
7746 exit(1);
7747 }
7748
7749int
7750main ()
7751{
7752
7753 ;
7754 return 0;
7755}
7756_ACEOF
7757if ac_fn_c_try_compile "$LINENO"; then :
7758 ax_cv___attribute__=yes
7759else
7760 ax_cv___attribute__=no
7761
7762fi
7763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764
7765fi
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7767$as_echo "$ax_cv___attribute__" >&6; }
7768 if test "$ax_cv___attribute__" = "yes"; then
7769
7770$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7771
7772 fi
7773
7774
7775
7776if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7777 if test -n "$ac_tool_prefix"; then
7778 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7779set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007782if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007783 $as_echo_n "(cached) " >&6
7784else
7785 case $PKG_CONFIG in
7786 [\\/]* | ?:[\\/]*)
7787 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7788 ;;
7789 *)
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7797 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801done
7802 done
7803IFS=$as_save_IFS
7804
7805 ;;
7806esac
7807fi
7808PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7809if test -n "$PKG_CONFIG"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7811$as_echo "$PKG_CONFIG" >&6; }
7812else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
7815fi
7816
7817
7818fi
7819if test -z "$ac_cv_path_PKG_CONFIG"; then
7820 ac_pt_PKG_CONFIG=$PKG_CONFIG
7821 # Extract the first word of "pkg-config", so it can be a program name with args.
7822set dummy pkg-config; ac_word=$2
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007825if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007826 $as_echo_n "(cached) " >&6
7827else
7828 case $ac_pt_PKG_CONFIG in
7829 [\\/]* | ?:[\\/]*)
7830 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7831 ;;
7832 *)
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844done
7845 done
7846IFS=$as_save_IFS
7847
7848 ;;
7849esac
7850fi
7851ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7852if test -n "$ac_pt_PKG_CONFIG"; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7854$as_echo "$ac_pt_PKG_CONFIG" >&6; }
7855else
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
7858fi
7859
7860 if test "x$ac_pt_PKG_CONFIG" = x; then
7861 PKG_CONFIG=""
7862 else
7863 case $cross_compiling:$ac_tool_warned in
7864yes:)
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867ac_tool_warned=yes ;;
7868esac
7869 PKG_CONFIG=$ac_pt_PKG_CONFIG
7870 fi
7871else
7872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7873fi
7874
7875fi
7876if test -n "$PKG_CONFIG"; then
7877 _pkg_min_version=0.9.0
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7879$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7880 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7882$as_echo "yes" >&6; }
7883 else
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885$as_echo "no" >&6; }
7886 PKG_CONFIG=""
7887 fi
7888
7889fi
cristy3ed852e2009-09-05 21:47:34 +00007890
7891#
cristy3ed852e2009-09-05 21:47:34 +00007892# Enable run-time checking.
7893#
7894# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00007895if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00007896 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7897else
7898 enable_bounds_checking='no'
7899fi
7900
7901
7902if test "$enable_bounds_checking" = yes; then
7903
cristy8b350f62009-11-15 23:12:43 +00007904$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007905
7906fi
7907
7908#
7909# Tests for Windows
7910#
7911
7912
cristy73bd4a52010-10-05 11:24:23 +00007913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7914$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007915if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007916 $as_echo_n "(cached) " >&6
7917else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h. */
7920
7921int
7922main ()
7923{
7924#ifndef _MSC_VER
7925 choke me
7926#endif
7927
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932if ac_fn_c_try_compile "$LINENO"; then :
7933 ax_compiler_ms=yes
7934else
7935 ax_compiler_ms=no
7936fi
7937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7938ax_cv_c_compiler_ms=$ax_compiler_ms
7939
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7942$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00007943
7944GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00007945native_win32_build='no'
7946cygwin_build='no'
7947case "${host_os}" in
7948 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00007949 cygwin_build='yes'
7950 GDI32_LIBS='-lgdi32'
7951 ;;
7952 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00007953 native_win32_build='yes'
7954 GDI32_LIBS='-lgdi32'
7955 ;;
7956esac
7957if test "${GDI32_LIBS}x" != 'x'; then
7958
cristy8b350f62009-11-15 23:12:43 +00007959$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00007960
7961fi
7962
cristy73bd4a52010-10-05 11:24:23 +00007963 if test "${GDI32_LIBS}x" != 'x' ; then
7964 WINGDI32_DELEGATE_TRUE=
7965 WINGDI32_DELEGATE_FALSE='#'
7966else
7967 WINGDI32_DELEGATE_TRUE='#'
7968 WINGDI32_DELEGATE_FALSE=
7969fi
7970
7971 if test "${native_win32_build}" = 'yes' ; then
7972 WIN32_NATIVE_BUILD_TRUE=
7973 WIN32_NATIVE_BUILD_FALSE='#'
7974else
7975 WIN32_NATIVE_BUILD_TRUE='#'
7976 WIN32_NATIVE_BUILD_FALSE=
7977fi
7978
7979 if test "${cygwin_build}" = 'yes' ; then
7980 CYGWIN_BUILD_TRUE=
7981 CYGWIN_BUILD_FALSE='#'
7982else
7983 CYGWIN_BUILD_TRUE='#'
7984 CYGWIN_BUILD_FALSE=
7985fi
7986
7987 if test "x${CC}" = 'xcl.exe' ; then
7988 USING_CL_TRUE=
7989 USING_CL_FALSE='#'
7990else
7991 USING_CL_TRUE='#'
7992 USING_CL_FALSE=
7993fi
7994
cristy3ed852e2009-09-05 21:47:34 +00007995
7996WinPathScript="${srcdirfull}/winpath.sh"
7997
7998
7999#
8000# Compiler flags tweaks
8001#
8002if test "${GCC}" != "yes"; then
8003 case "${host}" in
8004 *-*-hpux* )
8005 # aCC: HP ANSI C++ B3910B A.03.34
8006 CFLAGS="${CFLAGS} -Wp,-H30000"
8007 if test -n "${CXXFLAGS}"; then
8008 CXXFLAGS='-AA'
8009 else
8010 CXXFLAGS="${CXXFLAGS} -AA"
8011 fi
8012 ;;
8013 *-dec-osf5.* )
8014 # Compaq alphaev68-dec-osf5.1 compiler
8015 if test -n "${CXXFLAGS}"; then
8016 CXXFLAGS='-std strict_ansi -noimplicit_include'
8017 else
8018 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8019 fi
8020 esac
8021fi
8022
8023# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008025$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008026if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008027 $as_echo_n "(cached) " >&6
8028else
8029
8030im_cv_ld_lazyload='none'
8031case "${host}" in
8032 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8033 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8034 im_cv_ld_lazyload='-Wl,-zlazyload'
8035 fi
8036 ;;
8037esac
8038
8039fi
cristy8b350f62009-11-15 23:12:43 +00008040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008041$as_echo "$im_cv_ld_lazyload" >&6; }
8042if test "${im_cv_ld_lazyload}" != 'none' ; then
8043 if test -z "${LDFLAGS}" ; then
8044 LDFLAGS="${im_cv_ld_lazyload}"
8045 else
8046 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8047 fi
8048fi
8049
8050case "$host" in
8051*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008052 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008053if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008054 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8055else
8056 build_osxuniversal=no
8057fi
8058
8059
8060 if test "${build_osxuniversal}" != no ; then
8061 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008062 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008063Please re-run configure with these options:
8064 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008065 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008066 fi
8067 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8068 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8069 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8070 fi
8071 ;;
8072esac
8073
8074# Enable support for threads
8075
8076# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008077if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008078 withval=$with_threads; with_threads=$withval
8079else
8080 with_threads='yes'
8081fi
8082
8083
8084have_threads=no
8085if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008086
8087
8088
8089ac_ext=c
8090ac_cpp='$CPP $CPPFLAGS'
8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093ac_compiler_gnu=$ac_cv_c_compiler_gnu
8094
8095ax_pthread_ok=no
8096
8097# We used to check for pthread.h first, but this fails if pthread.h
8098# requires special compiler flags (e.g. on True64 or Sequent).
8099# It gets checked for in the link test anyway.
8100
8101# First of all, check if the user has set any of the PTHREAD_LIBS,
8102# etcetera environment variables, and if threads linking works using
8103# them:
8104if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8105 save_CFLAGS="$CFLAGS"
8106 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8107 save_LIBS="$LIBS"
8108 LIBS="$PTHREAD_LIBS $LIBS"
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8110$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h. */
8113
8114/* Override any GCC internal prototype to avoid an error.
8115 Use char because int might match the return type of a GCC
8116 builtin and then its argument prototype would still apply. */
8117#ifdef __cplusplus
8118extern "C"
8119#endif
8120char pthread_join ();
8121int
8122main ()
8123{
8124return pthread_join ();
8125 ;
8126 return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"; then :
8130 ax_pthread_ok=yes
8131fi
8132rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8135$as_echo "$ax_pthread_ok" >&6; }
8136 if test x"$ax_pthread_ok" = xno; then
8137 PTHREAD_LIBS=""
8138 PTHREAD_CFLAGS=""
8139 fi
8140 LIBS="$save_LIBS"
8141 CFLAGS="$save_CFLAGS"
8142fi
8143
8144# We must check for the threads library under a number of different
8145# names; the ordering is very important because some systems
8146# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8147# libraries is broken (non-POSIX).
8148
8149# Create a list of thread flags to try. Items starting with a "-" are
8150# C compiler flags, and other items are library names, except for "none"
8151# which indicates that we try without any flags at all, and "pthread-config"
8152# which is a program returning the flags for the Pth emulation library.
8153
8154ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8155
8156# The ordering *is* (sometimes) important. Some notes on the
8157# individual items follow:
8158
8159# pthreads: AIX (must check this before -lpthread)
8160# none: in case threads are in libc; should be tried before -Kthread and
8161# other compiler flags to prevent continual compiler warnings
8162# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8163# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8164# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8165# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8166# -pthreads: Solaris/gcc
8167# -mthreads: Mingw32/gcc, Lynx/gcc
8168# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8169# doesn't hurt to check since this sometimes defines pthreads too;
8170# also defines -D_REENTRANT)
8171# ... -mt is also the pthreads flag for HP/aCC
8172# pthread: Linux, etcetera
8173# --thread-safe: KAI C++
8174# pthread-config: use pthread-config program (for GNU Pth library)
8175
8176case "${host_cpu}-${host_os}" in
8177 *solaris*)
8178
8179 # On Solaris (at least, for some versions), libc contains stubbed
8180 # (non-functional) versions of the pthreads routines, so link-based
8181 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8182 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8183 # a function called by this macro, so we could check for that, but
8184 # who knows whether they'll stub that too in a future libc.) So,
8185 # we'll just look for -pthreads and -lpthread first:
8186
8187 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8188 ;;
8189
8190 *-darwin*)
8191 ax_pthread_flags="-pthread $ax_pthread_flags"
8192 ;;
8193esac
8194
8195if test x"$ax_pthread_ok" = xno; then
8196for flag in $ax_pthread_flags; do
8197
8198 case $flag in
8199 none)
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8201$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8202 ;;
8203
8204 -*)
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8206$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8207 PTHREAD_CFLAGS="$flag"
8208 ;;
8209
8210 pthread-config)
8211 # Extract the first word of "pthread-config", so it can be a program name with args.
8212set dummy pthread-config; ac_word=$2
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008215if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008216 $as_echo_n "(cached) " >&6
8217else
8218 if test -n "$ax_pthread_config"; then
8219 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_ax_pthread_config="yes"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232done
8233 done
8234IFS=$as_save_IFS
8235
8236 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8237fi
8238fi
8239ax_pthread_config=$ac_cv_prog_ax_pthread_config
8240if test -n "$ax_pthread_config"; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8242$as_echo "$ax_pthread_config" >&6; }
8243else
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
8246fi
8247
8248
8249 if test x"$ax_pthread_config" = xno; then continue; fi
8250 PTHREAD_CFLAGS="`pthread-config --cflags`"
8251 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8252 ;;
8253
8254 *)
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8256$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8257 PTHREAD_LIBS="-l$flag"
8258 ;;
8259 esac
8260
8261 save_LIBS="$LIBS"
8262 save_CFLAGS="$CFLAGS"
8263 LIBS="$PTHREAD_LIBS $LIBS"
8264 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8265
8266 # Check for various functions. We must include pthread.h,
8267 # since some functions may be macros. (On the Sequent, we
8268 # need a special flag -Kthread to make this header compile.)
8269 # We check for pthread_join because it is in -lpthread on IRIX
8270 # while pthread_create is in libc. We check for pthread_attr_init
8271 # due to DEC craziness with -lpthreads. We check for
8272 # pthread_cleanup_push because it is one of the few pthread
8273 # functions on Solaris that doesn't have a non-functional libc stub.
8274 # We try pthread_create on general principles.
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276/* end confdefs.h. */
8277#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008278 static void routine(void* a) {a=0;}
8279 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008280int
8281main ()
8282{
8283pthread_t th; pthread_attr_t attr;
8284 pthread_create(&th,0,start_routine,0);
8285 pthread_join(th, 0);
8286 pthread_attr_init(&attr);
8287 pthread_cleanup_push(routine, 0);
8288 pthread_cleanup_pop(0);
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293if ac_fn_c_try_link "$LINENO"; then :
8294 ax_pthread_ok=yes
8295fi
8296rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
8298
8299 LIBS="$save_LIBS"
8300 CFLAGS="$save_CFLAGS"
8301
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8303$as_echo "$ax_pthread_ok" >&6; }
8304 if test "x$ax_pthread_ok" = xyes; then
8305 break;
8306 fi
8307
8308 PTHREAD_LIBS=""
8309 PTHREAD_CFLAGS=""
8310done
8311fi
8312
8313# Various other checks:
8314if test "x$ax_pthread_ok" = xyes; then
8315 save_LIBS="$LIBS"
8316 LIBS="$PTHREAD_LIBS $LIBS"
8317 save_CFLAGS="$CFLAGS"
8318 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8319
8320 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8322$as_echo_n "checking for joinable pthread attribute... " >&6; }
8323 attr_name=unknown
8324 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h. */
8327#include <pthread.h>
8328int
8329main ()
8330{
8331int attr=$attr; return attr;
8332 ;
8333 return 0;
8334}
8335_ACEOF
8336if ac_fn_c_try_link "$LINENO"; then :
8337 attr_name=$attr; break
8338fi
8339rm -f core conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 done
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8343$as_echo "$attr_name" >&6; }
8344 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8345
8346cat >>confdefs.h <<_ACEOF
8347#define PTHREAD_CREATE_JOINABLE $attr_name
8348_ACEOF
8349
8350 fi
8351
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8353$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8354 flag=no
8355 case "${host_cpu}-${host_os}" in
8356 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8357 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8358 esac
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8360$as_echo "${flag}" >&6; }
8361 if test "x$flag" != xno; then
8362 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8363 fi
8364
8365 LIBS="$save_LIBS"
8366 CFLAGS="$save_CFLAGS"
8367
8368 # More AIX lossage: must compile with xlc_r or cc_r
8369 if test x"$GCC" != xyes; then
8370 for ac_prog in xlc_r cc_r
8371do
8372 # Extract the first word of "$ac_prog", so it can be a program name with args.
8373set dummy $ac_prog; ac_word=$2
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008376if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008377 $as_echo_n "(cached) " >&6
8378else
8379 if test -n "$PTHREAD_CC"; then
8380 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8389 ac_cv_prog_PTHREAD_CC="$ac_prog"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394 done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
8399PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8400if test -n "$PTHREAD_CC"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8402$as_echo "$PTHREAD_CC" >&6; }
8403else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408
8409 test -n "$PTHREAD_CC" && break
8410done
8411test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8412
8413 else
8414 PTHREAD_CC=$CC
8415 fi
8416else
8417 PTHREAD_CC="$CC"
8418fi
8419
8420
8421
8422
8423
8424# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8425if test x"$ax_pthread_ok" = xyes; then
8426
8427$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8428
8429 :
8430else
8431 ax_pthread_ok=no
8432
8433fi
8434ac_ext=c
8435ac_cpp='$CPP $CPPFLAGS'
8436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8438ac_compiler_gnu=$ac_cv_c_compiler_gnu
8439
8440
cristy7acf8fb2010-09-23 19:58:53 +00008441 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008442 have_threads=yes
8443 DEF_THREAD="$PTHREAD_CFLAGS"
8444 CFLAGS="$CFLAGS $DEF_THREAD"
8445 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8446 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008447 { $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 +00008448$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8449 CC="$PTHREAD_CC"
8450 fi
cristy55bf91c2010-09-24 00:29:41 +00008451
8452$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8453
cristy3ed852e2009-09-05 21:47:34 +00008454 fi
8455fi
8456
8457# Enable support for OpenMP
8458if test "$have_threads" != 'yes'; then
8459 ac_cv_prog_c_openmp=unsupported
8460fi
8461
8462 OPENMP_CFLAGS=
8463 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008464if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008465 enableval=$enable_openmp;
8466fi
8467
8468 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008470$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008471if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008472 $as_echo_n "(cached) " >&6
8473else
cristy8b350f62009-11-15 23:12:43 +00008474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008476
8477#ifndef _OPENMP
8478 choke me
8479#endif
8480#include <omp.h>
8481int main () { return omp_get_num_threads (); }
8482
8483_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008484if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008485 ac_cv_prog_c_openmp='none needed'
8486else
cristy8b350f62009-11-15 23:12:43 +00008487 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008488 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8489 ac_save_CFLAGS=$CFLAGS
8490 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008493
8494#ifndef _OPENMP
8495 choke me
8496#endif
8497#include <omp.h>
8498int main () { return omp_get_num_threads (); }
8499
8500_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008502 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008503fi
cristy8b350f62009-11-15 23:12:43 +00008504rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008506 CFLAGS=$ac_save_CFLAGS
8507 if test "$ac_cv_prog_c_openmp" != unsupported; then
8508 break
8509 fi
8510 done
8511fi
cristy8b350f62009-11-15 23:12:43 +00008512rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008514fi
cristy8b350f62009-11-15 23:12:43 +00008515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008516$as_echo "$ac_cv_prog_c_openmp" >&6; }
8517 case $ac_cv_prog_c_openmp in #(
8518 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008519 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008520 *)
cristy8b350f62009-11-15 23:12:43 +00008521 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008522 esac
8523 fi
8524
8525
8526CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8527MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8528
cristy391f1ce2010-09-09 17:23:28 +00008529if test "$enable_openmp" != no; then
8530 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8531 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8532 fi
8533fi
cristy3ed852e2009-09-05 21:47:34 +00008534
cristy736173a2009-09-20 21:18:22 +00008535# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008536
8537
8538
8539ac_ext=c
8540ac_cpp='$CPP $CPPFLAGS'
8541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8543ac_compiler_gnu=$ac_cv_c_compiler_gnu
8544
8545ax_pthread_ok=no
8546
8547# We used to check for pthread.h first, but this fails if pthread.h
8548# requires special compiler flags (e.g. on True64 or Sequent).
8549# It gets checked for in the link test anyway.
8550
8551# First of all, check if the user has set any of the PTHREAD_LIBS,
8552# etcetera environment variables, and if threads linking works using
8553# them:
8554if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8555 save_CFLAGS="$CFLAGS"
8556 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8557 save_LIBS="$LIBS"
8558 LIBS="$PTHREAD_LIBS $LIBS"
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8560$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h. */
8563
8564/* Override any GCC internal prototype to avoid an error.
8565 Use char because int might match the return type of a GCC
8566 builtin and then its argument prototype would still apply. */
8567#ifdef __cplusplus
8568extern "C"
8569#endif
8570char pthread_join ();
8571int
8572main ()
8573{
8574return pthread_join ();
8575 ;
8576 return 0;
8577}
8578_ACEOF
8579if ac_fn_c_try_link "$LINENO"; then :
8580 ax_pthread_ok=yes
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583 conftest$ac_exeext conftest.$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8585$as_echo "$ax_pthread_ok" >&6; }
8586 if test x"$ax_pthread_ok" = xno; then
8587 PTHREAD_LIBS=""
8588 PTHREAD_CFLAGS=""
8589 fi
8590 LIBS="$save_LIBS"
8591 CFLAGS="$save_CFLAGS"
8592fi
8593
8594# We must check for the threads library under a number of different
8595# names; the ordering is very important because some systems
8596# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8597# libraries is broken (non-POSIX).
8598
8599# Create a list of thread flags to try. Items starting with a "-" are
8600# C compiler flags, and other items are library names, except for "none"
8601# which indicates that we try without any flags at all, and "pthread-config"
8602# which is a program returning the flags for the Pth emulation library.
8603
8604ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8605
8606# The ordering *is* (sometimes) important. Some notes on the
8607# individual items follow:
8608
8609# pthreads: AIX (must check this before -lpthread)
8610# none: in case threads are in libc; should be tried before -Kthread and
8611# other compiler flags to prevent continual compiler warnings
8612# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8613# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8614# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8615# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8616# -pthreads: Solaris/gcc
8617# -mthreads: Mingw32/gcc, Lynx/gcc
8618# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8619# doesn't hurt to check since this sometimes defines pthreads too;
8620# also defines -D_REENTRANT)
8621# ... -mt is also the pthreads flag for HP/aCC
8622# pthread: Linux, etcetera
8623# --thread-safe: KAI C++
8624# pthread-config: use pthread-config program (for GNU Pth library)
8625
8626case "${host_cpu}-${host_os}" in
8627 *solaris*)
8628
8629 # On Solaris (at least, for some versions), libc contains stubbed
8630 # (non-functional) versions of the pthreads routines, so link-based
8631 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8632 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8633 # a function called by this macro, so we could check for that, but
8634 # who knows whether they'll stub that too in a future libc.) So,
8635 # we'll just look for -pthreads and -lpthread first:
8636
8637 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8638 ;;
8639
8640 *-darwin*)
8641 ax_pthread_flags="-pthread $ax_pthread_flags"
8642 ;;
8643esac
8644
8645if test x"$ax_pthread_ok" = xno; then
8646for flag in $ax_pthread_flags; do
8647
8648 case $flag in
8649 none)
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8651$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8652 ;;
8653
8654 -*)
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8656$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8657 PTHREAD_CFLAGS="$flag"
8658 ;;
8659
8660 pthread-config)
8661 # Extract the first word of "pthread-config", so it can be a program name with args.
8662set dummy pthread-config; ac_word=$2
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008665if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008666 $as_echo_n "(cached) " >&6
8667else
8668 if test -n "$ax_pthread_config"; then
8669 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8670else
8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8672for as_dir in $PATH
8673do
8674 IFS=$as_save_IFS
8675 test -z "$as_dir" && as_dir=.
8676 for ac_exec_ext in '' $ac_executable_extensions; do
8677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8678 ac_cv_prog_ax_pthread_config="yes"
8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8680 break 2
8681 fi
8682done
8683 done
8684IFS=$as_save_IFS
8685
8686 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8687fi
8688fi
8689ax_pthread_config=$ac_cv_prog_ax_pthread_config
8690if test -n "$ax_pthread_config"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8692$as_echo "$ax_pthread_config" >&6; }
8693else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695$as_echo "no" >&6; }
8696fi
8697
8698
8699 if test x"$ax_pthread_config" = xno; then continue; fi
8700 PTHREAD_CFLAGS="`pthread-config --cflags`"
8701 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8702 ;;
8703
8704 *)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8706$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8707 PTHREAD_LIBS="-l$flag"
8708 ;;
8709 esac
8710
8711 save_LIBS="$LIBS"
8712 save_CFLAGS="$CFLAGS"
8713 LIBS="$PTHREAD_LIBS $LIBS"
8714 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8715
8716 # Check for various functions. We must include pthread.h,
8717 # since some functions may be macros. (On the Sequent, we
8718 # need a special flag -Kthread to make this header compile.)
8719 # We check for pthread_join because it is in -lpthread on IRIX
8720 # while pthread_create is in libc. We check for pthread_attr_init
8721 # due to DEC craziness with -lpthreads. We check for
8722 # pthread_cleanup_push because it is one of the few pthread
8723 # functions on Solaris that doesn't have a non-functional libc stub.
8724 # We try pthread_create on general principles.
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h. */
8727#include <pthread.h>
cristy24fc1fe2010-10-23 21:13:01 +00008728 static void routine(void* a) {a=0;}
8729 static void* start_routine(void* a) {return a;}
cristy73bd4a52010-10-05 11:24:23 +00008730int
8731main ()
8732{
8733pthread_t th; pthread_attr_t attr;
8734 pthread_create(&th,0,start_routine,0);
8735 pthread_join(th, 0);
8736 pthread_attr_init(&attr);
8737 pthread_cleanup_push(routine, 0);
8738 pthread_cleanup_pop(0);
8739 ;
8740 return 0;
8741}
8742_ACEOF
8743if ac_fn_c_try_link "$LINENO"; then :
8744 ax_pthread_ok=yes
8745fi
8746rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748
8749 LIBS="$save_LIBS"
8750 CFLAGS="$save_CFLAGS"
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8753$as_echo "$ax_pthread_ok" >&6; }
8754 if test "x$ax_pthread_ok" = xyes; then
8755 break;
8756 fi
8757
8758 PTHREAD_LIBS=""
8759 PTHREAD_CFLAGS=""
8760done
8761fi
8762
8763# Various other checks:
8764if test "x$ax_pthread_ok" = xyes; then
8765 save_LIBS="$LIBS"
8766 LIBS="$PTHREAD_LIBS $LIBS"
8767 save_CFLAGS="$CFLAGS"
8768 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8769
8770 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8772$as_echo_n "checking for joinable pthread attribute... " >&6; }
8773 attr_name=unknown
8774 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776/* end confdefs.h. */
8777#include <pthread.h>
8778int
8779main ()
8780{
8781int attr=$attr; return attr;
8782 ;
8783 return 0;
8784}
8785_ACEOF
8786if ac_fn_c_try_link "$LINENO"; then :
8787 attr_name=$attr; break
8788fi
8789rm -f core conftest.err conftest.$ac_objext \
8790 conftest$ac_exeext conftest.$ac_ext
8791 done
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8793$as_echo "$attr_name" >&6; }
8794 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8795
8796cat >>confdefs.h <<_ACEOF
8797#define PTHREAD_CREATE_JOINABLE $attr_name
8798_ACEOF
8799
8800 fi
8801
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8803$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8804 flag=no
8805 case "${host_cpu}-${host_os}" in
8806 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8807 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8808 esac
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8810$as_echo "${flag}" >&6; }
8811 if test "x$flag" != xno; then
8812 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8813 fi
8814
8815 LIBS="$save_LIBS"
8816 CFLAGS="$save_CFLAGS"
8817
8818 # More AIX lossage: must compile with xlc_r or cc_r
8819 if test x"$GCC" != xyes; then
8820 for ac_prog in xlc_r cc_r
8821do
8822 # Extract the first word of "$ac_prog", so it can be a program name with args.
8823set dummy $ac_prog; ac_word=$2
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008826if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008827 $as_echo_n "(cached) " >&6
8828else
8829 if test -n "$PTHREAD_CC"; then
8830 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8831else
8832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833for as_dir in $PATH
8834do
8835 IFS=$as_save_IFS
8836 test -z "$as_dir" && as_dir=.
8837 for ac_exec_ext in '' $ac_executable_extensions; do
8838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8839 ac_cv_prog_PTHREAD_CC="$ac_prog"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841 break 2
8842 fi
8843done
8844 done
8845IFS=$as_save_IFS
8846
8847fi
8848fi
8849PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8850if test -n "$PTHREAD_CC"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8852$as_echo "$PTHREAD_CC" >&6; }
8853else
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855$as_echo "no" >&6; }
8856fi
8857
8858
8859 test -n "$PTHREAD_CC" && break
8860done
8861test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8862
8863 else
8864 PTHREAD_CC=$CC
8865 fi
8866else
8867 PTHREAD_CC="$CC"
8868fi
8869
8870
8871
8872
8873
8874# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8875if test x"$ax_pthread_ok" = xyes; then
8876
8877$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8878
8879 :
8880else
8881 ax_pthread_ok=no
8882
8883fi
8884ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890
8891
8892# Check whether --enable-opencl was given.
8893if test "${enable_opencl+set}" = set; then :
8894 enableval=$enable_opencl; disable_opencl=$enableval
8895else
8896 disable_opencl='yes'
8897fi
8898
8899
8900if test "$disable_opencl" = 'yes'; then
8901 ac_ext=c
8902ac_cpp='$CPP $CPPFLAGS'
8903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8908$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008909if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008910 $as_echo_n "(cached) " >&6
8911else
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h. */
8914
8915int
8916main ()
8917{
8918#ifndef _MSC_VER
8919 choke me
8920#endif
8921
8922 ;
8923 return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_compile "$LINENO"; then :
8927 ax_compiler_ms=yes
8928else
8929 ax_compiler_ms=no
8930fi
8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932ax_cv_c_compiler_ms=$ax_compiler_ms
8933
8934fi
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8936$as_echo "$ax_cv_c_compiler_ms" >&6; }
8937 if test X$ax_compiler_ms = Xno; then :
8938 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8939fi
8940
8941 ax_save_CPPFLAGS=$CPPFLAGS
8942 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8943 for ac_header in CL/cl.h OpenCL/cl.h
8944do :
8945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8946ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00008947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00008948 cat >>confdefs.h <<_ACEOF
8949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8950_ACEOF
8951
8952fi
8953
8954done
8955
8956 CPPFLAGS=$ax_save_CPPFLAGS
8957
8958 for ac_header in windows.h
8959do :
8960 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00008961if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00008962 cat >>confdefs.h <<_ACEOF
8963#define HAVE_WINDOWS_H 1
8964_ACEOF
8965
8966fi
8967
8968done
8969
8970
8971
8972
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8974$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008975if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008976 $as_echo_n "(cached) " >&6
8977else
8978 ax_cv_check_cl_libcl=no
8979 case $host_cpu in
8980 x86_64) ax_check_cl_libdir=lib64 ;;
8981 *) ax_check_cl_libdir=lib ;;
8982 esac
8983 ax_save_CPPFLAGS=$CPPFLAGS
8984 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8985 ax_save_LIBS=$LIBS
8986 LIBS=""
8987 ax_check_libs="-lOpenCL -lCL -lclparser"
8988 for ax_lib in $ax_check_libs; do
8989 if test X$ax_compiler_ms = Xyes; then :
8990 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8991else
8992 ax_try_lib=$ax_lib
8993fi
8994 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h. */
8997
8998 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8999 # include <windows.h>
9000 # endif
9001 # ifdef HAVE_CL_CL_H
9002 # include <CL/cl.h>
9003 # elif defined(HAVE_OPENCL_CL_H)
9004 # include <OpenCL/cl.h>
9005 # else
9006 # error no CL.h
9007 # endif
9008int
9009main ()
9010{
9011clCreateContextFromType(0,0,0,0,0)
9012 ;
9013 return 0;
9014}
9015_ACEOF
9016if ac_fn_c_try_link "$LINENO"; then :
9017 ax_cv_check_cl_libcl=$ax_try_lib; break
9018else
9019 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"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021/* end confdefs.h. */
9022
9023 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9024 # include <windows.h>
9025 # endif
9026 # ifdef HAVE_CL_CL_H
9027 # include <CL/cl.h>
9028 # elif defined(HAVE_OPENCL_CL_H)
9029 # include <OpenCL/cl.h>
9030 # else
9031 # error no CL.h
9032 # endif
9033int
9034main ()
9035{
9036clCreateContextFromType(0,0,0,0,0)
9037 ;
9038 return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9043else
cristy78c5a0c2010-12-04 20:00:59 +00009044 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 +00009045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h. */
9047
9048 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9049 # include <windows.h>
9050 # endif
9051 # ifdef HAVE_CL_CL_H
9052 # include <CL/cl.h>
9053 # elif defined(HAVE_OPENCL_CL_H)
9054 # include <OpenCL/cl.h>
9055 # else
9056 # error no CL.h
9057 # endif
9058int
9059main ()
9060{
9061clCreateContextFromType(0,0,0,0,0)
9062 ;
9063 return 0;
9064}
9065_ACEOF
9066if ac_fn_c_try_link "$LINENO"; then :
9067 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9068fi
9069rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071fi
9072rm -f core conftest.err conftest.$ac_objext \
9073 conftest$ac_exeext conftest.$ac_ext
9074fi
9075rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 done
9078
9079 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
cristy78c5a0c2010-12-04 20:00:59 +00009080 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082/* end confdefs.h. */
9083
9084 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9085 # include <windows.h>
9086 # endif
9087 # ifdef HAVE_CL_CL_H
9088 # include <CL/cl.h>
9089 # elif defined(HAVE_OPENCL_CL_H)
9090 # include <OpenCL/cl.h>
9091 # else
9092 # error no CL.h
9093 # endif
9094int
9095main ()
9096{
9097clCreateContextFromType(0,0,0,0,0)
9098 ;
9099 return 0;
9100}
9101_ACEOF
9102if ac_fn_c_try_link "$LINENO"; then :
9103 ax_cv_check_cl_libcl=$LIBS
9104fi
9105rm -f core conftest.err conftest.$ac_objext \
9106 conftest$ac_exeext conftest.$ac_ext
9107fi
9108
9109 LIBS=$ax_save_LIBS
9110 CPPFLAGS=$ax_save_CPPFLAGS
9111fi
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9113$as_echo "$ax_cv_check_cl_libcl" >&6; }
9114
9115 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9116 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9117else
9118 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9119$as_echo "#define _OPENCL 1" >>confdefs.h
9120
9121fi
9122 ac_ext=c
9123ac_cpp='$CPP $CPPFLAGS'
9124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126ac_compiler_gnu=$ac_cv_c_compiler_gnu
9127
9128fi
9129
9130
9131
9132
cristyc7083c12009-10-14 03:16:55 +00009133CFLAGS="$CL_CFLAGS $CFLAGS"
9134LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009135
cristy391f1ce2010-09-09 17:23:28 +00009136if test "$enable_opencl" != no; then
9137 if test "_OPENCL" = '1'; then
9138 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9139 fi
cristyfd9dcd42010-08-08 18:07:02 +00009140fi
cristy2e8b51d2009-10-17 18:26:15 +00009141
cristy3ed852e2009-09-05 21:47:34 +00009142########
9143#
9144# Check for large file support
9145#
9146########
9147# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009148if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009149 enableval=$enable_largefile;
9150fi
9151
9152if test "$enable_largefile" != no; then
9153
cristy8b350f62009-11-15 23:12:43 +00009154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009155$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009156if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009157 $as_echo_n "(cached) " >&6
9158else
9159 ac_cv_sys_largefile_CC=no
9160 if test "$GCC" != yes; then
9161 ac_save_CC=$CC
9162 while :; do
9163 # IRIX 6.2 and later do not support large files by default,
9164 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009166/* end confdefs.h. */
9167#include <sys/types.h>
9168 /* Check that off_t can represent 2**63 - 1 correctly.
9169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9170 since some C++ compilers masquerading as C compilers
9171 incorrectly reject 9223372036854775807. */
9172#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9174 && LARGE_OFF_T % 2147483647 == 1)
9175 ? 1 : -1];
9176int
9177main ()
9178{
9179
9180 ;
9181 return 0;
9182}
9183_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009184 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009185 break
cristy3ed852e2009-09-05 21:47:34 +00009186fi
cristy3ed852e2009-09-05 21:47:34 +00009187rm -f core conftest.err conftest.$ac_objext
9188 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009189 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009190 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009191fi
cristy3ed852e2009-09-05 21:47:34 +00009192rm -f core conftest.err conftest.$ac_objext
9193 break
9194 done
9195 CC=$ac_save_CC
9196 rm -f conftest.$ac_ext
9197 fi
9198fi
cristy8b350f62009-11-15 23:12:43 +00009199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009200$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9201 if test "$ac_cv_sys_largefile_CC" != no; then
9202 CC=$CC$ac_cv_sys_largefile_CC
9203 fi
9204
cristy8b350f62009-11-15 23:12:43 +00009205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009206$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009207if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009208 $as_echo_n "(cached) " >&6
9209else
9210 while :; do
cristy8b350f62009-11-15 23:12:43 +00009211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009212/* end confdefs.h. */
9213#include <sys/types.h>
9214 /* Check that off_t can represent 2**63 - 1 correctly.
9215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9216 since some C++ compilers masquerading as C compilers
9217 incorrectly reject 9223372036854775807. */
9218#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9220 && LARGE_OFF_T % 2147483647 == 1)
9221 ? 1 : -1];
9222int
9223main ()
9224{
9225
9226 ;
9227 return 0;
9228}
9229_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009230if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009231 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009232fi
cristy3ed852e2009-09-05 21:47:34 +00009233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009235/* end confdefs.h. */
9236#define _FILE_OFFSET_BITS 64
9237#include <sys/types.h>
9238 /* Check that off_t can represent 2**63 - 1 correctly.
9239 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9240 since some C++ compilers masquerading as C compilers
9241 incorrectly reject 9223372036854775807. */
9242#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9244 && LARGE_OFF_T % 2147483647 == 1)
9245 ? 1 : -1];
9246int
9247main ()
9248{
9249
9250 ;
9251 return 0;
9252}
9253_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009254if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009255 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009256fi
cristy3ed852e2009-09-05 21:47:34 +00009257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 ac_cv_sys_file_offset_bits=unknown
9259 break
9260done
9261fi
cristy8b350f62009-11-15 23:12:43 +00009262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009263$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9264case $ac_cv_sys_file_offset_bits in #(
9265 no | unknown) ;;
9266 *)
9267cat >>confdefs.h <<_ACEOF
9268#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9269_ACEOF
9270;;
9271esac
9272rm -rf conftest*
9273 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009275$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009276if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009277 $as_echo_n "(cached) " >&6
9278else
9279 while :; do
cristy8b350f62009-11-15 23:12:43 +00009280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009281/* end confdefs.h. */
9282#include <sys/types.h>
9283 /* Check that off_t can represent 2**63 - 1 correctly.
9284 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9285 since some C++ compilers masquerading as C compilers
9286 incorrectly reject 9223372036854775807. */
9287#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9288 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9289 && LARGE_OFF_T % 2147483647 == 1)
9290 ? 1 : -1];
9291int
9292main ()
9293{
9294
9295 ;
9296 return 0;
9297}
9298_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009299if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009300 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009301fi
cristy3ed852e2009-09-05 21:47:34 +00009302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009304/* end confdefs.h. */
9305#define _LARGE_FILES 1
9306#include <sys/types.h>
9307 /* Check that off_t can represent 2**63 - 1 correctly.
9308 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9309 since some C++ compilers masquerading as C compilers
9310 incorrectly reject 9223372036854775807. */
9311#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9312 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9313 && LARGE_OFF_T % 2147483647 == 1)
9314 ? 1 : -1];
9315int
9316main ()
9317{
9318
9319 ;
9320 return 0;
9321}
9322_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009323if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009324 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009325fi
cristy3ed852e2009-09-05 21:47:34 +00009326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9327 ac_cv_sys_large_files=unknown
9328 break
9329done
9330fi
cristy8b350f62009-11-15 23:12:43 +00009331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009332$as_echo "$ac_cv_sys_large_files" >&6; }
9333case $ac_cv_sys_large_files in #(
9334 no | unknown) ;;
9335 *)
9336cat >>confdefs.h <<_ACEOF
9337#define _LARGE_FILES $ac_cv_sys_large_files
9338_ACEOF
9339;;
9340esac
9341rm -rf conftest*
9342 fi
9343fi
9344
cristy8b350f62009-11-15 23:12:43 +00009345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009346$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009347if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 $as_echo_n "(cached) " >&6
9349else
9350 while :; do
cristy8b350f62009-11-15 23:12:43 +00009351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009352/* end confdefs.h. */
9353#include <sys/types.h> /* for off_t */
9354 #include <stdio.h>
9355int
9356main ()
9357{
9358int (*fp) (FILE *, off_t, int) = fseeko;
9359 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9360 ;
9361 return 0;
9362}
9363_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009364if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009365 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009366fi
cristy8b350f62009-11-15 23:12:43 +00009367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009370/* end confdefs.h. */
9371#define _LARGEFILE_SOURCE 1
9372#include <sys/types.h> /* for off_t */
9373 #include <stdio.h>
9374int
9375main ()
9376{
9377int (*fp) (FILE *, off_t, int) = fseeko;
9378 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9379 ;
9380 return 0;
9381}
9382_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009383if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009384 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009385fi
cristy8b350f62009-11-15 23:12:43 +00009386rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009388 ac_cv_sys_largefile_source=unknown
9389 break
9390done
9391fi
cristy8b350f62009-11-15 23:12:43 +00009392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009393$as_echo "$ac_cv_sys_largefile_source" >&6; }
9394case $ac_cv_sys_largefile_source in #(
9395 no | unknown) ;;
9396 *)
9397cat >>confdefs.h <<_ACEOF
9398#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9399_ACEOF
9400;;
9401esac
9402rm -rf conftest*
9403
9404# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9405# in glibc 2.1.3, but that breaks too many other things.
9406# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9407if test $ac_cv_sys_largefile_source != unknown; then
9408
cristy8b350f62009-11-15 23:12:43 +00009409$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009410
9411fi
9412
9413LFS_CPPFLAGS=''
9414if test "$enable_largefile" != no; then
9415 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9416 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9417 else
cristy8b350f62009-11-15 23:12:43 +00009418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009419$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009420 if test "$cross_compiling" = yes; then :
9421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009423as_fn_error $? "cannot run test program while cross compiling
9424See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009425else
cristy8b350f62009-11-15 23:12:43 +00009426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009428#include <unistd.h>
9429 main () {
9430 exit(!(sizeof(off_t) == 8));
9431 }
cristyda16f162011-02-19 23:52:17 +00009432int
9433main ()
9434{
9435
9436 ;
9437 return 0;
9438}
cristy3ed852e2009-09-05 21:47:34 +00009439_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009440if ac_fn_c_try_run "$LINENO"; then :
9441 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009442
cristy8b350f62009-11-15 23:12:43 +00009443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00009444$as_echo "yes" >&6; }
9445else
cristy8b350f62009-11-15 23:12:43 +00009446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00009447$as_echo "no" >&6; }
9448fi
cristy8b350f62009-11-15 23:12:43 +00009449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9450 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009451fi
9452
cristy3ed852e2009-09-05 21:47:34 +00009453 fi
9454 if test "$ac_cv_sys_large_files" != 'no'; then
9455 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9456 fi
9457 if test "$ac_cv_sys_largefile_source" != 'no'; then
9458 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9459 fi
9460fi
9461
9462
9463#
9464# Configure libtool & libltdl
9465#
9466# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009467enable_dlopen=yes
9468
9469
9470
9471case `pwd` in
9472 *\ * | *\ *)
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9474$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9475esac
9476
9477
9478
cristyda16f162011-02-19 23:52:17 +00009479macro_version='2.4'
9480macro_revision='1.3293'
cristy73bd4a52010-10-05 11:24:23 +00009481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494ltmain="$ac_aux_dir/ltmain.sh"
9495
cristy0c60a692010-11-04 01:09:47 +00009496# Backslashify metacharacters that are still active within
9497# double-quoted strings.
9498sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9499
9500# Same as above, but do not quote variable references.
9501double_quote_subst='s/\(["`\\]\)/\\\1/g'
9502
9503# Sed substitution to delay expansion of an escaped shell variable in a
9504# double_quote_subst'ed string.
9505delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9506
9507# Sed substitution to delay expansion of an escaped single quote.
9508delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9509
9510# Sed substitution to avoid accidental globbing in evaled expressions
9511no_glob_subst='s/\*/\\\*/g'
9512
cristy73bd4a52010-10-05 11:24:23 +00009513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9514$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009515if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009516 $as_echo_n "(cached) " >&6
9517else
9518 if test -n "$NM"; then
9519 # Let the user override the test.
9520 lt_cv_path_NM="$NM"
9521else
9522 lt_nm_to_check="${ac_tool_prefix}nm"
9523 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9524 lt_nm_to_check="$lt_nm_to_check nm"
9525 fi
9526 for lt_tmp_nm in $lt_nm_to_check; do
9527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9528 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9529 IFS="$lt_save_ifs"
9530 test -z "$ac_dir" && ac_dir=.
9531 tmp_nm="$ac_dir/$lt_tmp_nm"
9532 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9533 # Check to see if the nm accepts a BSD-compat flag.
9534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9535 # nm: unknown option "B" ignored
9536 # Tru64's nm complains that /dev/null is an invalid object file
9537 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9538 */dev/null* | *'Invalid file or object type'*)
9539 lt_cv_path_NM="$tmp_nm -B"
9540 break
9541 ;;
9542 *)
9543 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9544 */dev/null*)
9545 lt_cv_path_NM="$tmp_nm -p"
9546 break
9547 ;;
9548 *)
9549 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9550 continue # so that we can try to find one that supports BSD flags
9551 ;;
9552 esac
9553 ;;
9554 esac
9555 fi
9556 done
9557 IFS="$lt_save_ifs"
9558 done
9559 : ${lt_cv_path_NM=no}
9560fi
9561fi
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9563$as_echo "$lt_cv_path_NM" >&6; }
9564if test "$lt_cv_path_NM" != "no"; then
9565 NM="$lt_cv_path_NM"
9566else
9567 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009568 if test -n "$DUMPBIN"; then :
9569 # Let the user override the test.
9570 else
9571 if test -n "$ac_tool_prefix"; then
9572 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009573 do
9574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9575set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009578if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009579 $as_echo_n "(cached) " >&6
9580else
9581 if test -n "$DUMPBIN"; then
9582 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9583else
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 break 2
9594 fi
9595done
9596 done
9597IFS=$as_save_IFS
9598
9599fi
9600fi
9601DUMPBIN=$ac_cv_prog_DUMPBIN
9602if test -n "$DUMPBIN"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9604$as_echo "$DUMPBIN" >&6; }
9605else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
9608fi
9609
9610
9611 test -n "$DUMPBIN" && break
9612 done
9613fi
9614if test -z "$DUMPBIN"; then
9615 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009616 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009617do
9618 # Extract the first word of "$ac_prog", so it can be a program name with args.
9619set dummy $ac_prog; ac_word=$2
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009622if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009623 $as_echo_n "(cached) " >&6
9624else
9625 if test -n "$ac_ct_DUMPBIN"; then
9626 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9627else
9628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629for as_dir in $PATH
9630do
9631 IFS=$as_save_IFS
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9635 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9637 break 2
9638 fi
9639done
9640 done
9641IFS=$as_save_IFS
9642
9643fi
9644fi
9645ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9646if test -n "$ac_ct_DUMPBIN"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9648$as_echo "$ac_ct_DUMPBIN" >&6; }
9649else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651$as_echo "no" >&6; }
9652fi
9653
9654
9655 test -n "$ac_ct_DUMPBIN" && break
9656done
9657
9658 if test "x$ac_ct_DUMPBIN" = x; then
9659 DUMPBIN=":"
9660 else
9661 case $cross_compiling:$ac_tool_warned in
9662yes:)
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9665ac_tool_warned=yes ;;
9666esac
9667 DUMPBIN=$ac_ct_DUMPBIN
9668 fi
9669fi
9670
cristy0c60a692010-11-04 01:09:47 +00009671 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9672 *COFF*)
9673 DUMPBIN="$DUMPBIN -symbols"
9674 ;;
9675 *)
9676 DUMPBIN=:
9677 ;;
9678 esac
9679 fi
cristy73bd4a52010-10-05 11:24:23 +00009680
9681 if test "$DUMPBIN" != ":"; then
9682 NM="$DUMPBIN"
9683 fi
9684fi
9685test -z "$NM" && NM=nm
9686
9687
9688
9689
9690
9691
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9693$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009694if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009695 $as_echo_n "(cached) " >&6
9696else
9697 lt_cv_nm_interface="BSD nm"
9698 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +00009699 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009700 (eval "$ac_compile" 2>conftest.err)
9701 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009702 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009703 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9704 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +00009705 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +00009706 cat conftest.out >&5
9707 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9708 lt_cv_nm_interface="MS dumpbin"
9709 fi
9710 rm -f conftest*
9711fi
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9713$as_echo "$lt_cv_nm_interface" >&6; }
9714
9715# find the maximum length of command line arguments
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9717$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009718if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009719 $as_echo_n "(cached) " >&6
9720else
9721 i=0
9722 teststring="ABCD"
9723
9724 case $build_os in
9725 msdosdjgpp*)
9726 # On DJGPP, this test can blow up pretty badly due to problems in libc
9727 # (any single argument exceeding 2000 bytes causes a buffer overrun
9728 # during glob expansion). Even if it were fixed, the result of this
9729 # check would be larger than it should be.
9730 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9731 ;;
9732
9733 gnu*)
9734 # Under GNU Hurd, this test is not required because there is
9735 # no limit to the length of command line arguments.
9736 # Libtool will interpret -1 as no limit whatsoever
9737 lt_cv_sys_max_cmd_len=-1;
9738 ;;
9739
9740 cygwin* | mingw* | cegcc*)
9741 # On Win9x/ME, this test blows up -- it succeeds, but takes
9742 # about 5 minutes as the teststring grows exponentially.
9743 # Worse, since 9x/ME are not pre-emptively multitasking,
9744 # you end up with a "frozen" computer, even though with patience
9745 # the test eventually succeeds (with a max line length of 256k).
9746 # Instead, let's just punt: use the minimum linelength reported by
9747 # all of the supported platforms: 8192 (on NT/2K/XP).
9748 lt_cv_sys_max_cmd_len=8192;
9749 ;;
9750
cristy0c60a692010-11-04 01:09:47 +00009751 mint*)
9752 # On MiNT this can take a long time and run out of memory.
9753 lt_cv_sys_max_cmd_len=8192;
9754 ;;
9755
cristy73bd4a52010-10-05 11:24:23 +00009756 amigaos*)
9757 # On AmigaOS with pdksh, this test takes hours, literally.
9758 # So we just punt and use a minimum line length of 8192.
9759 lt_cv_sys_max_cmd_len=8192;
9760 ;;
9761
9762 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9763 # This has been around since 386BSD, at least. Likely further.
9764 if test -x /sbin/sysctl; then
9765 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9766 elif test -x /usr/sbin/sysctl; then
9767 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9768 else
9769 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9770 fi
9771 # And add a safety zone
9772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9773 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9774 ;;
9775
9776 interix*)
9777 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9778 lt_cv_sys_max_cmd_len=196608
9779 ;;
9780
9781 osf*)
9782 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9783 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9784 # nice to cause kernel panics so lets avoid the loop below.
9785 # First set a reasonable default.
9786 lt_cv_sys_max_cmd_len=16384
9787 #
9788 if test -x /sbin/sysconfig; then
9789 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9790 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9791 esac
9792 fi
9793 ;;
9794 sco3.2v5*)
9795 lt_cv_sys_max_cmd_len=102400
9796 ;;
9797 sysv5* | sco5v6* | sysv4.2uw2*)
9798 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9799 if test -n "$kargmax"; then
9800 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9801 else
9802 lt_cv_sys_max_cmd_len=32768
9803 fi
9804 ;;
9805 *)
9806 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9807 if test -n "$lt_cv_sys_max_cmd_len"; then
9808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9810 else
9811 # Make teststring a little bigger before we do anything with it.
9812 # a 1K string should be a reasonable start.
9813 for i in 1 2 3 4 5 6 7 8 ; do
9814 teststring=$teststring$teststring
9815 done
9816 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9817 # If test is not a shell built-in, we'll probably end up computing a
9818 # maximum length that is only half of the actual maximum length, but
9819 # we can't tell.
cristy0c60a692010-11-04 01:09:47 +00009820 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9821 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +00009822 test $i != 17 # 1/2 MB should be enough
9823 do
9824 i=`expr $i + 1`
9825 teststring=$teststring$teststring
9826 done
9827 # Only check the string length outside the loop.
9828 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9829 teststring=
9830 # Add a significant safety factor because C++ compilers can tack on
9831 # massive amounts of additional arguments before passing them to the
9832 # linker. It appears as though 1/2 is a usable value.
9833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9834 fi
9835 ;;
9836 esac
9837
9838fi
9839
9840if test -n $lt_cv_sys_max_cmd_len ; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9842$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9843else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9845$as_echo "none" >&6; }
9846fi
9847max_cmd_len=$lt_cv_sys_max_cmd_len
9848
9849
9850
9851
9852
9853
9854: ${CP="cp -f"}
9855: ${MV="mv -f"}
9856: ${RM="rm -f"}
9857
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9859$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9860# Try some XSI features
9861xsi_shell=no
9862( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +00009863 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9864 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +00009865 && eval 'test $(( 1 + 1 )) -eq 2 \
9866 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9867 && xsi_shell=yes
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9869$as_echo "$xsi_shell" >&6; }
9870
9871
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9873$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9874lt_shell_append=no
9875( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9876 >/dev/null 2>&1 \
9877 && lt_shell_append=yes
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9879$as_echo "$lt_shell_append" >&6; }
9880
9881
9882if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9883 lt_unset=unset
9884else
9885 lt_unset=false
9886fi
9887
9888
9889
9890
9891
9892# test EBCDIC or ASCII
9893case `echo X|tr X '\101'` in
9894 A) # ASCII based system
9895 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9896 lt_SP2NL='tr \040 \012'
9897 lt_NL2SP='tr \015\012 \040\040'
9898 ;;
9899 *) # EBCDIC based system
9900 lt_SP2NL='tr \100 \n'
9901 lt_NL2SP='tr \r\n \100\100'
9902 ;;
9903esac
9904
9905
9906
9907
9908
9909
9910
9911
9912
cristyda16f162011-02-19 23:52:17 +00009913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9914$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9915if ${lt_cv_to_host_file_cmd+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917else
9918 case $host in
9919 *-*-mingw* )
9920 case $build in
9921 *-*-mingw* ) # actually msys
9922 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9923 ;;
9924 *-*-cygwin* )
9925 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9926 ;;
9927 * ) # otherwise, assume *nix
9928 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9929 ;;
9930 esac
9931 ;;
9932 *-*-cygwin* )
9933 case $build in
9934 *-*-mingw* ) # actually msys
9935 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9936 ;;
9937 *-*-cygwin* )
9938 lt_cv_to_host_file_cmd=func_convert_file_noop
9939 ;;
9940 * ) # otherwise, assume *nix
9941 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9942 ;;
9943 esac
9944 ;;
9945 * ) # unhandled hosts (and "normal" native builds)
9946 lt_cv_to_host_file_cmd=func_convert_file_noop
9947 ;;
9948esac
9949
9950fi
9951
9952to_host_file_cmd=$lt_cv_to_host_file_cmd
9953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9954$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9955
9956
9957
9958
9959
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9961$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9962if ${lt_cv_to_tool_file_cmd+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964else
9965 #assume ordinary cross tools, or native build.
9966lt_cv_to_tool_file_cmd=func_convert_file_noop
9967case $host in
9968 *-*-mingw* )
9969 case $build in
9970 *-*-mingw* ) # actually msys
9971 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9972 ;;
9973 esac
9974 ;;
9975esac
9976
9977fi
9978
9979to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9981$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9982
9983
9984
9985
9986
cristy73bd4a52010-10-05 11:24:23 +00009987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9988$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009989if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009990 $as_echo_n "(cached) " >&6
9991else
9992 lt_cv_ld_reload_flag='-r'
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9995$as_echo "$lt_cv_ld_reload_flag" >&6; }
9996reload_flag=$lt_cv_ld_reload_flag
9997case $reload_flag in
9998"" | " "*) ;;
9999*) reload_flag=" $reload_flag" ;;
10000esac
10001reload_cmds='$LD$reload_flag -o $output$reload_objs'
10002case $host_os in
cristyda16f162011-02-19 23:52:17 +000010003 cygwin* | mingw* | pw32* | cegcc*)
10004 if test "$GCC" != yes; then
10005 reload_cmds=false
10006 fi
10007 ;;
cristy73bd4a52010-10-05 11:24:23 +000010008 darwin*)
10009 if test "$GCC" = yes; then
10010 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10011 else
10012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10013 fi
10014 ;;
10015esac
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025if test -n "$ac_tool_prefix"; then
10026 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10027set dummy ${ac_tool_prefix}objdump; ac_word=$2
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010030if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010031 $as_echo_n "(cached) " >&6
10032else
10033 if test -n "$OBJDUMP"; then
10034 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10035else
10036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10037for as_dir in $PATH
10038do
10039 IFS=$as_save_IFS
10040 test -z "$as_dir" && as_dir=.
10041 for ac_exec_ext in '' $ac_executable_extensions; do
10042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10043 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 break 2
10046 fi
10047done
10048 done
10049IFS=$as_save_IFS
10050
10051fi
10052fi
10053OBJDUMP=$ac_cv_prog_OBJDUMP
10054if test -n "$OBJDUMP"; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10056$as_echo "$OBJDUMP" >&6; }
10057else
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059$as_echo "no" >&6; }
10060fi
10061
10062
10063fi
10064if test -z "$ac_cv_prog_OBJDUMP"; then
10065 ac_ct_OBJDUMP=$OBJDUMP
10066 # Extract the first word of "objdump", so it can be a program name with args.
10067set dummy objdump; ac_word=$2
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010070if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010071 $as_echo_n "(cached) " >&6
10072else
10073 if test -n "$ac_ct_OBJDUMP"; then
10074 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10075else
10076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077for as_dir in $PATH
10078do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10083 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087done
10088 done
10089IFS=$as_save_IFS
10090
10091fi
10092fi
10093ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10094if test -n "$ac_ct_OBJDUMP"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10096$as_echo "$ac_ct_OBJDUMP" >&6; }
10097else
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
10100fi
10101
10102 if test "x$ac_ct_OBJDUMP" = x; then
10103 OBJDUMP="false"
10104 else
10105 case $cross_compiling:$ac_tool_warned in
10106yes:)
10107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10109ac_tool_warned=yes ;;
10110esac
10111 OBJDUMP=$ac_ct_OBJDUMP
10112 fi
10113else
10114 OBJDUMP="$ac_cv_prog_OBJDUMP"
10115fi
10116
10117test -z "$OBJDUMP" && OBJDUMP=objdump
10118
10119
10120
10121
10122
10123
10124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10125$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010126if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010127 $as_echo_n "(cached) " >&6
10128else
10129 lt_cv_file_magic_cmd='$MAGIC_CMD'
10130lt_cv_file_magic_test_file=
10131lt_cv_deplibs_check_method='unknown'
10132# Need to set the preceding variable on all platforms that support
10133# interlibrary dependencies.
10134# 'none' -- dependencies not supported.
10135# `unknown' -- same as none, but documents that we really don't know.
10136# 'pass_all' -- all dependencies passed with no checks.
10137# 'test_compile' -- check by making test program.
10138# 'file_magic [[regex]]' -- check by looking for files in library path
10139# which responds to the $file_magic_cmd with a given extended regex.
10140# If you have `file' or equivalent on your system and you're not sure
10141# whether `pass_all' will *always* work, you probably want this one.
10142
10143case $host_os in
10144aix[4-9]*)
10145 lt_cv_deplibs_check_method=pass_all
10146 ;;
10147
10148beos*)
10149 lt_cv_deplibs_check_method=pass_all
10150 ;;
10151
10152bsdi[45]*)
10153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10154 lt_cv_file_magic_cmd='/usr/bin/file -L'
10155 lt_cv_file_magic_test_file=/shlib/libc.so
10156 ;;
10157
10158cygwin*)
10159 # func_win32_libid is a shell function defined in ltmain.sh
10160 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10161 lt_cv_file_magic_cmd='func_win32_libid'
10162 ;;
10163
10164mingw* | pw32*)
10165 # Base MSYS/MinGW do not provide the 'file' command needed by
10166 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10167 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010168 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10169 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010170 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10171 lt_cv_file_magic_cmd='func_win32_libid'
10172 else
cristy0c60a692010-11-04 01:09:47 +000010173 # Keep this pattern in sync with the one in func_win32_libid.
10174 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 +000010175 lt_cv_file_magic_cmd='$OBJDUMP -f'
10176 fi
10177 ;;
10178
cristy0c60a692010-11-04 01:09:47 +000010179cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010180 # use the weaker test based on 'objdump'. See mingw*.
10181 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10182 lt_cv_file_magic_cmd='$OBJDUMP -f'
10183 ;;
10184
10185darwin* | rhapsody*)
10186 lt_cv_deplibs_check_method=pass_all
10187 ;;
10188
10189freebsd* | dragonfly*)
10190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10191 case $host_cpu in
10192 i*86 )
10193 # Not sure whether the presence of OpenBSD here was a mistake.
10194 # Let's accept both of them until this is cleared up.
10195 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10196 lt_cv_file_magic_cmd=/usr/bin/file
10197 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10198 ;;
10199 esac
10200 else
10201 lt_cv_deplibs_check_method=pass_all
10202 fi
10203 ;;
10204
10205gnu*)
10206 lt_cv_deplibs_check_method=pass_all
10207 ;;
10208
cristy0c60a692010-11-04 01:09:47 +000010209haiku*)
10210 lt_cv_deplibs_check_method=pass_all
10211 ;;
10212
cristy73bd4a52010-10-05 11:24:23 +000010213hpux10.20* | hpux11*)
10214 lt_cv_file_magic_cmd=/usr/bin/file
10215 case $host_cpu in
10216 ia64*)
10217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10219 ;;
10220 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010221 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 +000010222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10223 ;;
10224 *)
cristy0c60a692010-11-04 01:09:47 +000010225 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 +000010226 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10227 ;;
10228 esac
10229 ;;
10230
10231interix[3-9]*)
10232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10234 ;;
10235
10236irix5* | irix6* | nonstopux*)
10237 case $LD in
10238 *-32|*"-32 ") libmagic=32-bit;;
10239 *-n32|*"-n32 ") libmagic=N32;;
10240 *-64|*"-64 ") libmagic=64-bit;;
10241 *) libmagic=never-match;;
10242 esac
10243 lt_cv_deplibs_check_method=pass_all
10244 ;;
10245
10246# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000010247linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010248 lt_cv_deplibs_check_method=pass_all
10249 ;;
10250
10251netbsd*)
10252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10254 else
10255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10256 fi
10257 ;;
10258
10259newos6*)
10260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10261 lt_cv_file_magic_cmd=/usr/bin/file
10262 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10263 ;;
10264
10265*nto* | *qnx*)
10266 lt_cv_deplibs_check_method=pass_all
10267 ;;
10268
10269openbsd*)
10270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10272 else
10273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10274 fi
10275 ;;
10276
10277osf3* | osf4* | osf5*)
10278 lt_cv_deplibs_check_method=pass_all
10279 ;;
10280
10281rdos*)
10282 lt_cv_deplibs_check_method=pass_all
10283 ;;
10284
10285solaris*)
10286 lt_cv_deplibs_check_method=pass_all
10287 ;;
10288
10289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10290 lt_cv_deplibs_check_method=pass_all
10291 ;;
10292
10293sysv4 | sysv4.3*)
10294 case $host_vendor in
10295 motorola)
10296 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]'
10297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10298 ;;
10299 ncr)
10300 lt_cv_deplibs_check_method=pass_all
10301 ;;
10302 sequent)
10303 lt_cv_file_magic_cmd='/bin/file'
10304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10305 ;;
10306 sni)
10307 lt_cv_file_magic_cmd='/bin/file'
10308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10309 lt_cv_file_magic_test_file=/lib/libc.so
10310 ;;
10311 siemens)
10312 lt_cv_deplibs_check_method=pass_all
10313 ;;
10314 pc)
10315 lt_cv_deplibs_check_method=pass_all
10316 ;;
10317 esac
10318 ;;
10319
10320tpf*)
10321 lt_cv_deplibs_check_method=pass_all
10322 ;;
10323esac
10324
10325fi
10326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10327$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010328
10329file_magic_glob=
10330want_nocaseglob=no
10331if test "$build" = "$host"; then
10332 case $host_os in
10333 mingw* | pw32*)
10334 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10335 want_nocaseglob=yes
10336 else
10337 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10338 fi
10339 ;;
10340 esac
10341fi
10342
cristy73bd4a52010-10-05 11:24:23 +000010343file_magic_cmd=$lt_cv_file_magic_cmd
10344deplibs_check_method=$lt_cv_deplibs_check_method
10345test -z "$deplibs_check_method" && deplibs_check_method=unknown
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
cristyda16f162011-02-19 23:52:17 +000010358
10359
10360
10361
10362
10363
10364
10365
10366
10367
cristy73bd4a52010-10-05 11:24:23 +000010368if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010369 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10370set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010373if ${ac_cv_prog_DLLTOOL+:} false; then :
10374 $as_echo_n "(cached) " >&6
10375else
10376 if test -n "$DLLTOOL"; then
10377 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10378else
10379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10380for as_dir in $PATH
10381do
10382 IFS=$as_save_IFS
10383 test -z "$as_dir" && as_dir=.
10384 for ac_exec_ext in '' $ac_executable_extensions; do
10385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10386 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10388 break 2
10389 fi
10390done
10391 done
10392IFS=$as_save_IFS
10393
10394fi
10395fi
10396DLLTOOL=$ac_cv_prog_DLLTOOL
10397if test -n "$DLLTOOL"; then
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10399$as_echo "$DLLTOOL" >&6; }
10400else
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402$as_echo "no" >&6; }
10403fi
10404
10405
10406fi
10407if test -z "$ac_cv_prog_DLLTOOL"; then
10408 ac_ct_DLLTOOL=$DLLTOOL
10409 # Extract the first word of "dlltool", so it can be a program name with args.
10410set dummy dlltool; ac_word=$2
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
10413if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415else
10416 if test -n "$ac_ct_DLLTOOL"; then
10417 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10418else
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10428 break 2
10429 fi
10430done
10431 done
10432IFS=$as_save_IFS
10433
10434fi
10435fi
10436ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10437if test -n "$ac_ct_DLLTOOL"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10439$as_echo "$ac_ct_DLLTOOL" >&6; }
10440else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
10443fi
10444
10445 if test "x$ac_ct_DLLTOOL" = x; then
10446 DLLTOOL="false"
10447 else
10448 case $cross_compiling:$ac_tool_warned in
10449yes:)
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10452ac_tool_warned=yes ;;
10453esac
10454 DLLTOOL=$ac_ct_DLLTOOL
10455 fi
10456else
10457 DLLTOOL="$ac_cv_prog_DLLTOOL"
10458fi
10459
10460test -z "$DLLTOOL" && DLLTOOL=dlltool
10461
10462
10463
10464
10465
10466
10467
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10469$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10470if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472else
10473 lt_cv_sharedlib_from_linklib_cmd='unknown'
10474
10475case $host_os in
10476cygwin* | mingw* | pw32* | cegcc*)
10477 # two different shell functions defined in ltmain.sh
10478 # decide which to use based on capabilities of $DLLTOOL
10479 case `$DLLTOOL --help 2>&1` in
10480 *--identify-strict*)
10481 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10482 ;;
10483 *)
10484 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10485 ;;
10486 esac
10487 ;;
10488*)
10489 # fallback: assume linklib IS sharedlib
10490 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10491 ;;
10492esac
10493
10494fi
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10496$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10497sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10498test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10499
10500
10501
10502
10503
10504
10505
10506if test -n "$ac_tool_prefix"; then
10507 for ac_prog in ar
10508 do
10509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10510set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010514 $as_echo_n "(cached) " >&6
10515else
10516 if test -n "$AR"; then
10517 ac_cv_prog_AR="$AR" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 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 +000010526 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531 done
10532IFS=$as_save_IFS
10533
10534fi
10535fi
10536AR=$ac_cv_prog_AR
10537if test -n "$AR"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10539$as_echo "$AR" >&6; }
10540else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
10543fi
10544
10545
cristyda16f162011-02-19 23:52:17 +000010546 test -n "$AR" && break
10547 done
cristy73bd4a52010-10-05 11:24:23 +000010548fi
cristyda16f162011-02-19 23:52:17 +000010549if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010550 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010551 for ac_prog in ar
10552do
10553 # Extract the first word of "$ac_prog", so it can be a program name with args.
10554set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010557if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010558 $as_echo_n "(cached) " >&6
10559else
10560 if test -n "$ac_ct_AR"; then
10561 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10562else
10563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564for as_dir in $PATH
10565do
10566 IFS=$as_save_IFS
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 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 +000010570 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574done
10575 done
10576IFS=$as_save_IFS
10577
10578fi
10579fi
10580ac_ct_AR=$ac_cv_prog_ac_ct_AR
10581if test -n "$ac_ct_AR"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10583$as_echo "$ac_ct_AR" >&6; }
10584else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586$as_echo "no" >&6; }
10587fi
10588
cristyda16f162011-02-19 23:52:17 +000010589
10590 test -n "$ac_ct_AR" && break
10591done
10592
cristy73bd4a52010-10-05 11:24:23 +000010593 if test "x$ac_ct_AR" = x; then
10594 AR="false"
10595 else
10596 case $cross_compiling:$ac_tool_warned in
10597yes:)
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10600ac_tool_warned=yes ;;
10601esac
10602 AR=$ac_ct_AR
10603 fi
cristy73bd4a52010-10-05 11:24:23 +000010604fi
10605
cristyda16f162011-02-19 23:52:17 +000010606: ${AR=ar}
10607: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
cristyda16f162011-02-19 23:52:17 +000010619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10620$as_echo_n "checking for archiver @FILE support... " >&6; }
10621if ${lt_cv_ar_at_file+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 lt_cv_ar_at_file=no
10625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626/* end confdefs.h. */
10627
10628int
10629main ()
10630{
10631
10632 ;
10633 return 0;
10634}
10635_ACEOF
10636if ac_fn_c_try_compile "$LINENO"; then :
10637 echo conftest.$ac_objext > conftest.lst
10638 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10640 (eval $lt_ar_try) 2>&5
10641 ac_status=$?
10642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10643 test $ac_status = 0; }
10644 if test "$ac_status" -eq 0; then
10645 # Ensure the archiver fails upon bogus file names.
10646 rm -f conftest.$ac_objext libconftest.a
10647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10648 (eval $lt_ar_try) 2>&5
10649 ac_status=$?
10650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10651 test $ac_status = 0; }
10652 if test "$ac_status" -ne 0; then
10653 lt_cv_ar_at_file=@
10654 fi
10655 fi
10656 rm -f conftest.* libconftest.a
10657
10658fi
10659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10660
10661fi
10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10663$as_echo "$lt_cv_ar_at_file" >&6; }
10664
10665if test "x$lt_cv_ar_at_file" = xno; then
10666 archiver_list_spec=
10667else
10668 archiver_list_spec=$lt_cv_ar_at_file
10669fi
10670
10671
10672
10673
10674
10675
10676
cristy73bd4a52010-10-05 11:24:23 +000010677if test -n "$ac_tool_prefix"; then
10678 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10679set dummy ${ac_tool_prefix}strip; ac_word=$2
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010682if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010683 $as_echo_n "(cached) " >&6
10684else
10685 if test -n "$STRIP"; then
10686 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10687else
10688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10689for as_dir in $PATH
10690do
10691 IFS=$as_save_IFS
10692 test -z "$as_dir" && as_dir=.
10693 for ac_exec_ext in '' $ac_executable_extensions; do
10694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10695 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10697 break 2
10698 fi
10699done
10700 done
10701IFS=$as_save_IFS
10702
10703fi
10704fi
10705STRIP=$ac_cv_prog_STRIP
10706if test -n "$STRIP"; then
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10708$as_echo "$STRIP" >&6; }
10709else
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10711$as_echo "no" >&6; }
10712fi
10713
10714
10715fi
10716if test -z "$ac_cv_prog_STRIP"; then
10717 ac_ct_STRIP=$STRIP
10718 # Extract the first word of "strip", so it can be a program name with args.
10719set dummy strip; ac_word=$2
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010722if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010723 $as_echo_n "(cached) " >&6
10724else
10725 if test -n "$ac_ct_STRIP"; then
10726 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10727else
10728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10735 ac_cv_prog_ac_ct_STRIP="strip"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739done
10740 done
10741IFS=$as_save_IFS
10742
10743fi
10744fi
10745ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10746if test -n "$ac_ct_STRIP"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10748$as_echo "$ac_ct_STRIP" >&6; }
10749else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
10752fi
10753
10754 if test "x$ac_ct_STRIP" = x; then
10755 STRIP=":"
10756 else
10757 case $cross_compiling:$ac_tool_warned in
10758yes:)
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10761ac_tool_warned=yes ;;
10762esac
10763 STRIP=$ac_ct_STRIP
10764 fi
10765else
10766 STRIP="$ac_cv_prog_STRIP"
10767fi
10768
10769test -z "$STRIP" && STRIP=:
10770
10771
10772
10773
10774
10775
10776if test -n "$ac_tool_prefix"; then
10777 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10778set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010781if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010782 $as_echo_n "(cached) " >&6
10783else
10784 if test -n "$RANLIB"; then
10785 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10786else
10787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788for as_dir in $PATH
10789do
10790 IFS=$as_save_IFS
10791 test -z "$as_dir" && as_dir=.
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10794 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 break 2
10797 fi
10798done
10799 done
10800IFS=$as_save_IFS
10801
10802fi
10803fi
10804RANLIB=$ac_cv_prog_RANLIB
10805if test -n "$RANLIB"; then
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10807$as_echo "$RANLIB" >&6; }
10808else
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
10811fi
10812
10813
10814fi
10815if test -z "$ac_cv_prog_RANLIB"; then
10816 ac_ct_RANLIB=$RANLIB
10817 # Extract the first word of "ranlib", so it can be a program name with args.
10818set dummy ranlib; ac_word=$2
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010821if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010822 $as_echo_n "(cached) " >&6
10823else
10824 if test -n "$ac_ct_RANLIB"; then
10825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10826else
10827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_prog_ac_ct_RANLIB="ranlib"
10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10837 fi
10838done
10839 done
10840IFS=$as_save_IFS
10841
10842fi
10843fi
10844ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10845if test -n "$ac_ct_RANLIB"; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10847$as_echo "$ac_ct_RANLIB" >&6; }
10848else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
10851fi
10852
10853 if test "x$ac_ct_RANLIB" = x; then
10854 RANLIB=":"
10855 else
10856 case $cross_compiling:$ac_tool_warned in
10857yes:)
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10860ac_tool_warned=yes ;;
10861esac
10862 RANLIB=$ac_ct_RANLIB
10863 fi
10864else
10865 RANLIB="$ac_cv_prog_RANLIB"
10866fi
10867
10868test -z "$RANLIB" && RANLIB=:
10869
10870
10871
10872
10873
10874
10875# Determine commands to create old-style static archives.
10876old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10877old_postinstall_cmds='chmod 644 $oldlib'
10878old_postuninstall_cmds=
10879
10880if test -n "$RANLIB"; then
10881 case $host_os in
10882 openbsd*)
10883 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10884 ;;
10885 *)
10886 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10887 ;;
10888 esac
10889 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10890fi
10891
cristy0c60a692010-11-04 01:09:47 +000010892case $host_os in
10893 darwin*)
10894 lock_old_archive_extraction=yes ;;
10895 *)
10896 lock_old_archive_extraction=no ;;
10897esac
10898
10899
10900
10901
10902
10903
cristy73bd4a52010-10-05 11:24:23 +000010904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937# If no C compiler was specified, use CC.
10938LTCC=${LTCC-"$CC"}
10939
10940# If no C compiler flags were specified, use CFLAGS.
10941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10942
10943# Allow CC to be a program name with arguments.
10944compiler=$CC
10945
10946
10947# Check for command to grab the raw symbol name followed by C symbol from nm.
10948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10949$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010950if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010951 $as_echo_n "(cached) " >&6
10952else
10953
10954# These are sane defaults that work on at least a few old systems.
10955# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10956
10957# Character class describing NM global symbol codes.
10958symcode='[BCDEGRST]'
10959
10960# Regexp to match symbols that can be accessed directly from C.
10961sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10962
10963# Define system-specific variables.
10964case $host_os in
10965aix*)
10966 symcode='[BCDT]'
10967 ;;
10968cygwin* | mingw* | pw32* | cegcc*)
10969 symcode='[ABCDGISTW]'
10970 ;;
10971hpux*)
10972 if test "$host_cpu" = ia64; then
10973 symcode='[ABCDEGRST]'
10974 fi
10975 ;;
10976irix* | nonstopux*)
10977 symcode='[BCDEGRST]'
10978 ;;
10979osf*)
10980 symcode='[BCDEGQRST]'
10981 ;;
10982solaris*)
10983 symcode='[BDRT]'
10984 ;;
10985sco3.2v5*)
10986 symcode='[DT]'
10987 ;;
10988sysv4.2uw2*)
10989 symcode='[DT]'
10990 ;;
10991sysv5* | sco5v6* | unixware* | OpenUNIX*)
10992 symcode='[ABDT]'
10993 ;;
10994sysv4)
10995 symcode='[DFNSTU]'
10996 ;;
10997esac
10998
10999# If we're using GNU nm, then use its standard symbol codes.
11000case `$NM -V 2>&1` in
11001*GNU* | *'with BFD'*)
11002 symcode='[ABCDGIRSTW]' ;;
11003esac
11004
11005# Transform an extracted symbol line into a proper C declaration.
11006# Some systems (esp. on ia64) link data and code symbols differently,
11007# so use this general approach.
11008lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11009
11010# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011011lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11012lt_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 +000011013
11014# Handle CRLF in mingw tool chain
11015opt_cr=
11016case $build_os in
11017mingw*)
11018 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11019 ;;
11020esac
11021
11022# Try without a prefix underscore, then with it.
11023for ac_symprfx in "" "_"; do
11024
11025 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11026 symxfrm="\\1 $ac_symprfx\\2 \\2"
11027
11028 # Write the raw and C identifiers.
11029 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11030 # Fake it for dumpbin and say T for any non-static function
11031 # and D for any global variable.
11032 # Also find C++ and __fastcall symbols from MSVC++,
11033 # which start with @ or ?.
11034 lt_cv_sys_global_symbol_pipe="$AWK '"\
11035" {last_section=section; section=\$ 3};"\
11036" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11037" \$ 0!~/External *\|/{next};"\
11038" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11039" {if(hide[section]) next};"\
11040" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11041" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11042" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11043" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11044" ' prfx=^$ac_symprfx"
11045 else
11046 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11047 fi
cristyda16f162011-02-19 23:52:17 +000011048 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011049
11050 # Check to see that the pipe works correctly.
11051 pipe_works=no
11052
11053 rm -f conftest*
11054 cat > conftest.$ac_ext <<_LT_EOF
11055#ifdef __cplusplus
11056extern "C" {
11057#endif
11058char nm_test_var;
11059void nm_test_func(void);
11060void nm_test_func(void){}
11061#ifdef __cplusplus
11062}
11063#endif
11064int main(){nm_test_var='a';nm_test_func();return(0);}
11065_LT_EOF
11066
11067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11068 (eval $ac_compile) 2>&5
11069 ac_status=$?
11070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11071 test $ac_status = 0; }; then
11072 # Now try to grab the symbols.
11073 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11075 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011076 ac_status=$?
11077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11078 test $ac_status = 0; } && test -s "$nlist"; then
11079 # Try sorting and uniquifying the output.
11080 if sort "$nlist" | uniq > "$nlist"T; then
11081 mv -f "$nlist"T "$nlist"
11082 else
11083 rm -f "$nlist"T
11084 fi
11085
11086 # Make sure that we snagged all the symbols we need.
11087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11089 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011090/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11091#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11092/* DATA imports from DLLs on WIN32 con't be const, because runtime
11093 relocations are performed -- see ld's documentation on pseudo-relocs. */
11094# define LT_DLSYM_CONST
11095#elif defined(__osf__)
11096/* This system does not cope well with relocations in const data. */
11097# define LT_DLSYM_CONST
11098#else
11099# define LT_DLSYM_CONST const
11100#endif
11101
cristy73bd4a52010-10-05 11:24:23 +000011102#ifdef __cplusplus
11103extern "C" {
11104#endif
11105
11106_LT_EOF
11107 # Now generate the symbol file.
11108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11109
11110 cat <<_LT_EOF >> conftest.$ac_ext
11111
11112/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011113LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011114 const char *name;
11115 void *address;
11116}
11117lt__PROGRAM__LTX_preloaded_symbols[] =
11118{
11119 { "@PROGRAM@", (void *) 0 },
11120_LT_EOF
11121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11122 cat <<\_LT_EOF >> conftest.$ac_ext
11123 {0, (void *) 0}
11124};
11125
11126/* This works around a problem in FreeBSD linker */
11127#ifdef FREEBSD_WORKAROUND
11128static const void *lt_preloaded_setup() {
11129 return lt__PROGRAM__LTX_preloaded_symbols;
11130}
11131#endif
11132
11133#ifdef __cplusplus
11134}
11135#endif
11136_LT_EOF
11137 # Now try linking the two files.
11138 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011139 lt_globsym_save_LIBS=$LIBS
11140 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011141 LIBS="conftstm.$ac_objext"
11142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11144 (eval $ac_link) 2>&5
11145 ac_status=$?
11146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11147 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11148 pipe_works=yes
11149 fi
cristyda16f162011-02-19 23:52:17 +000011150 LIBS=$lt_globsym_save_LIBS
11151 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011152 else
11153 echo "cannot find nm_test_func in $nlist" >&5
11154 fi
11155 else
11156 echo "cannot find nm_test_var in $nlist" >&5
11157 fi
11158 else
11159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11160 fi
11161 else
11162 echo "$progname: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 fi
11165 rm -rf conftest* conftst*
11166
11167 # Do not use the global_symbol_pipe unless it works.
11168 if test "$pipe_works" = yes; then
11169 break
11170 else
11171 lt_cv_sys_global_symbol_pipe=
11172 fi
11173done
11174
11175fi
11176
11177if test -z "$lt_cv_sys_global_symbol_pipe"; then
11178 lt_cv_sys_global_symbol_to_cdecl=
11179fi
11180if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11182$as_echo "failed" >&6; }
11183else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11185$as_echo "ok" >&6; }
11186fi
11187
cristyda16f162011-02-19 23:52:17 +000011188# Response file support.
11189if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11190 nm_file_list_spec='@'
11191elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11192 nm_file_list_spec='@'
11193fi
cristy73bd4a52010-10-05 11:24:23 +000011194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
cristyda16f162011-02-19 23:52:17 +000011215
11216
11217
11218
11219
11220
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11222$as_echo_n "checking for sysroot... " >&6; }
11223
11224# Check whether --with-sysroot was given.
11225if test "${with_sysroot+set}" = set; then :
11226 withval=$with_sysroot;
11227else
11228 with_sysroot=no
11229fi
11230
11231
11232lt_sysroot=
11233case ${with_sysroot} in #(
11234 yes)
11235 if test "$GCC" = yes; then
11236 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11237 fi
11238 ;; #(
11239 /*)
11240 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11241 ;; #(
11242 no|'')
11243 ;; #(
11244 *)
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11246$as_echo "${with_sysroot}" >&6; }
11247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11248 ;;
11249esac
11250
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11252$as_echo "${lt_sysroot:-no}" >&6; }
11253
11254
11255
11256
11257
cristy73bd4a52010-10-05 11:24:23 +000011258# Check whether --enable-libtool-lock was given.
11259if test "${enable_libtool_lock+set}" = set; then :
11260 enableval=$enable_libtool_lock;
11261fi
11262
11263test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11264
11265# Some flags need to be propagated to the compiler or linker for good
11266# libtool support.
11267case $host in
11268ia64-*-hpux*)
11269 # Find out which ABI we are using.
11270 echo 'int i;' > conftest.$ac_ext
11271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11272 (eval $ac_compile) 2>&5
11273 ac_status=$?
11274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11275 test $ac_status = 0; }; then
11276 case `/usr/bin/file conftest.$ac_objext` in
11277 *ELF-32*)
11278 HPUX_IA64_MODE="32"
11279 ;;
11280 *ELF-64*)
11281 HPUX_IA64_MODE="64"
11282 ;;
11283 esac
11284 fi
11285 rm -rf conftest*
11286 ;;
11287*-*-irix6*)
11288 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11291 (eval $ac_compile) 2>&5
11292 ac_status=$?
11293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11294 test $ac_status = 0; }; then
11295 if test "$lt_cv_prog_gnu_ld" = yes; then
11296 case `/usr/bin/file conftest.$ac_objext` in
11297 *32-bit*)
11298 LD="${LD-ld} -melf32bsmip"
11299 ;;
11300 *N32*)
11301 LD="${LD-ld} -melf32bmipn32"
11302 ;;
11303 *64-bit*)
11304 LD="${LD-ld} -melf64bmip"
11305 ;;
11306 esac
11307 else
11308 case `/usr/bin/file conftest.$ac_objext` in
11309 *32-bit*)
11310 LD="${LD-ld} -32"
11311 ;;
11312 *N32*)
11313 LD="${LD-ld} -n32"
11314 ;;
11315 *64-bit*)
11316 LD="${LD-ld} -64"
11317 ;;
11318 esac
11319 fi
11320 fi
11321 rm -rf conftest*
11322 ;;
11323
11324x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11325s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11326 # Find out which ABI we are using.
11327 echo 'int i;' > conftest.$ac_ext
11328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11329 (eval $ac_compile) 2>&5
11330 ac_status=$?
11331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11332 test $ac_status = 0; }; then
11333 case `/usr/bin/file conftest.o` in
11334 *32-bit*)
11335 case $host in
11336 x86_64-*kfreebsd*-gnu)
11337 LD="${LD-ld} -m elf_i386_fbsd"
11338 ;;
11339 x86_64-*linux*)
11340 LD="${LD-ld} -m elf_i386"
11341 ;;
11342 ppc64-*linux*|powerpc64-*linux*)
11343 LD="${LD-ld} -m elf32ppclinux"
11344 ;;
11345 s390x-*linux*)
11346 LD="${LD-ld} -m elf_s390"
11347 ;;
11348 sparc64-*linux*)
11349 LD="${LD-ld} -m elf32_sparc"
11350 ;;
11351 esac
11352 ;;
11353 *64-bit*)
11354 case $host in
11355 x86_64-*kfreebsd*-gnu)
11356 LD="${LD-ld} -m elf_x86_64_fbsd"
11357 ;;
11358 x86_64-*linux*)
11359 LD="${LD-ld} -m elf_x86_64"
11360 ;;
11361 ppc*-*linux*|powerpc*-*linux*)
11362 LD="${LD-ld} -m elf64ppc"
11363 ;;
11364 s390*-*linux*|s390*-*tpf*)
11365 LD="${LD-ld} -m elf64_s390"
11366 ;;
11367 sparc*-*linux*)
11368 LD="${LD-ld} -m elf64_sparc"
11369 ;;
11370 esac
11371 ;;
11372 esac
11373 fi
11374 rm -rf conftest*
11375 ;;
11376
11377*-*-sco3.2v5*)
11378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11379 SAVE_CFLAGS="$CFLAGS"
11380 CFLAGS="$CFLAGS -belf"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11382$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011383if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011384 $as_echo_n "(cached) " >&6
11385else
11386 ac_ext=c
11387ac_cpp='$CPP $CPPFLAGS'
11388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11390ac_compiler_gnu=$ac_cv_c_compiler_gnu
11391
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h. */
11394
11395int
11396main ()
11397{
11398
11399 ;
11400 return 0;
11401}
11402_ACEOF
11403if ac_fn_c_try_link "$LINENO"; then :
11404 lt_cv_cc_needs_belf=yes
11405else
11406 lt_cv_cc_needs_belf=no
11407fi
11408rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 ac_ext=c
11411ac_cpp='$CPP $CPPFLAGS'
11412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11414ac_compiler_gnu=$ac_cv_c_compiler_gnu
11415
11416fi
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11418$as_echo "$lt_cv_cc_needs_belf" >&6; }
11419 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11420 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11421 CFLAGS="$SAVE_CFLAGS"
11422 fi
11423 ;;
11424sparc*-*solaris*)
11425 # Find out which ABI we are using.
11426 echo 'int i;' > conftest.$ac_ext
11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11428 (eval $ac_compile) 2>&5
11429 ac_status=$?
11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431 test $ac_status = 0; }; then
11432 case `/usr/bin/file conftest.o` in
11433 *64-bit*)
11434 case $lt_cv_prog_gnu_ld in
11435 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11436 *)
11437 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11438 LD="${LD-ld} -64"
11439 fi
11440 ;;
11441 esac
11442 ;;
11443 esac
11444 fi
11445 rm -rf conftest*
11446 ;;
11447esac
11448
11449need_locks="$enable_libtool_lock"
11450
cristyda16f162011-02-19 23:52:17 +000011451if test -n "$ac_tool_prefix"; then
11452 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11453set dummy ${ac_tool_prefix}mt; ac_word=$2
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
11456if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458else
11459 if test -n "$MANIFEST_TOOL"; then
11460 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11469 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11471 break 2
11472 fi
11473done
11474 done
11475IFS=$as_save_IFS
11476
11477fi
11478fi
11479MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11480if test -n "$MANIFEST_TOOL"; then
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11482$as_echo "$MANIFEST_TOOL" >&6; }
11483else
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
11486fi
11487
11488
11489fi
11490if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11491 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11492 # Extract the first word of "mt", so it can be a program name with args.
11493set dummy mt; ac_word=$2
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495$as_echo_n "checking for $ac_word... " >&6; }
11496if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498else
11499 if test -n "$ac_ct_MANIFEST_TOOL"; then
11500 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11501else
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11509 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11511 break 2
11512 fi
11513done
11514 done
11515IFS=$as_save_IFS
11516
11517fi
11518fi
11519ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11520if test -n "$ac_ct_MANIFEST_TOOL"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11522$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11523else
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
11526fi
11527
11528 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11529 MANIFEST_TOOL=":"
11530 else
11531 case $cross_compiling:$ac_tool_warned in
11532yes:)
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11535ac_tool_warned=yes ;;
11536esac
11537 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11538 fi
11539else
11540 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11541fi
11542
11543test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11545$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11546if ${lt_cv_path_mainfest_tool+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548else
11549 lt_cv_path_mainfest_tool=no
11550 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11551 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11552 cat conftest.err >&5
11553 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11554 lt_cv_path_mainfest_tool=yes
11555 fi
11556 rm -f conftest*
11557fi
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11559$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11560if test "x$lt_cv_path_mainfest_tool" != xyes; then
11561 MANIFEST_TOOL=:
11562fi
11563
11564
11565
11566
11567
cristy73bd4a52010-10-05 11:24:23 +000011568
11569 case $host_os in
11570 rhapsody* | darwin*)
11571 if test -n "$ac_tool_prefix"; then
11572 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11573set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011576if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011577 $as_echo_n "(cached) " >&6
11578else
11579 if test -n "$DSYMUTIL"; then
11580 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11581else
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11591 break 2
11592 fi
11593done
11594 done
11595IFS=$as_save_IFS
11596
11597fi
11598fi
11599DSYMUTIL=$ac_cv_prog_DSYMUTIL
11600if test -n "$DSYMUTIL"; then
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11602$as_echo "$DSYMUTIL" >&6; }
11603else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
11606fi
11607
11608
11609fi
11610if test -z "$ac_cv_prog_DSYMUTIL"; then
11611 ac_ct_DSYMUTIL=$DSYMUTIL
11612 # Extract the first word of "dsymutil", so it can be a program name with args.
11613set dummy dsymutil; ac_word=$2
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011616if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011617 $as_echo_n "(cached) " >&6
11618else
11619 if test -n "$ac_ct_DSYMUTIL"; then
11620 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11621else
11622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $PATH
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
11627 for ac_exec_ext in '' $ac_executable_extensions; do
11628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11629 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11631 break 2
11632 fi
11633done
11634 done
11635IFS=$as_save_IFS
11636
11637fi
11638fi
11639ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11640if test -n "$ac_ct_DSYMUTIL"; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11642$as_echo "$ac_ct_DSYMUTIL" >&6; }
11643else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
11646fi
11647
11648 if test "x$ac_ct_DSYMUTIL" = x; then
11649 DSYMUTIL=":"
11650 else
11651 case $cross_compiling:$ac_tool_warned in
11652yes:)
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11655ac_tool_warned=yes ;;
11656esac
11657 DSYMUTIL=$ac_ct_DSYMUTIL
11658 fi
11659else
11660 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11661fi
11662
11663 if test -n "$ac_tool_prefix"; then
11664 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11665set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011668if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011669 $as_echo_n "(cached) " >&6
11670else
11671 if test -n "$NMEDIT"; then
11672 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11673else
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11681 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11683 break 2
11684 fi
11685done
11686 done
11687IFS=$as_save_IFS
11688
11689fi
11690fi
11691NMEDIT=$ac_cv_prog_NMEDIT
11692if test -n "$NMEDIT"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11694$as_echo "$NMEDIT" >&6; }
11695else
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
11698fi
11699
11700
11701fi
11702if test -z "$ac_cv_prog_NMEDIT"; then
11703 ac_ct_NMEDIT=$NMEDIT
11704 # Extract the first word of "nmedit", so it can be a program name with args.
11705set dummy nmedit; ac_word=$2
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011708if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011709 $as_echo_n "(cached) " >&6
11710else
11711 if test -n "$ac_ct_NMEDIT"; then
11712 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11713else
11714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11721 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11723 break 2
11724 fi
11725done
11726 done
11727IFS=$as_save_IFS
11728
11729fi
11730fi
11731ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11732if test -n "$ac_ct_NMEDIT"; then
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11734$as_echo "$ac_ct_NMEDIT" >&6; }
11735else
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
11738fi
11739
11740 if test "x$ac_ct_NMEDIT" = x; then
11741 NMEDIT=":"
11742 else
11743 case $cross_compiling:$ac_tool_warned in
11744yes:)
11745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11747ac_tool_warned=yes ;;
11748esac
11749 NMEDIT=$ac_ct_NMEDIT
11750 fi
11751else
11752 NMEDIT="$ac_cv_prog_NMEDIT"
11753fi
11754
11755 if test -n "$ac_tool_prefix"; then
11756 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11757set dummy ${ac_tool_prefix}lipo; ac_word=$2
11758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011760if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011761 $as_echo_n "(cached) " >&6
11762else
11763 if test -n "$LIPO"; then
11764 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11765else
11766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767for as_dir in $PATH
11768do
11769 IFS=$as_save_IFS
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11775 break 2
11776 fi
11777done
11778 done
11779IFS=$as_save_IFS
11780
11781fi
11782fi
11783LIPO=$ac_cv_prog_LIPO
11784if test -n "$LIPO"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11786$as_echo "$LIPO" >&6; }
11787else
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789$as_echo "no" >&6; }
11790fi
11791
11792
11793fi
11794if test -z "$ac_cv_prog_LIPO"; then
11795 ac_ct_LIPO=$LIPO
11796 # Extract the first word of "lipo", so it can be a program name with args.
11797set dummy lipo; ac_word=$2
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011800if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011801 $as_echo_n "(cached) " >&6
11802else
11803 if test -n "$ac_ct_LIPO"; then
11804 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11805else
11806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_prog_ac_ct_LIPO="lipo"
11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11815 break 2
11816 fi
11817done
11818 done
11819IFS=$as_save_IFS
11820
11821fi
11822fi
11823ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11824if test -n "$ac_ct_LIPO"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11826$as_echo "$ac_ct_LIPO" >&6; }
11827else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
11830fi
11831
11832 if test "x$ac_ct_LIPO" = x; then
11833 LIPO=":"
11834 else
11835 case $cross_compiling:$ac_tool_warned in
11836yes:)
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11839ac_tool_warned=yes ;;
11840esac
11841 LIPO=$ac_ct_LIPO
11842 fi
11843else
11844 LIPO="$ac_cv_prog_LIPO"
11845fi
11846
11847 if test -n "$ac_tool_prefix"; then
11848 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11849set dummy ${ac_tool_prefix}otool; ac_word=$2
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011852if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011853 $as_echo_n "(cached) " >&6
11854else
11855 if test -n "$OTOOL"; then
11856 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11867 break 2
11868 fi
11869done
11870 done
11871IFS=$as_save_IFS
11872
11873fi
11874fi
11875OTOOL=$ac_cv_prog_OTOOL
11876if test -n "$OTOOL"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11878$as_echo "$OTOOL" >&6; }
11879else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882fi
11883
11884
11885fi
11886if test -z "$ac_cv_prog_OTOOL"; then
11887 ac_ct_OTOOL=$OTOOL
11888 # Extract the first word of "otool", so it can be a program name with args.
11889set dummy otool; ac_word=$2
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011892if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011893 $as_echo_n "(cached) " >&6
11894else
11895 if test -n "$ac_ct_OTOOL"; then
11896 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11897else
11898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899for as_dir in $PATH
11900do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11905 ac_cv_prog_ac_ct_OTOOL="otool"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 break 2
11908 fi
11909done
11910 done
11911IFS=$as_save_IFS
11912
11913fi
11914fi
11915ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11916if test -n "$ac_ct_OTOOL"; then
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11918$as_echo "$ac_ct_OTOOL" >&6; }
11919else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922fi
11923
11924 if test "x$ac_ct_OTOOL" = x; then
11925 OTOOL=":"
11926 else
11927 case $cross_compiling:$ac_tool_warned in
11928yes:)
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11931ac_tool_warned=yes ;;
11932esac
11933 OTOOL=$ac_ct_OTOOL
11934 fi
11935else
11936 OTOOL="$ac_cv_prog_OTOOL"
11937fi
11938
11939 if test -n "$ac_tool_prefix"; then
11940 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11941set dummy ${ac_tool_prefix}otool64; ac_word=$2
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011944if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011945 $as_echo_n "(cached) " >&6
11946else
11947 if test -n "$OTOOL64"; then
11948 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11949else
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962 done
11963IFS=$as_save_IFS
11964
11965fi
11966fi
11967OTOOL64=$ac_cv_prog_OTOOL64
11968if test -n "$OTOOL64"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11970$as_echo "$OTOOL64" >&6; }
11971else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974fi
11975
11976
11977fi
11978if test -z "$ac_cv_prog_OTOOL64"; then
11979 ac_ct_OTOOL64=$OTOOL64
11980 # Extract the first word of "otool64", so it can be a program name with args.
11981set dummy otool64; ac_word=$2
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011984if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011985 $as_echo_n "(cached) " >&6
11986else
11987 if test -n "$ac_ct_OTOOL64"; then
11988 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11989else
11990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991for as_dir in $PATH
11992do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11997 ac_cv_prog_ac_ct_OTOOL64="otool64"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11999 break 2
12000 fi
12001done
12002 done
12003IFS=$as_save_IFS
12004
12005fi
12006fi
12007ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12008if test -n "$ac_ct_OTOOL64"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12010$as_echo "$ac_ct_OTOOL64" >&6; }
12011else
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013$as_echo "no" >&6; }
12014fi
12015
12016 if test "x$ac_ct_OTOOL64" = x; then
12017 OTOOL64=":"
12018 else
12019 case $cross_compiling:$ac_tool_warned in
12020yes:)
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12023ac_tool_warned=yes ;;
12024esac
12025 OTOOL64=$ac_ct_OTOOL64
12026 fi
12027else
12028 OTOOL64="$ac_cv_prog_OTOOL64"
12029fi
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12058$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012059if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012060 $as_echo_n "(cached) " >&6
12061else
12062 lt_cv_apple_cc_single_mod=no
12063 if test -z "${LT_MULTI_MODULE}"; then
12064 # By default we will add the -single_module flag. You can override
12065 # by either setting the environment variable LT_MULTI_MODULE
12066 # non-empty at configure time, or by adding -multi_module to the
12067 # link flags.
12068 rm -rf libconftest.dylib*
12069 echo "int foo(void){return 1;}" > conftest.c
12070 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12071-dynamiclib -Wl,-single_module conftest.c" >&5
12072 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12073 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12074 _lt_result=$?
12075 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12076 lt_cv_apple_cc_single_mod=yes
12077 else
12078 cat conftest.err >&5
12079 fi
12080 rm -rf libconftest.dylib*
12081 rm -f conftest.*
12082 fi
12083fi
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12085$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12087$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012088if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012089 $as_echo_n "(cached) " >&6
12090else
12091 lt_cv_ld_exported_symbols_list=no
12092 save_LDFLAGS=$LDFLAGS
12093 echo "_main" > conftest.sym
12094 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096/* end confdefs.h. */
12097
12098int
12099main ()
12100{
12101
12102 ;
12103 return 0;
12104}
12105_ACEOF
12106if ac_fn_c_try_link "$LINENO"; then :
12107 lt_cv_ld_exported_symbols_list=yes
12108else
12109 lt_cv_ld_exported_symbols_list=no
12110fi
12111rm -f core conftest.err conftest.$ac_objext \
12112 conftest$ac_exeext conftest.$ac_ext
12113 LDFLAGS="$save_LDFLAGS"
12114
12115fi
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12117$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy0c60a692010-11-04 01:09:47 +000012118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12119$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012120if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012121 $as_echo_n "(cached) " >&6
12122else
12123 lt_cv_ld_force_load=no
12124 cat > conftest.c << _LT_EOF
12125int forced_loaded() { return 2;}
12126_LT_EOF
12127 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12128 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12129 echo "$AR cru libconftest.a conftest.o" >&5
12130 $AR cru libconftest.a conftest.o 2>&5
12131 echo "$RANLIB libconftest.a" >&5
12132 $RANLIB libconftest.a 2>&5
12133 cat > conftest.c << _LT_EOF
12134int main() { return 0;}
12135_LT_EOF
12136 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12137 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12138 _lt_result=$?
12139 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12140 lt_cv_ld_force_load=yes
12141 else
12142 cat conftest.err >&5
12143 fi
12144 rm -f conftest.err libconftest.a conftest conftest.c
12145 rm -rf conftest.dSYM
12146
12147fi
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12149$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012150 case $host_os in
12151 rhapsody* | darwin1.[012])
12152 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12153 darwin1.*)
12154 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12155 darwin*) # darwin 5.x on
12156 # if running on 10.5 or later, the deployment target defaults
12157 # to the OS version, if on x86, and 10.4, the deployment
12158 # target defaults to 10.4. Don't you love it?
12159 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12160 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12161 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12162 10.[012]*)
12163 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12164 10.*)
12165 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12166 esac
12167 ;;
12168 esac
12169 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12170 _lt_dar_single_mod='$single_module'
12171 fi
12172 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12173 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12174 else
12175 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12176 fi
cristy0c60a692010-11-04 01:09:47 +000012177 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012178 _lt_dsymutil='~$DSYMUTIL $lib || :'
12179 else
12180 _lt_dsymutil=
12181 fi
12182 ;;
12183 esac
12184
12185for ac_header in dlfcn.h
12186do :
12187 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12188"
cristyda16f162011-02-19 23:52:17 +000012189if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012190 cat >>confdefs.h <<_ACEOF
12191#define HAVE_DLFCN_H 1
12192_ACEOF
12193
12194fi
12195
12196done
12197
12198
12199
cristy73bd4a52010-10-05 11:24:23 +000012200
cristyda16f162011-02-19 23:52:17 +000012201func_stripname_cnf ()
12202{
12203 case ${2} in
12204 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12205 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12206 esac
12207} # func_stripname_cnf
12208
12209
12210
cristy73bd4a52010-10-05 11:24:23 +000012211
12212
12213# Set options
12214enable_win32_dll=yes
12215
12216case $host in
cristy0c60a692010-11-04 01:09:47 +000012217*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12220set dummy ${ac_tool_prefix}as; ac_word=$2
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012223if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012224 $as_echo_n "(cached) " >&6
12225else
12226 if test -n "$AS"; then
12227 ac_cv_prog_AS="$AS" # Let the user override the test.
12228else
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_AS="${ac_tool_prefix}as"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238 break 2
12239 fi
12240done
12241 done
12242IFS=$as_save_IFS
12243
12244fi
12245fi
12246AS=$ac_cv_prog_AS
12247if test -n "$AS"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12249$as_echo "$AS" >&6; }
12250else
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
12253fi
12254
12255
12256fi
12257if test -z "$ac_cv_prog_AS"; then
12258 ac_ct_AS=$AS
12259 # Extract the first word of "as", so it can be a program name with args.
12260set dummy as; ac_word=$2
12261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012263if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012264 $as_echo_n "(cached) " >&6
12265else
12266 if test -n "$ac_ct_AS"; then
12267 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12268else
12269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270for as_dir in $PATH
12271do
12272 IFS=$as_save_IFS
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_AS="as"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278 break 2
12279 fi
12280done
12281 done
12282IFS=$as_save_IFS
12283
12284fi
12285fi
12286ac_ct_AS=$ac_cv_prog_ac_ct_AS
12287if test -n "$ac_ct_AS"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12289$as_echo "$ac_ct_AS" >&6; }
12290else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292$as_echo "no" >&6; }
12293fi
12294
12295 if test "x$ac_ct_AS" = x; then
12296 AS="false"
12297 else
12298 case $cross_compiling:$ac_tool_warned in
12299yes:)
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302ac_tool_warned=yes ;;
12303esac
12304 AS=$ac_ct_AS
12305 fi
12306else
12307 AS="$ac_cv_prog_AS"
12308fi
12309
12310 if test -n "$ac_tool_prefix"; then
12311 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12312set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012315if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012316 $as_echo_n "(cached) " >&6
12317else
12318 if test -n "$DLLTOOL"; then
12319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
12335
12336fi
12337fi
12338DLLTOOL=$ac_cv_prog_DLLTOOL
12339if test -n "$DLLTOOL"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12341$as_echo "$DLLTOOL" >&6; }
12342else
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
12345fi
12346
12347
12348fi
12349if test -z "$ac_cv_prog_DLLTOOL"; then
12350 ac_ct_DLLTOOL=$DLLTOOL
12351 # Extract the first word of "dlltool", so it can be a program name with args.
12352set dummy dlltool; ac_word=$2
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012355if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012356 $as_echo_n "(cached) " >&6
12357else
12358 if test -n "$ac_ct_DLLTOOL"; then
12359 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12360else
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12371 fi
12372done
12373 done
12374IFS=$as_save_IFS
12375
12376fi
12377fi
12378ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12379if test -n "$ac_ct_DLLTOOL"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12381$as_echo "$ac_ct_DLLTOOL" >&6; }
12382else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
12385fi
12386
12387 if test "x$ac_ct_DLLTOOL" = x; then
12388 DLLTOOL="false"
12389 else
12390 case $cross_compiling:$ac_tool_warned in
12391yes:)
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394ac_tool_warned=yes ;;
12395esac
12396 DLLTOOL=$ac_ct_DLLTOOL
12397 fi
12398else
12399 DLLTOOL="$ac_cv_prog_DLLTOOL"
12400fi
12401
12402 if test -n "$ac_tool_prefix"; then
12403 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12404set dummy ${ac_tool_prefix}objdump; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012407if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012408 $as_echo_n "(cached) " >&6
12409else
12410 if test -n "$OBJDUMP"; then
12411 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 break 2
12423 fi
12424done
12425 done
12426IFS=$as_save_IFS
12427
12428fi
12429fi
12430OBJDUMP=$ac_cv_prog_OBJDUMP
12431if test -n "$OBJDUMP"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12433$as_echo "$OBJDUMP" >&6; }
12434else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437fi
12438
12439
12440fi
12441if test -z "$ac_cv_prog_OBJDUMP"; then
12442 ac_ct_OBJDUMP=$OBJDUMP
12443 # Extract the first word of "objdump", so it can be a program name with args.
12444set dummy objdump; ac_word=$2
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012447if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012448 $as_echo_n "(cached) " >&6
12449else
12450 if test -n "$ac_ct_OBJDUMP"; then
12451 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12452else
12453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $PATH
12455do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462 break 2
12463 fi
12464done
12465 done
12466IFS=$as_save_IFS
12467
12468fi
12469fi
12470ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12471if test -n "$ac_ct_OBJDUMP"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12473$as_echo "$ac_ct_OBJDUMP" >&6; }
12474else
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
12477fi
12478
12479 if test "x$ac_ct_OBJDUMP" = x; then
12480 OBJDUMP="false"
12481 else
12482 case $cross_compiling:$ac_tool_warned in
12483yes:)
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12486ac_tool_warned=yes ;;
12487esac
12488 OBJDUMP=$ac_ct_OBJDUMP
12489 fi
12490else
12491 OBJDUMP="$ac_cv_prog_OBJDUMP"
12492fi
12493
12494 ;;
12495esac
12496
12497test -z "$AS" && AS=as
12498
12499
12500
12501
12502
12503test -z "$DLLTOOL" && DLLTOOL=dlltool
12504
12505
12506
12507
12508
12509test -z "$OBJDUMP" && OBJDUMP=objdump
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519 # Check whether --enable-shared was given.
12520if test "${enable_shared+set}" = set; then :
12521 enableval=$enable_shared; p=${PACKAGE-default}
12522 case $enableval in
12523 yes) enable_shared=yes ;;
12524 no) enable_shared=no ;;
12525 *)
12526 enable_shared=no
12527 # Look at the argument we got. We use all the common list separators.
12528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12529 for pkg in $enableval; do
12530 IFS="$lt_save_ifs"
12531 if test "X$pkg" = "X$p"; then
12532 enable_shared=yes
12533 fi
12534 done
12535 IFS="$lt_save_ifs"
12536 ;;
12537 esac
12538else
12539 enable_shared=yes
12540fi
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550 # Check whether --enable-static was given.
12551if test "${enable_static+set}" = set; then :
12552 enableval=$enable_static; p=${PACKAGE-default}
12553 case $enableval in
12554 yes) enable_static=yes ;;
12555 no) enable_static=no ;;
12556 *)
12557 enable_static=no
12558 # Look at the argument we got. We use all the common list separators.
12559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12560 for pkg in $enableval; do
12561 IFS="$lt_save_ifs"
12562 if test "X$pkg" = "X$p"; then
12563 enable_static=yes
12564 fi
12565 done
12566 IFS="$lt_save_ifs"
12567 ;;
12568 esac
12569else
12570 enable_static=yes
12571fi
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582# Check whether --with-pic was given.
12583if test "${with_pic+set}" = set; then :
12584 withval=$with_pic; pic_mode="$withval"
12585else
12586 pic_mode=default
12587fi
12588
12589
12590test -z "$pic_mode" && pic_mode=default
12591
12592
12593
12594
12595
12596
12597
12598 # Check whether --enable-fast-install was given.
12599if test "${enable_fast_install+set}" = set; then :
12600 enableval=$enable_fast_install; p=${PACKAGE-default}
12601 case $enableval in
12602 yes) enable_fast_install=yes ;;
12603 no) enable_fast_install=no ;;
12604 *)
12605 enable_fast_install=no
12606 # Look at the argument we got. We use all the common list separators.
12607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12608 for pkg in $enableval; do
12609 IFS="$lt_save_ifs"
12610 if test "X$pkg" = "X$p"; then
12611 enable_fast_install=yes
12612 fi
12613 done
12614 IFS="$lt_save_ifs"
12615 ;;
12616 esac
12617else
12618 enable_fast_install=yes
12619fi
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631# This can be used to rebuild libtool when needed
12632LIBTOOL_DEPS="$ltmain"
12633
12634# Always use our own libtool.
12635LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
cristy0c60a692010-11-04 01:09:47 +000012661
cristy73bd4a52010-10-05 11:24:23 +000012662test -z "$LN_S" && LN_S="ln -s"
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677if test -n "${ZSH_VERSION+set}" ; then
12678 setopt NO_GLOB_SUBST
12679fi
12680
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12682$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012683if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686 rm -f .libs 2>/dev/null
12687mkdir .libs 2>/dev/null
12688if test -d .libs; then
12689 lt_cv_objdir=.libs
12690else
12691 # MS-DOS does not allow filenames that begin with a dot.
12692 lt_cv_objdir=_libs
12693fi
12694rmdir .libs 2>/dev/null
12695fi
12696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12697$as_echo "$lt_cv_objdir" >&6; }
12698objdir=$lt_cv_objdir
12699
12700
12701
12702
12703
12704cat >>confdefs.h <<_ACEOF
12705#define LT_OBJDIR "$lt_cv_objdir/"
12706_ACEOF
12707
12708
12709
12710
cristy73bd4a52010-10-05 11:24:23 +000012711case $host_os in
12712aix3*)
12713 # AIX sometimes has problems with the GCC collect2 program. For some
12714 # reason, if we set the COLLECT_NAMES environment variable, the problems
12715 # vanish in a puff of smoke.
12716 if test "X${COLLECT_NAMES+set}" != Xset; then
12717 COLLECT_NAMES=
12718 export COLLECT_NAMES
12719 fi
12720 ;;
12721esac
12722
cristy73bd4a52010-10-05 11:24:23 +000012723# Global variables:
12724ofile=libtool
12725can_build_shared=yes
12726
12727# All known linkers require a `.a' archive for static linking (except MSVC,
12728# which needs '.lib').
12729libext=a
12730
12731with_gnu_ld="$lt_cv_prog_gnu_ld"
12732
12733old_CC="$CC"
12734old_CFLAGS="$CFLAGS"
12735
12736# Set sane defaults for various variables
12737test -z "$CC" && CC=cc
12738test -z "$LTCC" && LTCC=$CC
12739test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12740test -z "$LD" && LD=ld
12741test -z "$ac_objext" && ac_objext=o
12742
12743for cc_temp in $compiler""; do
12744 case $cc_temp in
12745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12747 \-*) ;;
12748 *) break;;
12749 esac
12750done
cristy0c60a692010-11-04 01:09:47 +000012751cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000012752
12753
12754# Only perform the check for file, if the check method requires it
12755test -z "$MAGIC_CMD" && MAGIC_CMD=file
12756case $deplibs_check_method in
12757file_magic*)
12758 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12760$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012761if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012762 $as_echo_n "(cached) " >&6
12763else
12764 case $MAGIC_CMD in
12765[\\/*] | ?:[\\/]*)
12766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12767 ;;
12768*)
12769 lt_save_MAGIC_CMD="$MAGIC_CMD"
12770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12772 for ac_dir in $ac_dummy; do
12773 IFS="$lt_save_ifs"
12774 test -z "$ac_dir" && ac_dir=.
12775 if test -f $ac_dir/${ac_tool_prefix}file; then
12776 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12777 if test -n "$file_magic_test_file"; then
12778 case $deplibs_check_method in
12779 "file_magic "*)
12780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12783 $EGREP "$file_magic_regex" > /dev/null; then
12784 :
12785 else
12786 cat <<_LT_EOF 1>&2
12787
12788*** Warning: the command libtool uses to detect shared libraries,
12789*** $file_magic_cmd, produces output that libtool cannot recognize.
12790*** The result is that libtool may fail to recognize shared libraries
12791*** as such. This will affect the creation of libtool libraries that
12792*** depend on shared libraries, but programs linked with such libtool
12793*** libraries will work regardless of this problem. Nevertheless, you
12794*** may want to report the problem to your system manager and/or to
12795*** bug-libtool@gnu.org
12796
12797_LT_EOF
12798 fi ;;
12799 esac
12800 fi
12801 break
12802 fi
12803 done
12804 IFS="$lt_save_ifs"
12805 MAGIC_CMD="$lt_save_MAGIC_CMD"
12806 ;;
12807esac
12808fi
12809
12810MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12811if test -n "$MAGIC_CMD"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12813$as_echo "$MAGIC_CMD" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820
12821
12822
12823if test -z "$lt_cv_path_MAGIC_CMD"; then
12824 if test -n "$ac_tool_prefix"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12826$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012827if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012828 $as_echo_n "(cached) " >&6
12829else
12830 case $MAGIC_CMD in
12831[\\/*] | ?:[\\/]*)
12832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12833 ;;
12834*)
12835 lt_save_MAGIC_CMD="$MAGIC_CMD"
12836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12838 for ac_dir in $ac_dummy; do
12839 IFS="$lt_save_ifs"
12840 test -z "$ac_dir" && ac_dir=.
12841 if test -f $ac_dir/file; then
12842 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12843 if test -n "$file_magic_test_file"; then
12844 case $deplibs_check_method in
12845 "file_magic "*)
12846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12849 $EGREP "$file_magic_regex" > /dev/null; then
12850 :
12851 else
12852 cat <<_LT_EOF 1>&2
12853
12854*** Warning: the command libtool uses to detect shared libraries,
12855*** $file_magic_cmd, produces output that libtool cannot recognize.
12856*** The result is that libtool may fail to recognize shared libraries
12857*** as such. This will affect the creation of libtool libraries that
12858*** depend on shared libraries, but programs linked with such libtool
12859*** libraries will work regardless of this problem. Nevertheless, you
12860*** may want to report the problem to your system manager and/or to
12861*** bug-libtool@gnu.org
12862
12863_LT_EOF
12864 fi ;;
12865 esac
12866 fi
12867 break
12868 fi
12869 done
12870 IFS="$lt_save_ifs"
12871 MAGIC_CMD="$lt_save_MAGIC_CMD"
12872 ;;
12873esac
12874fi
12875
12876MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12877if test -n "$MAGIC_CMD"; then
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12879$as_echo "$MAGIC_CMD" >&6; }
12880else
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
12883fi
12884
12885
12886 else
12887 MAGIC_CMD=:
12888 fi
12889fi
12890
12891 fi
12892 ;;
12893esac
12894
12895# Use C for the default configuration in the libtool script
12896
12897lt_save_CC="$CC"
12898ac_ext=c
12899ac_cpp='$CPP $CPPFLAGS'
12900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902ac_compiler_gnu=$ac_cv_c_compiler_gnu
12903
12904
12905# Source file extension for C test sources.
12906ac_ext=c
12907
12908# Object file extension for compiled C test sources.
12909objext=o
12910objext=$objext
12911
12912# Code to be used in simple compile tests
12913lt_simple_compile_test_code="int some_variable = 0;"
12914
12915# Code to be used in simple link tests
12916lt_simple_link_test_code='int main(){return(0);}'
12917
12918
12919
12920
12921
12922
12923
12924# If no C compiler was specified, use CC.
12925LTCC=${LTCC-"$CC"}
12926
12927# If no C compiler flags were specified, use CFLAGS.
12928LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12929
12930# Allow CC to be a program name with arguments.
12931compiler=$CC
12932
12933# Save the default compiler, since it gets overwritten when the other
12934# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12935compiler_DEFAULT=$CC
12936
12937# save warnings/boilerplate of simple test code
12938ac_outfile=conftest.$ac_objext
12939echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12941_lt_compiler_boilerplate=`cat conftest.err`
12942$RM conftest*
12943
12944ac_outfile=conftest.$ac_objext
12945echo "$lt_simple_link_test_code" >conftest.$ac_ext
12946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12947_lt_linker_boilerplate=`cat conftest.err`
12948$RM -r conftest*
12949
12950
12951## CAVEAT EMPTOR:
12952## There is no encapsulation within the following macros, do not change
12953## the running order or otherwise move them around unless you know exactly
12954## what you are doing...
12955if test -n "$compiler"; then
12956
12957lt_prog_compiler_no_builtin_flag=
12958
12959if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000012960 case $cc_basename in
12961 nvcc*)
12962 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12963 *)
12964 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12965 esac
cristy73bd4a52010-10-05 11:24:23 +000012966
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12968$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012969if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012970 $as_echo_n "(cached) " >&6
12971else
12972 lt_cv_prog_compiler_rtti_exceptions=no
12973 ac_outfile=conftest.$ac_objext
12974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12975 lt_compiler_flag="-fno-rtti -fno-exceptions"
12976 # Insert the option either (1) after the last *FLAGS variable, or
12977 # (2) before a word containing "conftest.", or (3) at the end.
12978 # Note that $ac_compile itself does not contain backslashes and begins
12979 # with a dollar sign (not a hyphen), so the echo should work correctly.
12980 # The option is referenced via a variable to avoid confusing sed.
12981 lt_compile=`echo "$ac_compile" | $SED \
12982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12984 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000012985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000012986 (eval "$lt_compile" 2>conftest.err)
12987 ac_status=$?
12988 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000012989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000012990 if (exit $ac_status) && test -s "$ac_outfile"; then
12991 # The compiler can only warn and ignore the option if not recognized
12992 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000012993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000012994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12996 lt_cv_prog_compiler_rtti_exceptions=yes
12997 fi
12998 fi
12999 $RM conftest*
13000
13001fi
13002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13003$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13004
13005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13007else
13008 :
13009fi
13010
13011fi
13012
13013
13014
13015
13016
13017
13018 lt_prog_compiler_wl=
13019lt_prog_compiler_pic=
13020lt_prog_compiler_static=
13021
cristy73bd4a52010-10-05 11:24:23 +000013022
13023 if test "$GCC" = yes; then
13024 lt_prog_compiler_wl='-Wl,'
13025 lt_prog_compiler_static='-static'
13026
13027 case $host_os in
13028 aix*)
13029 # All AIX code is PIC.
13030 if test "$host_cpu" = ia64; then
13031 # AIX 5 now supports IA64 processor
13032 lt_prog_compiler_static='-Bstatic'
13033 fi
13034 ;;
13035
13036 amigaos*)
13037 case $host_cpu in
13038 powerpc)
13039 # see comment about AmigaOS4 .so support
13040 lt_prog_compiler_pic='-fPIC'
13041 ;;
13042 m68k)
13043 # FIXME: we need at least 68020 code to build shared libraries, but
13044 # adding the `-m68020' flag to GCC prevents building anything better,
13045 # like `-m68040'.
13046 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13047 ;;
13048 esac
13049 ;;
13050
13051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13052 # PIC is the default for these OSes.
13053 ;;
13054
13055 mingw* | cygwin* | pw32* | os2* | cegcc*)
13056 # This hack is so that the source file can tell whether it is being
13057 # built for inclusion in a dll (and should export symbols for example).
13058 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13059 # (--disable-auto-import) libraries
13060 lt_prog_compiler_pic='-DDLL_EXPORT'
13061 ;;
13062
13063 darwin* | rhapsody*)
13064 # PIC is the default on this platform
13065 # Common symbols not allowed in MH_DYLIB files
13066 lt_prog_compiler_pic='-fno-common'
13067 ;;
13068
cristy0c60a692010-11-04 01:09:47 +000013069 haiku*)
13070 # PIC is the default for Haiku.
13071 # The "-static" flag exists, but is broken.
13072 lt_prog_compiler_static=
13073 ;;
13074
cristy73bd4a52010-10-05 11:24:23 +000013075 hpux*)
13076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13078 # sets the default TLS model and affects inlining.
13079 case $host_cpu in
13080 hppa*64*)
13081 # +Z the default
13082 ;;
13083 *)
13084 lt_prog_compiler_pic='-fPIC'
13085 ;;
13086 esac
13087 ;;
13088
13089 interix[3-9]*)
13090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13091 # Instead, we relocate shared libraries at runtime.
13092 ;;
13093
13094 msdosdjgpp*)
13095 # Just because we use GCC doesn't mean we suddenly get shared libraries
13096 # on systems that don't support them.
13097 lt_prog_compiler_can_build_shared=no
13098 enable_shared=no
13099 ;;
13100
13101 *nto* | *qnx*)
13102 # QNX uses GNU C++, but need to define -shared option too, otherwise
13103 # it will coredump.
13104 lt_prog_compiler_pic='-fPIC -shared'
13105 ;;
13106
13107 sysv4*MP*)
13108 if test -d /usr/nec; then
13109 lt_prog_compiler_pic=-Kconform_pic
13110 fi
13111 ;;
13112
13113 *)
13114 lt_prog_compiler_pic='-fPIC'
13115 ;;
13116 esac
cristy0c60a692010-11-04 01:09:47 +000013117
13118 case $cc_basename in
13119 nvcc*) # Cuda Compiler Driver 2.2
13120 lt_prog_compiler_wl='-Xlinker '
13121 lt_prog_compiler_pic='-Xcompiler -fPIC'
13122 ;;
13123 esac
cristy73bd4a52010-10-05 11:24:23 +000013124 else
13125 # PORTME Check for flag to pass linker flags through the system compiler.
13126 case $host_os in
13127 aix*)
13128 lt_prog_compiler_wl='-Wl,'
13129 if test "$host_cpu" = ia64; then
13130 # AIX 5 now supports IA64 processor
13131 lt_prog_compiler_static='-Bstatic'
13132 else
13133 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13134 fi
13135 ;;
13136
13137 mingw* | cygwin* | pw32* | os2* | cegcc*)
13138 # This hack is so that the source file can tell whether it is being
13139 # built for inclusion in a dll (and should export symbols for example).
13140 lt_prog_compiler_pic='-DDLL_EXPORT'
13141 ;;
13142
13143 hpux9* | hpux10* | hpux11*)
13144 lt_prog_compiler_wl='-Wl,'
13145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13146 # not for PA HP-UX.
13147 case $host_cpu in
13148 hppa*64*|ia64*)
13149 # +Z the default
13150 ;;
13151 *)
13152 lt_prog_compiler_pic='+Z'
13153 ;;
13154 esac
13155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13156 lt_prog_compiler_static='${wl}-a ${wl}archive'
13157 ;;
13158
13159 irix5* | irix6* | nonstopux*)
13160 lt_prog_compiler_wl='-Wl,'
13161 # PIC (with -KPIC) is the default.
13162 lt_prog_compiler_static='-non_shared'
13163 ;;
13164
cristy0c60a692010-11-04 01:09:47 +000013165 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013166 case $cc_basename in
13167 # old Intel for x86_64 which still supported -KPIC.
13168 ecc*)
13169 lt_prog_compiler_wl='-Wl,'
13170 lt_prog_compiler_pic='-KPIC'
13171 lt_prog_compiler_static='-static'
13172 ;;
13173 # icc used to be incompatible with GCC.
13174 # ICC 10 doesn't accept -KPIC any more.
13175 icc* | ifort*)
13176 lt_prog_compiler_wl='-Wl,'
13177 lt_prog_compiler_pic='-fPIC'
13178 lt_prog_compiler_static='-static'
13179 ;;
13180 # Lahey Fortran 8.1.
13181 lf95*)
13182 lt_prog_compiler_wl='-Wl,'
13183 lt_prog_compiler_pic='--shared'
13184 lt_prog_compiler_static='--static'
13185 ;;
cristyda16f162011-02-19 23:52:17 +000013186 nagfor*)
13187 # NAG Fortran compiler
13188 lt_prog_compiler_wl='-Wl,-Wl,,'
13189 lt_prog_compiler_pic='-PIC'
13190 lt_prog_compiler_static='-Bstatic'
13191 ;;
cristy0c60a692010-11-04 01:09:47 +000013192 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013193 # Portland Group compilers (*not* the Pentium gcc compiler,
13194 # which looks to be a dead project)
13195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_pic='-fpic'
13197 lt_prog_compiler_static='-Bstatic'
13198 ;;
13199 ccc*)
13200 lt_prog_compiler_wl='-Wl,'
13201 # All Alpha code is PIC.
13202 lt_prog_compiler_static='-non_shared'
13203 ;;
cristy0c60a692010-11-04 01:09:47 +000013204 xl* | bgxl* | bgf* | mpixl*)
13205 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013206 lt_prog_compiler_wl='-Wl,'
13207 lt_prog_compiler_pic='-qpic'
13208 lt_prog_compiler_static='-qstaticlink'
13209 ;;
13210 *)
13211 case `$CC -V 2>&1 | sed 5q` in
cristy0c60a692010-11-04 01:09:47 +000013212 *Sun\ F* | *Sun*Fortran*)
13213 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13214 lt_prog_compiler_pic='-KPIC'
13215 lt_prog_compiler_static='-Bstatic'
13216 lt_prog_compiler_wl=''
13217 ;;
cristy73bd4a52010-10-05 11:24:23 +000013218 *Sun\ C*)
13219 # Sun C 5.9
13220 lt_prog_compiler_pic='-KPIC'
13221 lt_prog_compiler_static='-Bstatic'
13222 lt_prog_compiler_wl='-Wl,'
13223 ;;
cristy73bd4a52010-10-05 11:24:23 +000013224 esac
13225 ;;
13226 esac
13227 ;;
13228
13229 newsos6)
13230 lt_prog_compiler_pic='-KPIC'
13231 lt_prog_compiler_static='-Bstatic'
13232 ;;
13233
13234 *nto* | *qnx*)
13235 # QNX uses GNU C++, but need to define -shared option too, otherwise
13236 # it will coredump.
13237 lt_prog_compiler_pic='-fPIC -shared'
13238 ;;
13239
13240 osf3* | osf4* | osf5*)
13241 lt_prog_compiler_wl='-Wl,'
13242 # All OSF/1 code is PIC.
13243 lt_prog_compiler_static='-non_shared'
13244 ;;
13245
13246 rdos*)
13247 lt_prog_compiler_static='-non_shared'
13248 ;;
13249
13250 solaris*)
13251 lt_prog_compiler_pic='-KPIC'
13252 lt_prog_compiler_static='-Bstatic'
13253 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013254 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013255 lt_prog_compiler_wl='-Qoption ld ';;
13256 *)
13257 lt_prog_compiler_wl='-Wl,';;
13258 esac
13259 ;;
13260
13261 sunos4*)
13262 lt_prog_compiler_wl='-Qoption ld '
13263 lt_prog_compiler_pic='-PIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 ;;
13266
13267 sysv4 | sysv4.2uw2* | sysv4.3*)
13268 lt_prog_compiler_wl='-Wl,'
13269 lt_prog_compiler_pic='-KPIC'
13270 lt_prog_compiler_static='-Bstatic'
13271 ;;
13272
13273 sysv4*MP*)
13274 if test -d /usr/nec ;then
13275 lt_prog_compiler_pic='-Kconform_pic'
13276 lt_prog_compiler_static='-Bstatic'
13277 fi
13278 ;;
13279
13280 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13281 lt_prog_compiler_wl='-Wl,'
13282 lt_prog_compiler_pic='-KPIC'
13283 lt_prog_compiler_static='-Bstatic'
13284 ;;
13285
13286 unicos*)
13287 lt_prog_compiler_wl='-Wl,'
13288 lt_prog_compiler_can_build_shared=no
13289 ;;
13290
13291 uts4*)
13292 lt_prog_compiler_pic='-pic'
13293 lt_prog_compiler_static='-Bstatic'
13294 ;;
13295
13296 *)
13297 lt_prog_compiler_can_build_shared=no
13298 ;;
13299 esac
13300 fi
13301
13302case $host_os in
13303 # For platforms which do not support PIC, -DPIC is meaningless:
13304 *djgpp*)
13305 lt_prog_compiler_pic=
13306 ;;
13307 *)
13308 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13309 ;;
13310esac
cristy73bd4a52010-10-05 11:24:23 +000013311
cristyda16f162011-02-19 23:52:17 +000013312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13313$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13314if ${lt_cv_prog_compiler_pic+:} false; then :
13315 $as_echo_n "(cached) " >&6
13316else
13317 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13320$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13321lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013322
13323#
13324# Check to make sure the PIC flag actually works.
13325#
13326if test -n "$lt_prog_compiler_pic"; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13328$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013329if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013330 $as_echo_n "(cached) " >&6
13331else
13332 lt_cv_prog_compiler_pic_works=no
13333 ac_outfile=conftest.$ac_objext
13334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13336 # Insert the option either (1) after the last *FLAGS variable, or
13337 # (2) before a word containing "conftest.", or (3) at the end.
13338 # Note that $ac_compile itself does not contain backslashes and begins
13339 # with a dollar sign (not a hyphen), so the echo should work correctly.
13340 # The option is referenced via a variable to avoid confusing sed.
13341 lt_compile=`echo "$ac_compile" | $SED \
13342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013346 (eval "$lt_compile" 2>conftest.err)
13347 ac_status=$?
13348 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013350 if (exit $ac_status) && test -s "$ac_outfile"; then
13351 # The compiler can only warn and ignore the option if not recognized
13352 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13356 lt_cv_prog_compiler_pic_works=yes
13357 fi
13358 fi
13359 $RM conftest*
13360
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13363$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13364
13365if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13366 case $lt_prog_compiler_pic in
13367 "" | " "*) ;;
13368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13369 esac
13370else
13371 lt_prog_compiler_pic=
13372 lt_prog_compiler_can_build_shared=no
13373fi
13374
13375fi
13376
13377
13378
13379
13380
13381
cristyda16f162011-02-19 23:52:17 +000013382
13383
13384
13385
13386
cristy73bd4a52010-10-05 11:24:23 +000013387#
13388# Check to make sure the static flag actually works.
13389#
13390wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13392$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013393if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013394 $as_echo_n "(cached) " >&6
13395else
13396 lt_cv_prog_compiler_static_works=no
13397 save_LDFLAGS="$LDFLAGS"
13398 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13401 # The linker can only warn and ignore the option if not recognized
13402 # So say no if there are warnings
13403 if test -s conftest.err; then
13404 # Append any errors to the config.log.
13405 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13408 if diff conftest.exp conftest.er2 >/dev/null; then
13409 lt_cv_prog_compiler_static_works=yes
13410 fi
13411 else
13412 lt_cv_prog_compiler_static_works=yes
13413 fi
13414 fi
13415 $RM -r conftest*
13416 LDFLAGS="$save_LDFLAGS"
13417
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13420$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13421
13422if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13423 :
13424else
13425 lt_prog_compiler_static=
13426fi
13427
13428
13429
13430
13431
13432
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13435$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013436if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013437 $as_echo_n "(cached) " >&6
13438else
13439 lt_cv_prog_compiler_c_o=no
13440 $RM -r conftest 2>/dev/null
13441 mkdir conftest
13442 cd conftest
13443 mkdir out
13444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13445
13446 lt_compiler_flag="-o out/conftest2.$ac_objext"
13447 # Insert the option either (1) after the last *FLAGS variable, or
13448 # (2) before a word containing "conftest.", or (3) at the end.
13449 # Note that $ac_compile itself does not contain backslashes and begins
13450 # with a dollar sign (not a hyphen), so the echo should work correctly.
13451 lt_compile=`echo "$ac_compile" | $SED \
13452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13454 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013456 (eval "$lt_compile" 2>out/conftest.err)
13457 ac_status=$?
13458 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13461 then
13462 # The compiler can only warn and ignore the option if not recognized
13463 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13467 lt_cv_prog_compiler_c_o=yes
13468 fi
13469 fi
13470 chmod u+w . 2>&5
13471 $RM conftest*
13472 # SGI C++ compiler will create directory out/ii_files/ for
13473 # template instantiation
13474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13475 $RM out/* && rmdir out
13476 cd ..
13477 $RM -r conftest
13478 $RM conftest*
13479
13480fi
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13482$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13483
13484
13485
13486
13487
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13490$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013491if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013492 $as_echo_n "(cached) " >&6
13493else
13494 lt_cv_prog_compiler_c_o=no
13495 $RM -r conftest 2>/dev/null
13496 mkdir conftest
13497 cd conftest
13498 mkdir out
13499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13500
13501 lt_compiler_flag="-o out/conftest2.$ac_objext"
13502 # Insert the option either (1) after the last *FLAGS variable, or
13503 # (2) before a word containing "conftest.", or (3) at the end.
13504 # Note that $ac_compile itself does not contain backslashes and begins
13505 # with a dollar sign (not a hyphen), so the echo should work correctly.
13506 lt_compile=`echo "$ac_compile" | $SED \
13507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13509 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013510 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013511 (eval "$lt_compile" 2>out/conftest.err)
13512 ac_status=$?
13513 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13516 then
13517 # The compiler can only warn and ignore the option if not recognized
13518 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13522 lt_cv_prog_compiler_c_o=yes
13523 fi
13524 fi
13525 chmod u+w . 2>&5
13526 $RM conftest*
13527 # SGI C++ compiler will create directory out/ii_files/ for
13528 # template instantiation
13529 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13530 $RM out/* && rmdir out
13531 cd ..
13532 $RM -r conftest
13533 $RM conftest*
13534
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13537$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13538
13539
13540
13541
13542hard_links="nottested"
13543if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13544 # do not overwrite the value of need_locks provided by the user
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13546$as_echo_n "checking if we can lock with hard links... " >&6; }
13547 hard_links=yes
13548 $RM conftest*
13549 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13550 touch conftest.a
13551 ln conftest.a conftest.b 2>&5 || hard_links=no
13552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13554$as_echo "$hard_links" >&6; }
13555 if test "$hard_links" = no; then
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13557$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13558 need_locks=warn
13559 fi
13560else
13561 need_locks=no
13562fi
13563
13564
13565
13566
13567
13568
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13570$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13571
13572 runpath_var=
13573 allow_undefined_flag=
13574 always_export_symbols=no
13575 archive_cmds=
13576 archive_expsym_cmds=
13577 compiler_needs_object=no
13578 enable_shared_with_static_runtimes=no
13579 export_dynamic_flag_spec=
13580 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13581 hardcode_automatic=no
13582 hardcode_direct=no
13583 hardcode_direct_absolute=no
13584 hardcode_libdir_flag_spec=
13585 hardcode_libdir_flag_spec_ld=
13586 hardcode_libdir_separator=
13587 hardcode_minus_L=no
13588 hardcode_shlibpath_var=unsupported
13589 inherit_rpath=no
13590 link_all_deplibs=unknown
13591 module_cmds=
13592 module_expsym_cmds=
13593 old_archive_from_new_cmds=
13594 old_archive_from_expsyms_cmds=
13595 thread_safe_flag_spec=
13596 whole_archive_flag_spec=
13597 # include_expsyms should be a list of space-separated symbols to be *always*
13598 # included in the symbol list
13599 include_expsyms=
13600 # exclude_expsyms can be an extended regexp of symbols to exclude
13601 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13603 # as well as any symbol that contains `d'.
13604 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13606 # platforms (ab)use it in PIC code, but their linkers get confused if
13607 # the symbol is explicitly referenced. Since portable code cannot
13608 # rely on this symbol name, it's probably fine to never include it in
13609 # preloaded symbol tables.
13610 # Exclude shared library initialization/finalization symbols.
13611 extract_expsyms_cmds=
13612
13613 case $host_os in
13614 cygwin* | mingw* | pw32* | cegcc*)
13615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13616 # When not using gcc, we currently assume that we are using
13617 # Microsoft Visual C++.
13618 if test "$GCC" != yes; then
13619 with_gnu_ld=no
13620 fi
13621 ;;
13622 interix*)
13623 # we just hope/assume this is gcc and not c89 (= MSVC++)
13624 with_gnu_ld=yes
13625 ;;
13626 openbsd*)
13627 with_gnu_ld=no
13628 ;;
13629 esac
13630
13631 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000013632
13633 # On some targets, GNU ld is compatible enough with the native linker
13634 # that we're better off using the native interface for both.
13635 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000013636 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013637 case $host_os in
13638 aix*)
13639 # The AIX port of GNU ld has always aspired to compatibility
13640 # with the native linker. However, as the warning in the GNU ld
13641 # block says, versions before 2.19.5* couldn't really create working
13642 # shared libraries, regardless of the interface used.
13643 case `$LD -v 2>&1` in
13644 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13645 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13646 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13647 *)
13648 lt_use_gnu_ld_interface=yes
13649 ;;
13650 esac
13651 ;;
13652 *)
13653 lt_use_gnu_ld_interface=yes
13654 ;;
13655 esac
13656 fi
13657
13658 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000013659 # If archive_cmds runs LD, not CC, wlarc should be empty
13660 wlarc='${wl}'
13661
13662 # Set some defaults for GNU ld with shared library support. These
13663 # are reset later if shared libraries are not supported. Putting them
13664 # here allows them to be overridden if necessary.
13665 runpath_var=LD_RUN_PATH
13666 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13667 export_dynamic_flag_spec='${wl}--export-dynamic'
13668 # ancient GNU ld didn't support --whole-archive et. al.
13669 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13670 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13671 else
13672 whole_archive_flag_spec=
13673 fi
13674 supports_anon_versioning=no
13675 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000013676 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000013677 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13678 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13679 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13680 *\ 2.11.*) ;; # other 2.11 versions
13681 *) supports_anon_versioning=yes ;;
13682 esac
13683
13684 # See if GNU ld supports shared libraries.
13685 case $host_os in
13686 aix[3-9]*)
13687 # On AIX/PPC, the GNU linker is very broken
13688 if test "$host_cpu" != ia64; then
13689 ld_shlibs=no
13690 cat <<_LT_EOF 1>&2
13691
cristy0c60a692010-11-04 01:09:47 +000013692*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000013693*** to be unable to reliably create shared libraries on AIX.
13694*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000013695*** really care for shared libraries, you may want to install binutils
13696*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13697*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000013698
13699_LT_EOF
13700 fi
13701 ;;
13702
13703 amigaos*)
13704 case $host_cpu in
13705 powerpc)
13706 # see comment about AmigaOS4 .so support
13707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13708 archive_expsym_cmds=''
13709 ;;
13710 m68k)
13711 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)'
13712 hardcode_libdir_flag_spec='-L$libdir'
13713 hardcode_minus_L=yes
13714 ;;
13715 esac
13716 ;;
13717
13718 beos*)
13719 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13720 allow_undefined_flag=unsupported
13721 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13722 # support --undefined. This deserves some investigation. FIXME
13723 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724 else
13725 ld_shlibs=no
13726 fi
13727 ;;
13728
13729 cygwin* | mingw* | pw32* | cegcc*)
13730 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13731 # as there is no search path for DLLs.
13732 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000013733 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000013734 allow_undefined_flag=unsupported
13735 always_export_symbols=no
13736 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000013737 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'
13738 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 +000013739
13740 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13742 # If the export-symbols file already is a .def file (1st line
13743 # is EXPORTS), use it as is; otherwise, prepend...
13744 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13745 cp $export_symbols $output_objdir/$soname.def;
13746 else
13747 echo EXPORTS > $output_objdir/$soname.def;
13748 cat $export_symbols >> $output_objdir/$soname.def;
13749 fi~
13750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13751 else
13752 ld_shlibs=no
13753 fi
13754 ;;
13755
cristy0c60a692010-11-04 01:09:47 +000013756 haiku*)
13757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13758 link_all_deplibs=yes
13759 ;;
13760
cristy73bd4a52010-10-05 11:24:23 +000013761 interix[3-9]*)
13762 hardcode_direct=no
13763 hardcode_shlibpath_var=no
13764 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13765 export_dynamic_flag_spec='${wl}-E'
13766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13767 # Instead, shared libraries are loaded at an image base (0x10000000 by
13768 # default) and relocated if they conflict, which is a slow very memory
13769 # consuming and fragmenting process. To avoid this, we pick a random,
13770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13773 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'
13774 ;;
13775
cristy0c60a692010-11-04 01:09:47 +000013776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013777 tmp_diet=no
13778 if test "$host_os" = linux-dietlibc; then
13779 case $cc_basename in
13780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13781 esac
13782 fi
13783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13784 && test "$tmp_diet" = no
13785 then
cristyda16f162011-02-19 23:52:17 +000013786 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000013787 tmp_sharedflag='-shared'
13788 case $cc_basename,$host_cpu in
13789 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000013790 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 +000013791 tmp_addflag=' $pic_flag'
13792 ;;
cristy0c60a692010-11-04 01:09:47 +000013793 pgf77* | pgf90* | pgf95* | pgfortran*)
13794 # Portland Group f77 and f90 compilers
13795 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 +000013796 tmp_addflag=' $pic_flag -Mnomain' ;;
13797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13798 tmp_addflag=' -i_dynamic' ;;
13799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13800 tmp_addflag=' -i_dynamic -nofor_main' ;;
13801 ifc* | ifort*) # Intel Fortran compiler
13802 tmp_addflag=' -nofor_main' ;;
13803 lf95*) # Lahey Fortran 8.1
13804 whole_archive_flag_spec=
13805 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000013806 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000013807 tmp_sharedflag='-qmkshrobj'
13808 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000013809 nvcc*) # Cuda Compiler Driver 2.2
13810 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'
13811 compiler_needs_object=yes
13812 ;;
cristy73bd4a52010-10-05 11:24:23 +000013813 esac
13814 case `$CC -V 2>&1 | sed 5q` in
13815 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000013816 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 +000013817 compiler_needs_object=yes
13818 tmp_sharedflag='-G' ;;
13819 *Sun\ F*) # Sun Fortran 8.3
13820 tmp_sharedflag='-G' ;;
13821 esac
13822 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823
13824 if test "x$supports_anon_versioning" = xyes; then
13825 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13826 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13827 echo "local: *; };" >> $output_objdir/$libname.ver~
13828 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13829 fi
13830
13831 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013832 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000013833 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13834 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13835 hardcode_libdir_flag_spec=
13836 hardcode_libdir_flag_spec_ld='-rpath $libdir'
cristy0c60a692010-11-04 01:09:47 +000013837 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013838 if test "x$supports_anon_versioning" = xyes; then
13839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13841 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000013842 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000013843 fi
13844 ;;
13845 esac
13846 else
13847 ld_shlibs=no
13848 fi
13849 ;;
13850
13851 netbsd*)
13852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13853 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13854 wlarc=
13855 else
cristyda16f162011-02-19 23:52:17 +000013856 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13857 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 +000013858 fi
13859 ;;
13860
13861 solaris*)
13862 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13863 ld_shlibs=no
13864 cat <<_LT_EOF 1>&2
13865
13866*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13867*** create shared libraries on Solaris systems. Therefore, libtool
13868*** is disabling shared libraries support. We urge you to upgrade GNU
13869*** binutils to release 2.9.1 or newer. Another option is to modify
13870*** your PATH or compiler configuration so that the native linker is
13871*** used, and then restart.
13872
13873_LT_EOF
13874 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013875 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876 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 +000013877 else
13878 ld_shlibs=no
13879 fi
13880 ;;
13881
13882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13883 case `$LD -v 2>&1` in
13884 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13885 ld_shlibs=no
13886 cat <<_LT_EOF 1>&2
13887
13888*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13889*** reliably create shared libraries on SCO systems. Therefore, libtool
13890*** is disabling shared libraries support. We urge you to upgrade GNU
13891*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13892*** your PATH or compiler configuration so that the native linker is
13893*** used, and then restart.
13894
13895_LT_EOF
13896 ;;
13897 *)
13898 # For security reasons, it is highly recommended that you always
13899 # use absolute paths for naming shared libraries, and exclude the
13900 # DT_RUNPATH tag from executables and libraries. But doing so
13901 # requires that you compile everything twice, which is a pain.
13902 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13903 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13905 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13906 else
13907 ld_shlibs=no
13908 fi
13909 ;;
13910 esac
13911 ;;
13912
13913 sunos4*)
13914 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13915 wlarc=
13916 hardcode_direct=yes
13917 hardcode_shlibpath_var=no
13918 ;;
13919
13920 *)
13921 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000013922 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13923 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 +000013924 else
13925 ld_shlibs=no
13926 fi
13927 ;;
13928 esac
13929
13930 if test "$ld_shlibs" = no; then
13931 runpath_var=
13932 hardcode_libdir_flag_spec=
13933 export_dynamic_flag_spec=
13934 whole_archive_flag_spec=
13935 fi
13936 else
13937 # PORTME fill in a description of your system's linker (not GNU ld)
13938 case $host_os in
13939 aix3*)
13940 allow_undefined_flag=unsupported
13941 always_export_symbols=yes
13942 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'
13943 # Note: this linker hardcodes the directories in LIBPATH if there
13944 # are no directories specified by -L.
13945 hardcode_minus_L=yes
13946 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13947 # Neither direct hardcoding nor static linking is supported with a
13948 # broken collect2.
13949 hardcode_direct=unsupported
13950 fi
13951 ;;
13952
13953 aix[4-9]*)
13954 if test "$host_cpu" = ia64; then
13955 # On IA64, the linker does run time linking by default, so we don't
13956 # have to do anything special.
13957 aix_use_runtimelinking=no
13958 exp_sym_flag='-Bexport'
13959 no_entry_flag=""
13960 else
13961 # If we're using GNU nm, then we don't want the "-C" option.
13962 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000013963 # Also, AIX nm treats weak defined symbols like other global
13964 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000013965 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000013966 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 +000013967 else
13968 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'
13969 fi
13970 aix_use_runtimelinking=no
13971
13972 # Test if we are trying to use run time linking or normal
13973 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13974 # need to do runtime linking.
13975 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13976 for ld_flag in $LDFLAGS; do
13977 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13978 aix_use_runtimelinking=yes
13979 break
13980 fi
13981 done
13982 ;;
13983 esac
13984
13985 exp_sym_flag='-bexport'
13986 no_entry_flag='-bnoentry'
13987 fi
13988
13989 # When large executables or shared objects are built, AIX ld can
13990 # have problems creating the table of contents. If linking a library
13991 # or program results in "error TOC overflow" add -mminimal-toc to
13992 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13993 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13994
13995 archive_cmds=''
13996 hardcode_direct=yes
13997 hardcode_direct_absolute=yes
13998 hardcode_libdir_separator=':'
13999 link_all_deplibs=yes
14000 file_list_spec='${wl}-f,'
14001
14002 if test "$GCC" = yes; then
14003 case $host_os in aix4.[012]|aix4.[012].*)
14004 # We only want to do this on AIX 4.2 and lower, the check
14005 # below for broken collect2 doesn't work under 4.3+
14006 collect2name=`${CC} -print-prog-name=collect2`
14007 if test -f "$collect2name" &&
14008 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14009 then
14010 # We have reworked collect2
14011 :
14012 else
14013 # We have old collect2
14014 hardcode_direct=unsupported
14015 # It fails to find uninstalled libraries when the uninstalled
14016 # path is not listed in the libpath. Setting hardcode_minus_L
14017 # to unsupported forces relinking
14018 hardcode_minus_L=yes
14019 hardcode_libdir_flag_spec='-L$libdir'
14020 hardcode_libdir_separator=
14021 fi
14022 ;;
14023 esac
14024 shared_flag='-shared'
14025 if test "$aix_use_runtimelinking" = yes; then
14026 shared_flag="$shared_flag "'${wl}-G'
14027 fi
14028 else
14029 # not using gcc
14030 if test "$host_cpu" = ia64; then
14031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14032 # chokes on -Wl,-G. The following line is correct:
14033 shared_flag='-G'
14034 else
14035 if test "$aix_use_runtimelinking" = yes; then
14036 shared_flag='${wl}-G'
14037 else
14038 shared_flag='${wl}-bM:SRE'
14039 fi
14040 fi
14041 fi
14042
14043 export_dynamic_flag_spec='${wl}-bexpall'
14044 # It seems that -bexpall does not export symbols beginning with
14045 # underscore (_), so it is better to generate a list of symbols to export.
14046 always_export_symbols=yes
14047 if test "$aix_use_runtimelinking" = yes; then
14048 # Warning - without using the other runtime loading flags (-brtl),
14049 # -berok will link without error, but may produce a broken library.
14050 allow_undefined_flag='-berok'
14051 # Determine the default libpath from the value encoded in an
14052 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014053 if test "${lt_cv_aix_libpath+set}" = set; then
14054 aix_libpath=$lt_cv_aix_libpath
14055else
14056 if ${lt_cv_aix_libpath_+:} false; then :
14057 $as_echo_n "(cached) " >&6
14058else
14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014060/* end confdefs.h. */
14061
14062int
14063main ()
14064{
14065
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070if ac_fn_c_try_link "$LINENO"; then :
14071
cristyda16f162011-02-19 23:52:17 +000014072 lt_aix_libpath_sed='
14073 /Import File Strings/,/^$/ {
14074 /^0/ {
14075 s/^0 *\([^ ]*\) *$/\1/
14076 p
14077 }
14078 }'
14079 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14080 # Check for a 64-bit object if we didn't find anything.
14081 if test -z "$lt_cv_aix_libpath_"; then
14082 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14083 fi
cristy73bd4a52010-10-05 11:24:23 +000014084fi
14085rm -f core conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014087 if test -z "$lt_cv_aix_libpath_"; then
14088 lt_cv_aix_libpath_="/usr/lib:/lib"
14089 fi
14090
14091fi
14092
14093 aix_libpath=$lt_cv_aix_libpath_
14094fi
cristy73bd4a52010-10-05 11:24:23 +000014095
14096 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014097 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 +000014098 else
14099 if test "$host_cpu" = ia64; then
14100 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14101 allow_undefined_flag="-z nodefs"
14102 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"
14103 else
14104 # Determine the default libpath from the value encoded in an
14105 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014106 if test "${lt_cv_aix_libpath+set}" = set; then
14107 aix_libpath=$lt_cv_aix_libpath
14108else
14109 if ${lt_cv_aix_libpath_+:} false; then :
14110 $as_echo_n "(cached) " >&6
14111else
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014113/* end confdefs.h. */
14114
14115int
14116main ()
14117{
14118
14119 ;
14120 return 0;
14121}
14122_ACEOF
14123if ac_fn_c_try_link "$LINENO"; then :
14124
cristyda16f162011-02-19 23:52:17 +000014125 lt_aix_libpath_sed='
14126 /Import File Strings/,/^$/ {
14127 /^0/ {
14128 s/^0 *\([^ ]*\) *$/\1/
14129 p
14130 }
14131 }'
14132 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14133 # Check for a 64-bit object if we didn't find anything.
14134 if test -z "$lt_cv_aix_libpath_"; then
14135 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14136 fi
cristy73bd4a52010-10-05 11:24:23 +000014137fi
14138rm -f core conftest.err conftest.$ac_objext \
14139 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014140 if test -z "$lt_cv_aix_libpath_"; then
14141 lt_cv_aix_libpath_="/usr/lib:/lib"
14142 fi
14143
14144fi
14145
14146 aix_libpath=$lt_cv_aix_libpath_
14147fi
cristy73bd4a52010-10-05 11:24:23 +000014148
14149 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14150 # Warning - without using the other run time loading flags,
14151 # -berok will link without error, but may produce a broken library.
14152 no_undefined_flag=' ${wl}-bernotok'
14153 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014154 if test "$with_gnu_ld" = yes; then
14155 # We only use this code for GNU lds that support --whole-archive.
14156 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14157 else
14158 # Exported symbols can be pulled into shared objects from archives
14159 whole_archive_flag_spec='$convenience'
14160 fi
cristy73bd4a52010-10-05 11:24:23 +000014161 archive_cmds_need_lc=yes
14162 # This is similar to how AIX traditionally builds its shared libraries.
14163 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'
14164 fi
14165 fi
14166 ;;
14167
14168 amigaos*)
14169 case $host_cpu in
14170 powerpc)
14171 # see comment about AmigaOS4 .so support
14172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14173 archive_expsym_cmds=''
14174 ;;
14175 m68k)
14176 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)'
14177 hardcode_libdir_flag_spec='-L$libdir'
14178 hardcode_minus_L=yes
14179 ;;
14180 esac
14181 ;;
14182
14183 bsdi[45]*)
14184 export_dynamic_flag_spec=-rdynamic
14185 ;;
14186
14187 cygwin* | mingw* | pw32* | cegcc*)
14188 # When not using gcc, we currently assume that we are using
14189 # Microsoft Visual C++.
14190 # hardcode_libdir_flag_spec is actually meaningless, as there is
14191 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014192 case $cc_basename in
14193 cl*)
14194 # Native MSVC
14195 hardcode_libdir_flag_spec=' '
14196 allow_undefined_flag=unsupported
14197 always_export_symbols=yes
14198 file_list_spec='@'
14199 # Tell ltmain to make .lib files, not .a files.
14200 libext=lib
14201 # Tell ltmain to make .dll files, not .so files.
14202 shrext_cmds=".dll"
14203 # FIXME: Setting linknames here is a bad hack.
14204 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14205 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14206 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14207 else
14208 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14209 fi~
14210 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14211 linknames='
14212 # The linker will not automatically build a static lib if we build a DLL.
14213 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14214 enable_shared_with_static_runtimes=yes
14215 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14216 # Don't use ranlib
14217 old_postinstall_cmds='chmod 644 $oldlib'
14218 postlink_cmds='lt_outputfile="@OUTPUT@"~
14219 lt_tool_outputfile="@TOOL_OUTPUT@"~
14220 case $lt_outputfile in
14221 *.exe|*.EXE) ;;
14222 *)
14223 lt_outputfile="$lt_outputfile.exe"
14224 lt_tool_outputfile="$lt_tool_outputfile.exe"
14225 ;;
14226 esac~
14227 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14228 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14229 $RM "$lt_outputfile.manifest";
14230 fi'
14231 ;;
14232 *)
14233 # Assume MSVC wrapper
14234 hardcode_libdir_flag_spec=' '
14235 allow_undefined_flag=unsupported
14236 # Tell ltmain to make .lib files, not .a files.
14237 libext=lib
14238 # Tell ltmain to make .dll files, not .so files.
14239 shrext_cmds=".dll"
14240 # FIXME: Setting linknames here is a bad hack.
14241 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14242 # The linker will automatically build a .lib file if we build a DLL.
14243 old_archive_from_new_cmds='true'
14244 # FIXME: Should let the user specify the lib program.
14245 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14246 enable_shared_with_static_runtimes=yes
14247 ;;
14248 esac
cristy73bd4a52010-10-05 11:24:23 +000014249 ;;
14250
14251 darwin* | rhapsody*)
14252
14253
14254 archive_cmds_need_lc=no
14255 hardcode_direct=no
14256 hardcode_automatic=yes
14257 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014258 if test "$lt_cv_ld_force_load" = "yes"; then
14259 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\"`'
14260 else
14261 whole_archive_flag_spec=''
14262 fi
cristy73bd4a52010-10-05 11:24:23 +000014263 link_all_deplibs=yes
14264 allow_undefined_flag="$_lt_dar_allow_undefined"
14265 case $cc_basename in
14266 ifort*) _lt_dar_can_shared=yes ;;
14267 *) _lt_dar_can_shared=$GCC ;;
14268 esac
14269 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014270 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014271 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14272 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14273 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}"
14274 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}"
14275
14276 else
14277 ld_shlibs=no
14278 fi
14279
14280 ;;
14281
14282 dgux*)
14283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14284 hardcode_libdir_flag_spec='-L$libdir'
14285 hardcode_shlibpath_var=no
14286 ;;
14287
14288 freebsd1*)
14289 ld_shlibs=no
14290 ;;
14291
14292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14293 # support. Future versions do this automatically, but an explicit c++rt0.o
14294 # does not break anything, and helps significantly (at the cost of a little
14295 # extra space).
14296 freebsd2.2*)
14297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14298 hardcode_libdir_flag_spec='-R$libdir'
14299 hardcode_direct=yes
14300 hardcode_shlibpath_var=no
14301 ;;
14302
14303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14304 freebsd2*)
14305 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14306 hardcode_direct=yes
14307 hardcode_minus_L=yes
14308 hardcode_shlibpath_var=no
14309 ;;
14310
14311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14312 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014314 hardcode_libdir_flag_spec='-R$libdir'
14315 hardcode_direct=yes
14316 hardcode_shlibpath_var=no
14317 ;;
14318
14319 hpux9*)
14320 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014321 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 +000014322 else
14323 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'
14324 fi
14325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14326 hardcode_libdir_separator=:
14327 hardcode_direct=yes
14328
14329 # hardcode_minus_L: Not really in the search PATH,
14330 # but as the default location of the library.
14331 hardcode_minus_L=yes
14332 export_dynamic_flag_spec='${wl}-E'
14333 ;;
14334
14335 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014336 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014337 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 +000014338 else
14339 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14340 fi
14341 if test "$with_gnu_ld" = no; then
14342 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14343 hardcode_libdir_flag_spec_ld='+b $libdir'
14344 hardcode_libdir_separator=:
14345 hardcode_direct=yes
14346 hardcode_direct_absolute=yes
14347 export_dynamic_flag_spec='${wl}-E'
14348 # hardcode_minus_L: Not really in the search PATH,
14349 # but as the default location of the library.
14350 hardcode_minus_L=yes
14351 fi
14352 ;;
14353
14354 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014355 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014356 case $host_cpu in
14357 hppa*64*)
14358 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 ;;
14360 ia64*)
cristyda16f162011-02-19 23:52:17 +000014361 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014362 ;;
14363 *)
cristyda16f162011-02-19 23:52:17 +000014364 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 +000014365 ;;
14366 esac
14367 else
14368 case $host_cpu in
14369 hppa*64*)
14370 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14371 ;;
14372 ia64*)
14373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14374 ;;
14375 *)
cristy0c60a692010-11-04 01:09:47 +000014376
14377 # Older versions of the 11.00 compiler do not understand -b yet
14378 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14380$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014381if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014382 $as_echo_n "(cached) " >&6
14383else
14384 lt_cv_prog_compiler__b=no
14385 save_LDFLAGS="$LDFLAGS"
14386 LDFLAGS="$LDFLAGS -b"
14387 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14389 # The linker can only warn and ignore the option if not recognized
14390 # So say no if there are warnings
14391 if test -s conftest.err; then
14392 # Append any errors to the config.log.
14393 cat conftest.err 1>&5
14394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14396 if diff conftest.exp conftest.er2 >/dev/null; then
14397 lt_cv_prog_compiler__b=yes
14398 fi
14399 else
14400 lt_cv_prog_compiler__b=yes
14401 fi
14402 fi
14403 $RM -r conftest*
14404 LDFLAGS="$save_LDFLAGS"
14405
14406fi
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14408$as_echo "$lt_cv_prog_compiler__b" >&6; }
14409
14410if test x"$lt_cv_prog_compiler__b" = xyes; then
14411 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14412else
14413 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14414fi
14415
cristy73bd4a52010-10-05 11:24:23 +000014416 ;;
14417 esac
14418 fi
14419 if test "$with_gnu_ld" = no; then
14420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14421 hardcode_libdir_separator=:
14422
14423 case $host_cpu in
14424 hppa*64*|ia64*)
14425 hardcode_direct=no
14426 hardcode_shlibpath_var=no
14427 ;;
14428 *)
14429 hardcode_direct=yes
14430 hardcode_direct_absolute=yes
14431 export_dynamic_flag_spec='${wl}-E'
14432
14433 # hardcode_minus_L: Not really in the search PATH,
14434 # but as the default location of the library.
14435 hardcode_minus_L=yes
14436 ;;
14437 esac
14438 fi
14439 ;;
14440
14441 irix5* | irix6* | nonstopux*)
14442 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014443 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 +000014444 # Try to use the -exported_symbol ld option, if it does not
14445 # work, assume that -exports_file does not work either and
14446 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014447 # This should be the same for all languages, so no per-tag cache variable.
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14449$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14450if ${lt_cv_irix_exported_symbol+:} false; then :
14451 $as_echo_n "(cached) " >&6
14452else
14453 save_LDFLAGS="$LDFLAGS"
14454 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014456/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014457int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014458_ACEOF
14459if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014460 lt_cv_irix_exported_symbol=yes
14461else
14462 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014463fi
14464rm -f core conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014466 LDFLAGS="$save_LDFLAGS"
14467fi
14468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14469$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14470 if test "$lt_cv_irix_exported_symbol" = yes; then
14471 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'
14472 fi
cristy73bd4a52010-10-05 11:24:23 +000014473 else
cristy0c60a692010-11-04 01:09:47 +000014474 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'
14475 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 +000014476 fi
14477 archive_cmds_need_lc='no'
14478 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14479 hardcode_libdir_separator=:
14480 inherit_rpath=yes
14481 link_all_deplibs=yes
14482 ;;
14483
14484 netbsd*)
14485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14487 else
14488 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14489 fi
14490 hardcode_libdir_flag_spec='-R$libdir'
14491 hardcode_direct=yes
14492 hardcode_shlibpath_var=no
14493 ;;
14494
14495 newsos6)
14496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 hardcode_direct=yes
14498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14499 hardcode_libdir_separator=:
14500 hardcode_shlibpath_var=no
14501 ;;
14502
14503 *nto* | *qnx*)
14504 ;;
14505
14506 openbsd*)
14507 if test -f /usr/libexec/ld.so; then
14508 hardcode_direct=yes
14509 hardcode_shlibpath_var=no
14510 hardcode_direct_absolute=yes
14511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14514 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14515 export_dynamic_flag_spec='${wl}-E'
14516 else
14517 case $host_os in
14518 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14520 hardcode_libdir_flag_spec='-R$libdir'
14521 ;;
14522 *)
14523 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14524 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14525 ;;
14526 esac
14527 fi
14528 else
14529 ld_shlibs=no
14530 fi
14531 ;;
14532
14533 os2*)
14534 hardcode_libdir_flag_spec='-L$libdir'
14535 hardcode_minus_L=yes
14536 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014537 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 +000014538 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14539 ;;
14540
14541 osf3*)
14542 if test "$GCC" = yes; then
14543 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014544 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 +000014545 else
14546 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014547 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 +000014548 fi
14549 archive_cmds_need_lc='no'
14550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14551 hardcode_libdir_separator=:
14552 ;;
14553
14554 osf4* | osf5*) # as osf3* with the addition of -msym flag
14555 if test "$GCC" = yes; then
14556 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014557 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 +000014558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14559 else
14560 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014561 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 +000014562 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 +000014563 $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 +000014564
14565 # Both c and cxx compiler support -rpath directly
14566 hardcode_libdir_flag_spec='-rpath $libdir'
14567 fi
14568 archive_cmds_need_lc='no'
14569 hardcode_libdir_separator=:
14570 ;;
14571
14572 solaris*)
14573 no_undefined_flag=' -z defs'
14574 if test "$GCC" = yes; then
14575 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014576 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 +000014577 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 +000014578 $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 +000014579 else
14580 case `$CC -V 2>&1` in
14581 *"Compilers 5.0"*)
14582 wlarc=''
14583 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14584 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14586 ;;
14587 *)
14588 wlarc='${wl}'
14589 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14590 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14591 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14592 ;;
14593 esac
14594 fi
14595 hardcode_libdir_flag_spec='-R$libdir'
14596 hardcode_shlibpath_var=no
14597 case $host_os in
14598 solaris2.[0-5] | solaris2.[0-5].*) ;;
14599 *)
14600 # The compiler driver will combine and reorder linker options,
14601 # but understands `-z linker_flag'. GCC discards it without `$wl',
14602 # but is careful enough not to reorder.
14603 # Supported since Solaris 2.6 (maybe 2.5.1?)
14604 if test "$GCC" = yes; then
14605 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14606 else
14607 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14608 fi
14609 ;;
14610 esac
14611 link_all_deplibs=yes
14612 ;;
14613
14614 sunos4*)
14615 if test "x$host_vendor" = xsequent; then
14616 # Use $CC to link under sequent, because it throws in some extra .o
14617 # files that make .init and .fini sections work.
14618 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14619 else
14620 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14621 fi
14622 hardcode_libdir_flag_spec='-L$libdir'
14623 hardcode_direct=yes
14624 hardcode_minus_L=yes
14625 hardcode_shlibpath_var=no
14626 ;;
14627
14628 sysv4)
14629 case $host_vendor in
14630 sni)
14631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14632 hardcode_direct=yes # is this really true???
14633 ;;
14634 siemens)
14635 ## LD is ld it makes a PLAMLIB
14636 ## CC just makes a GrossModule.
14637 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14638 reload_cmds='$CC -r -o $output$reload_objs'
14639 hardcode_direct=no
14640 ;;
14641 motorola)
14642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14644 ;;
14645 esac
14646 runpath_var='LD_RUN_PATH'
14647 hardcode_shlibpath_var=no
14648 ;;
14649
14650 sysv4.3*)
14651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14652 hardcode_shlibpath_var=no
14653 export_dynamic_flag_spec='-Bexport'
14654 ;;
14655
14656 sysv4*MP*)
14657 if test -d /usr/nec; then
14658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14659 hardcode_shlibpath_var=no
14660 runpath_var=LD_RUN_PATH
14661 hardcode_runpath_var=yes
14662 ld_shlibs=yes
14663 fi
14664 ;;
14665
14666 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14667 no_undefined_flag='${wl}-z,text'
14668 archive_cmds_need_lc=no
14669 hardcode_shlibpath_var=no
14670 runpath_var='LD_RUN_PATH'
14671
14672 if test "$GCC" = yes; then
14673 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14674 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14675 else
14676 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14677 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678 fi
14679 ;;
14680
14681 sysv5* | sco3.2v5* | sco5v6*)
14682 # Note: We can NOT use -z defs as we might desire, because we do not
14683 # link with -lc, and that would cause any symbols used from libc to
14684 # always be unresolved, which means just about no library would
14685 # ever link correctly. If we're not using GNU ld we use -z text
14686 # though, which does catch some bad symbols but isn't as heavy-handed
14687 # as -z defs.
14688 no_undefined_flag='${wl}-z,text'
14689 allow_undefined_flag='${wl}-z,nodefs'
14690 archive_cmds_need_lc=no
14691 hardcode_shlibpath_var=no
14692 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14693 hardcode_libdir_separator=':'
14694 link_all_deplibs=yes
14695 export_dynamic_flag_spec='${wl}-Bexport'
14696 runpath_var='LD_RUN_PATH'
14697
14698 if test "$GCC" = yes; then
14699 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14700 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14701 else
14702 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14703 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 fi
14705 ;;
14706
14707 uts4*)
14708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14709 hardcode_libdir_flag_spec='-L$libdir'
14710 hardcode_shlibpath_var=no
14711 ;;
14712
14713 *)
14714 ld_shlibs=no
14715 ;;
14716 esac
14717
14718 if test x$host_vendor = xsni; then
14719 case $host in
14720 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14721 export_dynamic_flag_spec='${wl}-Blargedynsym'
14722 ;;
14723 esac
14724 fi
14725 fi
14726
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14728$as_echo "$ld_shlibs" >&6; }
14729test "$ld_shlibs" = no && can_build_shared=no
14730
14731with_gnu_ld=$with_gnu_ld
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747#
14748# Do we need to explicitly link libc?
14749#
14750case "x$archive_cmds_need_lc" in
14751x|xyes)
14752 # Assume -lc should be added
14753 archive_cmds_need_lc=yes
14754
14755 if test "$enable_shared" = yes && test "$GCC" = yes; then
14756 case $archive_cmds in
14757 *'~'*)
14758 # FIXME: we may have to deal with multi-command sequences.
14759 ;;
14760 '$CC '*)
14761 # Test whether the compiler implicitly links with -lc since on some
14762 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14763 # to ld, don't add -lc before -lgcc.
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14765$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014766if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014767 $as_echo_n "(cached) " >&6
14768else
14769 $RM conftest*
14770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014771
cristy0c60a692010-11-04 01:09:47 +000014772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000014773 (eval $ac_compile) 2>&5
14774 ac_status=$?
14775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000014777 soname=conftest
14778 lib=conftest
14779 libobjs=conftest.$ac_objext
14780 deplibs=
14781 wl=$lt_prog_compiler_wl
14782 pic_flag=$lt_prog_compiler_pic
14783 compiler_flags=-v
14784 linker_flags=-v
14785 verstring=
14786 output_objdir=.
14787 libname=conftest
14788 lt_save_allow_undefined_flag=$allow_undefined_flag
14789 allow_undefined_flag=
14790 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 +000014791 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14792 ac_status=$?
14793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14794 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000014795 then
14796 lt_cv_archive_cmds_need_lc=no
14797 else
14798 lt_cv_archive_cmds_need_lc=yes
14799 fi
14800 allow_undefined_flag=$lt_save_allow_undefined_flag
14801 else
14802 cat conftest.err 1>&5
14803 fi
14804 $RM conftest*
14805
14806fi
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14808$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14809 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000014810 ;;
14811 esac
14812 fi
14813 ;;
14814esac
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14973$as_echo_n "checking dynamic linker characteristics... " >&6; }
14974
14975if test "$GCC" = yes; then
14976 case $host_os in
14977 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14978 *) lt_awk_arg="/^libraries:/" ;;
14979 esac
cristy0c60a692010-11-04 01:09:47 +000014980 case $host_os in
14981 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14982 *) lt_sed_strip_eq="s,=/,/,g" ;;
14983 esac
14984 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14985 case $lt_search_path_spec in
14986 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000014987 # if the path contains ";" then we assume it to be the separator
14988 # otherwise default to the standard path separator (i.e. ":") - it is
14989 # assumed that no part of a normal pathname contains ";" but that should
14990 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000014991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14992 ;;
14993 *)
14994 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14995 ;;
14996 esac
cristy73bd4a52010-10-05 11:24:23 +000014997 # Ok, now we have the path, separated by spaces, we can step through it
14998 # and add multilib dir if necessary.
14999 lt_tmp_lt_search_path_spec=
15000 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15001 for lt_sys_path in $lt_search_path_spec; do
15002 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15003 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15004 else
15005 test -d "$lt_sys_path" && \
15006 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15007 fi
15008 done
cristy0c60a692010-11-04 01:09:47 +000015009 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015010BEGIN {RS=" "; FS="/|\n";} {
15011 lt_foo="";
15012 lt_count=0;
15013 for (lt_i = NF; lt_i > 0; lt_i--) {
15014 if ($lt_i != "" && $lt_i != ".") {
15015 if ($lt_i == "..") {
15016 lt_count++;
15017 } else {
15018 if (lt_count == 0) {
15019 lt_foo="/" $lt_i lt_foo;
15020 } else {
15021 lt_count--;
15022 }
15023 }
15024 }
15025 }
15026 if (lt_foo != "") { lt_freq[lt_foo]++; }
15027 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15028}'`
cristy0c60a692010-11-04 01:09:47 +000015029 # AWK program above erroneously prepends '/' to C:/dos/paths
15030 # for these hosts.
15031 case $host_os in
15032 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15033 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15034 esac
15035 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015036else
15037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15038fi
15039library_names_spec=
15040libname_spec='lib$name'
15041soname_spec=
15042shrext_cmds=".so"
15043postinstall_cmds=
15044postuninstall_cmds=
15045finish_cmds=
15046finish_eval=
15047shlibpath_var=
15048shlibpath_overrides_runpath=unknown
15049version_type=none
15050dynamic_linker="$host_os ld.so"
15051sys_lib_dlsearch_path_spec="/lib /usr/lib"
15052need_lib_prefix=unknown
15053hardcode_into_libs=no
15054
15055# when you set need_version to no, make sure it does not cause -set_version
15056# flags to be left without arguments
15057need_version=unknown
15058
15059case $host_os in
15060aix3*)
15061 version_type=linux
15062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15063 shlibpath_var=LIBPATH
15064
15065 # AIX 3 has no versioning support, so we append a major version to the name.
15066 soname_spec='${libname}${release}${shared_ext}$major'
15067 ;;
15068
15069aix[4-9]*)
15070 version_type=linux
15071 need_lib_prefix=no
15072 need_version=no
15073 hardcode_into_libs=yes
15074 if test "$host_cpu" = ia64; then
15075 # AIX 5 supports IA64
15076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15077 shlibpath_var=LD_LIBRARY_PATH
15078 else
15079 # With GCC up to 2.95.x, collect2 would create an import file
15080 # for dependence libraries. The import file would start with
15081 # the line `#! .'. This would cause the generated library to
15082 # depend on `.', always an invalid library. This was fixed in
15083 # development snapshots of GCC prior to 3.0.
15084 case $host_os in
15085 aix4 | aix4.[01] | aix4.[01].*)
15086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15087 echo ' yes '
15088 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15089 :
15090 else
15091 can_build_shared=no
15092 fi
15093 ;;
15094 esac
15095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15096 # soname into executable. Probably we can add versioning support to
15097 # collect2, so additional links can be useful in future.
15098 if test "$aix_use_runtimelinking" = yes; then
15099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15100 # instead of lib<name>.a to let people know that these are not
15101 # typical AIX shared libraries.
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 else
15104 # We preserve .a as extension for shared libraries through AIX4.2
15105 # and later when we are not doing run time linking.
15106 library_names_spec='${libname}${release}.a $libname.a'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 fi
15109 shlibpath_var=LIBPATH
15110 fi
15111 ;;
15112
15113amigaos*)
15114 case $host_cpu in
15115 powerpc)
15116 # Since July 2007 AmigaOS4 officially supports .so libraries.
15117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 ;;
15120 m68k)
15121 library_names_spec='$libname.ixlibrary $libname.a'
15122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015123 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 +000015124 ;;
15125 esac
15126 ;;
15127
15128beos*)
15129 library_names_spec='${libname}${shared_ext}'
15130 dynamic_linker="$host_os ld.so"
15131 shlibpath_var=LIBRARY_PATH
15132 ;;
15133
15134bsdi[45]*)
15135 version_type=linux
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15140 shlibpath_var=LD_LIBRARY_PATH
15141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15143 # the default ld.so.conf also contains /usr/contrib/lib and
15144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15145 # libtool to hard-code these into programs
15146 ;;
15147
15148cygwin* | mingw* | pw32* | cegcc*)
15149 version_type=windows
15150 shrext_cmds=".dll"
15151 need_version=no
15152 need_lib_prefix=no
15153
cristyda16f162011-02-19 23:52:17 +000015154 case $GCC,$cc_basename in
15155 yes,*)
15156 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015157 library_names_spec='$libname.dll.a'
15158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15159 postinstall_cmds='base_file=`basename \${file}`~
15160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15161 dldir=$destdir/`dirname \$dlpath`~
15162 test -d \$dldir || mkdir -p \$dldir~
15163 $install_prog $dir/$dlname \$dldir/$dlname~
15164 chmod a+x \$dldir/$dlname~
15165 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15166 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15167 fi'
15168 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15169 dlpath=$dir/\$dldll~
15170 $RM \$dlpath'
15171 shlibpath_overrides_runpath=yes
15172
15173 case $host_os in
15174 cygwin*)
15175 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15176 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015177
15178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015179 ;;
15180 mingw* | cegcc*)
15181 # MinGW DLLs use traditional 'lib' prefix
15182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015183 ;;
15184 pw32*)
15185 # pw32 DLLs use 'pw' prefix rather than 'lib'
15186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187 ;;
15188 esac
cristyda16f162011-02-19 23:52:17 +000015189 dynamic_linker='Win32 ld.exe'
15190 ;;
15191
15192 *,cl*)
15193 # Native MSVC
15194 libname_spec='$name'
15195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15196 library_names_spec='${libname}.dll.lib'
15197
15198 case $build_os in
15199 mingw*)
15200 sys_lib_search_path_spec=
15201 lt_save_ifs=$IFS
15202 IFS=';'
15203 for lt_path in $LIB
15204 do
15205 IFS=$lt_save_ifs
15206 # Let DOS variable expansion print the short 8.3 style file name.
15207 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15208 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15209 done
15210 IFS=$lt_save_ifs
15211 # Convert to MSYS style.
15212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15213 ;;
15214 cygwin*)
15215 # Convert to unix form, then to dos form, then back to unix form
15216 # but this time dos style (no spaces!) so that the unix form looks
15217 # like /cygdrive/c/PROGRA~1:/cygdr...
15218 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15219 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15220 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15221 ;;
15222 *)
15223 sys_lib_search_path_spec="$LIB"
15224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15225 # It is most probably a Windows format PATH.
15226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15227 else
15228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15229 fi
15230 # FIXME: find the short name or the path components, as spaces are
15231 # common. (e.g. "Program Files" -> "PROGRA~1")
15232 ;;
15233 esac
15234
15235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236 postinstall_cmds='base_file=`basename \${file}`~
15237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15238 dldir=$destdir/`dirname \$dlpath`~
15239 test -d \$dldir || mkdir -p \$dldir~
15240 $install_prog $dir/$dlname \$dldir/$dlname'
15241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15242 dlpath=$dir/\$dldll~
15243 $RM \$dlpath'
15244 shlibpath_overrides_runpath=yes
15245 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015246 ;;
15247
15248 *)
cristyda16f162011-02-19 23:52:17 +000015249 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015250 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015251 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015252 ;;
15253 esac
cristy73bd4a52010-10-05 11:24:23 +000015254 # FIXME: first we should search . and the directory the executable is in
15255 shlibpath_var=PATH
15256 ;;
15257
15258darwin* | rhapsody*)
15259 dynamic_linker="$host_os dyld"
15260 version_type=darwin
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15264 soname_spec='${libname}${release}${major}$shared_ext'
15265 shlibpath_overrides_runpath=yes
15266 shlibpath_var=DYLD_LIBRARY_PATH
15267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15268
15269 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15270 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15271 ;;
15272
15273dgux*)
15274 version_type=linux
15275 need_lib_prefix=no
15276 need_version=no
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15278 soname_spec='${libname}${release}${shared_ext}$major'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 ;;
15281
15282freebsd1*)
15283 dynamic_linker=no
15284 ;;
15285
15286freebsd* | dragonfly*)
15287 # DragonFly does not have aout. When/if they implement a new
15288 # versioning mechanism, adjust this.
15289 if test -x /usr/bin/objformat; then
15290 objformat=`/usr/bin/objformat`
15291 else
15292 case $host_os in
15293 freebsd[123]*) objformat=aout ;;
15294 *) objformat=elf ;;
15295 esac
15296 fi
15297 version_type=freebsd-$objformat
15298 case $version_type in
15299 freebsd-elf*)
15300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15301 need_version=no
15302 need_lib_prefix=no
15303 ;;
15304 freebsd-*)
15305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15306 need_version=yes
15307 ;;
15308 esac
15309 shlibpath_var=LD_LIBRARY_PATH
15310 case $host_os in
15311 freebsd2*)
15312 shlibpath_overrides_runpath=yes
15313 ;;
15314 freebsd3.[01]* | freebsdelf3.[01]*)
15315 shlibpath_overrides_runpath=yes
15316 hardcode_into_libs=yes
15317 ;;
15318 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15319 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15320 shlibpath_overrides_runpath=no
15321 hardcode_into_libs=yes
15322 ;;
15323 *) # from 4.6 on, and DragonFly
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15326 ;;
15327 esac
15328 ;;
15329
15330gnu*)
15331 version_type=linux
15332 need_lib_prefix=no
15333 need_version=no
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 hardcode_into_libs=yes
15338 ;;
15339
cristy0c60a692010-11-04 01:09:47 +000015340haiku*)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 dynamic_linker="$host_os runtime_loader"
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 shlibpath_var=LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15349 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15350 hardcode_into_libs=yes
15351 ;;
15352
cristy73bd4a52010-10-05 11:24:23 +000015353hpux9* | hpux10* | hpux11*)
15354 # Give a soname corresponding to the major version so that dld.sl refuses to
15355 # link against other versions.
15356 version_type=sunos
15357 need_lib_prefix=no
15358 need_version=no
15359 case $host_cpu in
15360 ia64*)
15361 shrext_cmds='.so'
15362 hardcode_into_libs=yes
15363 dynamic_linker="$host_os dld.so"
15364 shlibpath_var=LD_LIBRARY_PATH
15365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 if test "X$HPUX_IA64_MODE" = X32; then
15369 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15370 else
15371 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15372 fi
15373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15374 ;;
15375 hppa*64*)
15376 shrext_cmds='.sl'
15377 hardcode_into_libs=yes
15378 dynamic_linker="$host_os dld.sl"
15379 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15380 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15384 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15385 ;;
15386 *)
15387 shrext_cmds='.sl'
15388 dynamic_linker="$host_os dld.sl"
15389 shlibpath_var=SHLIB_PATH
15390 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 ;;
15394 esac
cristy0c60a692010-11-04 01:09:47 +000015395 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015396 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015397 # or fails outright, so override atomically:
15398 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015399 ;;
15400
15401interix[3-9]*)
15402 version_type=linux
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15406 soname_spec='${libname}${release}${shared_ext}$major'
15407 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=no
15410 hardcode_into_libs=yes
15411 ;;
15412
15413irix5* | irix6* | nonstopux*)
15414 case $host_os in
15415 nonstopux*) version_type=nonstopux ;;
15416 *)
15417 if test "$lt_cv_prog_gnu_ld" = yes; then
15418 version_type=linux
15419 else
15420 version_type=irix
15421 fi ;;
15422 esac
15423 need_lib_prefix=no
15424 need_version=no
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15427 case $host_os in
15428 irix5* | nonstopux*)
15429 libsuff= shlibsuff=
15430 ;;
15431 *)
15432 case $LD in # libtool.m4 will add one of these switches to LD
15433 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15434 libsuff= shlibsuff= libmagic=32-bit;;
15435 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15436 libsuff=32 shlibsuff=N32 libmagic=N32;;
15437 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15438 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15439 *) libsuff= shlibsuff= libmagic=never-match;;
15440 esac
15441 ;;
15442 esac
15443 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15444 shlibpath_overrides_runpath=no
15445 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15446 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15447 hardcode_into_libs=yes
15448 ;;
15449
15450# No shared lib support for Linux oldld, aout, or coff.
15451linux*oldld* | linux*aout* | linux*coff*)
15452 dynamic_linker=no
15453 ;;
15454
15455# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000015456linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015457 version_type=linux
15458 need_lib_prefix=no
15459 need_version=no
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015465
cristy73bd4a52010-10-05 11:24:23 +000015466 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015467 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015468 $as_echo_n "(cached) " >&6
15469else
15470 lt_cv_shlibpath_overrides_runpath=no
15471 save_LDFLAGS=$LDFLAGS
15472 save_libdir=$libdir
15473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015476/* end confdefs.h. */
15477
15478int
15479main ()
15480{
15481
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486if ac_fn_c_try_link "$LINENO"; then :
15487 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015488 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015489fi
15490fi
15491rm -f core conftest.err conftest.$ac_objext \
15492 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015493 LDFLAGS=$save_LDFLAGS
15494 libdir=$save_libdir
15495
15496fi
15497
15498 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015499
15500 # This implies no fast_install, which is unacceptable.
15501 # Some rework will be needed to allow for fast_install
15502 # before this can be enabled.
15503 hardcode_into_libs=yes
15504
15505 # Add ABI-specific directories to the system library path.
15506 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15507
15508 # Append ld.so.conf contents to the search path
15509 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015510 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 +000015511 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015512
cristy73bd4a52010-10-05 11:24:23 +000015513 fi
15514
15515 # We used to test for /lib/ld.so.1 and disable shared libraries on
15516 # powerpc, because MkLinux only supported shared libraries with the
15517 # GNU dynamic linker. Since this was broken with cross compilers,
15518 # most powerpc-linux boxes support dynamic linking these days and
15519 # people can always --disable-shared, the test was removed, and we
15520 # assume the GNU/Linux dynamic linker is in use.
15521 dynamic_linker='GNU/Linux ld.so'
15522 ;;
15523
15524netbsd*)
15525 version_type=sunos
15526 need_lib_prefix=no
15527 need_version=no
15528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15531 dynamic_linker='NetBSD (a.out) ld.so'
15532 else
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 dynamic_linker='NetBSD ld.elf_so'
15536 fi
15537 shlibpath_var=LD_LIBRARY_PATH
15538 shlibpath_overrides_runpath=yes
15539 hardcode_into_libs=yes
15540 ;;
15541
15542newsos6)
15543 version_type=linux
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15545 shlibpath_var=LD_LIBRARY_PATH
15546 shlibpath_overrides_runpath=yes
15547 ;;
15548
15549*nto* | *qnx*)
15550 version_type=qnx
15551 need_lib_prefix=no
15552 need_version=no
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=no
15557 hardcode_into_libs=yes
15558 dynamic_linker='ldqnx.so'
15559 ;;
15560
15561openbsd*)
15562 version_type=sunos
15563 sys_lib_dlsearch_path_spec="/usr/lib"
15564 need_lib_prefix=no
15565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15566 case $host_os in
15567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15568 *) need_version=no ;;
15569 esac
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15572 shlibpath_var=LD_LIBRARY_PATH
15573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15574 case $host_os in
15575 openbsd2.[89] | openbsd2.[89].*)
15576 shlibpath_overrides_runpath=no
15577 ;;
15578 *)
15579 shlibpath_overrides_runpath=yes
15580 ;;
15581 esac
15582 else
15583 shlibpath_overrides_runpath=yes
15584 fi
15585 ;;
15586
15587os2*)
15588 libname_spec='$name'
15589 shrext_cmds=".dll"
15590 need_lib_prefix=no
15591 library_names_spec='$libname${shared_ext} $libname.a'
15592 dynamic_linker='OS/2 ld.exe'
15593 shlibpath_var=LIBPATH
15594 ;;
15595
15596osf3* | osf4* | osf5*)
15597 version_type=osf
15598 need_lib_prefix=no
15599 need_version=no
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 shlibpath_var=LD_LIBRARY_PATH
15603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15605 ;;
15606
15607rdos*)
15608 dynamic_linker=no
15609 ;;
15610
15611solaris*)
15612 version_type=linux
15613 need_lib_prefix=no
15614 need_version=no
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616 soname_spec='${libname}${release}${shared_ext}$major'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes
15619 hardcode_into_libs=yes
15620 # ldd complains unless libraries are executable
15621 postinstall_cmds='chmod +x $lib'
15622 ;;
15623
15624sunos4*)
15625 version_type=sunos
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 shlibpath_overrides_runpath=yes
15630 if test "$with_gnu_ld" = yes; then
15631 need_lib_prefix=no
15632 fi
15633 need_version=yes
15634 ;;
15635
15636sysv4 | sysv4.3*)
15637 version_type=linux
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15639 soname_spec='${libname}${release}${shared_ext}$major'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 case $host_vendor in
15642 sni)
15643 shlibpath_overrides_runpath=no
15644 need_lib_prefix=no
15645 runpath_var=LD_RUN_PATH
15646 ;;
15647 siemens)
15648 need_lib_prefix=no
15649 ;;
15650 motorola)
15651 need_lib_prefix=no
15652 need_version=no
15653 shlibpath_overrides_runpath=no
15654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15655 ;;
15656 esac
15657 ;;
15658
15659sysv4*MP*)
15660 if test -d /usr/nec ;then
15661 version_type=linux
15662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15663 soname_spec='$libname${shared_ext}.$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 fi
15666 ;;
15667
15668sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15669 version_type=freebsd-elf
15670 need_lib_prefix=no
15671 need_version=no
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=yes
15676 hardcode_into_libs=yes
15677 if test "$with_gnu_ld" = yes; then
15678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15679 else
15680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15681 case $host_os in
15682 sco3.2v5*)
15683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15684 ;;
15685 esac
15686 fi
15687 sys_lib_dlsearch_path_spec='/usr/lib'
15688 ;;
15689
15690tpf*)
15691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15692 version_type=linux
15693 need_lib_prefix=no
15694 need_version=no
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=no
15698 hardcode_into_libs=yes
15699 ;;
15700
15701uts4*)
15702 version_type=linux
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 ;;
15707
15708*)
15709 dynamic_linker=no
15710 ;;
15711esac
15712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15713$as_echo "$dynamic_linker" >&6; }
15714test "$dynamic_linker" = no && can_build_shared=no
15715
15716variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15717if test "$GCC" = yes; then
15718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15719fi
15720
15721if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15723fi
15724if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15726fi
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
cristy0c60a692010-11-04 01:09:47 +000015814
15815
15816
15817
15818
cristy73bd4a52010-10-05 11:24:23 +000015819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15820$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15821hardcode_action=
15822if test -n "$hardcode_libdir_flag_spec" ||
15823 test -n "$runpath_var" ||
15824 test "X$hardcode_automatic" = "Xyes" ; then
15825
15826 # We can hardcode non-existent directories.
15827 if test "$hardcode_direct" != no &&
15828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15829 # have to relink, otherwise we might link with an installed library
15830 # when we should be linking with a yet-to-be-installed one
15831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15832 test "$hardcode_minus_L" != no; then
15833 # Linking always hardcodes the temporary library directory.
15834 hardcode_action=relink
15835 else
15836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15837 hardcode_action=immediate
15838 fi
15839else
15840 # We cannot hardcode anything, or else we can only hardcode existing
15841 # directories.
15842 hardcode_action=unsupported
15843fi
15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15845$as_echo "$hardcode_action" >&6; }
15846
15847if test "$hardcode_action" = relink ||
15848 test "$inherit_rpath" = yes; then
15849 # Fast installation is not supported
15850 enable_fast_install=no
15851elif test "$shlibpath_overrides_runpath" = yes ||
15852 test "$enable_shared" = no; then
15853 # Fast installation is not necessary
15854 enable_fast_install=needless
15855fi
15856
15857
15858
15859
15860
15861
15862 if test "x$enable_dlopen" != xyes; then
15863 enable_dlopen=unknown
15864 enable_dlopen_self=unknown
15865 enable_dlopen_self_static=unknown
15866else
15867 lt_cv_dlopen=no
15868 lt_cv_dlopen_libs=
15869
15870 case $host_os in
15871 beos*)
15872 lt_cv_dlopen="load_add_on"
15873 lt_cv_dlopen_libs=
15874 lt_cv_dlopen_self=yes
15875 ;;
15876
15877 mingw* | pw32* | cegcc*)
15878 lt_cv_dlopen="LoadLibrary"
15879 lt_cv_dlopen_libs=
15880 ;;
15881
15882 cygwin*)
15883 lt_cv_dlopen="dlopen"
15884 lt_cv_dlopen_libs=
15885 ;;
15886
15887 darwin*)
15888 # if libdl is installed we need to link against it
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15890$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015891if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015892 $as_echo_n "(cached) " >&6
15893else
15894 ac_check_lib_save_LIBS=$LIBS
15895LIBS="-ldl $LIBS"
15896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h. */
15898
15899/* Override any GCC internal prototype to avoid an error.
15900 Use char because int might match the return type of a GCC
15901 builtin and then its argument prototype would still apply. */
15902#ifdef __cplusplus
15903extern "C"
15904#endif
15905char dlopen ();
15906int
15907main ()
15908{
15909return dlopen ();
15910 ;
15911 return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_link "$LINENO"; then :
15915 ac_cv_lib_dl_dlopen=yes
15916else
15917 ac_cv_lib_dl_dlopen=no
15918fi
15919rm -f core conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
15921LIBS=$ac_check_lib_save_LIBS
15922fi
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15924$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000015925if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15927else
15928
15929 lt_cv_dlopen="dyld"
15930 lt_cv_dlopen_libs=
15931 lt_cv_dlopen_self=yes
15932
15933fi
15934
15935 ;;
15936
15937 *)
15938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000015939if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015940 lt_cv_dlopen="shl_load"
15941else
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15943$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015944if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015945 $as_echo_n "(cached) " >&6
15946else
15947 ac_check_lib_save_LIBS=$LIBS
15948LIBS="-ldld $LIBS"
15949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950/* end confdefs.h. */
15951
15952/* Override any GCC internal prototype to avoid an error.
15953 Use char because int might match the return type of a GCC
15954 builtin and then its argument prototype would still apply. */
15955#ifdef __cplusplus
15956extern "C"
15957#endif
15958char shl_load ();
15959int
15960main ()
15961{
15962return shl_load ();
15963 ;
15964 return 0;
15965}
15966_ACEOF
15967if ac_fn_c_try_link "$LINENO"; then :
15968 ac_cv_lib_dld_shl_load=yes
15969else
15970 ac_cv_lib_dld_shl_load=no
15971fi
15972rm -f core conftest.err conftest.$ac_objext \
15973 conftest$ac_exeext conftest.$ac_ext
15974LIBS=$ac_check_lib_save_LIBS
15975fi
15976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15977$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000015978if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15980else
15981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000015982if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015983 lt_cv_dlopen="dlopen"
15984else
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15986$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015987if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015988 $as_echo_n "(cached) " >&6
15989else
15990 ac_check_lib_save_LIBS=$LIBS
15991LIBS="-ldl $LIBS"
15992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993/* end confdefs.h. */
15994
15995/* Override any GCC internal prototype to avoid an error.
15996 Use char because int might match the return type of a GCC
15997 builtin and then its argument prototype would still apply. */
15998#ifdef __cplusplus
15999extern "C"
16000#endif
16001char dlopen ();
16002int
16003main ()
16004{
16005return dlopen ();
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010if ac_fn_c_try_link "$LINENO"; then :
16011 ac_cv_lib_dl_dlopen=yes
16012else
16013 ac_cv_lib_dl_dlopen=no
16014fi
16015rm -f core conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16017LIBS=$ac_check_lib_save_LIBS
16018fi
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16020$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016021if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16023else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16025$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016026if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016027 $as_echo_n "(cached) " >&6
16028else
16029 ac_check_lib_save_LIBS=$LIBS
16030LIBS="-lsvld $LIBS"
16031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h. */
16033
16034/* Override any GCC internal prototype to avoid an error.
16035 Use char because int might match the return type of a GCC
16036 builtin and then its argument prototype would still apply. */
16037#ifdef __cplusplus
16038extern "C"
16039#endif
16040char dlopen ();
16041int
16042main ()
16043{
16044return dlopen ();
16045 ;
16046 return 0;
16047}
16048_ACEOF
16049if ac_fn_c_try_link "$LINENO"; then :
16050 ac_cv_lib_svld_dlopen=yes
16051else
16052 ac_cv_lib_svld_dlopen=no
16053fi
16054rm -f core conftest.err conftest.$ac_objext \
16055 conftest$ac_exeext conftest.$ac_ext
16056LIBS=$ac_check_lib_save_LIBS
16057fi
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16059$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016060if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16062else
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16064$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016065if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016066 $as_echo_n "(cached) " >&6
16067else
16068 ac_check_lib_save_LIBS=$LIBS
16069LIBS="-ldld $LIBS"
16070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071/* end confdefs.h. */
16072
16073/* Override any GCC internal prototype to avoid an error.
16074 Use char because int might match the return type of a GCC
16075 builtin and then its argument prototype would still apply. */
16076#ifdef __cplusplus
16077extern "C"
16078#endif
16079char dld_link ();
16080int
16081main ()
16082{
16083return dld_link ();
16084 ;
16085 return 0;
16086}
16087_ACEOF
16088if ac_fn_c_try_link "$LINENO"; then :
16089 ac_cv_lib_dld_dld_link=yes
16090else
16091 ac_cv_lib_dld_dld_link=no
16092fi
16093rm -f core conftest.err conftest.$ac_objext \
16094 conftest$ac_exeext conftest.$ac_ext
16095LIBS=$ac_check_lib_save_LIBS
16096fi
16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16098$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016099if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16101fi
16102
16103
16104fi
16105
16106
16107fi
16108
16109
16110fi
16111
16112
16113fi
16114
16115
16116fi
16117
16118 ;;
16119 esac
16120
16121 if test "x$lt_cv_dlopen" != xno; then
16122 enable_dlopen=yes
16123 else
16124 enable_dlopen=no
16125 fi
16126
16127 case $lt_cv_dlopen in
16128 dlopen)
16129 save_CPPFLAGS="$CPPFLAGS"
16130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16131
16132 save_LDFLAGS="$LDFLAGS"
16133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16134
16135 save_LIBS="$LIBS"
16136 LIBS="$lt_cv_dlopen_libs $LIBS"
16137
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16139$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016140if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016141 $as_echo_n "(cached) " >&6
16142else
16143 if test "$cross_compiling" = yes; then :
16144 lt_cv_dlopen_self=cross
16145else
16146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16147 lt_status=$lt_dlunknown
16148 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016149#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016150#include "confdefs.h"
16151
16152#if HAVE_DLFCN_H
16153#include <dlfcn.h>
16154#endif
16155
16156#include <stdio.h>
16157
16158#ifdef RTLD_GLOBAL
16159# define LT_DLGLOBAL RTLD_GLOBAL
16160#else
16161# ifdef DL_GLOBAL
16162# define LT_DLGLOBAL DL_GLOBAL
16163# else
16164# define LT_DLGLOBAL 0
16165# endif
16166#endif
16167
16168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16169 find out it does not work in some platform. */
16170#ifndef LT_DLLAZY_OR_NOW
16171# ifdef RTLD_LAZY
16172# define LT_DLLAZY_OR_NOW RTLD_LAZY
16173# else
16174# ifdef DL_LAZY
16175# define LT_DLLAZY_OR_NOW DL_LAZY
16176# else
16177# ifdef RTLD_NOW
16178# define LT_DLLAZY_OR_NOW RTLD_NOW
16179# else
16180# ifdef DL_NOW
16181# define LT_DLLAZY_OR_NOW DL_NOW
16182# else
16183# define LT_DLLAZY_OR_NOW 0
16184# endif
16185# endif
16186# endif
16187# endif
16188#endif
16189
cristy0c60a692010-11-04 01:09:47 +000016190/* When -fvisbility=hidden is used, assume the code has been annotated
16191 correspondingly for the symbols needed. */
16192#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016193int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016194#endif
16195
cristyda16f162011-02-19 23:52:17 +000016196int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016197int main ()
16198{
16199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16200 int status = $lt_dlunknown;
16201
16202 if (self)
16203 {
16204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016205 else
16206 {
16207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16208 else puts (dlerror ());
16209 }
cristy73bd4a52010-10-05 11:24:23 +000016210 /* dlclose (self); */
16211 }
16212 else
16213 puts (dlerror ());
16214
16215 return status;
16216}
16217_LT_EOF
16218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16219 (eval $ac_link) 2>&5
16220 ac_status=$?
16221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16223 (./conftest; exit; ) >&5 2>/dev/null
16224 lt_status=$?
16225 case x$lt_status in
16226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16229 esac
16230 else :
16231 # compilation failed
16232 lt_cv_dlopen_self=no
16233 fi
16234fi
16235rm -fr conftest*
16236
16237
16238fi
16239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16240$as_echo "$lt_cv_dlopen_self" >&6; }
16241
16242 if test "x$lt_cv_dlopen_self" = xyes; then
16243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16245$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016246if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016247 $as_echo_n "(cached) " >&6
16248else
16249 if test "$cross_compiling" = yes; then :
16250 lt_cv_dlopen_self_static=cross
16251else
16252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16253 lt_status=$lt_dlunknown
16254 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016255#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016256#include "confdefs.h"
16257
16258#if HAVE_DLFCN_H
16259#include <dlfcn.h>
16260#endif
16261
16262#include <stdio.h>
16263
16264#ifdef RTLD_GLOBAL
16265# define LT_DLGLOBAL RTLD_GLOBAL
16266#else
16267# ifdef DL_GLOBAL
16268# define LT_DLGLOBAL DL_GLOBAL
16269# else
16270# define LT_DLGLOBAL 0
16271# endif
16272#endif
16273
16274/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16275 find out it does not work in some platform. */
16276#ifndef LT_DLLAZY_OR_NOW
16277# ifdef RTLD_LAZY
16278# define LT_DLLAZY_OR_NOW RTLD_LAZY
16279# else
16280# ifdef DL_LAZY
16281# define LT_DLLAZY_OR_NOW DL_LAZY
16282# else
16283# ifdef RTLD_NOW
16284# define LT_DLLAZY_OR_NOW RTLD_NOW
16285# else
16286# ifdef DL_NOW
16287# define LT_DLLAZY_OR_NOW DL_NOW
16288# else
16289# define LT_DLLAZY_OR_NOW 0
16290# endif
16291# endif
16292# endif
16293# endif
16294#endif
16295
cristy0c60a692010-11-04 01:09:47 +000016296/* When -fvisbility=hidden is used, assume the code has been annotated
16297 correspondingly for the symbols needed. */
16298#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016299int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016300#endif
16301
cristyda16f162011-02-19 23:52:17 +000016302int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016303int main ()
16304{
16305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16306 int status = $lt_dlunknown;
16307
16308 if (self)
16309 {
16310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016311 else
16312 {
16313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16314 else puts (dlerror ());
16315 }
cristy73bd4a52010-10-05 11:24:23 +000016316 /* dlclose (self); */
16317 }
16318 else
16319 puts (dlerror ());
16320
16321 return status;
16322}
16323_LT_EOF
16324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16325 (eval $ac_link) 2>&5
16326 ac_status=$?
16327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16329 (./conftest; exit; ) >&5 2>/dev/null
16330 lt_status=$?
16331 case x$lt_status in
16332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16335 esac
16336 else :
16337 # compilation failed
16338 lt_cv_dlopen_self_static=no
16339 fi
16340fi
16341rm -fr conftest*
16342
16343
16344fi
16345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16346$as_echo "$lt_cv_dlopen_self_static" >&6; }
16347 fi
16348
16349 CPPFLAGS="$save_CPPFLAGS"
16350 LDFLAGS="$save_LDFLAGS"
16351 LIBS="$save_LIBS"
16352 ;;
16353 esac
16354
16355 case $lt_cv_dlopen_self in
16356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16357 *) enable_dlopen_self=unknown ;;
16358 esac
16359
16360 case $lt_cv_dlopen_self_static in
16361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16362 *) enable_dlopen_self_static=unknown ;;
16363 esac
16364fi
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382striplib=
16383old_striplib=
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16385$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16386if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16390$as_echo "yes" >&6; }
16391else
16392# FIXME - insert some real tests, host_os isn't really good enough
16393 case $host_os in
16394 darwin*)
16395 if test -n "$STRIP" ; then
16396 striplib="$STRIP -x"
16397 old_striplib="$STRIP -S"
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16399$as_echo "yes" >&6; }
16400 else
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402$as_echo "no" >&6; }
16403 fi
16404 ;;
16405 *)
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407$as_echo "no" >&6; }
16408 ;;
16409 esac
16410fi
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423 # Report which library types will actually be built
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16425$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16427$as_echo "$can_build_shared" >&6; }
16428
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16430$as_echo_n "checking whether to build shared libraries... " >&6; }
16431 test "$can_build_shared" = "no" && enable_shared=no
16432
16433 # On AIX, shared libraries and static libraries use the same namespace, and
16434 # are all built from PIC.
16435 case $host_os in
16436 aix3*)
16437 test "$enable_shared" = yes && enable_static=no
16438 if test -n "$RANLIB"; then
16439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16440 postinstall_cmds='$RANLIB $lib'
16441 fi
16442 ;;
16443
16444 aix[4-9]*)
16445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16446 test "$enable_shared" = yes && enable_static=no
16447 fi
16448 ;;
16449 esac
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16451$as_echo "$enable_shared" >&6; }
16452
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16454$as_echo_n "checking whether to build static libraries... " >&6; }
16455 # Make sure either enable_shared or enable_static is yes.
16456 test "$enable_shared" = yes || enable_static=yes
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16458$as_echo "$enable_static" >&6; }
16459
16460
16461
16462
16463fi
16464ac_ext=c
16465ac_cpp='$CPP $CPPFLAGS'
16466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16468ac_compiler_gnu=$ac_cv_c_compiler_gnu
16469
16470CC="$lt_save_CC"
16471
cristy0c60a692010-11-04 01:09:47 +000016472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16474 (test "X$CXX" != "Xg++"))) ; then
16475 ac_ext=cpp
16476ac_cpp='$CXXCPP $CPPFLAGS'
16477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16481$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16482if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016483 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016484 $as_echo_n "(cached) " >&6
16485else
16486 # Double quotes because CXXCPP needs to be expanded
16487 for CXXCPP in "$CXX -E" "/lib/cpp"
16488 do
16489 ac_preproc_ok=false
16490for ac_cxx_preproc_warn_flag in '' yes
16491do
16492 # Use a header file that comes with gcc, so configuring glibc
16493 # with a fresh cross-compiler works.
16494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16495 # <limits.h> exists even on freestanding compilers.
16496 # On the NeXT, cc -E runs the code through the compiler's parser,
16497 # not just through cpp. "Syntax error" is here to catch this case.
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499/* end confdefs.h. */
16500#ifdef __STDC__
16501# include <limits.h>
16502#else
16503# include <assert.h>
16504#endif
16505 Syntax error
16506_ACEOF
16507if ac_fn_cxx_try_cpp "$LINENO"; then :
16508
16509else
16510 # Broken: fails on valid input.
16511continue
16512fi
cristyda16f162011-02-19 23:52:17 +000016513rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016514
16515 # OK, works on sane cases. Now check whether nonexistent headers
16516 # can be detected and how.
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518/* end confdefs.h. */
16519#include <ac_nonexistent.h>
16520_ACEOF
16521if ac_fn_cxx_try_cpp "$LINENO"; then :
16522 # Broken: success on invalid input.
16523continue
16524else
16525 # Passes both tests.
16526ac_preproc_ok=:
16527break
16528fi
cristyda16f162011-02-19 23:52:17 +000016529rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016530
16531done
16532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016533rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016534if $ac_preproc_ok; then :
16535 break
16536fi
16537
16538 done
16539 ac_cv_prog_CXXCPP=$CXXCPP
16540
16541fi
16542 CXXCPP=$ac_cv_prog_CXXCPP
16543else
16544 ac_cv_prog_CXXCPP=$CXXCPP
16545fi
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16547$as_echo "$CXXCPP" >&6; }
16548ac_preproc_ok=false
16549for ac_cxx_preproc_warn_flag in '' yes
16550do
16551 # Use a header file that comes with gcc, so configuring glibc
16552 # with a fresh cross-compiler works.
16553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554 # <limits.h> exists even on freestanding compilers.
16555 # On the NeXT, cc -E runs the code through the compiler's parser,
16556 # not just through cpp. "Syntax error" is here to catch this case.
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558/* end confdefs.h. */
16559#ifdef __STDC__
16560# include <limits.h>
16561#else
16562# include <assert.h>
16563#endif
16564 Syntax error
16565_ACEOF
16566if ac_fn_cxx_try_cpp "$LINENO"; then :
16567
16568else
16569 # Broken: fails on valid input.
16570continue
16571fi
cristyda16f162011-02-19 23:52:17 +000016572rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016573
16574 # OK, works on sane cases. Now check whether nonexistent headers
16575 # can be detected and how.
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577/* end confdefs.h. */
16578#include <ac_nonexistent.h>
16579_ACEOF
16580if ac_fn_cxx_try_cpp "$LINENO"; then :
16581 # Broken: success on invalid input.
16582continue
16583else
16584 # Passes both tests.
16585ac_preproc_ok=:
16586break
16587fi
cristyda16f162011-02-19 23:52:17 +000016588rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016589
16590done
16591# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016592rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016593if $ac_preproc_ok; then :
16594
16595else
16596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16598as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16599See \`config.log' for more details" "$LINENO" 5; }
16600fi
16601
16602ac_ext=c
16603ac_cpp='$CPP $CPPFLAGS'
16604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16606ac_compiler_gnu=$ac_cv_c_compiler_gnu
16607
16608else
16609 _lt_caught_CXX_error=yes
16610fi
cristy73bd4a52010-10-05 11:24:23 +000016611
16612ac_ext=cpp
16613ac_cpp='$CXXCPP $CPPFLAGS'
16614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16617
16618archive_cmds_need_lc_CXX=no
16619allow_undefined_flag_CXX=
16620always_export_symbols_CXX=no
16621archive_expsym_cmds_CXX=
16622compiler_needs_object_CXX=no
16623export_dynamic_flag_spec_CXX=
16624hardcode_direct_CXX=no
16625hardcode_direct_absolute_CXX=no
16626hardcode_libdir_flag_spec_CXX=
16627hardcode_libdir_flag_spec_ld_CXX=
16628hardcode_libdir_separator_CXX=
16629hardcode_minus_L_CXX=no
16630hardcode_shlibpath_var_CXX=unsupported
16631hardcode_automatic_CXX=no
16632inherit_rpath_CXX=no
16633module_cmds_CXX=
16634module_expsym_cmds_CXX=
16635link_all_deplibs_CXX=unknown
16636old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000016637reload_flag_CXX=$reload_flag
16638reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000016639no_undefined_flag_CXX=
16640whole_archive_flag_spec_CXX=
16641enable_shared_with_static_runtimes_CXX=no
16642
16643# Source file extension for C++ test sources.
16644ac_ext=cpp
16645
16646# Object file extension for compiled C++ test sources.
16647objext=o
16648objext_CXX=$objext
16649
16650# No sense in running all these tests if we already determined that
16651# the CXX compiler isn't working. Some variables (like enable_shared)
16652# are currently assumed to apply to all compilers on this platform,
16653# and will be corrupted by setting them based on a non-working compiler.
16654if test "$_lt_caught_CXX_error" != yes; then
16655 # Code to be used in simple compile tests
16656 lt_simple_compile_test_code="int some_variable = 0;"
16657
16658 # Code to be used in simple link tests
16659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16660
16661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16662
16663
16664
16665
16666
16667
16668# If no C compiler was specified, use CC.
16669LTCC=${LTCC-"$CC"}
16670
16671# If no C compiler flags were specified, use CFLAGS.
16672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16673
16674# Allow CC to be a program name with arguments.
16675compiler=$CC
16676
16677
16678 # save warnings/boilerplate of simple test code
16679 ac_outfile=conftest.$ac_objext
16680echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16682_lt_compiler_boilerplate=`cat conftest.err`
16683$RM conftest*
16684
16685 ac_outfile=conftest.$ac_objext
16686echo "$lt_simple_link_test_code" >conftest.$ac_ext
16687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16688_lt_linker_boilerplate=`cat conftest.err`
16689$RM -r conftest*
16690
16691
16692 # Allow CC to be a program name with arguments.
16693 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000016694 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016695 lt_save_LD=$LD
16696 lt_save_GCC=$GCC
16697 GCC=$GXX
16698 lt_save_with_gnu_ld=$with_gnu_ld
16699 lt_save_path_LD=$lt_cv_path_LD
16700 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16701 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16702 else
16703 $as_unset lt_cv_prog_gnu_ld
16704 fi
16705 if test -n "${lt_cv_path_LDCXX+set}"; then
16706 lt_cv_path_LD=$lt_cv_path_LDCXX
16707 else
16708 $as_unset lt_cv_path_LD
16709 fi
16710 test -z "${LDCXX+set}" || LD=$LDCXX
16711 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000016712 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016713 compiler=$CC
16714 compiler_CXX=$CC
16715 for cc_temp in $compiler""; do
16716 case $cc_temp in
16717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16719 \-*) ;;
16720 *) break;;
16721 esac
16722done
cristy0c60a692010-11-04 01:09:47 +000016723cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000016724
16725
16726 if test -n "$compiler"; then
16727 # We don't want -fno-exception when compiling C++ code, so set the
16728 # no_builtin_flag separately
16729 if test "$GXX" = yes; then
16730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16731 else
16732 lt_prog_compiler_no_builtin_flag_CXX=
16733 fi
16734
16735 if test "$GXX" = yes; then
16736 # Set up default GNU C++ configuration
16737
16738
16739
16740# Check whether --with-gnu-ld was given.
16741if test "${with_gnu_ld+set}" = set; then :
16742 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16743else
16744 with_gnu_ld=no
16745fi
16746
16747ac_prog=ld
16748if test "$GCC" = yes; then
16749 # Check if gcc -print-prog-name=ld gives a path.
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16751$as_echo_n "checking for ld used by $CC... " >&6; }
16752 case $host in
16753 *-*-mingw*)
16754 # gcc leaves a trailing carriage return which upsets mingw
16755 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16756 *)
16757 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16758 esac
16759 case $ac_prog in
16760 # Accept absolute paths.
16761 [\\/]* | ?:[\\/]*)
16762 re_direlt='/[^/][^/]*/\.\./'
16763 # Canonicalize the pathname of ld
16764 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16765 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16766 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16767 done
16768 test -z "$LD" && LD="$ac_prog"
16769 ;;
16770 "")
16771 # If it fails, then pretend we aren't using GCC.
16772 ac_prog=ld
16773 ;;
16774 *)
16775 # If it is relative, then search for the first ld in PATH.
16776 with_gnu_ld=unknown
16777 ;;
16778 esac
16779elif test "$with_gnu_ld" = yes; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16781$as_echo_n "checking for GNU ld... " >&6; }
16782else
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16784$as_echo_n "checking for non-GNU ld... " >&6; }
16785fi
cristyda16f162011-02-19 23:52:17 +000016786if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016787 $as_echo_n "(cached) " >&6
16788else
16789 if test -z "$LD"; then
16790 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16791 for ac_dir in $PATH; do
16792 IFS="$lt_save_ifs"
16793 test -z "$ac_dir" && ac_dir=.
16794 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16795 lt_cv_path_LD="$ac_dir/$ac_prog"
16796 # Check to see if the program is GNU ld. I'd rather use --version,
16797 # but apparently some variants of GNU ld only accept -v.
16798 # Break only if it was the GNU/non-GNU ld that we prefer.
16799 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16800 *GNU* | *'with BFD'*)
16801 test "$with_gnu_ld" != no && break
16802 ;;
16803 *)
16804 test "$with_gnu_ld" != yes && break
16805 ;;
16806 esac
16807 fi
16808 done
16809 IFS="$lt_save_ifs"
16810else
16811 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16812fi
16813fi
16814
16815LD="$lt_cv_path_LD"
16816if test -n "$LD"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16818$as_echo "$LD" >&6; }
16819else
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821$as_echo "no" >&6; }
16822fi
cristy98dddb52010-11-04 00:30:15 +000016823test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000016824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16825$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016826if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016827 $as_echo_n "(cached) " >&6
16828else
16829 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16830case `$LD -v 2>&1 </dev/null` in
16831*GNU* | *'with BFD'*)
16832 lt_cv_prog_gnu_ld=yes
16833 ;;
16834*)
16835 lt_cv_prog_gnu_ld=no
16836 ;;
16837esac
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16840$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16841with_gnu_ld=$lt_cv_prog_gnu_ld
16842
16843
16844
16845
16846
16847
16848
16849 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16850 # archiving commands below assume that GNU ld is being used.
16851 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000016852 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16853 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 +000016854
16855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16857
16858 # If archive_cmds runs LD, not CC, wlarc should be empty
16859 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16860 # investigate it a little bit more. (MM)
16861 wlarc='${wl}'
16862
16863 # ancient GNU ld didn't support --whole-archive et. al.
16864 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16865 $GREP 'no-whole-archive' > /dev/null; then
16866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16867 else
16868 whole_archive_flag_spec_CXX=
16869 fi
16870 else
16871 with_gnu_ld=no
16872 wlarc=
16873
16874 # A generic and very simple default shared library creation
16875 # command for GNU C++ for the case where it uses the native
16876 # linker, instead of GNU ld. If possible, this setting should
16877 # overridden to take advantage of the native linker features on
16878 # the platform it is being used on.
16879 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16880 fi
16881
16882 # Commands to make compiler produce verbose output that lists
16883 # what "hidden" libraries, object files and flags are used when
16884 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000016885 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000016886
16887 else
16888 GXX=no
16889 with_gnu_ld=no
16890 wlarc=
16891 fi
16892
16893 # PORTME: fill in a description of your system's C++ link characteristics
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16895$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16896 ld_shlibs_CXX=yes
16897 case $host_os in
16898 aix3*)
16899 # FIXME: insert proper C++ library support
16900 ld_shlibs_CXX=no
16901 ;;
16902 aix[4-9]*)
16903 if test "$host_cpu" = ia64; then
16904 # On IA64, the linker does run time linking by default, so we don't
16905 # have to do anything special.
16906 aix_use_runtimelinking=no
16907 exp_sym_flag='-Bexport'
16908 no_entry_flag=""
16909 else
16910 aix_use_runtimelinking=no
16911
16912 # Test if we are trying to use run time linking or normal
16913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16914 # need to do runtime linking.
16915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16916 for ld_flag in $LDFLAGS; do
16917 case $ld_flag in
16918 *-brtl*)
16919 aix_use_runtimelinking=yes
16920 break
16921 ;;
16922 esac
16923 done
16924 ;;
16925 esac
16926
16927 exp_sym_flag='-bexport'
16928 no_entry_flag='-bnoentry'
16929 fi
16930
16931 # When large executables or shared objects are built, AIX ld can
16932 # have problems creating the table of contents. If linking a library
16933 # or program results in "error TOC overflow" add -mminimal-toc to
16934 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16935 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16936
16937 archive_cmds_CXX=''
16938 hardcode_direct_CXX=yes
16939 hardcode_direct_absolute_CXX=yes
16940 hardcode_libdir_separator_CXX=':'
16941 link_all_deplibs_CXX=yes
16942 file_list_spec_CXX='${wl}-f,'
16943
16944 if test "$GXX" = yes; then
16945 case $host_os in aix4.[012]|aix4.[012].*)
16946 # We only want to do this on AIX 4.2 and lower, the check
16947 # below for broken collect2 doesn't work under 4.3+
16948 collect2name=`${CC} -print-prog-name=collect2`
16949 if test -f "$collect2name" &&
16950 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16951 then
16952 # We have reworked collect2
16953 :
16954 else
16955 # We have old collect2
16956 hardcode_direct_CXX=unsupported
16957 # It fails to find uninstalled libraries when the uninstalled
16958 # path is not listed in the libpath. Setting hardcode_minus_L
16959 # to unsupported forces relinking
16960 hardcode_minus_L_CXX=yes
16961 hardcode_libdir_flag_spec_CXX='-L$libdir'
16962 hardcode_libdir_separator_CXX=
16963 fi
16964 esac
16965 shared_flag='-shared'
16966 if test "$aix_use_runtimelinking" = yes; then
16967 shared_flag="$shared_flag "'${wl}-G'
16968 fi
16969 else
16970 # not using gcc
16971 if test "$host_cpu" = ia64; then
16972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16973 # chokes on -Wl,-G. The following line is correct:
16974 shared_flag='-G'
16975 else
16976 if test "$aix_use_runtimelinking" = yes; then
16977 shared_flag='${wl}-G'
16978 else
16979 shared_flag='${wl}-bM:SRE'
16980 fi
16981 fi
16982 fi
16983
16984 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16985 # It seems that -bexpall does not export symbols beginning with
16986 # underscore (_), so it is better to generate a list of symbols to
16987 # export.
16988 always_export_symbols_CXX=yes
16989 if test "$aix_use_runtimelinking" = yes; then
16990 # Warning - without using the other runtime loading flags (-brtl),
16991 # -berok will link without error, but may produce a broken library.
16992 allow_undefined_flag_CXX='-berok'
16993 # Determine the default libpath from the value encoded in an empty
16994 # executable.
cristyda16f162011-02-19 23:52:17 +000016995 if test "${lt_cv_aix_libpath+set}" = set; then
16996 aix_libpath=$lt_cv_aix_libpath
16997else
16998 if ${lt_cv_aix_libpath__CXX+:} false; then :
16999 $as_echo_n "(cached) " >&6
17000else
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017002/* end confdefs.h. */
17003
17004int
17005main ()
17006{
17007
17008 ;
17009 return 0;
17010}
17011_ACEOF
17012if ac_fn_cxx_try_link "$LINENO"; then :
17013
cristyda16f162011-02-19 23:52:17 +000017014 lt_aix_libpath_sed='
17015 /Import File Strings/,/^$/ {
17016 /^0/ {
17017 s/^0 *\([^ ]*\) *$/\1/
17018 p
17019 }
17020 }'
17021 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17022 # Check for a 64-bit object if we didn't find anything.
17023 if test -z "$lt_cv_aix_libpath__CXX"; then
17024 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17025 fi
cristy73bd4a52010-10-05 11:24:23 +000017026fi
17027rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017029 if test -z "$lt_cv_aix_libpath__CXX"; then
17030 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17031 fi
17032
17033fi
17034
17035 aix_libpath=$lt_cv_aix_libpath__CXX
17036fi
cristy73bd4a52010-10-05 11:24:23 +000017037
17038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17039
cristy0c60a692010-11-04 01:09:47 +000017040 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 +000017041 else
17042 if test "$host_cpu" = ia64; then
17043 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17044 allow_undefined_flag_CXX="-z nodefs"
17045 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"
17046 else
17047 # Determine the default libpath from the value encoded in an
17048 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017049 if test "${lt_cv_aix_libpath+set}" = set; then
17050 aix_libpath=$lt_cv_aix_libpath
17051else
17052 if ${lt_cv_aix_libpath__CXX+:} false; then :
17053 $as_echo_n "(cached) " >&6
17054else
17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017056/* end confdefs.h. */
17057
17058int
17059main ()
17060{
17061
17062 ;
17063 return 0;
17064}
17065_ACEOF
17066if ac_fn_cxx_try_link "$LINENO"; then :
17067
cristyda16f162011-02-19 23:52:17 +000017068 lt_aix_libpath_sed='
17069 /Import File Strings/,/^$/ {
17070 /^0/ {
17071 s/^0 *\([^ ]*\) *$/\1/
17072 p
17073 }
17074 }'
17075 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17076 # Check for a 64-bit object if we didn't find anything.
17077 if test -z "$lt_cv_aix_libpath__CXX"; then
17078 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17079 fi
cristy73bd4a52010-10-05 11:24:23 +000017080fi
17081rm -f core conftest.err conftest.$ac_objext \
17082 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017083 if test -z "$lt_cv_aix_libpath__CXX"; then
17084 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17085 fi
17086
17087fi
17088
17089 aix_libpath=$lt_cv_aix_libpath__CXX
17090fi
cristy73bd4a52010-10-05 11:24:23 +000017091
17092 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17093 # Warning - without using the other run time loading flags,
17094 # -berok will link without error, but may produce a broken library.
17095 no_undefined_flag_CXX=' ${wl}-bernotok'
17096 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017097 if test "$with_gnu_ld" = yes; then
17098 # We only use this code for GNU lds that support --whole-archive.
17099 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17100 else
17101 # Exported symbols can be pulled into shared objects from archives
17102 whole_archive_flag_spec_CXX='$convenience'
17103 fi
cristy73bd4a52010-10-05 11:24:23 +000017104 archive_cmds_need_lc_CXX=yes
17105 # This is similar to how AIX traditionally builds its shared
17106 # libraries.
17107 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'
17108 fi
17109 fi
17110 ;;
17111
17112 beos*)
17113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17114 allow_undefined_flag_CXX=unsupported
17115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17116 # support --undefined. This deserves some investigation. FIXME
17117 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17118 else
17119 ld_shlibs_CXX=no
17120 fi
17121 ;;
17122
17123 chorus*)
17124 case $cc_basename in
17125 *)
17126 # FIXME: insert proper C++ library support
17127 ld_shlibs_CXX=no
17128 ;;
17129 esac
17130 ;;
17131
17132 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017133 case $GXX,$cc_basename in
17134 ,cl* | no,cl*)
17135 # Native MSVC
17136 # hardcode_libdir_flag_spec is actually meaningless, as there is
17137 # no search path for DLLs.
17138 hardcode_libdir_flag_spec_CXX=' '
17139 allow_undefined_flag_CXX=unsupported
17140 always_export_symbols_CXX=yes
17141 file_list_spec_CXX='@'
17142 # Tell ltmain to make .lib files, not .a files.
17143 libext=lib
17144 # Tell ltmain to make .dll files, not .so files.
17145 shrext_cmds=".dll"
17146 # FIXME: Setting linknames here is a bad hack.
17147 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17148 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17149 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17150 else
17151 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17152 fi~
17153 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17154 linknames='
17155 # The linker will not automatically build a static lib if we build a DLL.
17156 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17157 enable_shared_with_static_runtimes_CXX=yes
17158 # Don't use ranlib
17159 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17160 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17161 lt_tool_outputfile="@TOOL_OUTPUT@"~
17162 case $lt_outputfile in
17163 *.exe|*.EXE) ;;
17164 *)
17165 lt_outputfile="$lt_outputfile.exe"
17166 lt_tool_outputfile="$lt_tool_outputfile.exe"
17167 ;;
17168 esac~
17169 func_to_tool_file "$lt_outputfile"~
17170 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17171 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17172 $RM "$lt_outputfile.manifest";
17173 fi'
17174 ;;
17175 *)
17176 # g++
17177 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17178 # as there is no search path for DLLs.
17179 hardcode_libdir_flag_spec_CXX='-L$libdir'
17180 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17181 allow_undefined_flag_CXX=unsupported
17182 always_export_symbols_CXX=no
17183 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017184
cristyda16f162011-02-19 23:52:17 +000017185 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17186 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'
17187 # If the export-symbols file already is a .def file (1st line
17188 # is EXPORTS), use it as is; otherwise, prepend...
17189 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17190 cp $export_symbols $output_objdir/$soname.def;
17191 else
17192 echo EXPORTS > $output_objdir/$soname.def;
17193 cat $export_symbols >> $output_objdir/$soname.def;
17194 fi~
17195 $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'
17196 else
17197 ld_shlibs_CXX=no
17198 fi
17199 ;;
17200 esac
17201 ;;
cristy73bd4a52010-10-05 11:24:23 +000017202 darwin* | rhapsody*)
17203
17204
17205 archive_cmds_need_lc_CXX=no
17206 hardcode_direct_CXX=no
17207 hardcode_automatic_CXX=yes
17208 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017209 if test "$lt_cv_ld_force_load" = "yes"; then
17210 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\"`'
17211 else
17212 whole_archive_flag_spec_CXX=''
17213 fi
cristy73bd4a52010-10-05 11:24:23 +000017214 link_all_deplibs_CXX=yes
17215 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17216 case $cc_basename in
17217 ifort*) _lt_dar_can_shared=yes ;;
17218 *) _lt_dar_can_shared=$GCC ;;
17219 esac
17220 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017221 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017222 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}"
17223 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17224 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}"
17225 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}"
17226 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17227 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}"
17228 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}"
17229 fi
17230
17231 else
17232 ld_shlibs_CXX=no
17233 fi
17234
17235 ;;
17236
17237 dgux*)
17238 case $cc_basename in
17239 ec++*)
17240 # FIXME: insert proper C++ library support
17241 ld_shlibs_CXX=no
17242 ;;
17243 ghcx*)
17244 # Green Hills C++ Compiler
17245 # FIXME: insert proper C++ library support
17246 ld_shlibs_CXX=no
17247 ;;
17248 *)
17249 # FIXME: insert proper C++ library support
17250 ld_shlibs_CXX=no
17251 ;;
17252 esac
17253 ;;
17254
17255 freebsd[12]*)
17256 # C++ shared libraries reported to be fairly broken before
17257 # switch to ELF
17258 ld_shlibs_CXX=no
17259 ;;
17260
17261 freebsd-elf*)
17262 archive_cmds_need_lc_CXX=no
17263 ;;
17264
17265 freebsd* | dragonfly*)
17266 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17267 # conventions
17268 ld_shlibs_CXX=yes
17269 ;;
17270
17271 gnu*)
17272 ;;
17273
cristy0c60a692010-11-04 01:09:47 +000017274 haiku*)
17275 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276 link_all_deplibs_CXX=yes
17277 ;;
17278
cristy73bd4a52010-10-05 11:24:23 +000017279 hpux9*)
17280 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17281 hardcode_libdir_separator_CXX=:
17282 export_dynamic_flag_spec_CXX='${wl}-E'
17283 hardcode_direct_CXX=yes
17284 hardcode_minus_L_CXX=yes # Not in the search PATH,
17285 # but as the default
17286 # location of the library.
17287
17288 case $cc_basename in
17289 CC*)
17290 # FIXME: insert proper C++ library support
17291 ld_shlibs_CXX=no
17292 ;;
17293 aCC*)
17294 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'
17295 # Commands to make compiler produce verbose output that lists
17296 # what "hidden" libraries, object files and flags are used when
17297 # linking a shared library.
17298 #
17299 # There doesn't appear to be a way to prevent this compiler from
17300 # explicitly linking system object files so we need to strip them
17301 # from the output so that they don't get included in the library
17302 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017303 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 +000017304 ;;
17305 *)
17306 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017307 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 +000017308 else
17309 # FIXME: insert proper C++ library support
17310 ld_shlibs_CXX=no
17311 fi
17312 ;;
17313 esac
17314 ;;
17315
17316 hpux10*|hpux11*)
17317 if test $with_gnu_ld = no; then
17318 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17319 hardcode_libdir_separator_CXX=:
17320
17321 case $host_cpu in
17322 hppa*64*|ia64*)
17323 ;;
17324 *)
17325 export_dynamic_flag_spec_CXX='${wl}-E'
17326 ;;
17327 esac
17328 fi
17329 case $host_cpu in
17330 hppa*64*|ia64*)
17331 hardcode_direct_CXX=no
17332 hardcode_shlibpath_var_CXX=no
17333 ;;
17334 *)
17335 hardcode_direct_CXX=yes
17336 hardcode_direct_absolute_CXX=yes
17337 hardcode_minus_L_CXX=yes # Not in the search PATH,
17338 # but as the default
17339 # location of the library.
17340 ;;
17341 esac
17342
17343 case $cc_basename in
17344 CC*)
17345 # FIXME: insert proper C++ library support
17346 ld_shlibs_CXX=no
17347 ;;
17348 aCC*)
17349 case $host_cpu in
17350 hppa*64*)
17351 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17352 ;;
17353 ia64*)
17354 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17355 ;;
17356 *)
17357 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17358 ;;
17359 esac
17360 # Commands to make compiler produce verbose output that lists
17361 # what "hidden" libraries, object files and flags are used when
17362 # linking a shared library.
17363 #
17364 # There doesn't appear to be a way to prevent this compiler from
17365 # explicitly linking system object files so we need to strip them
17366 # from the output so that they don't get included in the library
17367 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017368 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 +000017369 ;;
17370 *)
17371 if test "$GXX" = yes; then
17372 if test $with_gnu_ld = no; then
17373 case $host_cpu in
17374 hppa*64*)
17375 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17376 ;;
17377 ia64*)
cristyda16f162011-02-19 23:52:17 +000017378 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 +000017379 ;;
17380 *)
cristyda16f162011-02-19 23:52:17 +000017381 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 +000017382 ;;
17383 esac
17384 fi
17385 else
17386 # FIXME: insert proper C++ library support
17387 ld_shlibs_CXX=no
17388 fi
17389 ;;
17390 esac
17391 ;;
17392
17393 interix[3-9]*)
17394 hardcode_direct_CXX=no
17395 hardcode_shlibpath_var_CXX=no
17396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17397 export_dynamic_flag_spec_CXX='${wl}-E'
17398 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17399 # Instead, shared libraries are loaded at an image base (0x10000000 by
17400 # default) and relocated if they conflict, which is a slow very memory
17401 # consuming and fragmenting process. To avoid this, we pick a random,
17402 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17403 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17404 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'
17405 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'
17406 ;;
17407 irix5* | irix6*)
17408 case $cc_basename in
17409 CC*)
17410 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017411 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 +000017412
17413 # Archives containing C++ object files must be created using
17414 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17415 # necessary to make sure instantiated templates are included
17416 # in the archive.
17417 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17418 ;;
17419 *)
17420 if test "$GXX" = yes; then
17421 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017422 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 +000017423 else
cristyda16f162011-02-19 23:52:17 +000017424 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 +000017425 fi
17426 fi
17427 link_all_deplibs_CXX=yes
17428 ;;
17429 esac
17430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17431 hardcode_libdir_separator_CXX=:
17432 inherit_rpath_CXX=yes
17433 ;;
17434
cristy0c60a692010-11-04 01:09:47 +000017435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017436 case $cc_basename in
17437 KCC*)
17438 # Kuck and Associates, Inc. (KAI) C++ Compiler
17439
17440 # KCC will only create a shared library if the output file
17441 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17442 # to its proper name (with version) after linking.
17443 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'
17444 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'
17445 # Commands to make compiler produce verbose output that lists
17446 # what "hidden" libraries, object files and flags are used when
17447 # linking a shared library.
17448 #
17449 # There doesn't appear to be a way to prevent this compiler from
17450 # explicitly linking system object files so we need to strip them
17451 # from the output so that they don't get included in the library
17452 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017453 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 +000017454
17455 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17456 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17457
17458 # Archives containing C++ object files must be created using
17459 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17460 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17461 ;;
17462 icpc* | ecpc* )
17463 # Intel C++
17464 with_gnu_ld=yes
17465 # version 8.0 and above of icpc choke on multiply defined symbols
17466 # if we add $predep_objects and $postdep_objects, however 7.1 and
17467 # earlier do not add the objects themselves.
17468 case `$CC -V 2>&1` in
17469 *"Version 7."*)
17470 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17471 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'
17472 ;;
17473 *) # Version 8.0 or newer
17474 tmp_idyn=
17475 case $host_cpu in
17476 ia64*) tmp_idyn=' -i_dynamic';;
17477 esac
17478 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17479 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'
17480 ;;
17481 esac
17482 archive_cmds_need_lc_CXX=no
17483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17485 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17486 ;;
17487 pgCC* | pgcpp*)
17488 # Portland Group C++ compiler
17489 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017490 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017491 prelink_cmds_CXX='tpldir=Template.dir~
17492 rm -rf $tpldir~
17493 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017494 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017495 old_archive_cmds_CXX='tpldir=Template.dir~
17496 rm -rf $tpldir~
17497 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017498 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017499 $RANLIB $oldlib'
17500 archive_cmds_CXX='tpldir=Template.dir~
17501 rm -rf $tpldir~
17502 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017503 $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 +000017504 archive_expsym_cmds_CXX='tpldir=Template.dir~
17505 rm -rf $tpldir~
17506 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017507 $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 +000017508 ;;
cristy0c60a692010-11-04 01:09:47 +000017509 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017510 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17511 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'
17512 ;;
17513 esac
17514
17515 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17516 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017517 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 +000017518 ;;
17519 cxx*)
17520 # Compaq C++
17521 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17522 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'
17523
17524 runpath_var=LD_RUN_PATH
17525 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17526 hardcode_libdir_separator_CXX=:
17527
17528 # Commands to make compiler produce verbose output that lists
17529 # what "hidden" libraries, object files and flags are used when
17530 # linking a shared library.
17531 #
17532 # There doesn't appear to be a way to prevent this compiler from
17533 # explicitly linking system object files so we need to strip them
17534 # from the output so that they don't get included in the library
17535 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017536 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 +000017537 ;;
cristy0c60a692010-11-04 01:09:47 +000017538 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017539 # IBM XL 8.0 on PPC, with GNU ld
17540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17541 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17542 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543 if test "x$supports_anon_versioning" = xyes; then
17544 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17546 echo "local: *; };" >> $output_objdir/$libname.ver~
17547 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17548 fi
17549 ;;
17550 *)
17551 case `$CC -V 2>&1 | sed 5q` in
17552 *Sun\ C*)
17553 # Sun C++ 5.9
17554 no_undefined_flag_CXX=' -zdefs'
17555 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17556 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'
17557 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017558 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 +000017559 compiler_needs_object_CXX=yes
17560
17561 # Not sure whether something based on
17562 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17563 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017564 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017565
17566 # Archives containing C++ object files must be created using
17567 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17568 # necessary to make sure instantiated templates are included
17569 # in the archive.
17570 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17571 ;;
17572 esac
17573 ;;
17574 esac
17575 ;;
17576
17577 lynxos*)
17578 # FIXME: insert proper C++ library support
17579 ld_shlibs_CXX=no
17580 ;;
17581
17582 m88k*)
17583 # FIXME: insert proper C++ library support
17584 ld_shlibs_CXX=no
17585 ;;
17586
17587 mvs*)
17588 case $cc_basename in
17589 cxx*)
17590 # FIXME: insert proper C++ library support
17591 ld_shlibs_CXX=no
17592 ;;
17593 *)
17594 # FIXME: insert proper C++ library support
17595 ld_shlibs_CXX=no
17596 ;;
17597 esac
17598 ;;
17599
17600 netbsd*)
17601 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17602 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17603 wlarc=
17604 hardcode_libdir_flag_spec_CXX='-R$libdir'
17605 hardcode_direct_CXX=yes
17606 hardcode_shlibpath_var_CXX=no
17607 fi
17608 # Workaround some broken pre-1.5 toolchains
17609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17610 ;;
17611
17612 *nto* | *qnx*)
17613 ld_shlibs_CXX=yes
17614 ;;
17615
17616 openbsd2*)
17617 # C++ shared libraries are fairly broken
17618 ld_shlibs_CXX=no
17619 ;;
17620
17621 openbsd*)
17622 if test -f /usr/libexec/ld.so; then
17623 hardcode_direct_CXX=yes
17624 hardcode_shlibpath_var_CXX=no
17625 hardcode_direct_absolute_CXX=yes
17626 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17628 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17629 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17630 export_dynamic_flag_spec_CXX='${wl}-E'
17631 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17632 fi
cristy0c60a692010-11-04 01:09:47 +000017633 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017634 else
17635 ld_shlibs_CXX=no
17636 fi
17637 ;;
17638
17639 osf3* | osf4* | osf5*)
17640 case $cc_basename in
17641 KCC*)
17642 # Kuck and Associates, Inc. (KAI) C++ Compiler
17643
17644 # KCC will only create a shared library if the output file
17645 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17646 # to its proper name (with version) after linking.
17647 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'
17648
17649 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17650 hardcode_libdir_separator_CXX=:
17651
17652 # Archives containing C++ object files must be created using
17653 # the KAI C++ compiler.
17654 case $host in
17655 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17656 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17657 esac
17658 ;;
17659 RCC*)
17660 # Rational C++ 2.4.1
17661 # FIXME: insert proper C++ library support
17662 ld_shlibs_CXX=no
17663 ;;
17664 cxx*)
17665 case $host in
17666 osf3*)
17667 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000017668 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 +000017669 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17670 ;;
17671 *)
17672 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000017673 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 +000017674 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17675 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000017676 $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 +000017677 $RM $lib.exp'
17678 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17679 ;;
17680 esac
17681
17682 hardcode_libdir_separator_CXX=:
17683
17684 # Commands to make compiler produce verbose output that lists
17685 # what "hidden" libraries, object files and flags are used when
17686 # linking a shared library.
17687 #
17688 # There doesn't appear to be a way to prevent this compiler from
17689 # explicitly linking system object files so we need to strip them
17690 # from the output so that they don't get included in the library
17691 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017692 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 +000017693 ;;
17694 *)
17695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17696 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17697 case $host in
17698 osf3*)
cristy0c60a692010-11-04 01:09:47 +000017699 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 +000017700 ;;
17701 *)
cristyda16f162011-02-19 23:52:17 +000017702 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 +000017703 ;;
17704 esac
17705
17706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17707 hardcode_libdir_separator_CXX=:
17708
17709 # Commands to make compiler produce verbose output that lists
17710 # what "hidden" libraries, object files and flags are used when
17711 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017713
17714 else
17715 # FIXME: insert proper C++ library support
17716 ld_shlibs_CXX=no
17717 fi
17718 ;;
17719 esac
17720 ;;
17721
17722 psos*)
17723 # FIXME: insert proper C++ library support
17724 ld_shlibs_CXX=no
17725 ;;
17726
17727 sunos4*)
17728 case $cc_basename in
17729 CC*)
17730 # Sun C++ 4.x
17731 # FIXME: insert proper C++ library support
17732 ld_shlibs_CXX=no
17733 ;;
17734 lcc*)
17735 # Lucid
17736 # FIXME: insert proper C++ library support
17737 ld_shlibs_CXX=no
17738 ;;
17739 *)
17740 # FIXME: insert proper C++ library support
17741 ld_shlibs_CXX=no
17742 ;;
17743 esac
17744 ;;
17745
17746 solaris*)
17747 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000017748 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000017749 # Sun C++ 4.2, 5.x and Centerline C++
17750 archive_cmds_need_lc_CXX=yes
17751 no_undefined_flag_CXX=' -zdefs'
17752 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17753 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17754 $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'
17755
17756 hardcode_libdir_flag_spec_CXX='-R$libdir'
17757 hardcode_shlibpath_var_CXX=no
17758 case $host_os in
17759 solaris2.[0-5] | solaris2.[0-5].*) ;;
17760 *)
17761 # The compiler driver will combine and reorder linker options,
17762 # but understands `-z linker_flag'.
17763 # Supported since Solaris 2.6 (maybe 2.5.1?)
17764 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17765 ;;
17766 esac
17767 link_all_deplibs_CXX=yes
17768
cristy0c60a692010-11-04 01:09:47 +000017769 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017770
17771 # Archives containing C++ object files must be created using
17772 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17773 # necessary to make sure instantiated templates are included
17774 # in the archive.
17775 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17776 ;;
17777 gcx*)
17778 # Green Hills C++ Compiler
17779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17780
17781 # The C++ compiler must be used to create the archive.
17782 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17783 ;;
17784 *)
17785 # GNU C++ compiler with Solaris linker
17786 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17787 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17788 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000017789 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 +000017790 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 +000017791 $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 +000017792
17793 # Commands to make compiler produce verbose output that lists
17794 # what "hidden" libraries, object files and flags are used when
17795 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017796 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017797 else
17798 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17799 # platform.
17800 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17801 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17802 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17803
17804 # Commands to make compiler produce verbose output that lists
17805 # what "hidden" libraries, object files and flags are used when
17806 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017807 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017808 fi
17809
17810 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17811 case $host_os in
17812 solaris2.[0-5] | solaris2.[0-5].*) ;;
17813 *)
17814 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17815 ;;
17816 esac
17817 fi
17818 ;;
17819 esac
17820 ;;
17821
17822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17823 no_undefined_flag_CXX='${wl}-z,text'
17824 archive_cmds_need_lc_CXX=no
17825 hardcode_shlibpath_var_CXX=no
17826 runpath_var='LD_RUN_PATH'
17827
17828 case $cc_basename in
17829 CC*)
17830 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17832 ;;
17833 *)
17834 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 ;;
17837 esac
17838 ;;
17839
17840 sysv5* | sco3.2v5* | sco5v6*)
17841 # Note: We can NOT use -z defs as we might desire, because we do not
17842 # link with -lc, and that would cause any symbols used from libc to
17843 # always be unresolved, which means just about no library would
17844 # ever link correctly. If we're not using GNU ld we use -z text
17845 # though, which does catch some bad symbols but isn't as heavy-handed
17846 # as -z defs.
17847 no_undefined_flag_CXX='${wl}-z,text'
17848 allow_undefined_flag_CXX='${wl}-z,nodefs'
17849 archive_cmds_need_lc_CXX=no
17850 hardcode_shlibpath_var_CXX=no
17851 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17852 hardcode_libdir_separator_CXX=':'
17853 link_all_deplibs_CXX=yes
17854 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17855 runpath_var='LD_RUN_PATH'
17856
17857 case $cc_basename in
17858 CC*)
17859 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17860 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 +000017861 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17862 '"$old_archive_cmds_CXX"
17863 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17864 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000017865 ;;
17866 *)
17867 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17868 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17869 ;;
17870 esac
17871 ;;
17872
17873 tandem*)
17874 case $cc_basename in
17875 NCC*)
17876 # NonStop-UX NCC 3.20
17877 # FIXME: insert proper C++ library support
17878 ld_shlibs_CXX=no
17879 ;;
17880 *)
17881 # FIXME: insert proper C++ library support
17882 ld_shlibs_CXX=no
17883 ;;
17884 esac
17885 ;;
17886
17887 vxworks*)
17888 # FIXME: insert proper C++ library support
17889 ld_shlibs_CXX=no
17890 ;;
17891
17892 *)
17893 # FIXME: insert proper C++ library support
17894 ld_shlibs_CXX=no
17895 ;;
17896 esac
17897
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17899$as_echo "$ld_shlibs_CXX" >&6; }
17900 test "$ld_shlibs_CXX" = no && can_build_shared=no
17901
17902 GCC_CXX="$GXX"
17903 LD_CXX="$LD"
17904
17905 ## CAVEAT EMPTOR:
17906 ## There is no encapsulation within the following macros, do not change
17907 ## the running order or otherwise move them around unless you know exactly
17908 ## what you are doing...
17909 # Dependencies to place before and after the object being linked:
17910predep_objects_CXX=
17911postdep_objects_CXX=
17912predeps_CXX=
17913postdeps_CXX=
17914compiler_lib_search_path_CXX=
17915
17916cat > conftest.$ac_ext <<_LT_EOF
17917class Foo
17918{
17919public:
17920 Foo (void) { a = 0; }
17921private:
17922 int a;
17923};
17924_LT_EOF
17925
cristyda16f162011-02-19 23:52:17 +000017926
17927_lt_libdeps_save_CFLAGS=$CFLAGS
17928case "$CC $CFLAGS " in #(
17929*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17930*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17931esac
17932
cristy73bd4a52010-10-05 11:24:23 +000017933if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17934 (eval $ac_compile) 2>&5
17935 ac_status=$?
17936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17937 test $ac_status = 0; }; then
17938 # Parse the compiler output and extract the necessary
17939 # objects, libraries and library flags.
17940
17941 # Sentinel used to keep track of whether or not we are before
17942 # the conftest object file.
17943 pre_test_object_deps_done=no
17944
17945 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000017946 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000017947
17948 -L* | -R* | -l*)
17949 # Some compilers place space between "-{L,R}" and the path.
17950 # Remove the space.
17951 if test $p = "-L" ||
17952 test $p = "-R"; then
17953 prev=$p
17954 continue
cristy73bd4a52010-10-05 11:24:23 +000017955 fi
17956
cristyda16f162011-02-19 23:52:17 +000017957 # Expand the sysroot to ease extracting the directories later.
17958 if test -z "$prev"; then
17959 case $p in
17960 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17961 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17962 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17963 esac
17964 fi
17965 case $p in
17966 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17967 esac
cristy73bd4a52010-10-05 11:24:23 +000017968 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000017969 case ${prev} in
17970 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000017971 # Internal compiler library paths should come after those
17972 # provided the user. The postdeps already come after the
17973 # user supplied libs so there is no need to process them.
17974 if test -z "$compiler_lib_search_path_CXX"; then
17975 compiler_lib_search_path_CXX="${prev}${p}"
17976 else
17977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17978 fi
17979 ;;
17980 # The "-l" case would never come before the object being
17981 # linked, so don't bother handling this case.
17982 esac
17983 else
17984 if test -z "$postdeps_CXX"; then
17985 postdeps_CXX="${prev}${p}"
17986 else
17987 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17988 fi
17989 fi
cristyda16f162011-02-19 23:52:17 +000017990 prev=
cristy73bd4a52010-10-05 11:24:23 +000017991 ;;
17992
cristyda16f162011-02-19 23:52:17 +000017993 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000017994 *.$objext)
17995 # This assumes that the test object file only shows up
17996 # once in the compiler output.
17997 if test "$p" = "conftest.$objext"; then
17998 pre_test_object_deps_done=yes
17999 continue
18000 fi
18001
18002 if test "$pre_test_object_deps_done" = no; then
18003 if test -z "$predep_objects_CXX"; then
18004 predep_objects_CXX="$p"
18005 else
18006 predep_objects_CXX="$predep_objects_CXX $p"
18007 fi
18008 else
18009 if test -z "$postdep_objects_CXX"; then
18010 postdep_objects_CXX="$p"
18011 else
18012 postdep_objects_CXX="$postdep_objects_CXX $p"
18013 fi
18014 fi
18015 ;;
18016
18017 *) ;; # Ignore the rest.
18018
18019 esac
18020 done
18021
18022 # Clean up.
18023 rm -f a.out a.exe
18024else
18025 echo "libtool.m4: error: problem compiling CXX test program"
18026fi
18027
18028$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018029CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018030
18031# PORTME: override above test on systems where it is broken
18032case $host_os in
18033interix[3-9]*)
18034 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18035 # hack all around it, let's just trust "g++" to DTRT.
18036 predep_objects_CXX=
18037 postdep_objects_CXX=
18038 postdeps_CXX=
18039 ;;
18040
18041linux*)
18042 case `$CC -V 2>&1 | sed 5q` in
18043 *Sun\ C*)
18044 # Sun C++ 5.9
18045
18046 # The more standards-conforming stlport4 library is
18047 # incompatible with the Cstd library. Avoid specifying
18048 # it if it's in CXXFLAGS. Ignore libCrun as
18049 # -library=stlport4 depends on it.
18050 case " $CXX $CXXFLAGS " in
18051 *" -library=stlport4 "*)
18052 solaris_use_stlport4=yes
18053 ;;
18054 esac
18055
18056 if test "$solaris_use_stlport4" != yes; then
18057 postdeps_CXX='-library=Cstd -library=Crun'
18058 fi
18059 ;;
18060 esac
18061 ;;
18062
18063solaris*)
18064 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018065 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018066 # The more standards-conforming stlport4 library is
18067 # incompatible with the Cstd library. Avoid specifying
18068 # it if it's in CXXFLAGS. Ignore libCrun as
18069 # -library=stlport4 depends on it.
18070 case " $CXX $CXXFLAGS " in
18071 *" -library=stlport4 "*)
18072 solaris_use_stlport4=yes
18073 ;;
18074 esac
18075
18076 # Adding this requires a known-good setup of shared libraries for
18077 # Sun compiler versions before 5.6, else PIC objects from an old
18078 # archive will be linked into the output, leading to subtle bugs.
18079 if test "$solaris_use_stlport4" != yes; then
18080 postdeps_CXX='-library=Cstd -library=Crun'
18081 fi
18082 ;;
18083 esac
18084 ;;
18085esac
18086
18087
18088case " $postdeps_CXX " in
18089*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18090esac
18091 compiler_lib_search_dirs_CXX=
18092if test -n "${compiler_lib_search_path_CXX}"; then
18093 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18094fi
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126 lt_prog_compiler_wl_CXX=
18127lt_prog_compiler_pic_CXX=
18128lt_prog_compiler_static_CXX=
18129
cristy73bd4a52010-10-05 11:24:23 +000018130
18131 # C++ specific cases for pic, static, wl, etc.
18132 if test "$GXX" = yes; then
18133 lt_prog_compiler_wl_CXX='-Wl,'
18134 lt_prog_compiler_static_CXX='-static'
18135
18136 case $host_os in
18137 aix*)
18138 # All AIX code is PIC.
18139 if test "$host_cpu" = ia64; then
18140 # AIX 5 now supports IA64 processor
18141 lt_prog_compiler_static_CXX='-Bstatic'
18142 fi
18143 ;;
18144
18145 amigaos*)
18146 case $host_cpu in
18147 powerpc)
18148 # see comment about AmigaOS4 .so support
18149 lt_prog_compiler_pic_CXX='-fPIC'
18150 ;;
18151 m68k)
18152 # FIXME: we need at least 68020 code to build shared libraries, but
18153 # adding the `-m68020' flag to GCC prevents building anything better,
18154 # like `-m68040'.
18155 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18156 ;;
18157 esac
18158 ;;
18159
18160 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18161 # PIC is the default for these OSes.
18162 ;;
18163 mingw* | cygwin* | os2* | pw32* | cegcc*)
18164 # This hack is so that the source file can tell whether it is being
18165 # built for inclusion in a dll (and should export symbols for example).
18166 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18167 # (--disable-auto-import) libraries
18168 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18169 ;;
18170 darwin* | rhapsody*)
18171 # PIC is the default on this platform
18172 # Common symbols not allowed in MH_DYLIB files
18173 lt_prog_compiler_pic_CXX='-fno-common'
18174 ;;
18175 *djgpp*)
18176 # DJGPP does not support shared libraries at all
18177 lt_prog_compiler_pic_CXX=
18178 ;;
cristy0c60a692010-11-04 01:09:47 +000018179 haiku*)
18180 # PIC is the default for Haiku.
18181 # The "-static" flag exists, but is broken.
18182 lt_prog_compiler_static_CXX=
18183 ;;
cristy73bd4a52010-10-05 11:24:23 +000018184 interix[3-9]*)
18185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18186 # Instead, we relocate shared libraries at runtime.
18187 ;;
18188 sysv4*MP*)
18189 if test -d /usr/nec; then
18190 lt_prog_compiler_pic_CXX=-Kconform_pic
18191 fi
18192 ;;
18193 hpux*)
18194 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18195 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18196 # sets the default TLS model and affects inlining.
18197 case $host_cpu in
18198 hppa*64*)
18199 ;;
18200 *)
18201 lt_prog_compiler_pic_CXX='-fPIC'
18202 ;;
18203 esac
18204 ;;
18205 *qnx* | *nto*)
18206 # QNX uses GNU C++, but need to define -shared option too, otherwise
18207 # it will coredump.
18208 lt_prog_compiler_pic_CXX='-fPIC -shared'
18209 ;;
18210 *)
18211 lt_prog_compiler_pic_CXX='-fPIC'
18212 ;;
18213 esac
18214 else
18215 case $host_os in
18216 aix[4-9]*)
18217 # All AIX code is PIC.
18218 if test "$host_cpu" = ia64; then
18219 # AIX 5 now supports IA64 processor
18220 lt_prog_compiler_static_CXX='-Bstatic'
18221 else
18222 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18223 fi
18224 ;;
18225 chorus*)
18226 case $cc_basename in
18227 cxch68*)
18228 # Green Hills C++ Compiler
18229 # _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"
18230 ;;
18231 esac
18232 ;;
cristyda16f162011-02-19 23:52:17 +000018233 mingw* | cygwin* | os2* | pw32* | cegcc*)
18234 # This hack is so that the source file can tell whether it is being
18235 # built for inclusion in a dll (and should export symbols for example).
18236 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18237 ;;
cristy73bd4a52010-10-05 11:24:23 +000018238 dgux*)
18239 case $cc_basename in
18240 ec++*)
18241 lt_prog_compiler_pic_CXX='-KPIC'
18242 ;;
18243 ghcx*)
18244 # Green Hills C++ Compiler
18245 lt_prog_compiler_pic_CXX='-pic'
18246 ;;
18247 *)
18248 ;;
18249 esac
18250 ;;
18251 freebsd* | dragonfly*)
18252 # FreeBSD uses GNU C++
18253 ;;
18254 hpux9* | hpux10* | hpux11*)
18255 case $cc_basename in
18256 CC*)
18257 lt_prog_compiler_wl_CXX='-Wl,'
18258 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18259 if test "$host_cpu" != ia64; then
18260 lt_prog_compiler_pic_CXX='+Z'
18261 fi
18262 ;;
18263 aCC*)
18264 lt_prog_compiler_wl_CXX='-Wl,'
18265 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18266 case $host_cpu in
18267 hppa*64*|ia64*)
18268 # +Z the default
18269 ;;
18270 *)
18271 lt_prog_compiler_pic_CXX='+Z'
18272 ;;
18273 esac
18274 ;;
18275 *)
18276 ;;
18277 esac
18278 ;;
18279 interix*)
18280 # This is c89, which is MS Visual C++ (no shared libs)
18281 # Anyone wants to do a port?
18282 ;;
18283 irix5* | irix6* | nonstopux*)
18284 case $cc_basename in
18285 CC*)
18286 lt_prog_compiler_wl_CXX='-Wl,'
18287 lt_prog_compiler_static_CXX='-non_shared'
18288 # CC pic flag -KPIC is the default.
18289 ;;
18290 *)
18291 ;;
18292 esac
18293 ;;
cristy0c60a692010-11-04 01:09:47 +000018294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018295 case $cc_basename in
18296 KCC*)
18297 # KAI C++ Compiler
18298 lt_prog_compiler_wl_CXX='--backend -Wl,'
18299 lt_prog_compiler_pic_CXX='-fPIC'
18300 ;;
18301 ecpc* )
18302 # old Intel C++ for x86_64 which still supported -KPIC.
18303 lt_prog_compiler_wl_CXX='-Wl,'
18304 lt_prog_compiler_pic_CXX='-KPIC'
18305 lt_prog_compiler_static_CXX='-static'
18306 ;;
18307 icpc* )
18308 # Intel C++, used to be incompatible with GCC.
18309 # ICC 10 doesn't accept -KPIC any more.
18310 lt_prog_compiler_wl_CXX='-Wl,'
18311 lt_prog_compiler_pic_CXX='-fPIC'
18312 lt_prog_compiler_static_CXX='-static'
18313 ;;
18314 pgCC* | pgcpp*)
18315 # Portland Group C++ compiler
18316 lt_prog_compiler_wl_CXX='-Wl,'
18317 lt_prog_compiler_pic_CXX='-fpic'
18318 lt_prog_compiler_static_CXX='-Bstatic'
18319 ;;
18320 cxx*)
18321 # Compaq C++
18322 # Make sure the PIC flag is empty. It appears that all Alpha
18323 # Linux and Compaq Tru64 Unix objects are PIC.
18324 lt_prog_compiler_pic_CXX=
18325 lt_prog_compiler_static_CXX='-non_shared'
18326 ;;
cristy0c60a692010-11-04 01:09:47 +000018327 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18328 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018329 lt_prog_compiler_wl_CXX='-Wl,'
18330 lt_prog_compiler_pic_CXX='-qpic'
18331 lt_prog_compiler_static_CXX='-qstaticlink'
18332 ;;
18333 *)
18334 case `$CC -V 2>&1 | sed 5q` in
18335 *Sun\ C*)
18336 # Sun C++ 5.9
18337 lt_prog_compiler_pic_CXX='-KPIC'
18338 lt_prog_compiler_static_CXX='-Bstatic'
18339 lt_prog_compiler_wl_CXX='-Qoption ld '
18340 ;;
18341 esac
18342 ;;
18343 esac
18344 ;;
18345 lynxos*)
18346 ;;
18347 m88k*)
18348 ;;
18349 mvs*)
18350 case $cc_basename in
18351 cxx*)
18352 lt_prog_compiler_pic_CXX='-W c,exportall'
18353 ;;
18354 *)
18355 ;;
18356 esac
18357 ;;
18358 netbsd*)
18359 ;;
18360 *qnx* | *nto*)
18361 # QNX uses GNU C++, but need to define -shared option too, otherwise
18362 # it will coredump.
18363 lt_prog_compiler_pic_CXX='-fPIC -shared'
18364 ;;
18365 osf3* | osf4* | osf5*)
18366 case $cc_basename in
18367 KCC*)
18368 lt_prog_compiler_wl_CXX='--backend -Wl,'
18369 ;;
18370 RCC*)
18371 # Rational C++ 2.4.1
18372 lt_prog_compiler_pic_CXX='-pic'
18373 ;;
18374 cxx*)
18375 # Digital/Compaq C++
18376 lt_prog_compiler_wl_CXX='-Wl,'
18377 # Make sure the PIC flag is empty. It appears that all Alpha
18378 # Linux and Compaq Tru64 Unix objects are PIC.
18379 lt_prog_compiler_pic_CXX=
18380 lt_prog_compiler_static_CXX='-non_shared'
18381 ;;
18382 *)
18383 ;;
18384 esac
18385 ;;
18386 psos*)
18387 ;;
18388 solaris*)
18389 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018390 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018391 # Sun C++ 4.2, 5.x and Centerline C++
18392 lt_prog_compiler_pic_CXX='-KPIC'
18393 lt_prog_compiler_static_CXX='-Bstatic'
18394 lt_prog_compiler_wl_CXX='-Qoption ld '
18395 ;;
18396 gcx*)
18397 # Green Hills C++ Compiler
18398 lt_prog_compiler_pic_CXX='-PIC'
18399 ;;
18400 *)
18401 ;;
18402 esac
18403 ;;
18404 sunos4*)
18405 case $cc_basename in
18406 CC*)
18407 # Sun C++ 4.x
18408 lt_prog_compiler_pic_CXX='-pic'
18409 lt_prog_compiler_static_CXX='-Bstatic'
18410 ;;
18411 lcc*)
18412 # Lucid
18413 lt_prog_compiler_pic_CXX='-pic'
18414 ;;
18415 *)
18416 ;;
18417 esac
18418 ;;
18419 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18420 case $cc_basename in
18421 CC*)
18422 lt_prog_compiler_wl_CXX='-Wl,'
18423 lt_prog_compiler_pic_CXX='-KPIC'
18424 lt_prog_compiler_static_CXX='-Bstatic'
18425 ;;
18426 esac
18427 ;;
18428 tandem*)
18429 case $cc_basename in
18430 NCC*)
18431 # NonStop-UX NCC 3.20
18432 lt_prog_compiler_pic_CXX='-KPIC'
18433 ;;
18434 *)
18435 ;;
18436 esac
18437 ;;
18438 vxworks*)
18439 ;;
18440 *)
18441 lt_prog_compiler_can_build_shared_CXX=no
18442 ;;
18443 esac
18444 fi
18445
18446case $host_os in
18447 # For platforms which do not support PIC, -DPIC is meaningless:
18448 *djgpp*)
18449 lt_prog_compiler_pic_CXX=
18450 ;;
18451 *)
18452 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18453 ;;
18454esac
cristy73bd4a52010-10-05 11:24:23 +000018455
cristyda16f162011-02-19 23:52:17 +000018456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18457$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18458if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18459 $as_echo_n "(cached) " >&6
18460else
18461 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18462fi
18463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18464$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18465lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018466
18467#
18468# Check to make sure the PIC flag actually works.
18469#
18470if test -n "$lt_prog_compiler_pic_CXX"; then
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18472$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018473if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018474 $as_echo_n "(cached) " >&6
18475else
18476 lt_cv_prog_compiler_pic_works_CXX=no
18477 ac_outfile=conftest.$ac_objext
18478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18479 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18480 # Insert the option either (1) after the last *FLAGS variable, or
18481 # (2) before a word containing "conftest.", or (3) at the end.
18482 # Note that $ac_compile itself does not contain backslashes and begins
18483 # with a dollar sign (not a hyphen), so the echo should work correctly.
18484 # The option is referenced via a variable to avoid confusing sed.
18485 lt_compile=`echo "$ac_compile" | $SED \
18486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18488 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018490 (eval "$lt_compile" 2>conftest.err)
18491 ac_status=$?
18492 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018494 if (exit $ac_status) && test -s "$ac_outfile"; then
18495 # The compiler can only warn and ignore the option if not recognized
18496 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18500 lt_cv_prog_compiler_pic_works_CXX=yes
18501 fi
18502 fi
18503 $RM conftest*
18504
18505fi
18506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18507$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18508
18509if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18510 case $lt_prog_compiler_pic_CXX in
18511 "" | " "*) ;;
18512 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18513 esac
18514else
18515 lt_prog_compiler_pic_CXX=
18516 lt_prog_compiler_can_build_shared_CXX=no
18517fi
18518
18519fi
18520
18521
18522
cristyda16f162011-02-19 23:52:17 +000018523
18524
cristy73bd4a52010-10-05 11:24:23 +000018525#
18526# Check to make sure the static flag actually works.
18527#
18528wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18530$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018531if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018532 $as_echo_n "(cached) " >&6
18533else
18534 lt_cv_prog_compiler_static_works_CXX=no
18535 save_LDFLAGS="$LDFLAGS"
18536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18537 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18539 # The linker can only warn and ignore the option if not recognized
18540 # So say no if there are warnings
18541 if test -s conftest.err; then
18542 # Append any errors to the config.log.
18543 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018544 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18546 if diff conftest.exp conftest.er2 >/dev/null; then
18547 lt_cv_prog_compiler_static_works_CXX=yes
18548 fi
18549 else
18550 lt_cv_prog_compiler_static_works_CXX=yes
18551 fi
18552 fi
18553 $RM -r conftest*
18554 LDFLAGS="$save_LDFLAGS"
18555
18556fi
18557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18558$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18559
18560if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18561 :
18562else
18563 lt_prog_compiler_static_CXX=
18564fi
18565
18566
18567
18568
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18570$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018571if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018572 $as_echo_n "(cached) " >&6
18573else
18574 lt_cv_prog_compiler_c_o_CXX=no
18575 $RM -r conftest 2>/dev/null
18576 mkdir conftest
18577 cd conftest
18578 mkdir out
18579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18580
18581 lt_compiler_flag="-o out/conftest2.$ac_objext"
18582 # Insert the option either (1) after the last *FLAGS variable, or
18583 # (2) before a word containing "conftest.", or (3) at the end.
18584 # Note that $ac_compile itself does not contain backslashes and begins
18585 # with a dollar sign (not a hyphen), so the echo should work correctly.
18586 lt_compile=`echo "$ac_compile" | $SED \
18587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18589 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018591 (eval "$lt_compile" 2>out/conftest.err)
18592 ac_status=$?
18593 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18596 then
18597 # The compiler can only warn and ignore the option if not recognized
18598 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18602 lt_cv_prog_compiler_c_o_CXX=yes
18603 fi
18604 fi
18605 chmod u+w . 2>&5
18606 $RM conftest*
18607 # SGI C++ compiler will create directory out/ii_files/ for
18608 # template instantiation
18609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18610 $RM out/* && rmdir out
18611 cd ..
18612 $RM -r conftest
18613 $RM conftest*
18614
18615fi
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18617$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18618
18619
18620
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018623if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018624 $as_echo_n "(cached) " >&6
18625else
18626 lt_cv_prog_compiler_c_o_CXX=no
18627 $RM -r conftest 2>/dev/null
18628 mkdir conftest
18629 cd conftest
18630 mkdir out
18631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18632
18633 lt_compiler_flag="-o out/conftest2.$ac_objext"
18634 # Insert the option either (1) after the last *FLAGS variable, or
18635 # (2) before a word containing "conftest.", or (3) at the end.
18636 # Note that $ac_compile itself does not contain backslashes and begins
18637 # with a dollar sign (not a hyphen), so the echo should work correctly.
18638 lt_compile=`echo "$ac_compile" | $SED \
18639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18641 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018643 (eval "$lt_compile" 2>out/conftest.err)
18644 ac_status=$?
18645 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18648 then
18649 # The compiler can only warn and ignore the option if not recognized
18650 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000018651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18654 lt_cv_prog_compiler_c_o_CXX=yes
18655 fi
18656 fi
18657 chmod u+w . 2>&5
18658 $RM conftest*
18659 # SGI C++ compiler will create directory out/ii_files/ for
18660 # template instantiation
18661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18662 $RM out/* && rmdir out
18663 cd ..
18664 $RM -r conftest
18665 $RM conftest*
18666
18667fi
18668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18669$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18670
18671
18672
18673
18674hard_links="nottested"
18675if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18676 # do not overwrite the value of need_locks provided by the user
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18678$as_echo_n "checking if we can lock with hard links... " >&6; }
18679 hard_links=yes
18680 $RM conftest*
18681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18682 touch conftest.a
18683 ln conftest.a conftest.b 2>&5 || hard_links=no
18684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18686$as_echo "$hard_links" >&6; }
18687 if test "$hard_links" = no; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18689$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18690 need_locks=warn
18691 fi
18692else
18693 need_locks=no
18694fi
18695
18696
18697
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18699$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18700
18701 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018702 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000018703 case $host_os in
18704 aix[4-9]*)
18705 # If we're using GNU nm, then we don't want the "-C" option.
18706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000018707 # Also, AIX nm treats weak defined symbols like other global defined
18708 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000018709 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000018710 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 +000018711 else
18712 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'
18713 fi
18714 ;;
18715 pw32*)
18716 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000018717 ;;
cristy73bd4a52010-10-05 11:24:23 +000018718 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018719 case $cc_basename in
18720 cl*) ;;
18721 *)
18722 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'
18723 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18724 ;;
18725 esac
18726 ;;
cristy73bd4a52010-10-05 11:24:23 +000018727 *)
18728 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000018729 ;;
cristy73bd4a52010-10-05 11:24:23 +000018730 esac
cristy73bd4a52010-10-05 11:24:23 +000018731
18732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18733$as_echo "$ld_shlibs_CXX" >&6; }
18734test "$ld_shlibs_CXX" = no && can_build_shared=no
18735
18736with_gnu_ld_CXX=$with_gnu_ld
18737
18738
18739
18740
18741
18742
18743#
18744# Do we need to explicitly link libc?
18745#
18746case "x$archive_cmds_need_lc_CXX" in
18747x|xyes)
18748 # Assume -lc should be added
18749 archive_cmds_need_lc_CXX=yes
18750
18751 if test "$enable_shared" = yes && test "$GCC" = yes; then
18752 case $archive_cmds_CXX in
18753 *'~'*)
18754 # FIXME: we may have to deal with multi-command sequences.
18755 ;;
18756 '$CC '*)
18757 # Test whether the compiler implicitly links with -lc since on some
18758 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18759 # to ld, don't add -lc before -lgcc.
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18761$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018762if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018763 $as_echo_n "(cached) " >&6
18764else
18765 $RM conftest*
18766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018767
cristy0c60a692010-11-04 01:09:47 +000018768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018769 (eval $ac_compile) 2>&5
18770 ac_status=$?
18771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18772 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018773 soname=conftest
18774 lib=conftest
18775 libobjs=conftest.$ac_objext
18776 deplibs=
18777 wl=$lt_prog_compiler_wl_CXX
18778 pic_flag=$lt_prog_compiler_pic_CXX
18779 compiler_flags=-v
18780 linker_flags=-v
18781 verstring=
18782 output_objdir=.
18783 libname=conftest
18784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18785 allow_undefined_flag_CXX=
18786 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 +000018787 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18788 ac_status=$?
18789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18790 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018791 then
18792 lt_cv_archive_cmds_need_lc_CXX=no
18793 else
18794 lt_cv_archive_cmds_need_lc_CXX=yes
18795 fi
18796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18797 else
18798 cat conftest.err 1>&5
18799 fi
18800 $RM conftest*
18801
18802fi
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18804$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18805 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000018806 ;;
18807 esac
18808 fi
18809 ;;
18810esac
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18876$as_echo_n "checking dynamic linker characteristics... " >&6; }
18877
18878library_names_spec=
18879libname_spec='lib$name'
18880soname_spec=
18881shrext_cmds=".so"
18882postinstall_cmds=
18883postuninstall_cmds=
18884finish_cmds=
18885finish_eval=
18886shlibpath_var=
18887shlibpath_overrides_runpath=unknown
18888version_type=none
18889dynamic_linker="$host_os ld.so"
18890sys_lib_dlsearch_path_spec="/lib /usr/lib"
18891need_lib_prefix=unknown
18892hardcode_into_libs=no
18893
18894# when you set need_version to no, make sure it does not cause -set_version
18895# flags to be left without arguments
18896need_version=unknown
18897
18898case $host_os in
18899aix3*)
18900 version_type=linux
18901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18902 shlibpath_var=LIBPATH
18903
18904 # AIX 3 has no versioning support, so we append a major version to the name.
18905 soname_spec='${libname}${release}${shared_ext}$major'
18906 ;;
18907
18908aix[4-9]*)
18909 version_type=linux
18910 need_lib_prefix=no
18911 need_version=no
18912 hardcode_into_libs=yes
18913 if test "$host_cpu" = ia64; then
18914 # AIX 5 supports IA64
18915 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18916 shlibpath_var=LD_LIBRARY_PATH
18917 else
18918 # With GCC up to 2.95.x, collect2 would create an import file
18919 # for dependence libraries. The import file would start with
18920 # the line `#! .'. This would cause the generated library to
18921 # depend on `.', always an invalid library. This was fixed in
18922 # development snapshots of GCC prior to 3.0.
18923 case $host_os in
18924 aix4 | aix4.[01] | aix4.[01].*)
18925 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18926 echo ' yes '
18927 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18928 :
18929 else
18930 can_build_shared=no
18931 fi
18932 ;;
18933 esac
18934 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18935 # soname into executable. Probably we can add versioning support to
18936 # collect2, so additional links can be useful in future.
18937 if test "$aix_use_runtimelinking" = yes; then
18938 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18939 # instead of lib<name>.a to let people know that these are not
18940 # typical AIX shared libraries.
18941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18942 else
18943 # We preserve .a as extension for shared libraries through AIX4.2
18944 # and later when we are not doing run time linking.
18945 library_names_spec='${libname}${release}.a $libname.a'
18946 soname_spec='${libname}${release}${shared_ext}$major'
18947 fi
18948 shlibpath_var=LIBPATH
18949 fi
18950 ;;
18951
18952amigaos*)
18953 case $host_cpu in
18954 powerpc)
18955 # Since July 2007 AmigaOS4 officially supports .so libraries.
18956 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18958 ;;
18959 m68k)
18960 library_names_spec='$libname.ixlibrary $libname.a'
18961 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000018962 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 +000018963 ;;
18964 esac
18965 ;;
18966
18967beos*)
18968 library_names_spec='${libname}${shared_ext}'
18969 dynamic_linker="$host_os ld.so"
18970 shlibpath_var=LIBRARY_PATH
18971 ;;
18972
18973bsdi[45]*)
18974 version_type=linux
18975 need_version=no
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18979 shlibpath_var=LD_LIBRARY_PATH
18980 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18981 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18982 # the default ld.so.conf also contains /usr/contrib/lib and
18983 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18984 # libtool to hard-code these into programs
18985 ;;
18986
18987cygwin* | mingw* | pw32* | cegcc*)
18988 version_type=windows
18989 shrext_cmds=".dll"
18990 need_version=no
18991 need_lib_prefix=no
18992
cristyda16f162011-02-19 23:52:17 +000018993 case $GCC,$cc_basename in
18994 yes,*)
18995 # gcc
cristy73bd4a52010-10-05 11:24:23 +000018996 library_names_spec='$libname.dll.a'
18997 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18998 postinstall_cmds='base_file=`basename \${file}`~
18999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19000 dldir=$destdir/`dirname \$dlpath`~
19001 test -d \$dldir || mkdir -p \$dldir~
19002 $install_prog $dir/$dlname \$dldir/$dlname~
19003 chmod a+x \$dldir/$dlname~
19004 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19005 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19006 fi'
19007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19008 dlpath=$dir/\$dldll~
19009 $RM \$dlpath'
19010 shlibpath_overrides_runpath=yes
19011
19012 case $host_os in
19013 cygwin*)
19014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019016
cristy73bd4a52010-10-05 11:24:23 +000019017 ;;
19018 mingw* | cegcc*)
19019 # MinGW DLLs use traditional 'lib' prefix
19020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019021 ;;
19022 pw32*)
19023 # pw32 DLLs use 'pw' prefix rather than 'lib'
19024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19025 ;;
19026 esac
cristyda16f162011-02-19 23:52:17 +000019027 dynamic_linker='Win32 ld.exe'
19028 ;;
19029
19030 *,cl*)
19031 # Native MSVC
19032 libname_spec='$name'
19033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19034 library_names_spec='${libname}.dll.lib'
19035
19036 case $build_os in
19037 mingw*)
19038 sys_lib_search_path_spec=
19039 lt_save_ifs=$IFS
19040 IFS=';'
19041 for lt_path in $LIB
19042 do
19043 IFS=$lt_save_ifs
19044 # Let DOS variable expansion print the short 8.3 style file name.
19045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19047 done
19048 IFS=$lt_save_ifs
19049 # Convert to MSYS style.
19050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19051 ;;
19052 cygwin*)
19053 # Convert to unix form, then to dos form, then back to unix form
19054 # but this time dos style (no spaces!) so that the unix form looks
19055 # like /cygdrive/c/PROGRA~1:/cygdr...
19056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19059 ;;
19060 *)
19061 sys_lib_search_path_spec="$LIB"
19062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19063 # It is most probably a Windows format PATH.
19064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19065 else
19066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19067 fi
19068 # FIXME: find the short name or the path components, as spaces are
19069 # common. (e.g. "Program Files" -> "PROGRA~1")
19070 ;;
19071 esac
19072
19073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19074 postinstall_cmds='base_file=`basename \${file}`~
19075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19076 dldir=$destdir/`dirname \$dlpath`~
19077 test -d \$dldir || mkdir -p \$dldir~
19078 $install_prog $dir/$dlname \$dldir/$dlname'
19079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19080 dlpath=$dir/\$dldll~
19081 $RM \$dlpath'
19082 shlibpath_overrides_runpath=yes
19083 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019084 ;;
19085
19086 *)
cristyda16f162011-02-19 23:52:17 +000019087 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019089 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019090 ;;
19091 esac
cristy73bd4a52010-10-05 11:24:23 +000019092 # FIXME: first we should search . and the directory the executable is in
19093 shlibpath_var=PATH
19094 ;;
19095
19096darwin* | rhapsody*)
19097 dynamic_linker="$host_os dyld"
19098 version_type=darwin
19099 need_lib_prefix=no
19100 need_version=no
19101 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19102 soname_spec='${libname}${release}${major}$shared_ext'
19103 shlibpath_overrides_runpath=yes
19104 shlibpath_var=DYLD_LIBRARY_PATH
19105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19106
19107 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19108 ;;
19109
19110dgux*)
19111 version_type=linux
19112 need_lib_prefix=no
19113 need_version=no
19114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19115 soname_spec='${libname}${release}${shared_ext}$major'
19116 shlibpath_var=LD_LIBRARY_PATH
19117 ;;
19118
19119freebsd1*)
19120 dynamic_linker=no
19121 ;;
19122
19123freebsd* | dragonfly*)
19124 # DragonFly does not have aout. When/if they implement a new
19125 # versioning mechanism, adjust this.
19126 if test -x /usr/bin/objformat; then
19127 objformat=`/usr/bin/objformat`
19128 else
19129 case $host_os in
19130 freebsd[123]*) objformat=aout ;;
19131 *) objformat=elf ;;
19132 esac
19133 fi
19134 version_type=freebsd-$objformat
19135 case $version_type in
19136 freebsd-elf*)
19137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19138 need_version=no
19139 need_lib_prefix=no
19140 ;;
19141 freebsd-*)
19142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19143 need_version=yes
19144 ;;
19145 esac
19146 shlibpath_var=LD_LIBRARY_PATH
19147 case $host_os in
19148 freebsd2*)
19149 shlibpath_overrides_runpath=yes
19150 ;;
19151 freebsd3.[01]* | freebsdelf3.[01]*)
19152 shlibpath_overrides_runpath=yes
19153 hardcode_into_libs=yes
19154 ;;
19155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19157 shlibpath_overrides_runpath=no
19158 hardcode_into_libs=yes
19159 ;;
19160 *) # from 4.6 on, and DragonFly
19161 shlibpath_overrides_runpath=yes
19162 hardcode_into_libs=yes
19163 ;;
19164 esac
19165 ;;
19166
19167gnu*)
19168 version_type=linux
19169 need_lib_prefix=no
19170 need_version=no
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19172 soname_spec='${libname}${release}${shared_ext}$major'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 hardcode_into_libs=yes
19175 ;;
19176
cristy0c60a692010-11-04 01:09:47 +000019177haiku*)
19178 version_type=linux
19179 need_lib_prefix=no
19180 need_version=no
19181 dynamic_linker="$host_os runtime_loader"
19182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19183 soname_spec='${libname}${release}${shared_ext}$major'
19184 shlibpath_var=LIBRARY_PATH
19185 shlibpath_overrides_runpath=yes
19186 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19187 hardcode_into_libs=yes
19188 ;;
19189
cristy73bd4a52010-10-05 11:24:23 +000019190hpux9* | hpux10* | hpux11*)
19191 # Give a soname corresponding to the major version so that dld.sl refuses to
19192 # link against other versions.
19193 version_type=sunos
19194 need_lib_prefix=no
19195 need_version=no
19196 case $host_cpu in
19197 ia64*)
19198 shrext_cmds='.so'
19199 hardcode_into_libs=yes
19200 dynamic_linker="$host_os dld.so"
19201 shlibpath_var=LD_LIBRARY_PATH
19202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19204 soname_spec='${libname}${release}${shared_ext}$major'
19205 if test "X$HPUX_IA64_MODE" = X32; then
19206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19207 else
19208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19209 fi
19210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19211 ;;
19212 hppa*64*)
19213 shrext_cmds='.sl'
19214 hardcode_into_libs=yes
19215 dynamic_linker="$host_os dld.sl"
19216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19219 soname_spec='${libname}${release}${shared_ext}$major'
19220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19222 ;;
19223 *)
19224 shrext_cmds='.sl'
19225 dynamic_linker="$host_os dld.sl"
19226 shlibpath_var=SHLIB_PATH
19227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19229 soname_spec='${libname}${release}${shared_ext}$major'
19230 ;;
19231 esac
cristy0c60a692010-11-04 01:09:47 +000019232 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019233 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019234 # or fails outright, so override atomically:
19235 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019236 ;;
19237
19238interix[3-9]*)
19239 version_type=linux
19240 need_lib_prefix=no
19241 need_version=no
19242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19243 soname_spec='${libname}${release}${shared_ext}$major'
19244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19245 shlibpath_var=LD_LIBRARY_PATH
19246 shlibpath_overrides_runpath=no
19247 hardcode_into_libs=yes
19248 ;;
19249
19250irix5* | irix6* | nonstopux*)
19251 case $host_os in
19252 nonstopux*) version_type=nonstopux ;;
19253 *)
19254 if test "$lt_cv_prog_gnu_ld" = yes; then
19255 version_type=linux
19256 else
19257 version_type=irix
19258 fi ;;
19259 esac
19260 need_lib_prefix=no
19261 need_version=no
19262 soname_spec='${libname}${release}${shared_ext}$major'
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19264 case $host_os in
19265 irix5* | nonstopux*)
19266 libsuff= shlibsuff=
19267 ;;
19268 *)
19269 case $LD in # libtool.m4 will add one of these switches to LD
19270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19271 libsuff= shlibsuff= libmagic=32-bit;;
19272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19273 libsuff=32 shlibsuff=N32 libmagic=N32;;
19274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19276 *) libsuff= shlibsuff= libmagic=never-match;;
19277 esac
19278 ;;
19279 esac
19280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19281 shlibpath_overrides_runpath=no
19282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19284 hardcode_into_libs=yes
19285 ;;
19286
19287# No shared lib support for Linux oldld, aout, or coff.
19288linux*oldld* | linux*aout* | linux*coff*)
19289 dynamic_linker=no
19290 ;;
19291
19292# This must be Linux ELF.
cristy0c60a692010-11-04 01:09:47 +000019293linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019294 version_type=linux
19295 need_lib_prefix=no
19296 need_version=no
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019302
cristy73bd4a52010-10-05 11:24:23 +000019303 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019304 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019305 $as_echo_n "(cached) " >&6
19306else
19307 lt_cv_shlibpath_overrides_runpath=no
19308 save_LDFLAGS=$LDFLAGS
19309 save_libdir=$libdir
19310 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19311 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019313/* end confdefs.h. */
19314
19315int
19316main ()
19317{
19318
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323if ac_fn_cxx_try_link "$LINENO"; then :
19324 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019325 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019326fi
19327fi
19328rm -f core conftest.err conftest.$ac_objext \
19329 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019330 LDFLAGS=$save_LDFLAGS
19331 libdir=$save_libdir
19332
19333fi
19334
19335 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019336
19337 # This implies no fast_install, which is unacceptable.
19338 # Some rework will be needed to allow for fast_install
19339 # before this can be enabled.
19340 hardcode_into_libs=yes
19341
19342 # Add ABI-specific directories to the system library path.
19343 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19344
19345 # Append ld.so.conf contents to the search path
19346 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019347 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 +000019348 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019349
cristy73bd4a52010-10-05 11:24:23 +000019350 fi
19351
19352 # We used to test for /lib/ld.so.1 and disable shared libraries on
19353 # powerpc, because MkLinux only supported shared libraries with the
19354 # GNU dynamic linker. Since this was broken with cross compilers,
19355 # most powerpc-linux boxes support dynamic linking these days and
19356 # people can always --disable-shared, the test was removed, and we
19357 # assume the GNU/Linux dynamic linker is in use.
19358 dynamic_linker='GNU/Linux ld.so'
19359 ;;
19360
19361netbsd*)
19362 version_type=sunos
19363 need_lib_prefix=no
19364 need_version=no
19365 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19368 dynamic_linker='NetBSD (a.out) ld.so'
19369 else
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19371 soname_spec='${libname}${release}${shared_ext}$major'
19372 dynamic_linker='NetBSD ld.elf_so'
19373 fi
19374 shlibpath_var=LD_LIBRARY_PATH
19375 shlibpath_overrides_runpath=yes
19376 hardcode_into_libs=yes
19377 ;;
19378
19379newsos6)
19380 version_type=linux
19381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19382 shlibpath_var=LD_LIBRARY_PATH
19383 shlibpath_overrides_runpath=yes
19384 ;;
19385
19386*nto* | *qnx*)
19387 version_type=qnx
19388 need_lib_prefix=no
19389 need_version=no
19390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19391 soname_spec='${libname}${release}${shared_ext}$major'
19392 shlibpath_var=LD_LIBRARY_PATH
19393 shlibpath_overrides_runpath=no
19394 hardcode_into_libs=yes
19395 dynamic_linker='ldqnx.so'
19396 ;;
19397
19398openbsd*)
19399 version_type=sunos
19400 sys_lib_dlsearch_path_spec="/usr/lib"
19401 need_lib_prefix=no
19402 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19403 case $host_os in
19404 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19405 *) need_version=no ;;
19406 esac
19407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19409 shlibpath_var=LD_LIBRARY_PATH
19410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19411 case $host_os in
19412 openbsd2.[89] | openbsd2.[89].*)
19413 shlibpath_overrides_runpath=no
19414 ;;
19415 *)
19416 shlibpath_overrides_runpath=yes
19417 ;;
19418 esac
19419 else
19420 shlibpath_overrides_runpath=yes
19421 fi
19422 ;;
19423
19424os2*)
19425 libname_spec='$name'
19426 shrext_cmds=".dll"
19427 need_lib_prefix=no
19428 library_names_spec='$libname${shared_ext} $libname.a'
19429 dynamic_linker='OS/2 ld.exe'
19430 shlibpath_var=LIBPATH
19431 ;;
19432
19433osf3* | osf4* | osf5*)
19434 version_type=osf
19435 need_lib_prefix=no
19436 need_version=no
19437 soname_spec='${libname}${release}${shared_ext}$major'
19438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19439 shlibpath_var=LD_LIBRARY_PATH
19440 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19441 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19442 ;;
19443
19444rdos*)
19445 dynamic_linker=no
19446 ;;
19447
19448solaris*)
19449 version_type=linux
19450 need_lib_prefix=no
19451 need_version=no
19452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19453 soname_spec='${libname}${release}${shared_ext}$major'
19454 shlibpath_var=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath=yes
19456 hardcode_into_libs=yes
19457 # ldd complains unless libraries are executable
19458 postinstall_cmds='chmod +x $lib'
19459 ;;
19460
19461sunos4*)
19462 version_type=sunos
19463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19465 shlibpath_var=LD_LIBRARY_PATH
19466 shlibpath_overrides_runpath=yes
19467 if test "$with_gnu_ld" = yes; then
19468 need_lib_prefix=no
19469 fi
19470 need_version=yes
19471 ;;
19472
19473sysv4 | sysv4.3*)
19474 version_type=linux
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19476 soname_spec='${libname}${release}${shared_ext}$major'
19477 shlibpath_var=LD_LIBRARY_PATH
19478 case $host_vendor in
19479 sni)
19480 shlibpath_overrides_runpath=no
19481 need_lib_prefix=no
19482 runpath_var=LD_RUN_PATH
19483 ;;
19484 siemens)
19485 need_lib_prefix=no
19486 ;;
19487 motorola)
19488 need_lib_prefix=no
19489 need_version=no
19490 shlibpath_overrides_runpath=no
19491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19492 ;;
19493 esac
19494 ;;
19495
19496sysv4*MP*)
19497 if test -d /usr/nec ;then
19498 version_type=linux
19499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19500 soname_spec='$libname${shared_ext}.$major'
19501 shlibpath_var=LD_LIBRARY_PATH
19502 fi
19503 ;;
19504
19505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19506 version_type=freebsd-elf
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19510 soname_spec='${libname}${release}${shared_ext}$major'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath=yes
19513 hardcode_into_libs=yes
19514 if test "$with_gnu_ld" = yes; then
19515 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19516 else
19517 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19518 case $host_os in
19519 sco3.2v5*)
19520 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19521 ;;
19522 esac
19523 fi
19524 sys_lib_dlsearch_path_spec='/usr/lib'
19525 ;;
19526
19527tpf*)
19528 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19529 version_type=linux
19530 need_lib_prefix=no
19531 need_version=no
19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19533 shlibpath_var=LD_LIBRARY_PATH
19534 shlibpath_overrides_runpath=no
19535 hardcode_into_libs=yes
19536 ;;
19537
19538uts4*)
19539 version_type=linux
19540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19541 soname_spec='${libname}${release}${shared_ext}$major'
19542 shlibpath_var=LD_LIBRARY_PATH
19543 ;;
19544
19545*)
19546 dynamic_linker=no
19547 ;;
19548esac
19549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19550$as_echo "$dynamic_linker" >&6; }
19551test "$dynamic_linker" = no && can_build_shared=no
19552
19553variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19554if test "$GCC" = yes; then
19555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19556fi
19557
19558if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19559 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19560fi
19561if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19562 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19563fi
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
cristy0c60a692010-11-04 01:09:47 +000019600
19601
cristy73bd4a52010-10-05 11:24:23 +000019602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19603$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19604hardcode_action_CXX=
19605if test -n "$hardcode_libdir_flag_spec_CXX" ||
19606 test -n "$runpath_var_CXX" ||
19607 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19608
19609 # We can hardcode non-existent directories.
19610 if test "$hardcode_direct_CXX" != no &&
19611 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19612 # have to relink, otherwise we might link with an installed library
19613 # when we should be linking with a yet-to-be-installed one
19614 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19615 test "$hardcode_minus_L_CXX" != no; then
19616 # Linking always hardcodes the temporary library directory.
19617 hardcode_action_CXX=relink
19618 else
19619 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19620 hardcode_action_CXX=immediate
19621 fi
19622else
19623 # We cannot hardcode anything, or else we can only hardcode existing
19624 # directories.
19625 hardcode_action_CXX=unsupported
19626fi
19627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19628$as_echo "$hardcode_action_CXX" >&6; }
19629
19630if test "$hardcode_action_CXX" = relink ||
19631 test "$inherit_rpath_CXX" = yes; then
19632 # Fast installation is not supported
19633 enable_fast_install=no
19634elif test "$shlibpath_overrides_runpath" = yes ||
19635 test "$enable_shared" = no; then
19636 # Fast installation is not necessary
19637 enable_fast_install=needless
19638fi
19639
19640
19641
19642
19643
19644
19645
19646 fi # test -n "$compiler"
19647
19648 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000019649 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019650 LDCXX=$LD
19651 LD=$lt_save_LD
19652 GCC=$lt_save_GCC
19653 with_gnu_ld=$lt_save_with_gnu_ld
19654 lt_cv_path_LDCXX=$lt_cv_path_LD
19655 lt_cv_path_LD=$lt_save_path_LD
19656 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19657 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19658fi # test "$_lt_caught_CXX_error" != yes
19659
19660ac_ext=c
19661ac_cpp='$CPP $CPPFLAGS'
19662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19664ac_compiler_gnu=$ac_cv_c_compiler_gnu
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678 ac_config_commands="$ac_config_commands libtool"
19679
19680
19681
19682
19683# Only expand once:
19684
19685
19686
cristy3ed852e2009-09-05 21:47:34 +000019687
19688
19689# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000019690
19691
19692
19693
19694
19695
19696
cristy73bd4a52010-10-05 11:24:23 +000019697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19698$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019699if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019700 $as_echo_n "(cached) " >&6
19701else
19702
19703module=yes
19704eval libltdl_cv_shlibext=$shrext_cmds
19705
19706fi
19707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19708$as_echo "$libltdl_cv_shlibext" >&6; }
19709if test -n "$libltdl_cv_shlibext"; then
19710
19711cat >>confdefs.h <<_ACEOF
19712#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19713_ACEOF
19714
19715fi
19716
19717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19718$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019719if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019720 $as_echo_n "(cached) " >&6
19721else
19722 lt_cv_module_path_var="$shlibpath_var"
19723fi
19724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19725$as_echo "$lt_cv_module_path_var" >&6; }
19726if test -n "$lt_cv_module_path_var"; then
19727
19728cat >>confdefs.h <<_ACEOF
19729#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19730_ACEOF
19731
19732fi
19733
19734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19735$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019736if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019737 $as_echo_n "(cached) " >&6
19738else
19739 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19740fi
19741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19742$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19743if test -n "$lt_cv_sys_dlsearch_path"; then
19744 sys_dlsearch_path=
19745 for dir in $lt_cv_sys_dlsearch_path; do
19746 if test -z "$sys_dlsearch_path"; then
19747 sys_dlsearch_path="$dir"
19748 else
19749 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19750 fi
19751 done
19752
19753cat >>confdefs.h <<_ACEOF
19754#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19755_ACEOF
19756
19757fi
19758
19759
19760LT_DLLOADERS=
19761
19762
19763ac_ext=c
19764ac_cpp='$CPP $CPPFLAGS'
19765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19767ac_compiler_gnu=$ac_cv_c_compiler_gnu
19768
19769
19770LIBADD_DLOPEN=
19771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19772$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019773if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019774 $as_echo_n "(cached) " >&6
19775else
19776 ac_func_search_save_LIBS=$LIBS
19777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19778/* end confdefs.h. */
19779
19780/* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783#ifdef __cplusplus
19784extern "C"
19785#endif
19786char dlopen ();
19787int
19788main ()
19789{
19790return dlopen ();
19791 ;
19792 return 0;
19793}
19794_ACEOF
19795for ac_lib in '' dl; do
19796 if test -z "$ac_lib"; then
19797 ac_res="none required"
19798 else
19799 ac_res=-l$ac_lib
19800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19801 fi
19802 if ac_fn_c_try_link "$LINENO"; then :
19803 ac_cv_search_dlopen=$ac_res
19804fi
19805rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000019807 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019808 break
19809fi
19810done
cristyda16f162011-02-19 23:52:17 +000019811if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019812
19813else
19814 ac_cv_search_dlopen=no
19815fi
19816rm conftest.$ac_ext
19817LIBS=$ac_func_search_save_LIBS
19818fi
19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19820$as_echo "$ac_cv_search_dlopen" >&6; }
19821ac_res=$ac_cv_search_dlopen
19822if test "$ac_res" != no; then :
19823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19824
19825$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19826
19827 if test "$ac_cv_search_dlopen" != "none required" ; then
19828 LIBADD_DLOPEN="-ldl"
19829 fi
19830 libltdl_cv_lib_dl_dlopen="yes"
19831 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19832else
19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19834/* end confdefs.h. */
19835#if HAVE_DLFCN_H
19836# include <dlfcn.h>
19837#endif
19838
19839int
19840main ()
19841{
19842dlopen(0, 0);
19843 ;
19844 return 0;
19845}
19846_ACEOF
19847if ac_fn_c_try_link "$LINENO"; then :
19848
19849$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19850
19851 libltdl_cv_func_dlopen="yes"
19852 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19853else
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19855$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019856if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019857 $as_echo_n "(cached) " >&6
19858else
19859 ac_check_lib_save_LIBS=$LIBS
19860LIBS="-lsvld $LIBS"
19861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862/* end confdefs.h. */
19863
19864/* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19867#ifdef __cplusplus
19868extern "C"
19869#endif
19870char dlopen ();
19871int
19872main ()
19873{
19874return dlopen ();
19875 ;
19876 return 0;
19877}
19878_ACEOF
19879if ac_fn_c_try_link "$LINENO"; then :
19880 ac_cv_lib_svld_dlopen=yes
19881else
19882 ac_cv_lib_svld_dlopen=no
19883fi
19884rm -f core conftest.err conftest.$ac_objext \
19885 conftest$ac_exeext conftest.$ac_ext
19886LIBS=$ac_check_lib_save_LIBS
19887fi
19888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19889$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019890if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019891
19892$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19893
19894 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19895 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19896fi
19897
19898fi
19899rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19901fi
19902
19903if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19904then
19905 lt_save_LIBS="$LIBS"
19906 LIBS="$LIBS $LIBADD_DLOPEN"
19907 for ac_func in dlerror
19908do :
19909 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000019910if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019911 cat >>confdefs.h <<_ACEOF
19912#define HAVE_DLERROR 1
19913_ACEOF
19914
19915fi
19916done
19917
19918 LIBS="$lt_save_LIBS"
19919fi
19920
19921
19922LIBADD_SHL_LOAD=
19923ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019924if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019925
19926$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19927
19928 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19929else
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19931$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019932if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019933 $as_echo_n "(cached) " >&6
19934else
19935 ac_check_lib_save_LIBS=$LIBS
19936LIBS="-ldld $LIBS"
19937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938/* end confdefs.h. */
19939
19940/* Override any GCC internal prototype to avoid an error.
19941 Use char because int might match the return type of a GCC
19942 builtin and then its argument prototype would still apply. */
19943#ifdef __cplusplus
19944extern "C"
19945#endif
19946char shl_load ();
19947int
19948main ()
19949{
19950return shl_load ();
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955if ac_fn_c_try_link "$LINENO"; then :
19956 ac_cv_lib_dld_shl_load=yes
19957else
19958 ac_cv_lib_dld_shl_load=no
19959fi
19960rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962LIBS=$ac_check_lib_save_LIBS
19963fi
19964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19965$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019966if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019967
19968$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19969
19970 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19971 LIBADD_SHL_LOAD="-ldld"
19972fi
19973
19974fi
19975
19976
19977
19978case $host_os in
19979darwin[1567].*)
19980# We only want this for pre-Mac OS X 10.4.
19981 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000019982if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019983
19984$as_echo "#define HAVE_DYLD 1" >>confdefs.h
19985
19986 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19987fi
19988
19989 ;;
19990beos*)
19991 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19992 ;;
19993cygwin* | mingw* | os2* | pw32*)
19994 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19995"
cristyda16f162011-02-19 23:52:17 +000019996if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000019997 ac_have_decl=1
19998else
19999 ac_have_decl=0
20000fi
20001
20002cat >>confdefs.h <<_ACEOF
20003#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20004_ACEOF
20005
20006 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20007 ;;
20008esac
20009
20010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20011$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020012if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020013 $as_echo_n "(cached) " >&6
20014else
20015 ac_check_lib_save_LIBS=$LIBS
20016LIBS="-ldld $LIBS"
20017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018/* end confdefs.h. */
20019
20020/* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023#ifdef __cplusplus
20024extern "C"
20025#endif
20026char dld_link ();
20027int
20028main ()
20029{
20030return dld_link ();
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035if ac_fn_c_try_link "$LINENO"; then :
20036 ac_cv_lib_dld_dld_link=yes
20037else
20038 ac_cv_lib_dld_dld_link=no
20039fi
20040rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042LIBS=$ac_check_lib_save_LIBS
20043fi
20044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20045$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020046if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020047
20048$as_echo "#define HAVE_DLD 1" >>confdefs.h
20049
20050 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20051fi
20052
20053
20054
20055
20056LT_DLPREOPEN=
20057if test -n "$LT_DLLOADERS"
20058then
20059 for lt_loader in $LT_DLLOADERS; do
20060 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20061 done
20062
20063$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20064
20065fi
20066
20067
20068LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20069
20070
20071ac_ext=c
20072ac_cpp='$CPP $CPPFLAGS'
20073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075ac_compiler_gnu=$ac_cv_c_compiler_gnu
20076
20077
20078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20079$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020080if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020081 $as_echo_n "(cached) " >&6
20082else
20083 lt_cv_sys_symbol_underscore=no
20084 cat > conftest.$ac_ext <<_LT_EOF
20085void nm_test_func(){}
20086int main(){nm_test_func;return 0;}
20087_LT_EOF
20088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20089 (eval $ac_compile) 2>&5
20090 ac_status=$?
20091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20092 test $ac_status = 0; }; then
20093 # Now try to grab the symbols.
20094 ac_nlist=conftest.nm
20095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20096 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20097 ac_status=$?
20098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20099 test $ac_status = 0; } && test -s "$ac_nlist"; then
20100 # See whether the symbols have a leading underscore.
20101 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20102 lt_cv_sys_symbol_underscore=yes
20103 else
20104 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20105 :
20106 else
20107 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20108 fi
20109 fi
20110 else
20111 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20112 fi
20113 else
20114 echo "configure: failed program was:" >&5
20115 cat conftest.c >&5
20116 fi
20117 rm -rf conftest*
20118
20119fi
20120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20121$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20122 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20123
20124
20125if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20126 if test x"$libltdl_cv_func_dlopen" = xyes ||
20127 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20129$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020130if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020131 $as_echo_n "(cached) " >&6
20132else
20133 libltdl_cv_need_uscore=unknown
20134 save_LIBS="$LIBS"
20135 LIBS="$LIBS $LIBADD_DLOPEN"
20136 if test "$cross_compiling" = yes; then :
20137 libltdl_cv_need_uscore=cross
20138else
20139 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20140 lt_status=$lt_dlunknown
20141 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020142#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020143#include "confdefs.h"
20144
20145#if HAVE_DLFCN_H
20146#include <dlfcn.h>
20147#endif
20148
20149#include <stdio.h>
20150
20151#ifdef RTLD_GLOBAL
20152# define LT_DLGLOBAL RTLD_GLOBAL
20153#else
20154# ifdef DL_GLOBAL
20155# define LT_DLGLOBAL DL_GLOBAL
20156# else
20157# define LT_DLGLOBAL 0
20158# endif
20159#endif
20160
20161/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20162 find out it does not work in some platform. */
20163#ifndef LT_DLLAZY_OR_NOW
20164# ifdef RTLD_LAZY
20165# define LT_DLLAZY_OR_NOW RTLD_LAZY
20166# else
20167# ifdef DL_LAZY
20168# define LT_DLLAZY_OR_NOW DL_LAZY
20169# else
20170# ifdef RTLD_NOW
20171# define LT_DLLAZY_OR_NOW RTLD_NOW
20172# else
20173# ifdef DL_NOW
20174# define LT_DLLAZY_OR_NOW DL_NOW
20175# else
20176# define LT_DLLAZY_OR_NOW 0
20177# endif
20178# endif
20179# endif
20180# endif
20181#endif
20182
cristy0c60a692010-11-04 01:09:47 +000020183/* When -fvisbility=hidden is used, assume the code has been annotated
20184 correspondingly for the symbols needed. */
20185#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020186int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020187#endif
20188
cristyda16f162011-02-19 23:52:17 +000020189int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020190int main ()
20191{
20192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20193 int status = $lt_dlunknown;
20194
20195 if (self)
20196 {
20197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020198 else
20199 {
20200 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20201 else puts (dlerror ());
20202 }
cristy73bd4a52010-10-05 11:24:23 +000020203 /* dlclose (self); */
20204 }
20205 else
20206 puts (dlerror ());
20207
20208 return status;
20209}
20210_LT_EOF
20211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20212 (eval $ac_link) 2>&5
20213 ac_status=$?
20214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20215 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20216 (./conftest; exit; ) >&5 2>/dev/null
20217 lt_status=$?
20218 case x$lt_status in
20219 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20220 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20221 x$lt_dlunknown|x*) ;;
20222 esac
20223 else :
20224 # compilation failed
20225
20226 fi
20227fi
20228rm -fr conftest*
20229
20230 LIBS="$save_LIBS"
20231
20232fi
20233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20234$as_echo "$libltdl_cv_need_uscore" >&6; }
20235 fi
20236fi
20237
20238if test x"$libltdl_cv_need_uscore" = xyes; then
20239
20240$as_echo "#define NEED_USCORE 1" >>confdefs.h
20241
20242fi
20243
20244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20245$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020246if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020247 $as_echo_n "(cached) " >&6
20248else
20249 # PORTME does your system automatically load deplibs for dlopen?
20250 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20251 # For now, we just catch OSes we know something about -- in the
20252 # future, we'll try test this programmatically.
20253 lt_cv_sys_dlopen_deplibs=unknown
20254 case $host_os in
20255 aix3*|aix4.1.*|aix4.2.*)
20256 # Unknown whether this is true for these versions of AIX, but
20257 # we want this `case' here to explicitly catch those versions.
20258 lt_cv_sys_dlopen_deplibs=unknown
20259 ;;
20260 aix[4-9]*)
20261 lt_cv_sys_dlopen_deplibs=yes
20262 ;;
20263 amigaos*)
20264 case $host_cpu in
20265 powerpc)
20266 lt_cv_sys_dlopen_deplibs=no
20267 ;;
20268 esac
20269 ;;
20270 darwin*)
20271 # Assuming the user has installed a libdl from somewhere, this is true
20272 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20273 lt_cv_sys_dlopen_deplibs=yes
20274 ;;
20275 freebsd* | dragonfly*)
20276 lt_cv_sys_dlopen_deplibs=yes
20277 ;;
cristy0c60a692010-11-04 01:09:47 +000020278 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020279 # GNU and its variants, using gnu ld.so (Glibc)
20280 lt_cv_sys_dlopen_deplibs=yes
20281 ;;
20282 hpux10*|hpux11*)
20283 lt_cv_sys_dlopen_deplibs=yes
20284 ;;
20285 interix*)
20286 lt_cv_sys_dlopen_deplibs=yes
20287 ;;
20288 irix[12345]*|irix6.[01]*)
20289 # Catch all versions of IRIX before 6.2, and indicate that we don't
20290 # know how it worked for any of those versions.
20291 lt_cv_sys_dlopen_deplibs=unknown
20292 ;;
20293 irix*)
20294 # The case above catches anything before 6.2, and it's known that
20295 # at 6.2 and later dlopen does load deplibs.
20296 lt_cv_sys_dlopen_deplibs=yes
20297 ;;
20298 netbsd*)
20299 lt_cv_sys_dlopen_deplibs=yes
20300 ;;
20301 openbsd*)
20302 lt_cv_sys_dlopen_deplibs=yes
20303 ;;
20304 osf[1234]*)
20305 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20306 # it did *not* use an RPATH in a shared library to find objects the
20307 # library depends on, so we explicitly say `no'.
20308 lt_cv_sys_dlopen_deplibs=no
20309 ;;
20310 osf5.0|osf5.0a|osf5.1)
20311 # dlopen *does* load deplibs and with the right loader patch applied
20312 # it even uses RPATH in a shared library to search for shared objects
20313 # that the library depends on, but there's no easy way to know if that
20314 # patch is installed. Since this is the case, all we can really
20315 # say is unknown -- it depends on the patch being installed. If
20316 # it is, this changes to `yes'. Without it, it would be `no'.
20317 lt_cv_sys_dlopen_deplibs=unknown
20318 ;;
20319 osf*)
20320 # the two cases above should catch all versions of osf <= 5.1. Read
20321 # the comments above for what we know about them.
20322 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20323 # is used to find them so we can finally say `yes'.
20324 lt_cv_sys_dlopen_deplibs=yes
20325 ;;
20326 qnx*)
20327 lt_cv_sys_dlopen_deplibs=yes
20328 ;;
20329 solaris*)
20330 lt_cv_sys_dlopen_deplibs=yes
20331 ;;
20332 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20333 libltdl_cv_sys_dlopen_deplibs=yes
20334 ;;
20335 esac
20336
20337fi
20338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20339$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20340if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20341
20342$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20343
20344fi
20345
20346:
20347
20348for ac_header in argz.h
20349do :
20350 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20351"
cristyda16f162011-02-19 23:52:17 +000020352if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020353 cat >>confdefs.h <<_ACEOF
20354#define HAVE_ARGZ_H 1
20355_ACEOF
20356
20357fi
20358
20359done
20360
20361
20362ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20363# include <argz.h>
20364#endif
20365"
cristyda16f162011-02-19 23:52:17 +000020366if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020367
20368cat >>confdefs.h <<_ACEOF
20369#define HAVE_ERROR_T 1
20370_ACEOF
20371
20372
20373else
20374
20375$as_echo "#define error_t int" >>confdefs.h
20376
20377
20378$as_echo "#define __error_t_defined 1" >>confdefs.h
20379
20380fi
20381
20382
20383ARGZ_H=
20384for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20385 argz_next argz_stringify
20386do :
20387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20388ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020389if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020390 cat >>confdefs.h <<_ACEOF
20391#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20392_ACEOF
20393
20394else
20395 ARGZ_H=argz.h;
20396
20397 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20398
20399fi
20400done
20401
20402
20403if test -z "$ARGZ_H"; then :
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20405$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020406if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020407 $as_echo_n "(cached) " >&6
20408else
20409 case $host_os in #(
20410 *cygwin*)
20411 lt_cv_sys_argz_works=no
20412 if test "$cross_compiling" != no; then
20413 lt_cv_sys_argz_works="guessing no"
20414 else
20415 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20416 save_IFS=$IFS
20417 IFS=-.
20418 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20419 IFS=$save_IFS
20420 lt_os_major=${2-0}
20421 lt_os_minor=${3-0}
20422 lt_os_micro=${4-0}
20423 if test "$lt_os_major" -gt 1 \
20424 || { test "$lt_os_major" -eq 1 \
20425 && { test "$lt_os_minor" -gt 5 \
20426 || { test "$lt_os_minor" -eq 5 \
20427 && test "$lt_os_micro" -gt 24; }; }; }; then
20428 lt_cv_sys_argz_works=yes
20429 fi
20430 fi
20431 ;; #(
20432 *) lt_cv_sys_argz_works=yes ;;
20433 esac
20434fi
20435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20436$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020437 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020438
20439$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20440
20441else
20442 ARGZ_H=argz.h
20443
20444
20445 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20446
20447fi
20448fi
20449
20450
20451
20452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20453$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020454if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020455 $as_echo_n "(cached) " >&6
20456else
20457 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20458 libltdl_cv_preloaded_symbols=yes
20459 else
20460 libltdl_cv_preloaded_symbols=no
20461 fi
20462
20463fi
20464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20465$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20466if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20467
20468$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20469
20470fi
20471
20472# Set options
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484# Check whether --with-included_ltdl was given.
20485if test "${with_included_ltdl+set}" = set; then :
20486 withval=$with_included_ltdl;
20487fi
20488
20489
20490if test "x$with_included_ltdl" != xyes; then
20491 # We are not being forced to use the included libltdl sources, so
20492 # decide whether there is a useful installed version we can use.
20493 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20494
20495"
cristyda16f162011-02-19 23:52:17 +000020496if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020497 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20498 #include <ltdl.h>
20499"
cristyda16f162011-02-19 23:52:17 +000020500if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20502$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020503if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020504 $as_echo_n "(cached) " >&6
20505else
20506 ac_check_lib_save_LIBS=$LIBS
20507LIBS="-lltdl $LIBS"
20508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509/* end confdefs.h. */
20510
20511/* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20514#ifdef __cplusplus
20515extern "C"
20516#endif
20517char lt_dladvise_preload ();
20518int
20519main ()
20520{
20521return lt_dladvise_preload ();
20522 ;
20523 return 0;
20524}
20525_ACEOF
20526if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20528else
20529 ac_cv_lib_ltdl_lt_dladvise_preload=no
20530fi
20531rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533LIBS=$ac_check_lib_save_LIBS
20534fi
20535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20536$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020537if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020538 with_included_ltdl=no
20539else
20540 with_included_ltdl=yes
20541fi
20542
20543else
20544 with_included_ltdl=yes
20545fi
20546
20547else
20548 with_included_ltdl=yes
20549fi
20550
20551
20552fi
20553
20554
20555
20556
20557# Check whether --with-ltdl_include was given.
20558if test "${with_ltdl_include+set}" = set; then :
20559 withval=$with_ltdl_include;
20560fi
20561
20562
20563if test -n "$with_ltdl_include"; then
20564 if test -f "$with_ltdl_include/ltdl.h"; then :
20565 else
cristy98dddb52010-11-04 00:30:15 +000020566 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020567 fi
20568else
20569 with_ltdl_include=no
20570fi
20571
20572
20573# Check whether --with-ltdl_lib was given.
20574if test "${with_ltdl_lib+set}" = set; then :
20575 withval=$with_ltdl_lib;
20576fi
20577
20578
20579if test -n "$with_ltdl_lib"; then
20580 if test -f "$with_ltdl_lib/libltdl.la"; then :
20581 else
cristy98dddb52010-11-04 00:30:15 +000020582 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020583 fi
20584else
20585 with_ltdl_lib=no
20586fi
20587
20588case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20589 ,yes,no,no,)
20590 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000020591 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000020592 "") enable_ltdl_convenience=yes
20593 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20594esac
20595LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20596LTDLDEPS=$LIBLTDL
20597LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20598
20599
20600
20601
20602
20603# For backwards non-gettext consistent compatibility...
20604INCLTDL="$LTDLINCL"
20605
20606
20607 ;;
20608 ,no,no,no,)
20609 # If the included ltdl is not to be used, then use the
20610 # preinstalled libltdl we found.
20611
20612$as_echo "#define HAVE_LTDL 1" >>confdefs.h
20613
20614 LIBLTDL=-lltdl
20615 LTDLDEPS=
20616 LTDLINCL=
20617 ;;
20618 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000020619 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020620 ;;
20621 *) with_included_ltdl=no
20622 LIBLTDL="-L$with_ltdl_lib -lltdl"
20623 LTDLDEPS=
20624 LTDLINCL="-I$with_ltdl_include"
20625 ;;
20626esac
20627INCLTDL="$LTDLINCL"
20628
20629# Report our decision...
20630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20631$as_echo_n "checking where to find libltdl headers... " >&6; }
20632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20633$as_echo "$LTDLINCL" >&6; }
20634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20635$as_echo_n "checking where to find libltdl library... " >&6; }
20636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20637$as_echo "$LIBLTDL" >&6; }
20638
20639
20640
20641# Check whether --enable-ltdl-install was given.
20642if test "${enable_ltdl_install+set}" = set; then :
20643 enableval=$enable_ltdl_install;
20644fi
20645
20646
20647case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20648 *yes*) ;;
20649 *) enable_ltdl_convenience=yes ;;
20650esac
20651
20652 if test x"${enable_ltdl_install-no}" != xno; then
20653 INSTALL_LTDL_TRUE=
20654 INSTALL_LTDL_FALSE='#'
20655else
20656 INSTALL_LTDL_TRUE='#'
20657 INSTALL_LTDL_FALSE=
20658fi
20659
20660 if test x"${enable_ltdl_convenience-no}" != xno; then
20661 CONVENIENCE_LTDL_TRUE=
20662 CONVENIENCE_LTDL_FALSE='#'
20663else
20664 CONVENIENCE_LTDL_TRUE='#'
20665 CONVENIENCE_LTDL_FALSE=
20666fi
20667
20668
20669
20670
20671
20672
cristy73bd4a52010-10-05 11:24:23 +000020673# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20674# the user used. This is so that ltdl.h can pick up the parent projects
20675# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20676# definitions required by ltdl.c.
20677# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20678
20679
20680
20681for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20682do :
20683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20684ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20685"
cristy98dddb52010-11-04 00:30:15 +000020686if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020687 cat >>confdefs.h <<_ACEOF
20688#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20689_ACEOF
20690
20691fi
20692
20693done
20694
20695
20696for ac_func in closedir opendir readdir
20697do :
20698 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20699ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020700if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020701 cat >>confdefs.h <<_ACEOF
20702#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20703_ACEOF
20704
20705else
20706
20707
20708 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20709
20710fi
20711done
20712
20713for ac_func in strlcat strlcpy
20714do :
20715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20716ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020717if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020718 cat >>confdefs.h <<_ACEOF
20719#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20720_ACEOF
20721
20722else
20723
20724
20725 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20726
20727fi
20728done
20729
20730
20731
20732cat >>confdefs.h <<_ACEOF
20733#define LT_LIBEXT "$libext"
20734_ACEOF
20735
20736
cristyda16f162011-02-19 23:52:17 +000020737name=
20738eval "lt_libprefix=\"$libname_spec\""
20739
20740cat >>confdefs.h <<_ACEOF
20741#define LT_LIBPREFIX "$lt_libprefix"
20742_ACEOF
20743
20744
cristy73bd4a52010-10-05 11:24:23 +000020745name=ltdl
cristyda16f162011-02-19 23:52:17 +000020746eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000020747
20748
20749
20750
20751
20752
20753
20754
20755# Only expand once:
20756
20757
cristy3ed852e2009-09-05 21:47:34 +000020758
20759# Check to see if building shared libraries
20760libtool_build_shared_libs='no'
20761if test "$enable_shared" = 'yes'; then
20762 libtool_build_shared_libs='yes'
20763fi
20764
20765# Check to see if building static libraries
20766libtool_build_static_libs='no'
20767if test "$enable_static" = 'yes'; then
20768 libtool_build_static_libs='yes'
20769fi
20770
cristy73bd4a52010-10-05 11:24:23 +000020771 if test "${libtool_build_shared_libs}" = 'yes'; then
20772 WITH_SHARED_LIBS_TRUE=
20773 WITH_SHARED_LIBS_FALSE='#'
20774else
20775 WITH_SHARED_LIBS_TRUE='#'
20776 WITH_SHARED_LIBS_FALSE=
20777fi
20778
cristy3ed852e2009-09-05 21:47:34 +000020779#
20780# Enable support for building loadable modules
20781#
20782
20783# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020784if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020785 withval=$with_modules; with_modules=$withval
20786else
cristy5a1cefd2010-01-06 20:42:35 +000020787 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020788fi
20789
20790
20791# Only allow building loadable modules if we are building shared libraries
20792if test "$with_modules" != 'no' ; then
20793 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020794 { $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 +000020795$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20796 with_modules='no'
20797 fi
20798fi
20799if test "$with_modules" != 'no'; then
20800
cristy8b350f62009-11-15 23:12:43 +000020801$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020802
20803fi
cristy73bd4a52010-10-05 11:24:23 +000020804 if test "$with_modules" != 'no'; then
20805 WITH_MODULES_TRUE=
20806 WITH_MODULES_FALSE='#'
20807else
20808 WITH_MODULES_TRUE='#'
20809 WITH_MODULES_FALSE=
20810fi
20811
cristy3ed852e2009-09-05 21:47:34 +000020812
20813# Enable building/use of libltdl if we are building shared libraries regardless
20814# of whether modules are built or not.
20815with_ltdl='no'
20816if test "$libtool_build_shared_libs" != 'no'; then
20817 with_ltdl='yes'
20818fi
20819
cristy73bd4a52010-10-05 11:24:23 +000020820 if test "$with_ltdl" != 'no'; then
20821 WITH_LTDL_TRUE=
20822 WITH_LTDL_FALSE='#'
20823else
20824 WITH_LTDL_TRUE='#'
20825 WITH_LTDL_FALSE=
20826fi
20827
cristy3ed852e2009-09-05 21:47:34 +000020828if test "$with_ltdl" != 'no'; then
20829
cristy8b350f62009-11-15 23:12:43 +000020830$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020831
20832
20833 # Set DLLDFLAGS
20834 if test X"$enable_shared" = Xyes; then
20835 DLLDFLAGS=-export-dynamic
20836
20837 fi
20838fi
20839
20840# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020841# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020842# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020843if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020844 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20845else
20846 enable_delegate_build='no'
20847fi
20848
20849
20850# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020851if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020852 enableval=$enable_deprecated; enable_deprecated=$enableval
20853else
20854 enable_deprecated='no'
20855fi
20856
20857
20858if test "$enable_deprecated" = 'yes'; then
20859
cristy8b350f62009-11-15 23:12:43 +000020860$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020861
20862else
20863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20864fi
20865
20866# Build a version of ImageMagick which operates uninstalled.
20867# Used to build distributions located via MAGICK_HOME / executable path
20868# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020869if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020870 enableval=$enable_installed; enable_installed=$enableval
20871else
20872 enable_installed='yes'
20873fi
20874
20875
20876if test "$enable_installed" = 'yes'; then
20877
cristy8b350f62009-11-15 23:12:43 +000020878$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020879
20880else
20881 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20882fi
20883
20884# Permit enciphering and deciphering image pixels.
20885# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020886if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020887 enableval=$enable_cipher; enable_cipher=$enableval
20888else
20889 enable_cipher='yes'
20890fi
20891
20892
20893if test "$enable_cipher" = 'yes'; then
20894
cristy8b350f62009-11-15 23:12:43 +000020895$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020896
20897fi
20898
20899# Build an embeddable version of ImageMagick.
20900# Check whether --enable-embeddable was given.
cristy8b350f62009-11-15 23:12:43 +000020901if test "${enable_embeddable+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020902 enableval=$enable_embeddable; enable_embeddable=$enableval
20903else
20904 enable_embeddable='no'
20905fi
20906
20907
20908if test "$enable_embeddable" = 'yes'; then
20909
cristy8b350f62009-11-15 23:12:43 +000020910$as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020911
20912fi
20913
20914# Build a high dynamic range version of ImageMagick.
20915# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020916if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020917 enableval=$enable_hdri; enable_hdri=$enableval
20918else
20919 enable_hdri='no'
20920fi
20921
20922
20923MAGICK_HDRI=""
20924if test "$enable_hdri" = 'yes'; then
20925 MAGICK_HDRI="HDRI"
20926
cristy8b350f62009-11-15 23:12:43 +000020927$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020928
cristyfd9dcd42010-08-08 18:07:02 +000020929 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020930fi
20931
cristy3ed852e2009-09-05 21:47:34 +000020932# Build a version of ImageMagick with assert statements.
20933# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020934if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020935 enableval=$enable_assert; enable_assert=$enableval
20936else
20937 enable_assert='yes'
20938fi
20939
20940
20941if test "$enable_assert" = 'no'; then
20942
cristy8b350f62009-11-15 23:12:43 +000020943$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020944
20945fi
20946
20947# Add configure option --enable-maintainer-mode which enables dependency
20948# checking and generation useful to package maintainers. This is made an
20949# option to avoid confusing end users.
cristy73bd4a52010-10-05 11:24:23 +000020950
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20952$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20953 # Check whether --enable-maintainer-mode was given.
20954if test "${enable_maintainer_mode+set}" = set; then :
20955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20956else
20957 USE_MAINTAINER_MODE=no
20958fi
20959
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20961$as_echo "$USE_MAINTAINER_MODE" >&6; }
20962 if test $USE_MAINTAINER_MODE = yes; then
20963 MAINTAINER_MODE_TRUE=
20964 MAINTAINER_MODE_FALSE='#'
20965else
20966 MAINTAINER_MODE_TRUE='#'
20967 MAINTAINER_MODE_FALSE=
20968fi
20969
20970 MAINT=$MAINTAINER_MODE_TRUE
20971
20972
cristy3ed852e2009-09-05 21:47:34 +000020973
20974
20975# Enable ccmalloc memory debugging support
20976# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020977if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020978 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20979else
20980 enable_ccmalloc='no'
20981fi
20982
20983
20984# Enable Electric Fence memory debugging support
20985# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020986if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020987 enableval=$enable_efence; enable_efence=$enableval
20988else
20989 enable_efence='no'
20990fi
20991
20992
20993# Enable prof-based profiling support
20994# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020995if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020996 enableval=$enable_prof; enable_prof=$enableval
20997else
20998 enable_prof='no'
20999fi
21000
21001
21002# Enable gprof-based profiling support
21003# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021004if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021005 enableval=$enable_gprof; enable_gprof=$enableval
21006else
21007 enable_gprof='no'
21008fi
21009
21010
21011# Enable gcov-based profiling support
21012# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021013if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021014 enableval=$enable_gcov; enable_gcov=$enableval
21015else
21016 enable_gcov='no'
21017fi
21018
21019
21020enable_profiling='no'
21021if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21022 enable_profiling='yes'
21023 if test "$libtool_build_shared_libs" = 'yes'; then
21024 echo "Warning: Can not profile code using shared libraries"
21025 fi
21026fi
21027
21028# Magick API method prefix
21029
21030# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021031if test "${with_method_prefix+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021032 withval=$with_method_prefix; with_method_prefix=$enableval
21033else
21034 with_method_prefix=''
21035fi
21036
21037
21038if test "$with_method_prefix" != ''; then
21039
21040cat >>confdefs.h <<_ACEOF
21041#define NAMESPACE_PREFIX $with_method_prefix
21042_ACEOF
21043
21044fi
21045
21046# Number of bits in a Quantum
21047
21048# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021049if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021050 withval=$with_quantum_depth; with_quantum_depth=$withval
21051else
21052 with_quantum_depth=16
21053fi
21054
21055
21056if test "$with_quantum_depth" != '8'; then
21057 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21058fi
21059
21060case "${with_quantum_depth}" in
21061 8 ) ;;
21062 16 ) ;;
21063 32 ) ;;
21064 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021065 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021066esac
cristycdae12a2010-09-19 02:24:31 +000021067if test "$enable_hdri" = 'yes'; then
21068 with_quantum_depth=16
21069fi
cristy3ed852e2009-09-05 21:47:34 +000021070QUANTUM_DEPTH="$with_quantum_depth"
21071
21072cat >>confdefs.h <<_ACEOF
21073#define QUANTUM_DEPTH $QUANTUM_DEPTH
21074_ACEOF
21075
21076
21077# Set pixel cache threshold
21078
21079# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021080if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021081 withval=$with_cache; with_cache=$withval
21082else
21083 with_cache=''
21084fi
21085
21086
21087if test "$with_cache" != ''; then
21088
21089cat >>confdefs.h <<_ACEOF
21090#define PixelCacheThreshold $with_cache
21091_ACEOF
21092
21093 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21094fi
21095
21096# Disable/Enable support for full delegate paths
21097
21098# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021099if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021100 withval=$with_frozenpaths; with_frozenpaths=$withval
21101else
21102 with_frozenpaths='no'
21103fi
21104
21105
21106# Enable build/install of Magick++
21107
21108# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021109if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021110 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21111else
21112 with_magick_plus_plus='yes'
21113fi
21114
21115
21116# Disable build/install of PerlMagick.
21117
21118# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021119if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021120 withval=$with_perl; with_perl=$withval
21121else
cristyb5f4e2f2010-04-25 00:49:11 +000021122 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021123fi
21124
21125
21126# Options to pass when configuring PerlMagick
21127
21128# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021129if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021130 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021131fi
21132
21133
cristy3ed852e2009-09-05 21:47:34 +000021134
21135# Enable umem, object-caching memory allocation library.
21136
21137# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021138if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021139 withval=$with_umem; with_umem=$withval
21140else
21141 with_umem='no'
21142fi
21143
21144if test "$with_umem" != 'yes' ; then
21145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21146fi
21147
21148#
21149# Specify path to shared libstdc++ if not in normal location
21150#
21151
21152# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021153if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021154 withval=$with_libstdc; with_libstdc=$withval
21155else
21156 with_libstdc=''
21157fi
21158
21159
21160if test "$with_libstdc" != ''; then
21161 if test -d "$with_libstdc"; then
21162 LIBSTDCLDFLAGS="-L$with_libstdc"
21163 fi
21164fi
21165
21166
21167# Does gcc required -traditional?
21168if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021170$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021171if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021172 $as_echo_n "(cached) " >&6
21173else
21174 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021176/* end confdefs.h. */
21177#include <sgtty.h>
21178Autoconf TIOCGETP
21179_ACEOF
21180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021181 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021182 ac_cv_prog_gcc_traditional=yes
21183else
21184 ac_cv_prog_gcc_traditional=no
21185fi
21186rm -f conftest*
21187
21188
21189 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021191/* end confdefs.h. */
21192#include <termio.h>
21193Autoconf TCGETA
21194_ACEOF
21195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021196 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021197 ac_cv_prog_gcc_traditional=yes
21198fi
21199rm -f conftest*
21200
21201 fi
21202fi
cristy8b350f62009-11-15 23:12:43 +000021203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021204$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21205 if test $ac_cv_prog_gcc_traditional = yes; then
21206 CC="$CC -traditional"
21207 fi
21208fi
21209
21210
21211########
21212#
21213# Set defines required to build DLLs and modules using MinGW
21214#
21215########
21216# These options are set for multi-thread DLL module build
21217# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21218# module: _DLL
21219# executable/Magick++: _DLL _MAGICKMOD_
21220MODULE_EXTRA_CPPFLAGS=''
21221LIBRARY_EXTRA_CPPFLAGS=''
21222if test "${native_win32_build}" = 'yes'; then
21223 if test "${libtool_build_shared_libs}" = 'yes'; then
21224 CPPFLAGS="$CPPFLAGS -D_DLL"
21225 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21226 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21227 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21228 if test "$with_modules" = 'yes'; then
21229 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21230 else
21231 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21232 fi
21233 else
21234 CPPFLAGS="$CPPFLAGS -D_LIB"
21235 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21236 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21237 fi
21238 if test "$with_threads" = 'yes'; then
21239 CPPFLAGS="$CPPFLAGS -D_MT"
21240 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21241 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21242 fi
21243fi
21244
21245
21246
21247# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021249$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021250if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021251 $as_echo_n "(cached) " >&6
21252else
cristy8b350f62009-11-15 23:12:43 +000021253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021254/* end confdefs.h. */
21255#include <stdlib.h>
21256#include <stdarg.h>
21257#include <string.h>
21258#include <float.h>
21259
21260int
21261main ()
21262{
21263
21264 ;
21265 return 0;
21266}
21267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021268if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021269 ac_cv_header_stdc=yes
21270else
cristy8b350f62009-11-15 23:12:43 +000021271 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021272fi
cristy3ed852e2009-09-05 21:47:34 +000021273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274
21275if test $ac_cv_header_stdc = yes; then
21276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021278/* end confdefs.h. */
21279#include <string.h>
21280
21281_ACEOF
21282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021283 $EGREP "memchr" >/dev/null 2>&1; then :
21284
cristy3ed852e2009-09-05 21:47:34 +000021285else
21286 ac_cv_header_stdc=no
21287fi
21288rm -f conftest*
21289
21290fi
21291
21292if test $ac_cv_header_stdc = yes; then
21293 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021295/* end confdefs.h. */
21296#include <stdlib.h>
21297
21298_ACEOF
21299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021300 $EGREP "free" >/dev/null 2>&1; then :
21301
cristy3ed852e2009-09-05 21:47:34 +000021302else
21303 ac_cv_header_stdc=no
21304fi
21305rm -f conftest*
21306
21307fi
21308
21309if test $ac_cv_header_stdc = yes; then
21310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021311 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021312 :
21313else
cristy8b350f62009-11-15 23:12:43 +000021314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021315/* end confdefs.h. */
21316#include <ctype.h>
21317#include <stdlib.h>
21318#if ((' ' & 0x0FF) == 0x020)
21319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21321#else
21322# define ISLOWER(c) \
21323 (('a' <= (c) && (c) <= 'i') \
21324 || ('j' <= (c) && (c) <= 'r') \
21325 || ('s' <= (c) && (c) <= 'z'))
21326# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21327#endif
21328
21329#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21330int
21331main ()
21332{
21333 int i;
21334 for (i = 0; i < 256; i++)
21335 if (XOR (islower (i), ISLOWER (i))
21336 || toupper (i) != TOUPPER (i))
21337 return 2;
21338 return 0;
21339}
21340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021341if ac_fn_c_try_run "$LINENO"; then :
21342
cristy3ed852e2009-09-05 21:47:34 +000021343else
cristy8b350f62009-11-15 23:12:43 +000021344 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021345fi
cristy8b350f62009-11-15 23:12:43 +000021346rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21347 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021348fi
21349
cristy3ed852e2009-09-05 21:47:34 +000021350fi
21351fi
cristy8b350f62009-11-15 23:12:43 +000021352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021353$as_echo "$ac_cv_header_stdc" >&6; }
21354if test $ac_cv_header_stdc = yes; then
21355
cristy8b350f62009-11-15 23:12:43 +000021356$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021357
21358fi
21359
21360if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021361 { $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 +000021362 header files. Compilation cannot proceed. Please install the ANSI C
21363 headers and rerun this script." >&5
21364$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21365 header files. Compilation cannot proceed. Please install the ANSI C
21366 headers and rerun this script." >&2;};
21367fi
cristya0b81c32010-01-22 02:54:33 +000021368
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21370$as_echo_n "checking whether to enable assertions... " >&6; }
21371 # Check whether --enable-assert was given.
21372if test "${enable_assert+set}" = set; then :
21373 enableval=$enable_assert; ac_enable_assert=$enableval
21374 if test "x$enableval" = xno; then :
21375
21376$as_echo "#define NDEBUG 1" >>confdefs.h
21377
21378elif test "x$enableval" != xyes; then :
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21380$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21381 ac_enable_assert=yes
21382fi
21383else
21384 ac_enable_assert=yes
21385fi
21386
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21388$as_echo "$ac_enable_assert" >&6; }
21389
cristy3ed852e2009-09-05 21:47:34 +000021390ac_header_dirent=no
21391for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21392 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021394$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021395if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021396 $as_echo_n "(cached) " >&6
21397else
cristy8b350f62009-11-15 23:12:43 +000021398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021399/* end confdefs.h. */
21400#include <sys/types.h>
21401#include <$ac_hdr>
21402
21403int
21404main ()
21405{
21406if ((DIR *) 0)
21407return 0;
21408 ;
21409 return 0;
21410}
21411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021412if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021413 eval "$as_ac_Header=yes"
21414else
cristy8b350f62009-11-15 23:12:43 +000021415 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021416fi
cristy3ed852e2009-09-05 21:47:34 +000021417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418fi
cristy8b350f62009-11-15 23:12:43 +000021419eval ac_res=\$$as_ac_Header
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021421$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021423 cat >>confdefs.h <<_ACEOF
21424#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21425_ACEOF
21426
21427ac_header_dirent=$ac_hdr; break
21428fi
21429
21430done
21431# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21432if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021434$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021435if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021436 $as_echo_n "(cached) " >&6
21437else
21438 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021440/* end confdefs.h. */
21441
21442/* Override any GCC internal prototype to avoid an error.
21443 Use char because int might match the return type of a GCC
21444 builtin and then its argument prototype would still apply. */
21445#ifdef __cplusplus
21446extern "C"
21447#endif
21448char opendir ();
21449int
21450main ()
21451{
21452return opendir ();
21453 ;
21454 return 0;
21455}
21456_ACEOF
21457for ac_lib in '' dir; do
21458 if test -z "$ac_lib"; then
21459 ac_res="none required"
21460 else
21461 ac_res=-l$ac_lib
21462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21463 fi
cristy8b350f62009-11-15 23:12:43 +000021464 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021466fi
cristy8b350f62009-11-15 23:12:43 +000021467rm -f core conftest.err conftest.$ac_objext \
21468 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021469 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021470 break
21471fi
21472done
cristyda16f162011-02-19 23:52:17 +000021473if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021474
cristy3ed852e2009-09-05 21:47:34 +000021475else
21476 ac_cv_search_opendir=no
21477fi
21478rm conftest.$ac_ext
21479LIBS=$ac_func_search_save_LIBS
21480fi
cristy8b350f62009-11-15 23:12:43 +000021481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021482$as_echo "$ac_cv_search_opendir" >&6; }
21483ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021484if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21486
21487fi
21488
21489else
cristy8b350f62009-11-15 23:12:43 +000021490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021491$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021492if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 $as_echo_n "(cached) " >&6
21494else
21495 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021497/* end confdefs.h. */
21498
21499/* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21502#ifdef __cplusplus
21503extern "C"
21504#endif
21505char opendir ();
21506int
21507main ()
21508{
21509return opendir ();
21510 ;
21511 return 0;
21512}
21513_ACEOF
21514for ac_lib in '' x; do
21515 if test -z "$ac_lib"; then
21516 ac_res="none required"
21517 else
21518 ac_res=-l$ac_lib
21519 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21520 fi
cristy8b350f62009-11-15 23:12:43 +000021521 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021522 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021523fi
cristy8b350f62009-11-15 23:12:43 +000021524rm -f core conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021526 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021527 break
21528fi
21529done
cristyda16f162011-02-19 23:52:17 +000021530if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021531
cristy3ed852e2009-09-05 21:47:34 +000021532else
21533 ac_cv_search_opendir=no
21534fi
21535rm conftest.$ac_ext
21536LIBS=$ac_func_search_save_LIBS
21537fi
cristy8b350f62009-11-15 23:12:43 +000021538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021539$as_echo "$ac_cv_search_opendir" >&6; }
21540ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021541if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21543
21544fi
21545
21546fi
21547
21548
21549# Check additional headers
cristya0b81c32010-01-22 02:54:33 +000021550for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
cristy8b350f62009-11-15 23:12:43 +000021551do :
21552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021555 cat >>confdefs.h <<_ACEOF
21556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21557_ACEOF
21558
21559fi
21560
21561done
21562
21563
21564########
21565#
21566# Checks for typedefs, structures, and compiler characteristics.
21567#
21568########
21569
cristy8b350f62009-11-15 23:12:43 +000021570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021571$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021572if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021573 $as_echo_n "(cached) " >&6
21574else
cristy8b350f62009-11-15 23:12:43 +000021575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021576/* end confdefs.h. */
21577
21578#include <stdbool.h>
21579#ifndef bool
21580 "error: bool is not defined"
21581#endif
21582#ifndef false
21583 "error: false is not defined"
21584#endif
21585#if false
21586 "error: false is not 0"
21587#endif
21588#ifndef true
21589 "error: true is not defined"
21590#endif
21591#if true != 1
21592 "error: true is not 1"
21593#endif
21594#ifndef __bool_true_false_are_defined
21595 "error: __bool_true_false_are_defined is not defined"
21596#endif
21597
21598 struct s { _Bool s: 1; _Bool t; } s;
21599
21600 char a[true == 1 ? 1 : -1];
21601 char b[false == 0 ? 1 : -1];
21602 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21603 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000021604 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000021605 char f[(_Bool) 0.0 == false ? 1 : -1];
21606 char g[true];
21607 char h[sizeof (_Bool)];
21608 char i[sizeof s.t];
21609 enum { j = false, k = true, l = false * true, m = true * 256 };
21610 /* The following fails for
21611 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21612 _Bool n[m];
21613 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21614 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000021615 /* Catch a bug in an HP-UX C compiler. See
21616 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21617 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21618 */
21619 _Bool q = true;
21620 _Bool *pq = &q;
21621
21622int
21623main ()
21624{
21625
cristyda16f162011-02-19 23:52:17 +000021626 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000021627 *pq |= q;
21628 *pq |= ! q;
21629 /* Refer to every declared value, to avoid compiler optimizations. */
21630 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21631 + !m + !n + !o + !p + !q + !pq);
21632
21633 ;
21634 return 0;
21635}
21636_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021637if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021638 ac_cv_header_stdbool_h=yes
21639else
cristy8b350f62009-11-15 23:12:43 +000021640 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021641fi
cristy3ed852e2009-09-05 21:47:34 +000021642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643fi
cristy8b350f62009-11-15 23:12:43 +000021644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021645$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000021646ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021647if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021648
21649cat >>confdefs.h <<_ACEOF
21650#define HAVE__BOOL 1
21651_ACEOF
21652
21653
21654fi
21655
21656if test $ac_cv_header_stdbool_h = yes; then
21657
cristy8b350f62009-11-15 23:12:43 +000021658$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021659
21660fi
21661
cristy8b350f62009-11-15 23:12:43 +000021662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021663$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021664if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021665 $as_echo_n "(cached) " >&6
21666else
cristy8b350f62009-11-15 23:12:43 +000021667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021668/* end confdefs.h. */
21669
21670int
21671main ()
21672{
21673
21674volatile int x;
21675int * volatile y = (int *) 0;
21676return !x && !y;
21677 ;
21678 return 0;
21679}
21680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021681if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021682 ac_cv_c_volatile=yes
21683else
cristy8b350f62009-11-15 23:12:43 +000021684 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021685fi
cristy3ed852e2009-09-05 21:47:34 +000021686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687fi
cristy8b350f62009-11-15 23:12:43 +000021688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021689$as_echo "$ac_cv_c_volatile" >&6; }
21690if test $ac_cv_c_volatile = no; then
21691
cristy8b350f62009-11-15 23:12:43 +000021692$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021693
21694fi
21695
cristy8b350f62009-11-15 23:12:43 +000021696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021697$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021698if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 $as_echo_n "(cached) " >&6
21700else
cristy8b350f62009-11-15 23:12:43 +000021701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021702/* end confdefs.h. */
21703#define x(y) #y
21704
21705char *s = x(teststring);
21706_ACEOF
21707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021708 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021709 ac_cv_c_stringize=no
21710else
21711 ac_cv_c_stringize=yes
21712fi
21713rm -f conftest*
21714
21715fi
cristy8b350f62009-11-15 23:12:43 +000021716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021717$as_echo "$ac_cv_c_stringize" >&6; }
21718if test $ac_cv_c_stringize = yes; then
21719
cristy8b350f62009-11-15 23:12:43 +000021720$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021721
21722fi
21723
cristy8b350f62009-11-15 23:12:43 +000021724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021725$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021726if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021727 $as_echo_n "(cached) " >&6
21728else
cristy8b350f62009-11-15 23:12:43 +000021729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021730/* end confdefs.h. */
21731#include <sys/types.h>
21732#include <sys/stat.h>
21733
21734#if defined S_ISBLK && defined S_IFDIR
21735extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21736#endif
21737
21738#if defined S_ISBLK && defined S_IFCHR
21739extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21740#endif
21741
21742#if defined S_ISLNK && defined S_IFREG
21743extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21744#endif
21745
21746#if defined S_ISSOCK && defined S_IFREG
21747extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21748#endif
21749
21750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021752 ac_cv_header_stat_broken=no
21753else
cristy8b350f62009-11-15 23:12:43 +000021754 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021755fi
cristy3ed852e2009-09-05 21:47:34 +000021756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21757fi
cristy8b350f62009-11-15 23:12:43 +000021758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021759$as_echo "$ac_cv_header_stat_broken" >&6; }
21760if test $ac_cv_header_stat_broken = yes; then
21761
cristy8b350f62009-11-15 23:12:43 +000021762$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021763
21764fi
21765
cristy8b350f62009-11-15 23:12:43 +000021766{ $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 +000021767$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021768if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021769 $as_echo_n "(cached) " >&6
21770else
cristy8b350f62009-11-15 23:12:43 +000021771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021772/* end confdefs.h. */
21773#include <sys/types.h>
21774#include <sys/time.h>
21775#include <time.h>
21776
21777int
21778main ()
21779{
21780if ((struct tm *) 0)
21781return 0;
21782 ;
21783 return 0;
21784}
21785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021787 ac_cv_header_time=yes
21788else
cristy8b350f62009-11-15 23:12:43 +000021789 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021790fi
cristy3ed852e2009-09-05 21:47:34 +000021791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21792fi
cristy8b350f62009-11-15 23:12:43 +000021793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021794$as_echo "$ac_cv_header_time" >&6; }
21795if test $ac_cv_header_time = yes; then
21796
cristy8b350f62009-11-15 23:12:43 +000021797$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021798
21799fi
21800
cristy8b350f62009-11-15 23:12:43 +000021801{ $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 +000021802$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021803if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021804 $as_echo_n "(cached) " >&6
21805else
cristy8b350f62009-11-15 23:12:43 +000021806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021807/* end confdefs.h. */
21808#include <sys/types.h>
21809#include <time.h>
21810
21811int
21812main ()
21813{
21814struct tm tm;
21815 int *p = &tm.tm_sec;
21816 return !p;
21817 ;
21818 return 0;
21819}
21820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021821if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021822 ac_cv_struct_tm=time.h
21823else
cristy8b350f62009-11-15 23:12:43 +000021824 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021825fi
cristy3ed852e2009-09-05 21:47:34 +000021826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21827fi
cristy8b350f62009-11-15 23:12:43 +000021828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021829$as_echo "$ac_cv_struct_tm" >&6; }
21830if test $ac_cv_struct_tm = sys/time.h; then
21831
cristy8b350f62009-11-15 23:12:43 +000021832$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021833
21834fi
21835
cristy92703d82010-04-26 00:18:18 +000021836ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21837#include <$ac_cv_struct_tm>
21838
21839"
cristyda16f162011-02-19 23:52:17 +000021840if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021841
21842cat >>confdefs.h <<_ACEOF
21843#define HAVE_STRUCT_TM_TM_ZONE 1
21844_ACEOF
21845
21846
21847fi
21848
21849if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21850
21851$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21852
21853else
21854 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21855"
cristyda16f162011-02-19 23:52:17 +000021856if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021857 ac_have_decl=1
21858else
21859 ac_have_decl=0
21860fi
21861
21862cat >>confdefs.h <<_ACEOF
21863#define HAVE_DECL_TZNAME $ac_have_decl
21864_ACEOF
21865
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21867$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021868if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021869 $as_echo_n "(cached) " >&6
21870else
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872/* end confdefs.h. */
21873#include <time.h>
21874#if !HAVE_DECL_TZNAME
21875extern char *tzname[];
21876#endif
21877
21878int
21879main ()
21880{
21881return tzname[0][0];
21882 ;
21883 return 0;
21884}
21885_ACEOF
21886if ac_fn_c_try_link "$LINENO"; then :
21887 ac_cv_var_tzname=yes
21888else
21889 ac_cv_var_tzname=no
21890fi
21891rm -f core conftest.err conftest.$ac_objext \
21892 conftest$ac_exeext conftest.$ac_ext
21893fi
21894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21895$as_echo "$ac_cv_var_tzname" >&6; }
21896 if test $ac_cv_var_tzname = yes; then
21897
21898$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21899
21900 fi
21901fi
21902
cristy8b350f62009-11-15 23:12:43 +000021903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021904$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021905if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021906 $as_echo_n "(cached) " >&6
21907else
21908 echo '#! /bin/cat
21909exit 69
21910' >conftest
21911chmod u+x conftest
21912(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21913if test $? -ne 69; then
21914 ac_cv_sys_interpreter=yes
21915else
21916 ac_cv_sys_interpreter=no
21917fi
21918rm -f conftest
21919fi
cristy8b350f62009-11-15 23:12:43 +000021920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021921$as_echo "$ac_cv_sys_interpreter" >&6; }
21922interpval=$ac_cv_sys_interpreter
21923
21924
cristy3ed852e2009-09-05 21:47:34 +000021925# If the C compiler supports the keyword inline, do nothing. Otherwise
21926# define inline to __inline__ or __inline if it accepts one of those,
21927# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021929$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021930if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021931 $as_echo_n "(cached) " >&6
21932else
21933 ac_cv_c_inline=no
21934for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021936/* end confdefs.h. */
21937#ifndef __cplusplus
21938typedef int foo_t;
21939static $ac_kw foo_t static_foo () {return 0; }
21940$ac_kw foo_t foo () {return 0; }
21941#endif
21942
21943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021944if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021946fi
cristy3ed852e2009-09-05 21:47:34 +000021947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 test "$ac_cv_c_inline" != no && break
21949done
21950
21951fi
cristy8b350f62009-11-15 23:12:43 +000021952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021953$as_echo "$ac_cv_c_inline" >&6; }
21954
cristy3ed852e2009-09-05 21:47:34 +000021955case $ac_cv_c_inline in
21956 inline | yes) ;;
21957 *)
21958 case $ac_cv_c_inline in
21959 no) ac_val=;;
21960 *) ac_val=$ac_cv_c_inline;;
21961 esac
21962 cat >>confdefs.h <<_ACEOF
21963#ifndef __cplusplus
21964#define inline $ac_val
21965#endif
21966_ACEOF
21967 ;;
21968esac
21969
21970
21971# If the C compiler supports the keyword restrict, do nothing. Otherwise
21972# define restrict to __restrict__ or __restrict if it accepts one of those,
21973# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021975$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021976if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021977 $as_echo_n "(cached) " >&6
21978else
21979 ac_cv_c_restrict=no
21980 # The order here caters to the fact that C++ does not require restrict.
21981 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021983/* end confdefs.h. */
21984typedef int * int_ptr;
21985 int foo (int_ptr $ac_kw ip) {
21986 return ip[0];
21987 }
21988int
21989main ()
21990{
21991int s[1];
21992 int * $ac_kw t = s;
21993 t[0] = 0;
21994 return foo(t)
21995 ;
21996 return 0;
21997}
21998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021999if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022000 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022001fi
cristy3ed852e2009-09-05 21:47:34 +000022002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22003 test "$ac_cv_c_restrict" != no && break
22004 done
22005
22006fi
cristy8b350f62009-11-15 23:12:43 +000022007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022008$as_echo "$ac_cv_c_restrict" >&6; }
22009
cristy3ed852e2009-09-05 21:47:34 +000022010 case $ac_cv_c_restrict in
22011 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022012 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022013 ;;
22014 *) cat >>confdefs.h <<_ACEOF
22015#define restrict $ac_cv_c_restrict
22016_ACEOF
22017 ;;
22018 esac
22019
22020
22021# If words are stored with the most significant byte first (like
22022# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022024$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022025if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022026 $as_echo_n "(cached) " >&6
22027else
22028 ac_cv_c_bigendian=unknown
22029 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022031/* end confdefs.h. */
22032#ifndef __APPLE_CC__
22033 not a universal capable compiler
22034 #endif
22035 typedef int dummy;
22036
22037_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022038if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022039
22040 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022041 # there are at least two -arch flags with different values.
22042 ac_arch=
22043 ac_prev=
22044 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22045 if test -n "$ac_prev"; then
22046 case $ac_word in
22047 i?86 | x86_64 | ppc | ppc64)
22048 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22049 ac_arch=$ac_word
22050 else
22051 ac_cv_c_bigendian=universal
22052 break
22053 fi
22054 ;;
22055 esac
22056 ac_prev=
22057 elif test "x$ac_word" = "x-arch"; then
22058 ac_prev=arch
22059 fi
22060 done
cristy3ed852e2009-09-05 21:47:34 +000022061fi
cristy3ed852e2009-09-05 21:47:34 +000022062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22063 if test $ac_cv_c_bigendian = unknown; then
22064 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022066/* end confdefs.h. */
22067#include <sys/types.h>
22068 #include <sys/param.h>
22069
22070int
22071main ()
22072{
22073#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22074 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22075 && LITTLE_ENDIAN)
22076 bogus endian macros
22077 #endif
22078
22079 ;
22080 return 0;
22081}
22082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022084 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022086/* end confdefs.h. */
22087#include <sys/types.h>
22088 #include <sys/param.h>
22089
22090int
22091main ()
22092{
22093#if BYTE_ORDER != BIG_ENDIAN
22094 not big endian
22095 #endif
22096
22097 ;
22098 return 0;
22099}
22100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022101if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022102 ac_cv_c_bigendian=yes
22103else
cristy8b350f62009-11-15 23:12:43 +000022104 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022105fi
cristy3ed852e2009-09-05 21:47:34 +000022106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022107fi
cristy3ed852e2009-09-05 21:47:34 +000022108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22109 fi
22110 if test $ac_cv_c_bigendian = unknown; then
22111 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022113/* end confdefs.h. */
22114#include <limits.h>
22115
22116int
22117main ()
22118{
22119#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22120 bogus endian macros
22121 #endif
22122
22123 ;
22124 return 0;
22125}
22126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022127if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022128 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022130/* end confdefs.h. */
22131#include <limits.h>
22132
22133int
22134main ()
22135{
22136#ifndef _BIG_ENDIAN
22137 not big endian
22138 #endif
22139
22140 ;
22141 return 0;
22142}
22143_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022144if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022145 ac_cv_c_bigendian=yes
22146else
cristy8b350f62009-11-15 23:12:43 +000022147 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022148fi
cristy3ed852e2009-09-05 21:47:34 +000022149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022150fi
cristy3ed852e2009-09-05 21:47:34 +000022151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 fi
22153 if test $ac_cv_c_bigendian = unknown; then
22154 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022155 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022156 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158/* end confdefs.h. */
22159short int ascii_mm[] =
22160 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22161 short int ascii_ii[] =
22162 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22163 int use_ascii (int i) {
22164 return ascii_mm[i] + ascii_ii[i];
22165 }
22166 short int ebcdic_ii[] =
22167 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22168 short int ebcdic_mm[] =
22169 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22170 int use_ebcdic (int i) {
22171 return ebcdic_mm[i] + ebcdic_ii[i];
22172 }
22173 extern int foo;
22174
22175int
22176main ()
22177{
22178return use_ascii (foo) == use_ebcdic (foo);
22179 ;
22180 return 0;
22181}
22182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022183if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022184 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22185 ac_cv_c_bigendian=yes
22186 fi
22187 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22188 if test "$ac_cv_c_bigendian" = unknown; then
22189 ac_cv_c_bigendian=no
22190 else
22191 # finding both strings is unlikely to happen, but who knows?
22192 ac_cv_c_bigendian=unknown
22193 fi
22194 fi
cristy3ed852e2009-09-05 21:47:34 +000022195fi
cristy3ed852e2009-09-05 21:47:34 +000022196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197else
cristy8b350f62009-11-15 23:12:43 +000022198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022199/* end confdefs.h. */
22200$ac_includes_default
22201int
22202main ()
22203{
22204
22205 /* Are we little or big endian? From Harbison&Steele. */
22206 union
22207 {
22208 long int l;
22209 char c[sizeof (long int)];
22210 } u;
22211 u.l = 1;
22212 return u.c[sizeof (long int) - 1] == 1;
22213
22214 ;
22215 return 0;
22216}
22217_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022218if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022219 ac_cv_c_bigendian=no
22220else
cristy8b350f62009-11-15 23:12:43 +000022221 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022222fi
cristy8b350f62009-11-15 23:12:43 +000022223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22224 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022225fi
22226
cristy3ed852e2009-09-05 21:47:34 +000022227 fi
22228fi
cristy8b350f62009-11-15 23:12:43 +000022229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022230$as_echo "$ac_cv_c_bigendian" >&6; }
22231 case $ac_cv_c_bigendian in #(
22232 yes)
cristy8b350f62009-11-15 23:12:43 +000022233 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022234;; #(
22235 no)
22236 ;; #(
22237 universal)
22238
cristy8b350f62009-11-15 23:12:43 +000022239$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022240
22241 ;; #(
22242 *)
cristy98dddb52010-11-04 00:30:15 +000022243 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022244 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022245 esac
22246
22247
22248# Define mode_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022249ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022250if test "x$ac_cv_type_mode_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022251
cristy3ed852e2009-09-05 21:47:34 +000022252else
22253
22254cat >>confdefs.h <<_ACEOF
22255#define mode_t int
22256_ACEOF
22257
22258fi
22259
22260
22261# Define off_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022262ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022263if test "x$ac_cv_type_off_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022264
cristy3ed852e2009-09-05 21:47:34 +000022265else
22266
22267cat >>confdefs.h <<_ACEOF
22268#define off_t long int
22269_ACEOF
22270
22271fi
22272
22273
22274# Define pid_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022275ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022276if test "x$ac_cv_type_pid_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022277
cristy3ed852e2009-09-05 21:47:34 +000022278else
22279
22280cat >>confdefs.h <<_ACEOF
22281#define pid_t int
22282_ACEOF
22283
22284fi
22285
22286
22287# Define size_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022288ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022289if test "x$ac_cv_type_size_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022290
cristy3ed852e2009-09-05 21:47:34 +000022291else
22292
22293cat >>confdefs.h <<_ACEOF
22294#define size_t unsigned int
22295_ACEOF
22296
22297fi
22298
22299
22300# Define ssize_t to a suitable type, if standard headers do not define it.
cristy8b350f62009-11-15 23:12:43 +000022301ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022302if test "x$ac_cv_type_ssize_t" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022303
cristy3ed852e2009-09-05 21:47:34 +000022304else
22305
22306cat >>confdefs.h <<_ACEOF
22307#define ssize_t int
22308_ACEOF
22309
22310fi
22311
22312
22313# If the C compiler supports a working long double type with more range
22314# or precision than the double type, define HAVE_LONG_DOUBLE.
22315
cristy8b350f62009-11-15 23:12:43 +000022316 { $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 +000022317$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022318if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022319 $as_echo_n "(cached) " >&6
22320else
cristy8b350f62009-11-15 23:12:43 +000022321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022322/* end confdefs.h. */
22323#include <float.h>
22324 long double const a[] =
22325 {
22326 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22327 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22328 };
22329 long double
22330 f (long double x)
22331 {
22332 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22333 + (x ? f (x) : 'c'));
22334 }
22335
22336int
22337main ()
22338{
22339static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22340 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22341 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22342 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22343 && (int) LDBL_EPSILON == 0
22344 )];
22345test_array [0] = 0
22346
22347 ;
22348 return 0;
22349}
22350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022351if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 ac_cv_type_long_double_wider=yes
22353else
cristy8b350f62009-11-15 23:12:43 +000022354 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022355fi
cristy3ed852e2009-09-05 21:47:34 +000022356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22357fi
cristy8b350f62009-11-15 23:12:43 +000022358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022359$as_echo "$ac_cv_type_long_double_wider" >&6; }
22360 if test $ac_cv_type_long_double_wider = yes; then
22361
cristy8b350f62009-11-15 23:12:43 +000022362$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022363
22364 fi
22365
22366
22367# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22368# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022370$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022371if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022372 $as_echo_n "(cached) " >&6
22373else
cristy8b350f62009-11-15 23:12:43 +000022374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022375/* end confdefs.h. */
22376$ac_includes_default
22377int
22378main ()
22379{
22380static int test_array [1 - 2 * !(((char) -1) < 0)];
22381test_array [0] = 0
22382
22383 ;
22384 return 0;
22385}
22386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022387if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022388 ac_cv_c_char_unsigned=no
22389else
cristy8b350f62009-11-15 23:12:43 +000022390 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022391fi
cristy3ed852e2009-09-05 21:47:34 +000022392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22393fi
cristy8b350f62009-11-15 23:12:43 +000022394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022395$as_echo "$ac_cv_c_char_unsigned" >&6; }
22396if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022397 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022398
22399fi
22400
22401
22402# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22403# The cast to long int works around a bug in the HP C Compiler
22404# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22405# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22406# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022408$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022409if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022410 $as_echo_n "(cached) " >&6
22411else
cristy8b350f62009-11-15 23:12:43 +000022412 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 +000022413
cristy3ed852e2009-09-05 21:47:34 +000022414else
cristy8b350f62009-11-15 23:12:43 +000022415 if test "$ac_cv_type_signed_short" = yes; then
22416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022418as_fn_error 77 "cannot compute sizeof (signed short)
22419See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022420 else
22421 ac_cv_sizeof_signed_short=0
22422 fi
22423fi
cristy8b350f62009-11-15 23:12:43 +000022424
cristy3ed852e2009-09-05 21:47:34 +000022425fi
cristy8b350f62009-11-15 23:12:43 +000022426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022427$as_echo "$ac_cv_sizeof_signed_short" >&6; }
22428
22429
22430
22431cat >>confdefs.h <<_ACEOF
22432#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22433_ACEOF
22434
22435
22436
22437# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22438# The cast to long int works around a bug in the HP C Compiler
22439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22441# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022443$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022444if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022445 $as_echo_n "(cached) " >&6
22446else
cristy8b350f62009-11-15 23:12:43 +000022447 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 +000022448
cristy3ed852e2009-09-05 21:47:34 +000022449else
cristy8b350f62009-11-15 23:12:43 +000022450 if test "$ac_cv_type_unsigned_short" = yes; then
22451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022453as_fn_error 77 "cannot compute sizeof (unsigned short)
22454See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022455 else
22456 ac_cv_sizeof_unsigned_short=0
22457 fi
22458fi
cristy8b350f62009-11-15 23:12:43 +000022459
cristy3ed852e2009-09-05 21:47:34 +000022460fi
cristy8b350f62009-11-15 23:12:43 +000022461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000022462$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22463
22464
22465
22466cat >>confdefs.h <<_ACEOF
22467#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22468_ACEOF
22469
22470
22471
22472# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22473# The cast to long int works around a bug in the HP C Compiler
22474# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22475# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22476# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022478$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022479if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022480 $as_echo_n "(cached) " >&6
22481else
cristy8b350f62009-11-15 23:12:43 +000022482 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 +000022483
cristy3ed852e2009-09-05 21:47:34 +000022484else
cristy8b350f62009-11-15 23:12:43 +000022485 if test "$ac_cv_type_signed_int" = yes; then
22486 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022488as_fn_error 77 "cannot compute sizeof (signed int)
22489See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022490 else
22491 ac_cv_sizeof_signed_int=0
22492 fi
22493fi
cristy8b350f62009-11-15 23:12:43 +000022494
cristy3ed852e2009-09-05 21:47:34 +000022495fi
cristy8b350f62009-11-15 23:12:43 +000022496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022497$as_echo "$ac_cv_sizeof_signed_int" >&6; }
22498
22499
22500
22501cat >>confdefs.h <<_ACEOF
22502#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22503_ACEOF
22504
22505
22506
22507# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22508# The cast to long int works around a bug in the HP C Compiler
22509# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22510# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22511# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022513$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022514if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022515 $as_echo_n "(cached) " >&6
22516else
cristy8b350f62009-11-15 23:12:43 +000022517 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 +000022518
cristy3ed852e2009-09-05 21:47:34 +000022519else
cristy8b350f62009-11-15 23:12:43 +000022520 if test "$ac_cv_type_unsigned_int" = yes; then
22521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022523as_fn_error 77 "cannot compute sizeof (unsigned int)
22524See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022525 else
22526 ac_cv_sizeof_unsigned_int=0
22527 fi
22528fi
cristy8b350f62009-11-15 23:12:43 +000022529
cristy3ed852e2009-09-05 21:47:34 +000022530fi
cristy8b350f62009-11-15 23:12:43 +000022531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000022532$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22533
22534
22535
22536cat >>confdefs.h <<_ACEOF
22537#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22538_ACEOF
22539
22540
22541
22542# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22543# The cast to long int works around a bug in the HP C Compiler
22544# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22545# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22546# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022548$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022549if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022550 $as_echo_n "(cached) " >&6
22551else
cristy8b350f62009-11-15 23:12:43 +000022552 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 +000022553
cristy3ed852e2009-09-05 21:47:34 +000022554else
cristy8b350f62009-11-15 23:12:43 +000022555 if test "$ac_cv_type_signed_long" = yes; then
22556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022558as_fn_error 77 "cannot compute sizeof (signed long)
22559See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022560 else
22561 ac_cv_sizeof_signed_long=0
22562 fi
22563fi
cristy8b350f62009-11-15 23:12:43 +000022564
cristy3ed852e2009-09-05 21:47:34 +000022565fi
cristy8b350f62009-11-15 23:12:43 +000022566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022567$as_echo "$ac_cv_sizeof_signed_long" >&6; }
22568
22569
22570
22571cat >>confdefs.h <<_ACEOF
22572#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22573_ACEOF
22574
22575
22576
22577# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22578# The cast to long int works around a bug in the HP C Compiler
22579# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22580# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22581# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022583$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022584if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022585 $as_echo_n "(cached) " >&6
22586else
cristy8b350f62009-11-15 23:12:43 +000022587 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 +000022588
cristy3ed852e2009-09-05 21:47:34 +000022589else
cristy8b350f62009-11-15 23:12:43 +000022590 if test "$ac_cv_type_unsigned_long" = yes; then
22591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022593as_fn_error 77 "cannot compute sizeof (unsigned long)
22594See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022595 else
22596 ac_cv_sizeof_unsigned_long=0
22597 fi
22598fi
cristy8b350f62009-11-15 23:12:43 +000022599
cristy3ed852e2009-09-05 21:47:34 +000022600fi
cristy8b350f62009-11-15 23:12:43 +000022601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022602$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22603
22604
22605
22606cat >>confdefs.h <<_ACEOF
22607#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22608_ACEOF
22609
22610
22611
22612# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22613# 'signed long long' is not supported then the value defined is zero.
22614# The cast to long int works around a bug in the HP C Compiler
22615# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22616# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22617# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022619$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022620if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022621 $as_echo_n "(cached) " >&6
22622else
cristy8b350f62009-11-15 23:12:43 +000022623 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 +000022624
cristy3ed852e2009-09-05 21:47:34 +000022625else
cristy8b350f62009-11-15 23:12:43 +000022626 if test "$ac_cv_type_signed_long_long" = yes; then
22627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022629as_fn_error 77 "cannot compute sizeof (signed long long)
22630See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022631 else
22632 ac_cv_sizeof_signed_long_long=0
22633 fi
22634fi
cristy8b350f62009-11-15 23:12:43 +000022635
cristy3ed852e2009-09-05 21:47:34 +000022636fi
cristy8b350f62009-11-15 23:12:43 +000022637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022638$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22639
22640
22641
22642cat >>confdefs.h <<_ACEOF
22643#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22644_ACEOF
22645
22646
22647
22648# Obtain size of a 'unsigned long long' and define as
22649# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22650# supported then the value defined is zero.
22651# The cast to long int works around a bug in the HP C Compiler
22652# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22653# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22654# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022656$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022657if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022658 $as_echo_n "(cached) " >&6
22659else
cristy8b350f62009-11-15 23:12:43 +000022660 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 +000022661
cristy3ed852e2009-09-05 21:47:34 +000022662else
cristy8b350f62009-11-15 23:12:43 +000022663 if test "$ac_cv_type_unsigned_long_long" = yes; then
22664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022666as_fn_error 77 "cannot compute sizeof (unsigned long long)
22667See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022668 else
22669 ac_cv_sizeof_unsigned_long_long=0
22670 fi
22671fi
cristy8b350f62009-11-15 23:12:43 +000022672
cristy3ed852e2009-09-05 21:47:34 +000022673fi
cristy8b350f62009-11-15 23:12:43 +000022674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000022675$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22676
22677
22678
22679cat >>confdefs.h <<_ACEOF
22680#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22681_ACEOF
22682
22683
22684
22685# Obtain size of off_t and define as SIZEOF_OFF_T
22686# The cast to long int works around a bug in the HP C Compiler
22687# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22688# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22689# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022691$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022692if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022693 $as_echo_n "(cached) " >&6
22694else
cristy8b350f62009-11-15 23:12:43 +000022695 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 +000022696
cristy3ed852e2009-09-05 21:47:34 +000022697else
cristy8b350f62009-11-15 23:12:43 +000022698 if test "$ac_cv_type_off_t" = yes; then
22699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022701as_fn_error 77 "cannot compute sizeof (off_t)
22702See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022703 else
22704 ac_cv_sizeof_off_t=0
22705 fi
22706fi
cristy8b350f62009-11-15 23:12:43 +000022707
cristy3ed852e2009-09-05 21:47:34 +000022708fi
cristy8b350f62009-11-15 23:12:43 +000022709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022710$as_echo "$ac_cv_sizeof_off_t" >&6; }
22711
22712
22713
22714cat >>confdefs.h <<_ACEOF
22715#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22716_ACEOF
22717
22718
22719
22720# Obtain size of size_t and define as SIZEOF_SIZE_T
22721# The cast to long int works around a bug in the HP C Compiler
22722# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22723# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22724# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022726$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022727if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022728 $as_echo_n "(cached) " >&6
22729else
cristy8b350f62009-11-15 23:12:43 +000022730 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 +000022731
cristy3ed852e2009-09-05 21:47:34 +000022732else
cristy8b350f62009-11-15 23:12:43 +000022733 if test "$ac_cv_type_size_t" = yes; then
22734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022736as_fn_error 77 "cannot compute sizeof (size_t)
22737See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022738 else
22739 ac_cv_sizeof_size_t=0
22740 fi
22741fi
cristy8b350f62009-11-15 23:12:43 +000022742
cristy3ed852e2009-09-05 21:47:34 +000022743fi
cristy8b350f62009-11-15 23:12:43 +000022744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000022745$as_echo "$ac_cv_sizeof_size_t" >&6; }
22746
22747
22748
22749cat >>confdefs.h <<_ACEOF
22750#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22751_ACEOF
22752
22753
22754
cristy330e9352010-06-01 18:42:49 +000022755# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22756# The cast to long int works around a bug in the HP C Compiler
22757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22759# This bug is HP SR number 8606223364.
22760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22761$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022762if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000022763 $as_echo_n "(cached) " >&6
22764else
22765 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22766
22767else
22768 if test "$ac_cv_type_ssize_t" = yes; then
22769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022771as_fn_error 77 "cannot compute sizeof (ssize_t)
22772See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000022773 else
22774 ac_cv_sizeof_ssize_t=0
22775 fi
22776fi
22777
22778fi
22779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22780$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22781
22782
22783
22784cat >>confdefs.h <<_ACEOF
22785#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22786_ACEOF
22787
22788
22789
cristy3ed852e2009-09-05 21:47:34 +000022790# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22791# The cast to long int works around a bug in the HP C Compiler
22792# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22793# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22794# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000022795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000022796$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022797if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022798 $as_echo_n "(cached) " >&6
22799else
cristy8b350f62009-11-15 23:12:43 +000022800 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 +000022801
cristy3ed852e2009-09-05 21:47:34 +000022802else
cristy8b350f62009-11-15 23:12:43 +000022803 if test "$ac_cv_type_unsigned_intp" = yes; then
22804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000022805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000022806as_fn_error 77 "cannot compute sizeof (unsigned int*)
22807See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000022808 else
22809 ac_cv_sizeof_unsigned_intp=0
22810 fi
22811fi
cristy8b350f62009-11-15 23:12:43 +000022812
cristy3ed852e2009-09-05 21:47:34 +000022813fi
cristy8b350f62009-11-15 23:12:43 +000022814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000022815$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22816
22817
22818
22819cat >>confdefs.h <<_ACEOF
22820#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22821_ACEOF
22822
22823
22824
22825#
22826# Compute sized types for current CPU and compiler options.
22827#
22828
cristy8b350f62009-11-15 23:12:43 +000022829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022830$as_echo_n "checking for signed 8-bit type... " >&6; }
22831INT8_T='signed char'
cristy8b350f62009-11-15 23:12:43 +000022832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022833$as_echo "$INT8_T" >&6; }
22834
22835
cristy8b350f62009-11-15 23:12:43 +000022836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022837$as_echo_n "checking for unsigned 8-bit type... " >&6; }
22838UINT8_T='unsigned char'
cristy8b350f62009-11-15 23:12:43 +000022839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022840$as_echo "$UINT8_T" >&6; }
22841
22842
cristy8b350f62009-11-15 23:12:43 +000022843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022844$as_echo_n "checking for signed 16-bit type... " >&6; }
22845INT16_T='signed short'
cristy8b350f62009-11-15 23:12:43 +000022846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022847$as_echo "$INT16_T" >&6; }
22848
22849
cristy8b350f62009-11-15 23:12:43 +000022850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022851$as_echo_n "checking for unsigned 16-bit type... " >&6; }
22852UINT16_T='unsigned short'
cristy8b350f62009-11-15 23:12:43 +000022853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022854$as_echo "$UINT16_T" >&6; }
22855
22856
cristy8b350f62009-11-15 23:12:43 +000022857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022858$as_echo_n "checking for signed 32-bit type... " >&6; }
22859INT32_T='none'
22860if test $ac_cv_sizeof_signed_int -eq 4; then
22861 INT32_T='signed int'
22862elif test $ac_cv_sizeof_signed_long -eq 4; then
22863 INT32_T='signed long'
22864fi
cristy8b350f62009-11-15 23:12:43 +000022865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022866$as_echo "$INT32_T" >&6; }
22867
22868
cristy8b350f62009-11-15 23:12:43 +000022869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022870$as_echo_n "checking for unsigned 32-bit type... " >&6; }
22871UINT32_T='none'
22872if test $ac_cv_sizeof_unsigned_int -eq 4; then
22873 UINT32_T='unsigned int'
22874elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22875 UINT32_T='unsigned long'
22876fi
cristy8b350f62009-11-15 23:12:43 +000022877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022878$as_echo "$UINT32_T" >&6; }
22879
22880
cristy8b350f62009-11-15 23:12:43 +000022881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022882$as_echo_n "checking for signed 64-bit type... " >&6; }
22883INT64_T='none'
22884if test $ac_cv_sizeof_signed_long -eq 8; then
22885 INT64_T='signed long'
22886elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22887 INT64_T='signed long long'
22888fi
cristy8b350f62009-11-15 23:12:43 +000022889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo "$INT64_T" >&6; }
22891
22892
cristy8b350f62009-11-15 23:12:43 +000022893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022894$as_echo_n "checking for unsigned 64-bit type... " >&6; }
22895UINT64_T='none'
22896if test $ac_cv_sizeof_unsigned_long -eq 8; then
22897 UINT64_T='unsigned long'
22898elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22899 UINT64_T='unsigned long long'
22900fi
cristy8b350f62009-11-15 23:12:43 +000022901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022902$as_echo "$UINT64_T" >&6; }
22903
22904
cristy8b350f62009-11-15 23:12:43 +000022905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022906$as_echo_n "checking for unsigned maximum type... " >&6; }
22907UINTMAX_T='none'
22908if test "$UINT64_T" != 'none'; then
22909 UINTMAX_T=$UINT64_T
22910elif test "$UINT32_T" != 'none'; then
22911 UINTMAX_T=$UINT32_T
22912fi
cristy8b350f62009-11-15 23:12:43 +000022913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022914$as_echo "$UINTMAX_T" >&6; }
22915
22916
cristy8b350f62009-11-15 23:12:43 +000022917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000022918$as_echo_n "checking for pointer difference type... " >&6; }
22919UINTPTR_T='none'
22920if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22921 UINTPTR_T='unsigned long'
22922elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22923 UINTPTR_T='unsigned long long'
22924fi
cristy8b350f62009-11-15 23:12:43 +000022925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
cristy3ed852e2009-09-05 21:47:34 +000022926$as_echo "$UINTPTR_T" >&6; }
22927
22928
cristy8b350f62009-11-15 23:12:43 +000022929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022930$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932/* end confdefs.h. */
22933
22934int
22935main ()
22936{
22937{ const char *func = __func__; return(func != 0 ? 0 : 1); }
22938 ;
22939 return 0;
22940}
22941_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022942if ac_fn_c_try_compile "$LINENO"; then :
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022944$as_echo "yes" >&6; }
22945else
cristy8b350f62009-11-15 23:12:43 +000022946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022947$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000022949$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000022950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022951/* end confdefs.h. */
22952
22953int
22954main ()
22955{
22956{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22957 ;
22958 return 0;
22959}
22960_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022961if ac_fn_c_try_compile "$LINENO"; then :
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000022963$as_echo "yes" >&6; }
22964
cristy8b350f62009-11-15 23:12:43 +000022965$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022966
22967else
cristy8b350f62009-11-15 23:12:43 +000022968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000022969$as_echo "no" >&6; }
22970
cristy8b350f62009-11-15 23:12:43 +000022971$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022972
22973fi
cristy3ed852e2009-09-05 21:47:34 +000022974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975fi
cristy3ed852e2009-09-05 21:47:34 +000022976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977
22978########
22979#
22980# Check for functions
22981#
22982########
cristy73bd4a52010-10-05 11:24:23 +000022983for ac_header in stdlib.h unistd.h
22984do :
22985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22986ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000022988 cat >>confdefs.h <<_ACEOF
22989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22990_ACEOF
22991
22992fi
22993
22994done
22995
22996for ac_func in getpagesize
22997do :
22998 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000022999if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023000 cat >>confdefs.h <<_ACEOF
23001#define HAVE_GETPAGESIZE 1
23002_ACEOF
23003
23004fi
23005done
23006
23007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23008$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023009if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023010 $as_echo_n "(cached) " >&6
23011else
23012 if test "$cross_compiling" = yes; then :
23013 magick_cv_func_mmap_fileio=no
23014else
23015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23016/* end confdefs.h. */
23017$ac_includes_default
23018/* malloc might have been renamed as rpl_malloc. */
23019#undef malloc
23020
23021/*
23022 This test is derived from GNU Autoconf's similar macro.
23023 The purpose of this test is to verify that files may be memory
23024 mapped, and that memory mapping and file I/O are coherent.
23025
23026 The test creates a test file, memory maps the file, updates
23027 the file using the memory map, and then reads the file using
23028 file I/O to verify that the file contains the updates.
23029*/
23030
23031#include <fcntl.h>
23032#include <sys/mman.h>
23033
23034#if !STDC_HEADERS && !HAVE_STDLIB_H
23035char *malloc ();
23036#endif
23037
23038/* This mess was copied from the GNU getpagesize.h. */
23039#if !HAVE_GETPAGESIZE
23040/* Assume that all systems that can run configure have sys/param.h. */
23041# if !HAVE_SYS_PARAM_H
23042# define HAVE_SYS_PARAM_H 1
23043# endif
23044
23045# ifdef _SC_PAGESIZE
23046# define getpagesize() sysconf(_SC_PAGESIZE)
23047# else /* no _SC_PAGESIZE */
23048# if HAVE_SYS_PARAM_H
23049# include <sys/param.h>
23050# ifdef EXEC_PAGESIZE
23051# define getpagesize() EXEC_PAGESIZE
23052# else /* no EXEC_PAGESIZE */
23053# ifdef NBPG
23054# define getpagesize() NBPG * CLSIZE
23055# ifndef CLSIZE
23056# define CLSIZE 1
23057# endif /* no CLSIZE */
23058# else /* no NBPG */
23059# ifdef NBPC
23060# define getpagesize() NBPC
23061# else /* no NBPC */
23062# ifdef PAGESIZE
23063# define getpagesize() PAGESIZE
23064# endif /* PAGESIZE */
23065# endif /* no NBPC */
23066# endif /* no NBPG */
23067# endif /* no EXEC_PAGESIZE */
23068# else /* no HAVE_SYS_PARAM_H */
23069# define getpagesize() 8192 /* punt totally */
23070# endif /* no HAVE_SYS_PARAM_H */
23071# endif /* no _SC_PAGESIZE */
23072
23073#endif /* no HAVE_GETPAGESIZE */
23074
23075int
23076main ()
23077{
23078 char *data, *data2, *data3;
23079 int i, pagesize;
23080 int fd;
23081
23082 pagesize = getpagesize ();
23083
23084 /* First, make a file with some known garbage in it. */
23085 data = (char *) malloc (pagesize);
23086 if (!data)
23087 exit (1);
23088 for (i = 0; i < pagesize; ++i)
23089 *(data + i) = rand ();
23090 umask (0);
23091 fd = creat ("conftest.mmap", 0600);
23092 if (fd < 0)
23093 exit (1);
23094 if (write (fd, data, pagesize) != pagesize)
23095 exit (1);
23096 close (fd);
23097
23098 /* Mmap the file as read/write/shared and verify that we see the
23099 same garbage. */
23100 fd = open ("conftest.mmap", O_RDWR);
23101 if (fd < 0)
23102 exit (1);
23103 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23104 if (data2 == 0)
23105 exit (1);
23106 for (i = 0; i < pagesize; ++i)
23107 if (*(data + i) != *(data2 + i))
23108 exit (1);
23109
23110 /* Finally, make sure that changes to the mapped area
23111 percolate back to the file as seen by read(). */
23112 for (i = 0; i < pagesize; ++i)
23113 *(data2 + i) = *(data2 + i) + 1;
23114 data3 = (char *) malloc (pagesize);
23115 if (!data3)
23116 exit (1);
23117 if (read (fd, data3, pagesize) != pagesize)
23118 exit (1);
23119 for (i = 0; i < pagesize; ++i)
23120 if (*(data2 + i) != *(data3 + i))
23121 exit (1);
23122 close (fd);
23123 exit (0);
23124}
23125_ACEOF
23126if ac_fn_c_try_run "$LINENO"; then :
23127 magick_cv_func_mmap_fileio=yes
23128else
23129 magick_cv_func_mmap_fileio=no
23130fi
23131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23132 conftest.$ac_objext conftest.beam conftest.$ac_ext
23133fi
23134
23135fi
23136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23137$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23138if test $magick_cv_func_mmap_fileio = yes; then
23139
23140$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23141
23142fi
23143rm -f conftest.mmap
23144
cristy8b350f62009-11-15 23:12:43 +000023145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023146$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023147if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023148 $as_echo_n "(cached) " >&6
23149else
cristy8b350f62009-11-15 23:12:43 +000023150 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023151 ac_cv_func_closedir_void=yes
23152else
cristy8b350f62009-11-15 23:12:43 +000023153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023154/* end confdefs.h. */
23155$ac_includes_default
23156#include <$ac_header_dirent>
23157#ifndef __cplusplus
23158int closedir ();
23159#endif
23160
23161int
23162main ()
23163{
23164return closedir (opendir (".")) != 0;
23165 ;
23166 return 0;
23167}
23168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023169if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023170 ac_cv_func_closedir_void=no
23171else
cristy8b350f62009-11-15 23:12:43 +000023172 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023173fi
cristy8b350f62009-11-15 23:12:43 +000023174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23175 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023176fi
23177
cristy3ed852e2009-09-05 21:47:34 +000023178fi
cristy8b350f62009-11-15 23:12:43 +000023179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023180$as_echo "$ac_cv_func_closedir_void" >&6; }
23181if test $ac_cv_func_closedir_void = yes; then
23182
cristy8b350f62009-11-15 23:12:43 +000023183$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023184
23185fi
23186
cristycd4c5312009-11-22 01:19:08 +000023187
23188
23189
23190 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023191do :
23192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23194"
cristy98dddb52010-11-04 00:30:15 +000023195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023196 cat >>confdefs.h <<_ACEOF
23197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23198_ACEOF
23199
23200fi
23201
23202done
23203
cristycd4c5312009-11-22 01:19:08 +000023204
23205
23206
23207
23208
23209
23210
cristy3ed852e2009-09-05 21:47:34 +000023211for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023212do :
23213 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023214if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023215 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023216#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023217_ACEOF
23218
23219fi
23220done
23221
cristy8b350f62009-11-15 23:12:43 +000023222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023223$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023224if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023225 $as_echo_n "(cached) " >&6
23226else
cristy8b350f62009-11-15 23:12:43 +000023227 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023228 ac_cv_func_mmap_fixed_mapped=no
23229else
cristy8b350f62009-11-15 23:12:43 +000023230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023231/* end confdefs.h. */
23232$ac_includes_default
23233/* malloc might have been renamed as rpl_malloc. */
23234#undef malloc
23235
23236/* Thanks to Mike Haertel and Jim Avera for this test.
23237 Here is a matrix of mmap possibilities:
23238 mmap private not fixed
23239 mmap private fixed at somewhere currently unmapped
23240 mmap private fixed at somewhere already mapped
23241 mmap shared not fixed
23242 mmap shared fixed at somewhere currently unmapped
23243 mmap shared fixed at somewhere already mapped
23244 For private mappings, we should verify that changes cannot be read()
23245 back from the file, nor mmap's back from the file at a different
23246 address. (There have been systems where private was not correctly
23247 implemented like the infamous i386 svr4.0, and systems where the
23248 VM page cache was not coherent with the file system buffer cache
23249 like early versions of FreeBSD and possibly contemporary NetBSD.)
23250 For shared mappings, we should conversely verify that changes get
23251 propagated back to all the places they're supposed to be.
23252
23253 Grep wants private fixed already mapped.
23254 The main things grep needs to know about mmap are:
23255 * does it exist and is it safe to write into the mmap'd area
23256 * how to use it (BSD variants) */
23257
23258#include <fcntl.h>
23259#include <sys/mman.h>
23260
23261#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23262char *malloc ();
23263#endif
23264
23265/* This mess was copied from the GNU getpagesize.h. */
23266#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000023267# ifdef _SC_PAGESIZE
23268# define getpagesize() sysconf(_SC_PAGESIZE)
23269# else /* no _SC_PAGESIZE */
23270# ifdef HAVE_SYS_PARAM_H
23271# include <sys/param.h>
23272# ifdef EXEC_PAGESIZE
23273# define getpagesize() EXEC_PAGESIZE
23274# else /* no EXEC_PAGESIZE */
23275# ifdef NBPG
23276# define getpagesize() NBPG * CLSIZE
23277# ifndef CLSIZE
23278# define CLSIZE 1
23279# endif /* no CLSIZE */
23280# else /* no NBPG */
23281# ifdef NBPC
23282# define getpagesize() NBPC
23283# else /* no NBPC */
23284# ifdef PAGESIZE
23285# define getpagesize() PAGESIZE
23286# endif /* PAGESIZE */
23287# endif /* no NBPC */
23288# endif /* no NBPG */
23289# endif /* no EXEC_PAGESIZE */
23290# else /* no HAVE_SYS_PARAM_H */
23291# define getpagesize() 8192 /* punt totally */
23292# endif /* no HAVE_SYS_PARAM_H */
23293# endif /* no _SC_PAGESIZE */
23294
23295#endif /* no HAVE_GETPAGESIZE */
23296
23297int
23298main ()
23299{
23300 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000023301 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000023302 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000023303 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000023304
23305 pagesize = getpagesize ();
23306
23307 /* First, make a file with some known garbage in it. */
23308 data = (char *) malloc (pagesize);
23309 if (!data)
23310 return 1;
23311 for (i = 0; i < pagesize; ++i)
23312 *(data + i) = rand ();
23313 umask (0);
23314 fd = creat ("conftest.mmap", 0600);
23315 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023316 return 2;
cristy3ed852e2009-09-05 21:47:34 +000023317 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023318 return 3;
cristy3ed852e2009-09-05 21:47:34 +000023319 close (fd);
23320
cristycd4c5312009-11-22 01:19:08 +000023321 /* Next, check that the tail of a page is zero-filled. File must have
23322 non-zero length, otherwise we risk SIGBUS for entire page. */
23323 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23324 if (fd2 < 0)
23325 return 4;
cristyc54f5d42009-11-27 21:36:31 +000023326 cdata2 = "";
23327 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000023328 return 5;
cristyc54f5d42009-11-27 21:36:31 +000023329 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000023330 if (data2 == MAP_FAILED)
23331 return 6;
23332 for (i = 0; i < pagesize; ++i)
23333 if (*(data2 + i))
23334 return 7;
23335 close (fd2);
23336 if (munmap (data2, pagesize))
23337 return 8;
23338
cristy3ed852e2009-09-05 21:47:34 +000023339 /* Next, try to mmap the file at a fixed address which already has
23340 something else allocated at it. If we can, also make sure that
23341 we see the same garbage. */
23342 fd = open ("conftest.mmap", O_RDWR);
23343 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000023344 return 9;
cristy3ed852e2009-09-05 21:47:34 +000023345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000023347 return 10;
cristy3ed852e2009-09-05 21:47:34 +000023348 for (i = 0; i < pagesize; ++i)
23349 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000023350 return 11;
cristy3ed852e2009-09-05 21:47:34 +000023351
23352 /* Finally, make sure that changes to the mapped area do not
23353 percolate back to the file as seen by read(). (This is a bug on
23354 some variants of i386 svr4.0.) */
23355 for (i = 0; i < pagesize; ++i)
23356 *(data2 + i) = *(data2 + i) + 1;
23357 data3 = (char *) malloc (pagesize);
23358 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000023359 return 12;
cristy3ed852e2009-09-05 21:47:34 +000023360 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000023361 return 13;
cristy3ed852e2009-09-05 21:47:34 +000023362 for (i = 0; i < pagesize; ++i)
23363 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000023364 return 14;
cristy3ed852e2009-09-05 21:47:34 +000023365 close (fd);
23366 return 0;
23367}
23368_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023369if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023370 ac_cv_func_mmap_fixed_mapped=yes
23371else
cristy8b350f62009-11-15 23:12:43 +000023372 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000023373fi
cristy8b350f62009-11-15 23:12:43 +000023374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23375 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023376fi
23377
cristy3ed852e2009-09-05 21:47:34 +000023378fi
cristy8b350f62009-11-15 23:12:43 +000023379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000023380$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23381if test $ac_cv_func_mmap_fixed_mapped = yes; then
23382
cristy8b350f62009-11-15 23:12:43 +000023383$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023384
23385fi
cristycd4c5312009-11-22 01:19:08 +000023386rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000023387
cristy3ed852e2009-09-05 21:47:34 +000023388for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000023389do :
23390 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023391if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023393#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000023394_ACEOF
23395
23396fi
23397
23398done
23399
cristy3ed852e2009-09-05 21:47:34 +000023400for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000023401do :
23402 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23403ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023404if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023405 cat >>confdefs.h <<_ACEOF
23406#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23407_ACEOF
23408
23409fi
23410done
23411
23412if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023415if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 $as_echo_n "(cached) " >&6
23417else
cristy8b350f62009-11-15 23:12:43 +000023418 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023419 ac_cv_func_fork_works=cross
23420else
cristy8b350f62009-11-15 23:12:43 +000023421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023422/* end confdefs.h. */
23423$ac_includes_default
23424int
23425main ()
23426{
23427
23428 /* By Ruediger Kuhlmann. */
23429 return fork () < 0;
23430
23431 ;
23432 return 0;
23433}
23434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023435if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023436 ac_cv_func_fork_works=yes
23437else
cristy8b350f62009-11-15 23:12:43 +000023438 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023439fi
cristy8b350f62009-11-15 23:12:43 +000023440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23441 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023442fi
23443
cristy3ed852e2009-09-05 21:47:34 +000023444fi
cristy8b350f62009-11-15 23:12:43 +000023445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023446$as_echo "$ac_cv_func_fork_works" >&6; }
23447
23448else
23449 ac_cv_func_fork_works=$ac_cv_func_fork
23450fi
23451if test "x$ac_cv_func_fork_works" = xcross; then
23452 case $host in
23453 *-*-amigaos* | *-*-msdosdjgpp*)
23454 # Override, as these systems have only a dummy fork() stub
23455 ac_cv_func_fork_works=no
23456 ;;
23457 *)
23458 ac_cv_func_fork_works=yes
23459 ;;
23460 esac
cristy8b350f62009-11-15 23:12:43 +000023461 { $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 +000023462$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23463fi
23464ac_cv_func_vfork_works=$ac_cv_func_vfork
23465if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000023466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000023467$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023468if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023469 $as_echo_n "(cached) " >&6
23470else
cristy8b350f62009-11-15 23:12:43 +000023471 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023472 ac_cv_func_vfork_works=cross
23473else
cristy8b350f62009-11-15 23:12:43 +000023474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023475/* end confdefs.h. */
23476/* Thanks to Paul Eggert for this test. */
23477$ac_includes_default
23478#include <sys/wait.h>
23479#ifdef HAVE_VFORK_H
23480# include <vfork.h>
23481#endif
23482/* On some sparc systems, changes by the child to local and incoming
23483 argument registers are propagated back to the parent. The compiler
23484 is told about this with #include <vfork.h>, but some compilers
23485 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23486 static variable whose address is put into a register that is
23487 clobbered by the vfork. */
23488static void
23489#ifdef __cplusplus
23490sparc_address_test (int arg)
23491# else
23492sparc_address_test (arg) int arg;
23493#endif
23494{
23495 static pid_t child;
23496 if (!child) {
23497 child = vfork ();
23498 if (child < 0) {
23499 perror ("vfork");
23500 _exit(2);
23501 }
23502 if (!child) {
23503 arg = getpid();
23504 write(-1, "", 0);
23505 _exit (arg);
23506 }
23507 }
23508}
23509
23510int
23511main ()
23512{
23513 pid_t parent = getpid ();
23514 pid_t child;
23515
23516 sparc_address_test (0);
23517
23518 child = vfork ();
23519
23520 if (child == 0) {
23521 /* Here is another test for sparc vfork register problems. This
23522 test uses lots of local variables, at least as many local
23523 variables as main has allocated so far including compiler
23524 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23525 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23526 reuse the register of parent for one of the local variables,
23527 since it will think that parent can't possibly be used any more
23528 in this routine. Assigning to the local variable will thus
23529 munge parent in the parent process. */
23530 pid_t
23531 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23532 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23533 /* Convince the compiler that p..p7 are live; otherwise, it might
23534 use the same hardware register for all 8 local variables. */
23535 if (p != p1 || p != p2 || p != p3 || p != p4
23536 || p != p5 || p != p6 || p != p7)
23537 _exit(1);
23538
23539 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23540 from child file descriptors. If the child closes a descriptor
23541 before it execs or exits, this munges the parent's descriptor
23542 as well. Test for this by closing stdout in the child. */
23543 _exit(close(fileno(stdout)) != 0);
23544 } else {
23545 int status;
23546 struct stat st;
23547
23548 while (wait(&status) != child)
23549 ;
23550 return (
23551 /* Was there some problem with vforking? */
23552 child < 0
23553
23554 /* Did the child fail? (This shouldn't happen.) */
23555 || status
23556
23557 /* Did the vfork/compiler bug occur? */
23558 || parent != getpid()
23559
23560 /* Did the file descriptor bug occur? */
23561 || fstat(fileno(stdout), &st) != 0
23562 );
23563 }
23564}
23565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023566if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023567 ac_cv_func_vfork_works=yes
23568else
cristy8b350f62009-11-15 23:12:43 +000023569 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000023570fi
cristy8b350f62009-11-15 23:12:43 +000023571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23572 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023573fi
23574
cristy3ed852e2009-09-05 21:47:34 +000023575fi
cristy8b350f62009-11-15 23:12:43 +000023576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000023577$as_echo "$ac_cv_func_vfork_works" >&6; }
23578
23579fi;
23580if test "x$ac_cv_func_fork_works" = xcross; then
23581 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000023582 { $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 +000023583$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23584fi
23585
23586if test "x$ac_cv_func_vfork_works" = xyes; then
23587
cristy8b350f62009-11-15 23:12:43 +000023588$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023589
23590else
23591
cristy8b350f62009-11-15 23:12:43 +000023592$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023593
23594fi
23595if test "x$ac_cv_func_fork_works" = xyes; then
23596
cristy8b350f62009-11-15 23:12:43 +000023597$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023598
23599fi
23600
cristy8b350f62009-11-15 23:12:43 +000023601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023602$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023603if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023604 $as_echo_n "(cached) " >&6
23605else
cristy8b350f62009-11-15 23:12:43 +000023606 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023607 ac_cv_func_memcmp_working=no
23608else
cristy8b350f62009-11-15 23:12:43 +000023609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023610/* end confdefs.h. */
23611$ac_includes_default
23612int
23613main ()
23614{
23615
23616 /* Some versions of memcmp are not 8-bit clean. */
23617 char c0 = '\100', c1 = '\200', c2 = '\201';
23618 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23619 return 1;
23620
23621 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23622 or more and with at least one buffer not starting on a 4-byte boundary.
23623 William Lewis provided this test program. */
23624 {
23625 char foo[21];
23626 char bar[21];
23627 int i;
23628 for (i = 0; i < 4; i++)
23629 {
23630 char *a = foo + i;
23631 char *b = bar + i;
23632 strcpy (a, "--------01111111");
23633 strcpy (b, "--------10000000");
23634 if (memcmp (a, b, 16) >= 0)
23635 return 1;
23636 }
23637 return 0;
23638 }
23639
23640 ;
23641 return 0;
23642}
23643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023644if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023645 ac_cv_func_memcmp_working=yes
23646else
cristy8b350f62009-11-15 23:12:43 +000023647 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000023648fi
cristy8b350f62009-11-15 23:12:43 +000023649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23650 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023651fi
23652
cristy3ed852e2009-09-05 21:47:34 +000023653fi
cristy8b350f62009-11-15 23:12:43 +000023654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000023655$as_echo "$ac_cv_func_memcmp_working" >&6; }
23656test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23657 *" memcmp.$ac_objext "* ) ;;
23658 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23659 ;;
23660esac
23661
23662
cristy3ed852e2009-09-05 21:47:34 +000023663for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000023664do :
23665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23666ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023667if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023668 cat >>confdefs.h <<_ACEOF
23669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23670_ACEOF
23671
23672fi
23673
23674done
23675
cristy8b350f62009-11-15 23:12:43 +000023676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000023677$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023678if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023679 $as_echo_n "(cached) " >&6
23680else
23681 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23682 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23683 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000023684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023685/* end confdefs.h. */
23686$ac_includes_default
23687#ifdef HAVE_SYS_SELECT_H
23688# include <sys/select.h>
23689#endif
23690#ifdef HAVE_SYS_SOCKET_H
23691# include <sys/socket.h>
23692#endif
23693
23694int
23695main ()
23696{
23697extern int select ($ac_arg1,
23698 $ac_arg234, $ac_arg234, $ac_arg234,
23699 $ac_arg5);
23700 ;
23701 return 0;
23702}
23703_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023704if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023705 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000023706fi
cristy3ed852e2009-09-05 21:47:34 +000023707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708 done
23709 done
23710done
23711# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000023712: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000023713
23714fi
cristy8b350f62009-11-15 23:12:43 +000023715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000023716$as_echo "$ac_cv_func_select_args" >&6; }
23717ac_save_IFS=$IFS; IFS=','
23718set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23719IFS=$ac_save_IFS
23720shift
23721
23722cat >>confdefs.h <<_ACEOF
23723#define SELECT_TYPE_ARG1 $1
23724_ACEOF
23725
23726
23727cat >>confdefs.h <<_ACEOF
23728#define SELECT_TYPE_ARG234 ($2)
23729_ACEOF
23730
23731
23732cat >>confdefs.h <<_ACEOF
23733#define SELECT_TYPE_ARG5 ($3)
23734_ACEOF
23735
23736rm -f conftest*
23737
cristyda16f162011-02-19 23:52:17 +000023738if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023739 $as_echo_n "(cached) " >&6
23740else
23741 ac_cv_func_setvbuf_reversed=no
23742fi
23743
23744
cristy8b350f62009-11-15 23:12:43 +000023745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000023746$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023747if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023748 $as_echo_n "(cached) " >&6
23749else
cristy8b350f62009-11-15 23:12:43 +000023750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023751/* end confdefs.h. */
23752#include <sys/types.h>
23753#include <signal.h>
23754
23755int
23756main ()
23757{
23758return *(signal (0, 0)) (0) == 1;
23759 ;
23760 return 0;
23761}
23762_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023763if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023764 ac_cv_type_signal=int
23765else
cristy8b350f62009-11-15 23:12:43 +000023766 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000023767fi
cristy3ed852e2009-09-05 21:47:34 +000023768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769fi
cristy8b350f62009-11-15 23:12:43 +000023770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000023771$as_echo "$ac_cv_type_signal" >&6; }
23772
23773cat >>confdefs.h <<_ACEOF
23774#define RETSIGTYPE $ac_cv_type_signal
23775_ACEOF
23776
23777
cristy8b350f62009-11-15 23:12:43 +000023778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023779$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023780if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023781 $as_echo_n "(cached) " >&6
23782else
cristy8b350f62009-11-15 23:12:43 +000023783 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023784 ac_cv_func_strtod=no
23785else
cristy8b350f62009-11-15 23:12:43 +000023786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023787/* end confdefs.h. */
23788
23789$ac_includes_default
23790#ifndef strtod
23791double strtod ();
23792#endif
23793int
23794main()
23795{
23796 {
23797 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23798 char *string = " +69";
23799 char *term;
23800 double value;
23801 value = strtod (string, &term);
23802 if (value != 69 || term != (string + 4))
23803 return 1;
23804 }
23805
23806 {
23807 /* Under Solaris 2.4, strtod returns the wrong value for the
23808 terminating character under some conditions. */
23809 char *string = "NaN";
23810 char *term;
23811 strtod (string, &term);
23812 if (term != string && *(term - 1) == 0)
23813 return 1;
23814 }
23815 return 0;
23816}
23817
23818_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023819if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023820 ac_cv_func_strtod=yes
23821else
cristy8b350f62009-11-15 23:12:43 +000023822 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000023823fi
cristy8b350f62009-11-15 23:12:43 +000023824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23825 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023826fi
23827
cristy3ed852e2009-09-05 21:47:34 +000023828fi
cristy8b350f62009-11-15 23:12:43 +000023829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000023830$as_echo "$ac_cv_func_strtod" >&6; }
23831if test $ac_cv_func_strtod = no; then
23832 case " $LIBOBJS " in
23833 *" strtod.$ac_objext "* ) ;;
23834 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23835 ;;
23836esac
23837
cristy8b350f62009-11-15 23:12:43 +000023838ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000023839if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023840
cristy3ed852e2009-09-05 21:47:34 +000023841fi
23842
cristy3ed852e2009-09-05 21:47:34 +000023843if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000023844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023845$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023846if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023847 $as_echo_n "(cached) " >&6
23848else
23849 ac_check_lib_save_LIBS=$LIBS
23850LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000023851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023852/* end confdefs.h. */
23853
23854/* Override any GCC internal prototype to avoid an error.
23855 Use char because int might match the return type of a GCC
23856 builtin and then its argument prototype would still apply. */
23857#ifdef __cplusplus
23858extern "C"
23859#endif
23860char pow ();
23861int
23862main ()
23863{
23864return pow ();
23865 ;
23866 return 0;
23867}
23868_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023869if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023870 ac_cv_lib_m_pow=yes
23871else
cristy8b350f62009-11-15 23:12:43 +000023872 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000023873fi
cristy8b350f62009-11-15 23:12:43 +000023874rm -f core conftest.err conftest.$ac_objext \
23875 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023876LIBS=$ac_check_lib_save_LIBS
23877fi
cristy8b350f62009-11-15 23:12:43 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000023880if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023881 POW_LIB=-lm
23882else
cristy8b350f62009-11-15 23:12:43 +000023883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000023884$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23885fi
23886
23887fi
23888
23889fi
23890
cristy3ed852e2009-09-05 21:47:34 +000023891for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000023892do :
23893 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000023894if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023896#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000023897_ACEOF
23898
cristy8b350f62009-11-15 23:12:43 +000023899ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000023900if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023901
cristy8b350f62009-11-15 23:12:43 +000023902$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023903
23904fi
23905
23906fi
23907done
23908
23909
23910
cristy161b9262010-03-20 19:34:32 +000023911#
23912# Find math library
23913#
23914MATH_LIBS=''
23915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23916$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023917if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000023918 $as_echo_n "(cached) " >&6
23919else
23920 ac_check_lib_save_LIBS=$LIBS
23921LIBS="-lm $LIBS"
23922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23923/* end confdefs.h. */
23924
23925/* Override any GCC internal prototype to avoid an error.
23926 Use char because int might match the return type of a GCC
23927 builtin and then its argument prototype would still apply. */
23928#ifdef __cplusplus
23929extern "C"
23930#endif
23931char sqrt ();
23932int
23933main ()
23934{
23935return sqrt ();
23936 ;
23937 return 0;
23938}
23939_ACEOF
23940if ac_fn_c_try_link "$LINENO"; then :
23941 ac_cv_lib_m_sqrt=yes
23942else
23943 ac_cv_lib_m_sqrt=no
23944fi
23945rm -f core conftest.err conftest.$ac_objext \
23946 conftest$ac_exeext conftest.$ac_ext
23947LIBS=$ac_check_lib_save_LIBS
23948fi
23949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23950$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000023951if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000023952 MATH_LIBS="-lm"
23953fi
23954
23955LIBS="$MATH_LIBS $LIBS"
23956
23957
cristy47b022b2011-01-18 22:29:21 +000023958for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000023959do :
23960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23961ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000023962if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023963 cat >>confdefs.h <<_ACEOF
23964#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23965_ACEOF
23966
23967fi
23968done
23969
23970
cristye43a45e2009-09-28 14:49:00 +000023971#
23972# Check for clock_gettime().
23973#
cristy8b350f62009-11-15 23:12:43 +000023974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000023975$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023976if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000023977 $as_echo_n "(cached) " >&6
23978else
23979 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000023981/* end confdefs.h. */
23982
23983/* Override any GCC internal prototype to avoid an error.
23984 Use char because int might match the return type of a GCC
23985 builtin and then its argument prototype would still apply. */
23986#ifdef __cplusplus
23987extern "C"
23988#endif
23989char clock_gettime ();
23990int
23991main ()
23992{
23993return clock_gettime ();
23994 ;
23995 return 0;
23996}
23997_ACEOF
23998for ac_lib in '' rt; do
23999 if test -z "$ac_lib"; then
24000 ac_res="none required"
24001 else
24002 ac_res=-l$ac_lib
24003 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24004 fi
cristy8b350f62009-11-15 23:12:43 +000024005 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024006 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024007fi
cristy8b350f62009-11-15 23:12:43 +000024008rm -f core conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024010 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024011 break
24012fi
24013done
cristyda16f162011-02-19 23:52:17 +000024014if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024015
cristye43a45e2009-09-28 14:49:00 +000024016else
24017 ac_cv_search_clock_gettime=no
24018fi
24019rm conftest.$ac_ext
24020LIBS=$ac_func_search_save_LIBS
24021fi
cristy8b350f62009-11-15 23:12:43 +000024022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024023$as_echo "$ac_cv_search_clock_gettime" >&6; }
24024ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024025if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24027
24028
cristy8b350f62009-11-15 23:12:43 +000024029$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024030
cristy8b350f62009-11-15 23:12:43 +000024031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024032$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024034/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024035
24036 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024037int
24038main ()
24039{
24040clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024041 ;
24042 return 0;
24043}
24044_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024045if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024046
cristy8b350f62009-11-15 23:12:43 +000024047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristye43a45e2009-09-28 14:49:00 +000024048$as_echo "yes" >&6; }
24049
cristy8b350f62009-11-15 23:12:43 +000024050$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024051
24052
24053else
cristy8b350f62009-11-15 23:12:43 +000024054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristye43a45e2009-09-28 14:49:00 +000024055$as_echo "no" >&6; }
24056
24057fi
cristye43a45e2009-09-28 14:49:00 +000024058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059
24060else
24061
cristy8b350f62009-11-15 23:12:43 +000024062 for ac_func in gettimeofday ftime
24063do :
24064 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24065ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024066if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024067 cat >>confdefs.h <<_ACEOF
24068#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24069_ACEOF
24070 break
24071fi
24072done
24073
24074
24075
24076fi
24077
24078
cristy3ed852e2009-09-05 21:47:34 +000024079########
24080#
24081# Check for function prototypes
24082#
24083########
24084
cristy8b350f62009-11-15 23:12:43 +000024085ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024086#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024087"
cristyda16f162011-02-19 23:52:17 +000024088if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024089 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024090else
cristy8b350f62009-11-15 23:12:43 +000024091 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024092fi
24093
cristy3ed852e2009-09-05 21:47:34 +000024094cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024095#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024096_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024097ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024098#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024099"
cristyda16f162011-02-19 23:52:17 +000024100if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024101 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024102else
cristy8b350f62009-11-15 23:12:43 +000024103 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024104fi
24105
cristy3ed852e2009-09-05 21:47:34 +000024106cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024107#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024108_ACEOF
24109
24110
cristy8b350f62009-11-15 23:12:43 +000024111ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024112#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024113"
cristyda16f162011-02-19 23:52:17 +000024114if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024115 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024116else
cristy8b350f62009-11-15 23:12:43 +000024117 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024118fi
24119
cristy3ed852e2009-09-05 21:47:34 +000024120cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024121#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024122_ACEOF
24123
24124
cristy8b350f62009-11-15 23:12:43 +000024125ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024126#include <stdio.h>
24127#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024128"
cristyda16f162011-02-19 23:52:17 +000024129if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024130 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024131else
cristy8b350f62009-11-15 23:12:43 +000024132 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024133fi
24134
cristy3ed852e2009-09-05 21:47:34 +000024135cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024136#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024137_ACEOF
24138
24139
cristy3ed852e2009-09-05 21:47:34 +000024140########
24141#
24142# C++ Support Tests (For Magick++)
24143#
24144########
24145have_magick_plus_plus='no'
24146if test "$with_magick_plus_plus" = 'yes'; then
24147 OLIBS="$LIBS"
24148 LIBS=''
24149 ac_ext=cpp
24150ac_cpp='$CXXCPP $CPPFLAGS'
24151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24154
24155
24156 # Full set of headers used...
24157 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24158 # functional iomanip iosfwd iostream iterator list string strstream utility
24159 ac_ext=cpp
24160ac_cpp='$CXXCPP $CPPFLAGS'
24161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24164
24165 ac_ext=cpp
24166ac_cpp='$CXXCPP $CPPFLAGS'
24167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24170if test -z "$CXX"; then
24171 if test -n "$CCC"; then
24172 CXX=$CCC
24173 else
24174 if test -n "$ac_tool_prefix"; then
24175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24176 do
24177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024181if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024182 $as_echo_n "(cached) " >&6
24183else
24184 if test -n "$CXX"; then
24185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24186else
24187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24188for as_dir in $PATH
24189do
24190 IFS=$as_save_IFS
24191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24194 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024196 break 2
24197 fi
24198done
cristy8b350f62009-11-15 23:12:43 +000024199 done
cristy3ed852e2009-09-05 21:47:34 +000024200IFS=$as_save_IFS
24201
24202fi
24203fi
24204CXX=$ac_cv_prog_CXX
24205if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo "$CXX" >&6; }
24208else
cristy8b350f62009-11-15 23:12:43 +000024209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024210$as_echo "no" >&6; }
24211fi
24212
24213
24214 test -n "$CXX" && break
24215 done
24216fi
24217if test -z "$CXX"; then
24218 ac_ct_CXX=$CXX
24219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24220do
24221 # Extract the first word of "$ac_prog", so it can be a program name with args.
24222set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000024223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024225if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 $as_echo_n "(cached) " >&6
24227else
24228 if test -n "$ac_ct_CXX"; then
24229 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24230else
24231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24232for as_dir in $PATH
24233do
24234 IFS=$as_save_IFS
24235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000024236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000024237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24238 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000024239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000024240 break 2
24241 fi
24242done
cristy8b350f62009-11-15 23:12:43 +000024243 done
cristy3ed852e2009-09-05 21:47:34 +000024244IFS=$as_save_IFS
24245
24246fi
24247fi
24248ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24249if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000024250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000024251$as_echo "$ac_ct_CXX" >&6; }
24252else
cristy8b350f62009-11-15 23:12:43 +000024253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo "no" >&6; }
24255fi
24256
24257
24258 test -n "$ac_ct_CXX" && break
24259done
24260
24261 if test "x$ac_ct_CXX" = x; then
24262 CXX="g++"
24263 else
24264 case $cross_compiling:$ac_tool_warned in
24265yes:)
cristy8b350f62009-11-15 23:12:43 +000024266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000024267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24268ac_tool_warned=yes ;;
24269esac
24270 CXX=$ac_ct_CXX
24271 fi
24272fi
24273
24274 fi
24275fi
24276# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000024277$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000024278set X $ac_compile
24279ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000024280for ac_option in --version -v -V -qversion; do
24281 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000024282case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24285esac
cristy8b350f62009-11-15 23:12:43 +000024286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24287$as_echo "$ac_try_echo"; } >&5
24288 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000024289 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000024290 if test -s conftest.err; then
24291 sed '10a\
24292... rest of stderr output deleted ...
24293 10q' conftest.err >conftest.er1
24294 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000024295 fi
cristycd4c5312009-11-22 01:19:08 +000024296 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000024297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24298 test $ac_status = 0; }
24299done
cristy3ed852e2009-09-05 21:47:34 +000024300
cristy8b350f62009-11-15 23:12:43 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000024302$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024303if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024304 $as_echo_n "(cached) " >&6
24305else
cristy8b350f62009-11-15 23:12:43 +000024306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024307/* end confdefs.h. */
24308
24309int
24310main ()
24311{
24312#ifndef __GNUC__
24313 choke me
24314#endif
24315
24316 ;
24317 return 0;
24318}
24319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024320if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024321 ac_compiler_gnu=yes
24322else
cristy8b350f62009-11-15 23:12:43 +000024323 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000024324fi
cristy3ed852e2009-09-05 21:47:34 +000024325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24327
24328fi
cristy8b350f62009-11-15 23:12:43 +000024329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000024330$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24331if test $ac_compiler_gnu = yes; then
24332 GXX=yes
24333else
24334 GXX=
24335fi
24336ac_test_CXXFLAGS=${CXXFLAGS+set}
24337ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000024338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024339$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024340if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024341 $as_echo_n "(cached) " >&6
24342else
24343 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24344 ac_cxx_werror_flag=yes
24345 ac_cv_prog_cxx_g=no
24346 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024348/* end confdefs.h. */
24349
24350int
24351main ()
24352{
24353
24354 ;
24355 return 0;
24356}
24357_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024358if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024359 ac_cv_prog_cxx_g=yes
24360else
cristy8b350f62009-11-15 23:12:43 +000024361 CXXFLAGS=""
24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024363/* end confdefs.h. */
24364
24365int
24366main ()
24367{
24368
24369 ;
24370 return 0;
24371}
24372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024373if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024374
cristy8b350f62009-11-15 23:12:43 +000024375else
24376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000024377 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000024378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024379/* end confdefs.h. */
24380
24381int
24382main ()
24383{
24384
24385 ;
24386 return 0;
24387}
24388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024389if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024390 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000024391fi
cristy3ed852e2009-09-05 21:47:34 +000024392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393fi
cristy3ed852e2009-09-05 21:47:34 +000024394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395fi
cristy3ed852e2009-09-05 21:47:34 +000024396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24397 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24398fi
cristy8b350f62009-11-15 23:12:43 +000024399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo "$ac_cv_prog_cxx_g" >&6; }
24401if test "$ac_test_CXXFLAGS" = set; then
24402 CXXFLAGS=$ac_save_CXXFLAGS
24403elif test $ac_cv_prog_cxx_g = yes; then
24404 if test "$GXX" = yes; then
24405 CXXFLAGS="-g -O2"
24406 else
24407 CXXFLAGS="-g"
24408 fi
24409else
24410 if test "$GXX" = yes; then
24411 CXXFLAGS="-O2"
24412 else
24413 CXXFLAGS=
24414 fi
24415fi
24416ac_ext=cpp
24417ac_cpp='$CXXCPP $CPPFLAGS'
24418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24421
cristy73bd4a52010-10-05 11:24:23 +000024422depcc="$CXX" am_compiler_list=
24423
24424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24425$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024426if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024427 $as_echo_n "(cached) " >&6
24428else
24429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24430 # We make a subdir and do the tests there. Otherwise we can end up
24431 # making bogus files that we don't know about and never remove. For
24432 # instance it was reported that on HP-UX the gcc test will end up
24433 # making a dummy file named `D' -- because `-MD' means `put the output
24434 # in D'.
24435 mkdir conftest.dir
24436 # Copy depcomp to subdir because otherwise we won't find it if we're
24437 # using a relative directory.
24438 cp "$am_depcomp" conftest.dir
24439 cd conftest.dir
24440 # We will build objects and dependencies in a subdirectory because
24441 # it helps to detect inapplicable dependency modes. For instance
24442 # both Tru64's cc and ICC support -MD to output dependencies as a
24443 # side effect of compilation, but ICC will put the dependencies in
24444 # the current directory while Tru64 will put them in the object
24445 # directory.
24446 mkdir sub
24447
24448 am_cv_CXX_dependencies_compiler_type=none
24449 if test "$am_compiler_list" = ""; then
24450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24451 fi
24452 am__universal=false
24453 case " $depcc " in #(
24454 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24455 esac
24456
24457 for depmode in $am_compiler_list; do
24458 # Setup a source with many dependencies, because some compilers
24459 # like to wrap large dependency lists on column 80 (with \), and
24460 # we should not choose a depcomp mode which is confused by this.
24461 #
24462 # We need to recreate these files for each test, as the compiler may
24463 # overwrite some of them when testing with obscure command lines.
24464 # This happens at least with the AIX C compiler.
24465 : > sub/conftest.c
24466 for i in 1 2 3 4 5 6; do
24467 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24468 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24469 # Solaris 8's {/usr,}/bin/sh.
24470 touch sub/conftst$i.h
24471 done
24472 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24473
24474 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24475 # mode. It turns out that the SunPro C++ compiler does not properly
24476 # handle `-M -o', and we need to detect this. Also, some Intel
24477 # versions had trouble with output in subdirs
24478 am__obj=sub/conftest.${OBJEXT-o}
24479 am__minus_obj="-o $am__obj"
24480 case $depmode in
24481 gcc)
24482 # This depmode causes a compiler race in universal mode.
24483 test "$am__universal" = false || continue
24484 ;;
24485 nosideeffect)
24486 # after this tag, mechanisms are not by side-effect, so they'll
24487 # only be used when explicitly requested
24488 if test "x$enable_dependency_tracking" = xyes; then
24489 continue
24490 else
24491 break
24492 fi
24493 ;;
24494 msvisualcpp | msvcmsys)
24495 # This compiler won't grok `-c -o', but also, the minuso test has
24496 # not run yet. These depmodes are late enough in the game, and
24497 # so weak that their functioning should not be impacted.
24498 am__obj=conftest.${OBJEXT-o}
24499 am__minus_obj=
24500 ;;
24501 none) break ;;
24502 esac
24503 if depmode=$depmode \
24504 source=sub/conftest.c object=$am__obj \
24505 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24506 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24507 >/dev/null 2>conftest.err &&
24508 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24509 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24510 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24511 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24512 # icc doesn't choke on unknown options, it will just issue warnings
24513 # or remarks (even with -Werror). So we grep stderr for any message
24514 # that says an option was ignored or not supported.
24515 # When given -MP, icc 7.0 and 7.1 complain thusly:
24516 # icc: Command line warning: ignoring option '-M'; no argument required
24517 # The diagnosis changed in icc 8.0:
24518 # icc: Command line remark: option '-MP' not supported
24519 if (grep 'ignoring option' conftest.err ||
24520 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24521 am_cv_CXX_dependencies_compiler_type=$depmode
24522 break
24523 fi
24524 fi
24525 done
24526
24527 cd ..
24528 rm -rf conftest.dir
24529else
24530 am_cv_CXX_dependencies_compiler_type=none
24531fi
24532
24533fi
24534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24535$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24536CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24537
24538 if
24539 test "x$enable_dependency_tracking" != xno \
24540 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24541 am__fastdepCXX_TRUE=
24542 am__fastdepCXX_FALSE='#'
24543else
24544 am__fastdepCXX_TRUE='#'
24545 am__fastdepCXX_FALSE=
24546fi
24547
24548
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24550$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024551if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024552 $as_echo_n "(cached) " >&6
24553else
24554
24555 ac_ext=cpp
24556ac_cpp='$CXXCPP $CPPFLAGS'
24557ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24558ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24559ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24560
24561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562/* end confdefs.h. */
24563
24564int f(int x){return 1;}
24565int f(char x){return 1;}
24566int f(bool x){return 1;}
24567
24568int
24569main ()
24570{
24571bool b = true; return f(b);
24572 ;
24573 return 0;
24574}
24575_ACEOF
24576if ac_fn_cxx_try_compile "$LINENO"; then :
24577 ax_cv_cxx_bool=yes
24578else
24579 ax_cv_cxx_bool=no
24580fi
24581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582 ac_ext=cpp
24583ac_cpp='$CXXCPP $CPPFLAGS'
24584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24587
24588
24589fi
24590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24591$as_echo "$ax_cv_cxx_bool" >&6; }
24592if test "$ax_cv_cxx_bool" = yes; then
24593
24594$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24595
24596fi
24597
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24599$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024600if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024601 $as_echo_n "(cached) " >&6
24602else
24603
24604 ac_ext=cpp
24605ac_cpp='$CXXCPP $CPPFLAGS'
24606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24609
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611/* end confdefs.h. */
24612namespace Outer { namespace Inner { int i = 0; }}
24613int
24614main ()
24615{
24616using namespace Outer::Inner; return i;
24617 ;
24618 return 0;
24619}
24620_ACEOF
24621if ac_fn_cxx_try_compile "$LINENO"; then :
24622 ax_cv_cxx_namespaces=yes
24623else
24624 ax_cv_cxx_namespaces=no
24625fi
24626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24627 ac_ext=cpp
24628ac_cpp='$CXXCPP $CPPFLAGS'
24629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24632
24633
24634fi
24635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24636$as_echo "$ax_cv_cxx_namespaces" >&6; }
24637if test "$ax_cv_cxx_namespaces" = yes; then
24638
24639$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24640
24641fi
24642
24643
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24645$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024646if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024647 $as_echo_n "(cached) " >&6
24648else
24649
24650 ac_ext=cpp
24651ac_cpp='$CXXCPP $CPPFLAGS'
24652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24655
24656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24657/* end confdefs.h. */
24658#include <iostream>
24659 std::istream& is = std::cin;
24660int
24661main ()
24662{
24663
24664 ;
24665 return 0;
24666}
24667_ACEOF
24668if ac_fn_cxx_try_compile "$LINENO"; then :
24669 ax_cv_cxx_have_std_namespace=yes
24670else
24671 ax_cv_cxx_have_std_namespace=no
24672fi
24673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24674 ac_ext=cpp
24675ac_cpp='$CXXCPP $CPPFLAGS'
24676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24679
24680
24681fi
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24683$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24684 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24685
24686$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24687
24688 fi
24689
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24691$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024692if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024693 $as_echo_n "(cached) " >&6
24694else
24695
24696
24697 ac_ext=cpp
24698ac_cpp='$CXXCPP $CPPFLAGS'
24699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24702
24703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704/* end confdefs.h. */
24705#include <iostream>
24706#include <map>
24707#include <iomanip>
24708#include <cmath>
24709#ifdef HAVE_NAMESPACES
24710using namespace std;
24711#endif
24712int
24713main ()
24714{
24715return 0;
24716 ;
24717 return 0;
24718}
24719_ACEOF
24720if ac_fn_cxx_try_compile "$LINENO"; then :
24721 ac_cv_cxx_have_std_libs=yes
24722else
24723 ac_cv_cxx_have_std_libs=no
24724fi
24725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 ac_ext=cpp
24727ac_cpp='$CXXCPP $CPPFLAGS'
24728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24731
24732
24733fi
24734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24735$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24736if test "$ac_cv_cxx_have_std_libs" = yes; then
24737
24738$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24739
24740fi
24741
cristy3ed852e2009-09-05 21:47:34 +000024742
24743 OPENMP_CXXFLAGS=
24744 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000024745if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024746 enableval=$enable_openmp;
24747fi
24748
24749 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000024750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24751$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024752if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024753 $as_echo_n "(cached) " >&6
24754else
cristy8b350f62009-11-15 23:12:43 +000024755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24756/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024757
24758#ifndef _OPENMP
24759 choke me
24760#endif
24761#include <omp.h>
24762int main () { return omp_get_num_threads (); }
24763
24764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024765if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024766 ac_cv_prog_cxx_openmp='none needed'
24767else
cristy8b350f62009-11-15 23:12:43 +000024768 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000024769 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24770 ac_save_CXXFLAGS=$CXXFLAGS
24771 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000024772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24773/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000024774
24775#ifndef _OPENMP
24776 choke me
24777#endif
24778#include <omp.h>
24779int main () { return omp_get_num_threads (); }
24780
24781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024782if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000024784fi
cristy8b350f62009-11-15 23:12:43 +000024785rm -f core conftest.err conftest.$ac_objext \
24786 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024787 CXXFLAGS=$ac_save_CXXFLAGS
24788 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24789 break
24790 fi
24791 done
24792fi
cristy8b350f62009-11-15 23:12:43 +000024793rm -f core conftest.err conftest.$ac_objext \
24794 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024795fi
cristy8b350f62009-11-15 23:12:43 +000024796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024797$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24798 case $ac_cv_prog_cxx_openmp in #(
24799 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000024800 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000024801 *)
cristy8b350f62009-11-15 23:12:43 +000024802 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000024803 esac
24804 fi
24805
24806
24807 ac_ext=c
24808ac_cpp='$CPP $CPPFLAGS'
24809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24811ac_compiler_gnu=$ac_cv_c_compiler_gnu
24812
24813
cristy8b350f62009-11-15 23:12:43 +000024814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000024815$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24816 if \
cristy964cb7f2010-04-25 23:18:00 +000024817 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024818 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000024819 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000024820 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024821 have_magick_plus_plus='yes'
24822 else
24823 have_magick_plus_plus='no (failed tests)'
24824 fi
cristy8b350f62009-11-15 23:12:43 +000024825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
cristy3ed852e2009-09-05 21:47:34 +000024826$as_echo "$have_magick_plus_plus" >&6; }
24827 LIBS="$OLIBS"
24828fi
cristy73bd4a52010-10-05 11:24:23 +000024829 if test "$have_magick_plus_plus" = 'yes'; then
24830 WITH_MAGICK_PLUS_PLUS_TRUE=
24831 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24832else
24833 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24834 WITH_MAGICK_PLUS_PLUS_FALSE=
24835fi
24836
cristy3ed852e2009-09-05 21:47:34 +000024837
24838# Only check for delegate libraries in subdirectories if requested.
24839if test "$enable_delegate_build" != 'no'; then
24840 # Check for delegate sub-directories and add -I & -L options as required.
24841 # This presumes that delegates are installed as detailed in the ImageMagick
24842 # README. If delegates are installed in a standard location where the
24843 # compiler will automatically find them then these options should not be
24844 # required.
24845
24846 #
24847 # Most delegates have includes in the same directory as the library, but not all...
24848 #
24849 # Includes
cristyfbb0ef02010-12-19 02:32:11 +000024850 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 +000024851 if test -d "$builddir/$dir"; then
24852 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24853 else
24854 if test -d "$srcdirfull/$dir"; then
24855 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24856 fi
24857 fi
24858 done
24859
24860 # Libraries
cristyfbb0ef02010-12-19 02:32:11 +000024861 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 +000024862 if test -d "$builddir/$dir/.libs"; then
24863 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24864 else
24865 if test -d "$srcdirfull/$dir/.libs"; then
24866 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24867 fi
24868 fi
24869 if test -d "$builddir/$dir"; then
24870 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24871 else
24872 if test -d "$srcdirfull/$dir"; then
24873 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24874 fi
24875 fi
24876 done
24877fi
24878
24879# Assume that delegate headers reside under same directory as ImageMagick
24880# installation prefix.
24881MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24882
24883#
24884# Find the X11 RGB database
24885#
cristy8b350f62009-11-15 23:12:43 +000024886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024887$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024888if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024889 $as_echo_n "(cached) " >&6
24890else
24891 # Look for the header file in a standard set of common directories.
24892# Check X11 before X11Rn because it is often a symlink to the current release.
24893 for ac_dir in \
24894 /lib/usr/lib/X11 \
24895 /usr/X11/lib \
24896 /usr/X11R4/lib \
24897 /usr/X11R5/lib \
24898 /usr/X11R6/lib \
24899 /usr/X11R7/lib \
24900 /usr/X386/lib \
24901 /usr/XFree86/lib/X11 \
24902 /usr/athena/lib \
24903 /usr/lib \
24904 /usr/lib/X11 \
24905 /usr/lib/X11R4 \
24906 /usr/lib/X11R5 \
24907 /usr/lib/X11R6 \
24908 /usr/lib/X11R7 \
24909 /usr/local/X11/lib \
24910 /usr/local/X11R4/lib \
24911 /usr/local/X11R5/lib \
24912 /usr/local/X11R6/lib \
24913 /usr/local/lib \
24914 /usr/local/lib/X11 \
24915 /usr/local/lib/X11R4 \
24916 /usr/local/lib/X11R5 \
24917 /usr/local/lib/X11R6 \
24918 /usr/local/lib/X11R7 \
24919 /usr/local/x11r5/lib \
24920 /usr/lpp/Xamples/lib \
24921 /usr/openwin/lib \
24922 /usr/openwin/share/lib \
24923 /usr/unsupported/lib \
24924 /usr/x386/lib \
24925 ; do
24926 if test -f "$ac_dir/X11/rgb.txt"; then
24927 im_cv_x_configure="$ac_dir/X11/"
24928 break
24929 elif test -f "$ac_dir/rgb.txt"; then
24930 im_cv_x_configure="$ac_dir/"
24931 break
24932 fi
24933
24934 done
24935fi
cristy8b350f62009-11-15 23:12:43 +000024936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000024937$as_echo "$im_cv_x_configure" >&6; }
24938X11_CONFIGURE_PATH="$im_cv_x_configure"
24939case "${build_os}" in
24940 mingw* )
24941 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24942 ;;
24943esac
24944
24945cat >>confdefs.h <<_ACEOF
24946#define X11_CONFIGURE_PATH "$X11ConfigurePath"
24947_ACEOF
24948
24949
24950#
24951# Find OpenMP library
24952#
24953GOMP_LIBS=''
24954if test "$enable_openmp" != 'no'; then
24955 if test "${GCC}" = "yes"; then
cristy8b350f62009-11-15 23:12:43 +000024956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024957$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024958if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024959 $as_echo_n "(cached) " >&6
24960else
24961 ac_check_lib_save_LIBS=$LIBS
24962LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024964/* end confdefs.h. */
24965
24966/* Override any GCC internal prototype to avoid an error.
24967 Use char because int might match the return type of a GCC
24968 builtin and then its argument prototype would still apply. */
24969#ifdef __cplusplus
24970extern "C"
24971#endif
24972char GOMP_parallel_start ();
24973int
24974main ()
24975{
24976return GOMP_parallel_start ();
24977 ;
24978 return 0;
24979}
24980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 ac_cv_lib_gomp_GOMP_parallel_start=yes
24983else
cristy8b350f62009-11-15 23:12:43 +000024984 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000024985fi
cristy8b350f62009-11-15 23:12:43 +000024986rm -f core conftest.err conftest.$ac_objext \
24987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024988LIBS=$ac_check_lib_save_LIBS
24989fi
cristy8b350f62009-11-15 23:12:43 +000024990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000024991$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000024992if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024993 GOMP_LIBS="-lgomp"
24994fi
24995 # gcc
24996 else
cristy8b350f62009-11-15 23:12:43 +000024997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000024998$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024999if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025000 $as_echo_n "(cached) " >&6
25001else
25002 ac_check_lib_save_LIBS=$LIBS
25003LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025005/* end confdefs.h. */
25006
25007/* Override any GCC internal prototype to avoid an error.
25008 Use char because int might match the return type of a GCC
25009 builtin and then its argument prototype would still apply. */
25010#ifdef __cplusplus
25011extern "C"
25012#endif
25013char sunw_mp_register_warn ();
25014int
25015main ()
25016{
25017return sunw_mp_register_warn ();
25018 ;
25019 return 0;
25020}
25021_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025022if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025023 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25024else
cristy8b350f62009-11-15 23:12:43 +000025025 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025026fi
cristy8b350f62009-11-15 23:12:43 +000025027rm -f core conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025029LIBS=$ac_check_lib_save_LIBS
25030fi
cristy8b350f62009-11-15 23:12:43 +000025031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025033if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025034 GOMP_LIBS="-lmtsk"
25035fi
25036 # solaris cc
cristy8b350f62009-11-15 23:12:43 +000025037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025038$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025039if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025040 $as_echo_n "(cached) " >&6
25041else
25042 ac_check_lib_save_LIBS=$LIBS
25043LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025045/* end confdefs.h. */
25046
25047/* Override any GCC internal prototype to avoid an error.
25048 Use char because int might match the return type of a GCC
25049 builtin and then its argument prototype would still apply. */
25050#ifdef __cplusplus
25051extern "C"
25052#endif
25053char _xlsmpFlush ();
25054int
25055main ()
25056{
25057return _xlsmpFlush ();
25058 ;
25059 return 0;
25060}
25061_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025062if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025063 ac_cv_lib_xlsmp__xlsmpFlush=yes
25064else
cristy8b350f62009-11-15 23:12:43 +000025065 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025066fi
cristy8b350f62009-11-15 23:12:43 +000025067rm -f core conftest.err conftest.$ac_objext \
25068 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025069LIBS=$ac_check_lib_save_LIBS
25070fi
cristy8b350f62009-11-15 23:12:43 +000025071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025072$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025073if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025074 GOMP_LIBS="-lxlsmp"
25075fi
25076 # AIX xlc
cristy8b350f62009-11-15 23:12:43 +000025077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025079if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025080 $as_echo_n "(cached) " >&6
25081else
25082 ac_check_lib_save_LIBS=$LIBS
25083LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025085/* end confdefs.h. */
25086
25087/* Override any GCC internal prototype to avoid an error.
25088 Use char because int might match the return type of a GCC
25089 builtin and then its argument prototype would still apply. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093char mp_destroy ();
25094int
25095main ()
25096{
25097return mp_destroy ();
25098 ;
25099 return 0;
25100}
25101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025103 ac_cv_lib_mp_mp_destroy=yes
25104else
cristy8b350f62009-11-15 23:12:43 +000025105 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000025106fi
cristy8b350f62009-11-15 23:12:43 +000025107rm -f core conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025109LIBS=$ac_check_lib_save_LIBS
25110fi
cristy8b350f62009-11-15 23:12:43 +000025111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000025112$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000025113if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025114 GOMP_LIBS="-lmp"
25115fi
25116 # SGI IRIX 6.5 MIPSpro C/C++
25117 fi
25118 LIBS="$GOMP_LIBS $LIBS"
25119fi
25120
25121
25122#
25123# Find Posix threads library
25124#
25125THREAD_LIBS=''
25126if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25127
25128 if test "x$PTHREAD_LIBS" = "x"; then
25129 case "${host_cpu}-${host_os}" in
25130 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000025131
25132
25133
25134ac_ext=c
25135ac_cpp='$CPP $CPPFLAGS'
25136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25138ac_compiler_gnu=$ac_cv_c_compiler_gnu
25139
25140magick_pthread_lib_ok=no
25141
25142LIB=-lc_r
25143save_LIBS="$LIBS"
25144LIBS="$LIBS $LIB"
25145
25146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25147$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25149/* end confdefs.h. */
25150#include <pthread.h>
25151int
25152main ()
25153{
25154 pthread_t th;
25155 pthread_join(th, 0);
25156 pthread_attr_init(0);
25157 pthread_cleanup_push(0, 0);
25158 pthread_create(0,0,0,0);
25159 pthread_cleanup_pop(0);
25160 ;
25161 return 0;
25162}
25163_ACEOF
25164if ac_fn_c_try_link "$LINENO"; then :
25165 magick_pthread_lib_ok=yes
25166fi
25167rm -f core conftest.err conftest.$ac_objext \
25168 conftest$ac_exeext conftest.$ac_ext
25169
25170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25171$as_echo "${magick_pthread_lib_ok}" >&6; }
25172if test "$magick_pthread_lib_ok" = yes
25173then
25174 PTHREAD_LIBS=-lc_r
25175 :
25176else
25177
25178 :
25179fi
25180
25181LIBS="$save_LIBS"
25182
25183ac_ext=c
25184ac_cpp='$CPP $CPPFLAGS'
25185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25187ac_compiler_gnu=$ac_cv_c_compiler_gnu
25188
25189 ;;
cristy3ed852e2009-09-05 21:47:34 +000025190 esac
25191 fi
25192
25193 for lib in pthread pthreads; do
25194 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000025195
25196
25197
25198ac_ext=c
25199ac_cpp='$CPP $CPPFLAGS'
25200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25202ac_compiler_gnu=$ac_cv_c_compiler_gnu
25203
25204magick_pthread_lib_ok=no
25205
25206LIB=-l$lib
25207save_LIBS="$LIBS"
25208LIBS="$LIBS $LIB"
25209
25210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25211$as_echo_n "checking for the pthreads library $LIB... " >&6; }
25212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25213/* end confdefs.h. */
25214#include <pthread.h>
25215int
25216main ()
25217{
25218 pthread_t th;
25219 pthread_join(th, 0);
25220 pthread_attr_init(0);
25221 pthread_cleanup_push(0, 0);
25222 pthread_create(0,0,0,0);
25223 pthread_cleanup_pop(0);
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228if ac_fn_c_try_link "$LINENO"; then :
25229 magick_pthread_lib_ok=yes
25230fi
25231rm -f core conftest.err conftest.$ac_objext \
25232 conftest$ac_exeext conftest.$ac_ext
25233
25234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25235$as_echo "${magick_pthread_lib_ok}" >&6; }
25236if test "$magick_pthread_lib_ok" = yes
25237then
25238 PTHREAD_LIBS=-l$lib
25239 :
25240else
25241
25242 :
25243fi
25244
25245LIBS="$save_LIBS"
25246
25247ac_ext=c
25248ac_cpp='$CPP $CPPFLAGS'
25249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25251ac_compiler_gnu=$ac_cv_c_compiler_gnu
25252
25253
cristy3ed852e2009-09-05 21:47:34 +000025254 fi
25255 done
25256
25257 THREAD_LIBS="$PTHREAD_LIBS"
25258 LIBS="$LIBS $THREAD_LIBS"
25259fi
25260
25261
25262#
25263# Check for umem.
25264#
25265have_umem='no'
25266UMEM_LIBS=''
25267if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000025268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000025269$as_echo_n "checking for UMEM support ... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025271$as_echo "" >&6; }
25272 failed=0
25273 passed=0
cristy8b350f62009-11-15 23:12:43 +000025274 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025275if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025276 passed=`expr $passed + 1`
25277else
25278 failed=`expr $failed + 1`
25279fi
25280
25281
cristy8b350f62009-11-15 23:12:43 +000025282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025283$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025284if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025285 $as_echo_n "(cached) " >&6
25286else
25287 ac_check_lib_save_LIBS=$LIBS
25288LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025290/* end confdefs.h. */
25291
25292/* Override any GCC internal prototype to avoid an error.
25293 Use char because int might match the return type of a GCC
25294 builtin and then its argument prototype would still apply. */
25295#ifdef __cplusplus
25296extern "C"
25297#endif
25298char umem_alloc ();
25299int
25300main ()
25301{
25302return umem_alloc ();
25303 ;
25304 return 0;
25305}
25306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025308 ac_cv_lib_umem_umem_alloc=yes
25309else
cristy8b350f62009-11-15 23:12:43 +000025310 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000025311fi
cristy8b350f62009-11-15 23:12:43 +000025312rm -f core conftest.err conftest.$ac_objext \
25313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025314LIBS=$ac_check_lib_save_LIBS
25315fi
cristy8b350f62009-11-15 23:12:43 +000025316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025317$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025318if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025319 passed=`expr $passed + 1`
25320else
25321 failed=`expr $failed + 1`
25322fi
25323
cristy8b350f62009-11-15 23:12:43 +000025324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000025325$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025326if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025327 $as_echo_n "(cached) " >&6
25328else
25329 ac_check_lib_save_LIBS=$LIBS
25330LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025332/* end confdefs.h. */
25333
25334/* Override any GCC internal prototype to avoid an error.
25335 Use char because int might match the return type of a GCC
25336 builtin and then its argument prototype would still apply. */
25337#ifdef __cplusplus
25338extern "C"
25339#endif
25340char umem_free ();
25341int
25342main ()
25343{
25344return umem_free ();
25345 ;
25346 return 0;
25347}
25348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025349if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025350 ac_cv_lib_umem_umem_free=yes
25351else
cristy8b350f62009-11-15 23:12:43 +000025352 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000025353fi
cristy8b350f62009-11-15 23:12:43 +000025354rm -f core conftest.err conftest.$ac_objext \
25355 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025356LIBS=$ac_check_lib_save_LIBS
25357fi
cristy8b350f62009-11-15 23:12:43 +000025358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000025359$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000025360if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 passed=`expr $passed + 1`
25362else
25363 failed=`expr $failed + 1`
25364fi
25365
cristy8b350f62009-11-15 23:12:43 +000025366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025367$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25368 if test $passed -gt 0; then
25369 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025371$as_echo "no -- some components failed test" >&6; }
25372 have_umem='no (failed tests)'
25373 else
25374 UMEM_LIBS='-lumem'
25375 LIBS="$UMEM_LIBS $LIBS"
25376
cristy8b350f62009-11-15 23:12:43 +000025377$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025378
cristy8b350f62009-11-15 23:12:43 +000025379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025380$as_echo "yes" >&6; }
25381 have_umem='yes'
25382 fi
25383 else
cristy8b350f62009-11-15 23:12:43 +000025384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025385$as_echo "no" >&6; }
25386 fi
25387fi
cristy73bd4a52010-10-05 11:24:23 +000025388 if test "$have_umem" = 'yes'; then
25389 HasUMEM_TRUE=
25390 HasUMEM_FALSE='#'
25391else
25392 HasUMEM_TRUE='#'
25393 HasUMEM_FALSE=
25394fi
25395
cristy3ed852e2009-09-05 21:47:34 +000025396
25397
25398#
25399# Add support for ccmalloc memory debugging library if requested
25400#
25401have_ccmalloc='no'
25402CCMALLOC_LIBS=''
25403if test "$enable_ccmalloc" = 'yes'; then
25404 # Extract the first word of "ccmalloc", so it can be a program name with args.
25405set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025407$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025408if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025409 $as_echo_n "(cached) " >&6
25410else
25411 case $CCMALLOCDelegate in
25412 [\\/]* | ?:[\\/]*)
25413 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25414 ;;
25415 *)
25416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25417for as_dir in $PATH
25418do
25419 IFS=$as_save_IFS
25420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25423 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000025424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025425 break 2
25426 fi
25427done
cristy8b350f62009-11-15 23:12:43 +000025428 done
cristy3ed852e2009-09-05 21:47:34 +000025429IFS=$as_save_IFS
25430
25431 ;;
25432esac
25433fi
25434CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25435if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000025436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000025437$as_echo "$CCMALLOCDelegate" >&6; }
25438else
cristy8b350f62009-11-15 23:12:43 +000025439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025440$as_echo "no" >&6; }
25441fi
25442
25443
25444 if test -n "$CCMALLOCDelegate"; then
25445 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25446 OLIBS="$LIBS"
25447 # Assume that gcc is used with ccmalloc.
25448 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000025449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025450$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025451if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025452 $as_echo_n "(cached) " >&6
25453else
25454 ac_check_lib_save_LIBS=$LIBS
25455LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025457/* end confdefs.h. */
25458
25459/* Override any GCC internal prototype to avoid an error.
25460 Use char because int might match the return type of a GCC
25461 builtin and then its argument prototype would still apply. */
25462#ifdef __cplusplus
25463extern "C"
25464#endif
25465char ccmalloc_malloc ();
25466int
25467main ()
25468{
25469return ccmalloc_malloc ();
25470 ;
25471 return 0;
25472}
25473_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025474if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025475 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25476else
cristy8b350f62009-11-15 23:12:43 +000025477 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000025478fi
cristy8b350f62009-11-15 23:12:43 +000025479rm -f core conftest.err conftest.$ac_objext \
25480 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025481LIBS=$ac_check_lib_save_LIBS
25482fi
cristy8b350f62009-11-15 23:12:43 +000025483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000025484$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000025485if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025486 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25487fi
25488
25489 if test -n "$CCMALLOC_LIBS"; then
25490 LIBS="$OLIBS"
25491 LIBS="$LIBS $CCMALLOC_LIBS"
25492 have_ccmalloc='yes'
25493 else
25494 LIBS="$OLIBS"
25495 fi
25496 fi
25497fi
25498
25499#
25500# Add support for efence memory debugging library if requested
25501#
25502if test "$enable_efence" = 'yes'; then
25503 EFENCE_LIBS='-lefence'
25504 LIBS="$EFENCE_LIBS $LIBS"
25505fi
25506
cristy3ed852e2009-09-05 21:47:34 +000025507
25508#
25509# Check for BZLIB
25510#
25511
25512
25513# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000025514if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025515 withval=$with_bzlib; with_bzlib=$withval
25516else
25517 with_bzlib='yes'
25518fi
25519
25520
25521if test "$with_bzlib" != 'yes'; then
25522 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25523fi
25524
25525have_bzlib='no'
25526if test "$with_bzlib" != 'no'; then
25527 BZLIB_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000025529$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000025531$as_echo_n "checking for BZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000025533$as_echo "" >&6; }
25534 failed=0
25535 passed=0
25536 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000025537 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025538if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025539 passed=`expr $passed + 1`
25540else
25541 failed=`expr $failed + 1`
25542fi
25543
25544
cristy8b350f62009-11-15 23:12:43 +000025545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025546$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025547if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025548 $as_echo_n "(cached) " >&6
25549else
25550 ac_check_lib_save_LIBS=$LIBS
25551LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025553/* end confdefs.h. */
25554
25555/* Override any GCC internal prototype to avoid an error.
25556 Use char because int might match the return type of a GCC
25557 builtin and then its argument prototype would still apply. */
25558#ifdef __cplusplus
25559extern "C"
25560#endif
25561char BZ2_bzDecompress ();
25562int
25563main ()
25564{
25565return BZ2_bzDecompress ();
25566 ;
25567 return 0;
25568}
25569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025570if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025571 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25572else
cristy8b350f62009-11-15 23:12:43 +000025573 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000025574fi
cristy8b350f62009-11-15 23:12:43 +000025575rm -f core conftest.err conftest.$ac_objext \
25576 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025577LIBS=$ac_check_lib_save_LIBS
25578fi
cristy8b350f62009-11-15 23:12:43 +000025579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025580$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025581if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025582 found_libbz=`expr $found_libbz + 1`
25583fi
25584
25585 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000025586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000025587$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025588if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025589 $as_echo_n "(cached) " >&6
25590else
25591 ac_check_lib_save_LIBS=$LIBS
25592LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025594/* end confdefs.h. */
25595
25596/* Override any GCC internal prototype to avoid an error.
25597 Use char because int might match the return type of a GCC
25598 builtin and then its argument prototype would still apply. */
25599#ifdef __cplusplus
25600extern "C"
25601#endif
25602char _imp__BZ2_decompress ();
25603int
25604main ()
25605{
25606return _imp__BZ2_decompress ();
25607 ;
25608 return 0;
25609}
25610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25613else
cristy8b350f62009-11-15 23:12:43 +000025614 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000025615fi
cristy8b350f62009-11-15 23:12:43 +000025616rm -f core conftest.err conftest.$ac_objext \
25617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025618LIBS=$ac_check_lib_save_LIBS
25619fi
cristy8b350f62009-11-15 23:12:43 +000025620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000025621$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000025622if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025623 found_libbz=`expr $found_libbz + 1`
25624fi
25625
25626 fi
25627 if test $found_libbz -gt 0; then
25628 passed=`expr $passed + 1`
25629 else
25630 failed=`expr $failed + 1`
25631 fi
cristy8b350f62009-11-15 23:12:43 +000025632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000025633$as_echo_n "checking if BZLIB package is complete... " >&6; }
25634 if test $passed -gt 0; then
25635 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000025636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000025637$as_echo "no -- some components failed test" >&6; }
25638 have_bzlib='no (failed tests)'
25639 else
25640 BZLIB_LIBS='-lbz2'
25641 LIBS="$BZLIB_LIBS $LIBS"
25642
cristy8b350f62009-11-15 23:12:43 +000025643$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025644
cristy8b350f62009-11-15 23:12:43 +000025645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025646$as_echo "yes" >&6; }
25647 have_bzlib='yes'
25648 fi
25649 else
cristy8b350f62009-11-15 23:12:43 +000025650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025651$as_echo "no" >&6; }
25652 fi
25653fi
cristy73bd4a52010-10-05 11:24:23 +000025654 if test "$have_bzlib" = 'yes'; then
25655 BZLIB_DELEGATE_TRUE=
25656 BZLIB_DELEGATE_FALSE='#'
25657else
25658 BZLIB_DELEGATE_TRUE='#'
25659 BZLIB_DELEGATE_FALSE=
25660fi
25661
cristy3ed852e2009-09-05 21:47:34 +000025662
25663
25664#
25665# Find the X11 include and library directories.
25666#
25667IPC_LIBS=''
25668X11_LIBS=''
25669XEXT_LIBS=''
25670XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000025671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000025672$as_echo_n "checking for X... " >&6; }
25673
25674
25675# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000025676if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000025677 withval=$with_x;
25678fi
25679
25680# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25681if test "x$with_x" = xno; then
25682 # The user explicitly disabled X.
25683 have_x=disabled
25684else
25685 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000025686 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000025687 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000025688 $as_echo_n "(cached) " >&6
25689else
25690 # One or both of the vars are not set, and there is no cached value.
25691ac_x_includes=no ac_x_libraries=no
25692rm -f -r conftest.dir
25693if mkdir conftest.dir; then
25694 cd conftest.dir
25695 cat >Imakefile <<'_ACEOF'
25696incroot:
25697 @echo incroot='${INCROOT}'
25698usrlibdir:
25699 @echo usrlibdir='${USRLIBDIR}'
25700libdir:
25701 @echo libdir='${LIBDIR}'
25702_ACEOF
25703 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000025704 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000025705 for ac_var in incroot usrlibdir libdir; do
25706 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25707 done
25708 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25709 for ac_extension in a so sl dylib la dll; do
25710 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25711 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25712 ac_im_usrlibdir=$ac_im_libdir; break
25713 fi
25714 done
25715 # Screen out bogus values from the imake configuration. They are
25716 # bogus both because they are the default anyway, and because
25717 # using them would break gcc on systems where it needs fixed includes.
25718 case $ac_im_incroot in
25719 /usr/include) ac_x_includes= ;;
25720 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25721 esac
25722 case $ac_im_usrlibdir in
25723 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25724 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25725 esac
25726 fi
25727 cd ..
25728 rm -f -r conftest.dir
25729fi
25730
25731# Standard set of common directories for X headers.
25732# Check X11 before X11Rn because it is often a symlink to the current release.
25733ac_x_header_dirs='
25734/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000025735/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025736/usr/X11R6/include
25737/usr/X11R5/include
25738/usr/X11R4/include
25739
25740/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000025741/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025742/usr/include/X11R6
25743/usr/include/X11R5
25744/usr/include/X11R4
25745
25746/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000025747/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000025748/usr/local/X11R6/include
25749/usr/local/X11R5/include
25750/usr/local/X11R4/include
25751
25752/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000025753/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000025754/usr/local/include/X11R6
25755/usr/local/include/X11R5
25756/usr/local/include/X11R4
25757
25758/usr/X386/include
25759/usr/x386/include
25760/usr/XFree86/include/X11
25761
25762/usr/include
25763/usr/local/include
25764/usr/unsupported/include
25765/usr/athena/include
25766/usr/local/x11r5/include
25767/usr/lpp/Xamples/include
25768
25769/usr/openwin/include
25770/usr/openwin/share/include'
25771
25772if test "$ac_x_includes" = no; then
25773 # Guess where to find include files, by looking for Xlib.h.
25774 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000025775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025776/* end confdefs.h. */
25777#include <X11/Xlib.h>
25778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025779if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025780 # We can compile using X headers with no special include directory.
25781ac_x_includes=
25782else
cristyc7083c12009-10-14 03:16:55 +000025783 for ac_dir in $ac_x_header_dirs; do
25784 if test -r "$ac_dir/X11/Xlib.h"; then
25785 ac_x_includes=$ac_dir
25786 break
25787 fi
25788done
25789fi
cristyda16f162011-02-19 23:52:17 +000025790rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025791fi # $ac_x_includes = no
25792
25793if test "$ac_x_libraries" = no; then
25794 # Check for the libraries.
25795 # See if we find them without any special options.
25796 # Don't add to $LIBS permanently.
25797 ac_save_LIBS=$LIBS
25798 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025800/* end confdefs.h. */
25801#include <X11/Xlib.h>
25802int
25803main ()
25804{
25805XrmInitialize ()
25806 ;
25807 return 0;
25808}
25809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025810if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000025811 LIBS=$ac_save_LIBS
25812# We can link X programs with no special library path.
25813ac_x_libraries=
25814else
cristy8b350f62009-11-15 23:12:43 +000025815 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000025816for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25817do
25818 # Don't even attempt the hair of trying to link an X program!
25819 for ac_extension in a so sl dylib la dll; do
25820 if test -r "$ac_dir/libX11.$ac_extension"; then
25821 ac_x_libraries=$ac_dir
25822 break 2
25823 fi
25824 done
25825done
25826fi
cristy8b350f62009-11-15 23:12:43 +000025827rm -f core conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000025829fi # $ac_x_libraries = no
25830
25831case $ac_x_includes,$ac_x_libraries in #(
25832 no,* | *,no | *\'*)
25833 # Didn't find X, or a directory has "'" in its name.
25834 ac_cv_have_x="have_x=no";; #(
25835 *)
25836 # Record where we found X for the cache.
25837 ac_cv_have_x="have_x=yes\
25838 ac_x_includes='$ac_x_includes'\
25839 ac_x_libraries='$ac_x_libraries'"
25840esac
25841fi
25842;; #(
25843 *) have_x=yes;;
25844 esac
25845 eval "$ac_cv_have_x"
25846fi # $with_x != no
25847
25848if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000025849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000025850$as_echo "$have_x" >&6; }
25851 no_x=yes
25852else
25853 # If each of the values was on the command line, it overrides each guess.
25854 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25855 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25856 # Update the cache value to reflect the command line values.
25857 ac_cv_have_x="have_x=yes\
25858 ac_x_includes='$x_includes'\
25859 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000025860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000025861$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25862fi
25863
cristy3ed852e2009-09-05 21:47:34 +000025864if test "$no_x" = yes; then
25865 # Not all programs may use this symbol, but it does not hurt to define it.
25866
cristy8b350f62009-11-15 23:12:43 +000025867$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025868
25869 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25870else
25871 if test -n "$x_includes"; then
25872 X_CFLAGS="$X_CFLAGS -I$x_includes"
25873 fi
25874
25875 # It would also be nice to do this for all -L options, not just this one.
25876 if test -n "$x_libraries"; then
25877 X_LIBS="$X_LIBS -L$x_libraries"
25878 # For Solaris; some versions of Sun CC require a space after -R and
25879 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000025880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000025881$as_echo_n "checking whether -R must be followed by a space... " >&6; }
25882 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25883 ac_xsave_c_werror_flag=$ac_c_werror_flag
25884 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000025885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025886/* end confdefs.h. */
25887
25888int
25889main ()
25890{
25891
25892 ;
25893 return 0;
25894}
25895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025896if ac_fn_c_try_link "$LINENO"; then :
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025898$as_echo "no" >&6; }
25899 X_LIBS="$X_LIBS -R$x_libraries"
25900else
cristy8b350f62009-11-15 23:12:43 +000025901 LIBS="$ac_xsave_LIBS -R $x_libraries"
25902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025903/* end confdefs.h. */
25904
25905int
25906main ()
25907{
25908
25909 ;
25910 return 0;
25911}
25912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025913if ac_fn_c_try_link "$LINENO"; then :
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000025915$as_echo "yes" >&6; }
25916 X_LIBS="$X_LIBS -R $x_libraries"
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025919$as_echo "neither works" >&6; }
25920fi
cristy8b350f62009-11-15 23:12:43 +000025921rm -f core conftest.err conftest.$ac_objext \
25922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025923fi
cristy8b350f62009-11-15 23:12:43 +000025924rm -f core conftest.err conftest.$ac_objext \
25925 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025926 ac_c_werror_flag=$ac_xsave_c_werror_flag
25927 LIBS=$ac_xsave_LIBS
25928 fi
25929
25930 # Check for system-dependent libraries X programs must link with.
25931 # Do this before checking for the system-independent R6 libraries
25932 # (-lICE), since we may need -lsocket or whatever for X linking.
25933
25934 if test "$ISC" = yes; then
25935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25936 else
25937 # Martyn Johnson says this is needed for Ultrix, if the X
25938 # libraries were built with DECnet support. And Karl Berry says
25939 # the Alpha needs dnet_stub (dnet does not exist).
25940 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000025941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025942/* end confdefs.h. */
25943
25944/* Override any GCC internal prototype to avoid an error.
25945 Use char because int might match the return type of a GCC
25946 builtin and then its argument prototype would still apply. */
25947#ifdef __cplusplus
25948extern "C"
25949#endif
25950char XOpenDisplay ();
25951int
25952main ()
25953{
25954return XOpenDisplay ();
25955 ;
25956 return 0;
25957}
25958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025959if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025960
cristy8b350f62009-11-15 23:12:43 +000025961else
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025963$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025964if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025965 $as_echo_n "(cached) " >&6
25966else
25967 ac_check_lib_save_LIBS=$LIBS
25968LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025970/* end confdefs.h. */
25971
25972/* Override any GCC internal prototype to avoid an error.
25973 Use char because int might match the return type of a GCC
25974 builtin and then its argument prototype would still apply. */
25975#ifdef __cplusplus
25976extern "C"
25977#endif
25978char dnet_ntoa ();
25979int
25980main ()
25981{
25982return dnet_ntoa ();
25983 ;
25984 return 0;
25985}
25986_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025987if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025988 ac_cv_lib_dnet_dnet_ntoa=yes
25989else
cristy8b350f62009-11-15 23:12:43 +000025990 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000025991fi
cristy8b350f62009-11-15 23:12:43 +000025992rm -f core conftest.err conftest.$ac_objext \
25993 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025994LIBS=$ac_check_lib_save_LIBS
25995fi
cristy8b350f62009-11-15 23:12:43 +000025996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000025997$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000025998if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025999 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26000fi
26001
26002 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026004$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026005if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026006 $as_echo_n "(cached) " >&6
26007else
26008 ac_check_lib_save_LIBS=$LIBS
26009LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026011/* end confdefs.h. */
26012
26013/* Override any GCC internal prototype to avoid an error.
26014 Use char because int might match the return type of a GCC
26015 builtin and then its argument prototype would still apply. */
26016#ifdef __cplusplus
26017extern "C"
26018#endif
26019char dnet_ntoa ();
26020int
26021main ()
26022{
26023return dnet_ntoa ();
26024 ;
26025 return 0;
26026}
26027_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026028if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026029 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26030else
cristy8b350f62009-11-15 23:12:43 +000026031 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026032fi
cristy8b350f62009-11-15 23:12:43 +000026033rm -f core conftest.err conftest.$ac_objext \
26034 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026035LIBS=$ac_check_lib_save_LIBS
26036fi
cristy8b350f62009-11-15 23:12:43 +000026037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026038$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026039if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026040 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26041fi
26042
26043 fi
26044fi
cristy8b350f62009-11-15 23:12:43 +000026045rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026047 LIBS="$ac_xsave_LIBS"
26048
26049 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26050 # to get the SysV transport functions.
26051 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26052 # needs -lnsl.
26053 # The nsl library prevents programs from opening the X display
26054 # on Irix 5.2, according to T.E. Dickey.
26055 # The functions gethostbyname, getservbyname, and inet_addr are
26056 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026057 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026058if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026059
cristy3ed852e2009-09-05 21:47:34 +000026060fi
26061
cristy3ed852e2009-09-05 21:47:34 +000026062 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026064$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026065if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026066 $as_echo_n "(cached) " >&6
26067else
26068 ac_check_lib_save_LIBS=$LIBS
26069LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026071/* end confdefs.h. */
26072
26073/* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26076#ifdef __cplusplus
26077extern "C"
26078#endif
26079char gethostbyname ();
26080int
26081main ()
26082{
26083return gethostbyname ();
26084 ;
26085 return 0;
26086}
26087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026088if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026089 ac_cv_lib_nsl_gethostbyname=yes
26090else
cristy8b350f62009-11-15 23:12:43 +000026091 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026092fi
cristy8b350f62009-11-15 23:12:43 +000026093rm -f core conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026095LIBS=$ac_check_lib_save_LIBS
26096fi
cristy8b350f62009-11-15 23:12:43 +000026097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026098$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026099if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026100 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26101fi
26102
26103 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026106if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026107 $as_echo_n "(cached) " >&6
26108else
26109 ac_check_lib_save_LIBS=$LIBS
26110LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026112/* end confdefs.h. */
26113
26114/* Override any GCC internal prototype to avoid an error.
26115 Use char because int might match the return type of a GCC
26116 builtin and then its argument prototype would still apply. */
26117#ifdef __cplusplus
26118extern "C"
26119#endif
26120char gethostbyname ();
26121int
26122main ()
26123{
26124return gethostbyname ();
26125 ;
26126 return 0;
26127}
26128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026130 ac_cv_lib_bsd_gethostbyname=yes
26131else
cristy8b350f62009-11-15 23:12:43 +000026132 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000026133fi
cristy8b350f62009-11-15 23:12:43 +000026134rm -f core conftest.err conftest.$ac_objext \
26135 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026136LIBS=$ac_check_lib_save_LIBS
26137fi
cristy8b350f62009-11-15 23:12:43 +000026138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000026139$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000026140if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26142fi
26143
26144 fi
26145 fi
26146
26147 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26148 # socket/setsockopt and other routines are undefined under SCO ODT
26149 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26150 # on later versions), says Simon Leinen: it contains gethostby*
26151 # variants that don't use the name server (or something). -lsocket
26152 # must be given before -lnsl if both are needed. We assume that
26153 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000026154 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000026155if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026156
cristy3ed852e2009-09-05 21:47:34 +000026157fi
26158
cristy3ed852e2009-09-05 21:47:34 +000026159 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000026160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000026161$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026162if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026163 $as_echo_n "(cached) " >&6
26164else
26165 ac_check_lib_save_LIBS=$LIBS
26166LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026168/* end confdefs.h. */
26169
26170/* Override any GCC internal prototype to avoid an error.
26171 Use char because int might match the return type of a GCC
26172 builtin and then its argument prototype would still apply. */
26173#ifdef __cplusplus
26174extern "C"
26175#endif
26176char connect ();
26177int
26178main ()
26179{
26180return connect ();
26181 ;
26182 return 0;
26183}
26184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026185if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026186 ac_cv_lib_socket_connect=yes
26187else
cristy8b350f62009-11-15 23:12:43 +000026188 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000026189fi
cristy8b350f62009-11-15 23:12:43 +000026190rm -f core conftest.err conftest.$ac_objext \
26191 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026192LIBS=$ac_check_lib_save_LIBS
26193fi
cristy8b350f62009-11-15 23:12:43 +000026194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000026195$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000026196if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026197 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26198fi
26199
26200 fi
26201
26202 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000026203 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000026204if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026205
cristy3ed852e2009-09-05 21:47:34 +000026206fi
26207
cristy3ed852e2009-09-05 21:47:34 +000026208 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000026209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000026210$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026211if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026212 $as_echo_n "(cached) " >&6
26213else
26214 ac_check_lib_save_LIBS=$LIBS
26215LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026217/* end confdefs.h. */
26218
26219/* Override any GCC internal prototype to avoid an error.
26220 Use char because int might match the return type of a GCC
26221 builtin and then its argument prototype would still apply. */
26222#ifdef __cplusplus
26223extern "C"
26224#endif
26225char remove ();
26226int
26227main ()
26228{
26229return remove ();
26230 ;
26231 return 0;
26232}
26233_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026234if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 ac_cv_lib_posix_remove=yes
26236else
cristy8b350f62009-11-15 23:12:43 +000026237 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000026238fi
cristy8b350f62009-11-15 23:12:43 +000026239rm -f core conftest.err conftest.$ac_objext \
26240 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026241LIBS=$ac_check_lib_save_LIBS
26242fi
cristy8b350f62009-11-15 23:12:43 +000026243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000026244$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000026245if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26247fi
26248
26249 fi
26250
26251 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000026252 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000026253if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026254
cristy3ed852e2009-09-05 21:47:34 +000026255fi
26256
cristy3ed852e2009-09-05 21:47:34 +000026257 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000026258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026259$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026260if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026261 $as_echo_n "(cached) " >&6
26262else
26263 ac_check_lib_save_LIBS=$LIBS
26264LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026266/* end confdefs.h. */
26267
26268/* Override any GCC internal prototype to avoid an error.
26269 Use char because int might match the return type of a GCC
26270 builtin and then its argument prototype would still apply. */
26271#ifdef __cplusplus
26272extern "C"
26273#endif
26274char shmat ();
26275int
26276main ()
26277{
26278return shmat ();
26279 ;
26280 return 0;
26281}
26282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026284 ac_cv_lib_ipc_shmat=yes
26285else
cristy8b350f62009-11-15 23:12:43 +000026286 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000026287fi
cristy8b350f62009-11-15 23:12:43 +000026288rm -f core conftest.err conftest.$ac_objext \
26289 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026290LIBS=$ac_check_lib_save_LIBS
26291fi
cristy8b350f62009-11-15 23:12:43 +000026292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000026293$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000026294if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26296fi
26297
26298 fi
26299 fi
26300
26301 # Check for libraries that X11R6 Xt/Xaw programs need.
26302 ac_save_LDFLAGS=$LDFLAGS
26303 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26304 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26305 # check for ICE first), but we must link in the order -lSM -lICE or
26306 # we get undefined symbols. So assume we have SM if we have ICE.
26307 # These have to be linked with before -lX11, unlike the other
26308 # libraries we check for below, so use a different variable.
26309 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000026310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000026311$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026312if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026313 $as_echo_n "(cached) " >&6
26314else
26315 ac_check_lib_save_LIBS=$LIBS
26316LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026318/* end confdefs.h. */
26319
26320/* Override any GCC internal prototype to avoid an error.
26321 Use char because int might match the return type of a GCC
26322 builtin and then its argument prototype would still apply. */
26323#ifdef __cplusplus
26324extern "C"
26325#endif
26326char IceConnectionNumber ();
26327int
26328main ()
26329{
26330return IceConnectionNumber ();
26331 ;
26332 return 0;
26333}
26334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026336 ac_cv_lib_ICE_IceConnectionNumber=yes
26337else
cristy8b350f62009-11-15 23:12:43 +000026338 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000026339fi
cristy8b350f62009-11-15 23:12:43 +000026340rm -f core conftest.err conftest.$ac_objext \
26341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026342LIBS=$ac_check_lib_save_LIBS
26343fi
cristy8b350f62009-11-15 23:12:43 +000026344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000026346if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026347 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26348fi
26349
26350 LDFLAGS=$ac_save_LDFLAGS
26351
26352fi
26353
26354if test "$no_x" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026356$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo_n "checking for X11... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026360$as_echo "" >&6; }
26361 LDFLAGS="$LDFLAGS $X_LIBS"
26362 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26363 LIBS="$X11_LIBS $LIBS"
26364 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26365
26366
cristy8b350f62009-11-15 23:12:43 +000026367$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026368
26369 #
26370 # Check for X11 shared memory extension
26371 #
26372 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000026373 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000026374if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026375 have_shmctl='yes'
26376fi
26377
26378 if test "$have_shmctl" != 'yes'; then
26379 PERSIST_LIBS=$LIBS
26380 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000026381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026382/* end confdefs.h. */
26383
26384/* Override any GCC internal prototype to avoid an error.
26385 Use char because int might match the return type of a GCC
26386 builtin and then its argument prototype would still apply. */
26387#ifdef __cplusplus
26388extern "C"
26389#endif
26390char shmctl ();
26391int
26392main ()
26393{
26394return shmctl ();
26395 ;
26396 return 0;
26397}
26398_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026399if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026400 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000026401fi
cristy8b350f62009-11-15 23:12:43 +000026402rm -f core conftest.err conftest.$ac_objext \
26403 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026404 LIBS=$PERSIST_LIBS
26405 fi
26406
26407 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026409$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026410if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026411 $as_echo_n "(cached) " >&6
26412else
26413 ac_check_lib_save_LIBS=$LIBS
26414LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026416/* end confdefs.h. */
26417
26418/* Override any GCC internal prototype to avoid an error.
26419 Use char because int might match the return type of a GCC
26420 builtin and then its argument prototype would still apply. */
26421#ifdef __cplusplus
26422extern "C"
26423#endif
26424char XShmAttach ();
26425int
26426main ()
26427{
26428return XShmAttach ();
26429 ;
26430 return 0;
26431}
26432_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026433if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026434 ac_cv_lib_Xext_XShmAttach=yes
26435else
cristy8b350f62009-11-15 23:12:43 +000026436 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000026437fi
cristy8b350f62009-11-15 23:12:43 +000026438rm -f core conftest.err conftest.$ac_objext \
26439 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026440LIBS=$ac_check_lib_save_LIBS
26441fi
cristy8b350f62009-11-15 23:12:43 +000026442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000026443$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000026444if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026445 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026446$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026447
26448fi
26449
26450 fi
26451
26452 #
26453 # Check for X11 shape extension
26454 #
cristy8b350f62009-11-15 23:12:43 +000026455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026456$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026457if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026458 $as_echo_n "(cached) " >&6
26459else
26460 ac_check_lib_save_LIBS=$LIBS
26461LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026463/* end confdefs.h. */
26464
26465/* Override any GCC internal prototype to avoid an error.
26466 Use char because int might match the return type of a GCC
26467 builtin and then its argument prototype would still apply. */
26468#ifdef __cplusplus
26469extern "C"
26470#endif
26471char XShapeCombineMask ();
26472int
26473main ()
26474{
26475return XShapeCombineMask ();
26476 ;
26477 return 0;
26478}
26479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026481 ac_cv_lib_Xext_XShapeCombineMask=yes
26482else
cristy8b350f62009-11-15 23:12:43 +000026483 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000026484fi
cristy8b350f62009-11-15 23:12:43 +000026485rm -f core conftest.err conftest.$ac_objext \
26486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026487LIBS=$ac_check_lib_save_LIBS
26488fi
cristy8b350f62009-11-15 23:12:43 +000026489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000026490$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000026491if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026492 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000026493$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026494
26495fi
26496
cristy8b350f62009-11-15 23:12:43 +000026497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000026498$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026499if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026500 $as_echo_n "(cached) " >&6
26501else
26502 ac_check_lib_save_LIBS=$LIBS
26503LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026505/* end confdefs.h. */
26506
26507/* Override any GCC internal prototype to avoid an error.
26508 Use char because int might match the return type of a GCC
26509 builtin and then its argument prototype would still apply. */
26510#ifdef __cplusplus
26511extern "C"
26512#endif
26513char XtSetEventDispatcher ();
26514int
26515main ()
26516{
26517return XtSetEventDispatcher ();
26518 ;
26519 return 0;
26520}
26521_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026522if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026523 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26524else
cristy8b350f62009-11-15 23:12:43 +000026525 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000026526fi
cristy8b350f62009-11-15 23:12:43 +000026527rm -f core conftest.err conftest.$ac_objext \
26528 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026529LIBS=$ac_check_lib_save_LIBS
26530fi
cristy8b350f62009-11-15 23:12:43 +000026531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000026532$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000026533if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026534 XT_LIBS='-lXt'
26535fi
26536
26537 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26538fi
26539if test "$no_x" != 'yes'; then
26540 have_x='yes'
26541else
26542 have_x='no'
26543fi
cristy73bd4a52010-10-05 11:24:23 +000026544 if test "$have_x" = 'yes'; then
26545 X11_DELEGATE_TRUE=
26546 X11_DELEGATE_FALSE='#'
26547else
26548 X11_DELEGATE_TRUE='#'
26549 X11_DELEGATE_FALSE=
26550fi
26551
cristy3ed852e2009-09-05 21:47:34 +000026552
26553
26554
26555
26556#
26557# Check for ZLIB
26558#
26559
26560# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000026561if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026562 withval=$with_zlib; with_zlib=$withval
26563else
26564 with_zlib='yes'
26565fi
26566
26567
26568if test "$with_zlib" != 'yes'; then
26569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26570fi
26571
26572have_zlib='no'
26573ZLIB_LIBS=''
26574if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026576$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026578$as_echo_n "checking for ZLIB... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000026580$as_echo "" >&6; }
26581 ZLIB_LIBS=''
26582 failed=0
26583 passed=0
cristy8b350f62009-11-15 23:12:43 +000026584 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026585if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026586 passed=`expr $passed + 1`
26587else
26588 failed=`expr $failed + 1`
26589fi
26590
26591
cristy8b350f62009-11-15 23:12:43 +000026592 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026593if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 passed=`expr $passed + 1`
26595else
26596 failed=`expr $failed + 1`
26597fi
26598
26599
cristy8b350f62009-11-15 23:12:43 +000026600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026601$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026602if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026603 $as_echo_n "(cached) " >&6
26604else
26605 ac_check_lib_save_LIBS=$LIBS
26606LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026608/* end confdefs.h. */
26609
26610/* Override any GCC internal prototype to avoid an error.
26611 Use char because int might match the return type of a GCC
26612 builtin and then its argument prototype would still apply. */
26613#ifdef __cplusplus
26614extern "C"
26615#endif
26616char compress ();
26617int
26618main ()
26619{
26620return compress ();
26621 ;
26622 return 0;
26623}
26624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026625if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026626 ac_cv_lib_z_compress=yes
26627else
cristy8b350f62009-11-15 23:12:43 +000026628 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000026629fi
cristy8b350f62009-11-15 23:12:43 +000026630rm -f core conftest.err conftest.$ac_objext \
26631 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026632LIBS=$ac_check_lib_save_LIBS
26633fi
cristy8b350f62009-11-15 23:12:43 +000026634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026635$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026636if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 passed=`expr $passed + 1`
26638else
26639 failed=`expr $failed + 1`
26640fi
26641
cristy8b350f62009-11-15 23:12:43 +000026642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026643$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026644if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026645 $as_echo_n "(cached) " >&6
26646else
26647 ac_check_lib_save_LIBS=$LIBS
26648LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026650/* end confdefs.h. */
26651
26652/* Override any GCC internal prototype to avoid an error.
26653 Use char because int might match the return type of a GCC
26654 builtin and then its argument prototype would still apply. */
26655#ifdef __cplusplus
26656extern "C"
26657#endif
26658char uncompress ();
26659int
26660main ()
26661{
26662return uncompress ();
26663 ;
26664 return 0;
26665}
26666_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026667if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026668 ac_cv_lib_z_uncompress=yes
26669else
cristy8b350f62009-11-15 23:12:43 +000026670 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000026671fi
cristy8b350f62009-11-15 23:12:43 +000026672rm -f core conftest.err conftest.$ac_objext \
26673 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026674LIBS=$ac_check_lib_save_LIBS
26675fi
cristy8b350f62009-11-15 23:12:43 +000026676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026678if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026679 passed=`expr $passed + 1`
26680else
26681 failed=`expr $failed + 1`
26682fi
26683
cristy8b350f62009-11-15 23:12:43 +000026684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026685$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026686if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026687 $as_echo_n "(cached) " >&6
26688else
26689 ac_check_lib_save_LIBS=$LIBS
26690LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026692/* end confdefs.h. */
26693
26694/* Override any GCC internal prototype to avoid an error.
26695 Use char because int might match the return type of a GCC
26696 builtin and then its argument prototype would still apply. */
26697#ifdef __cplusplus
26698extern "C"
26699#endif
26700char deflate ();
26701int
26702main ()
26703{
26704return deflate ();
26705 ;
26706 return 0;
26707}
26708_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026709if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026710 ac_cv_lib_z_deflate=yes
26711else
cristy8b350f62009-11-15 23:12:43 +000026712 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000026713fi
cristy8b350f62009-11-15 23:12:43 +000026714rm -f core conftest.err conftest.$ac_objext \
26715 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026716LIBS=$ac_check_lib_save_LIBS
26717fi
cristy8b350f62009-11-15 23:12:43 +000026718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026719$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026720if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026721 passed=`expr $passed + 1`
26722else
26723 failed=`expr $failed + 1`
26724fi
26725
cristy8b350f62009-11-15 23:12:43 +000026726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026727$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026728if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026729 $as_echo_n "(cached) " >&6
26730else
26731 ac_check_lib_save_LIBS=$LIBS
26732LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026734/* end confdefs.h. */
26735
26736/* Override any GCC internal prototype to avoid an error.
26737 Use char because int might match the return type of a GCC
26738 builtin and then its argument prototype would still apply. */
26739#ifdef __cplusplus
26740extern "C"
26741#endif
26742char inflate ();
26743int
26744main ()
26745{
26746return inflate ();
26747 ;
26748 return 0;
26749}
26750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026752 ac_cv_lib_z_inflate=yes
26753else
cristy8b350f62009-11-15 23:12:43 +000026754 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000026755fi
cristy8b350f62009-11-15 23:12:43 +000026756rm -f core conftest.err conftest.$ac_objext \
26757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026758LIBS=$ac_check_lib_save_LIBS
26759fi
cristy8b350f62009-11-15 23:12:43 +000026760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026761$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000026762if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026763 passed=`expr $passed + 1`
26764else
26765 failed=`expr $failed + 1`
26766fi
26767
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026769$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026770if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026771 $as_echo_n "(cached) " >&6
26772else
26773 ac_check_lib_save_LIBS=$LIBS
26774LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026776/* end confdefs.h. */
26777
26778/* Override any GCC internal prototype to avoid an error.
26779 Use char because int might match the return type of a GCC
26780 builtin and then its argument prototype would still apply. */
26781#ifdef __cplusplus
26782extern "C"
26783#endif
26784char gzseek ();
26785int
26786main ()
26787{
26788return gzseek ();
26789 ;
26790 return 0;
26791}
26792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026794 ac_cv_lib_z_gzseek=yes
26795else
cristy8b350f62009-11-15 23:12:43 +000026796 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000026797fi
cristy8b350f62009-11-15 23:12:43 +000026798rm -f core conftest.err conftest.$ac_objext \
26799 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026800LIBS=$ac_check_lib_save_LIBS
26801fi
cristy8b350f62009-11-15 23:12:43 +000026802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000026804if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026805 passed=`expr $passed + 1`
26806else
26807 failed=`expr $failed + 1`
26808fi
26809
cristy8b350f62009-11-15 23:12:43 +000026810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000026811$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026812if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026813 $as_echo_n "(cached) " >&6
26814else
26815 ac_check_lib_save_LIBS=$LIBS
26816LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026818/* end confdefs.h. */
26819
26820/* Override any GCC internal prototype to avoid an error.
26821 Use char because int might match the return type of a GCC
26822 builtin and then its argument prototype would still apply. */
26823#ifdef __cplusplus
26824extern "C"
26825#endif
26826char gztell ();
26827int
26828main ()
26829{
26830return gztell ();
26831 ;
26832 return 0;
26833}
26834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026836 ac_cv_lib_z_gztell=yes
26837else
cristy8b350f62009-11-15 23:12:43 +000026838 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000026839fi
cristy8b350f62009-11-15 23:12:43 +000026840rm -f core conftest.err conftest.$ac_objext \
26841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026842LIBS=$ac_check_lib_save_LIBS
26843fi
cristy8b350f62009-11-15 23:12:43 +000026844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000026845$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000026846if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026847 passed=`expr $passed + 1`
26848else
26849 failed=`expr $failed + 1`
26850fi
26851
cristy8b350f62009-11-15 23:12:43 +000026852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026853$as_echo_n "checking if ZLIB package is complete... " >&6; }
26854 if test $passed -gt 0; then
26855 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000026856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000026857$as_echo "no -- some components failed test" >&6; }
26858 have_zlib='no (failed tests)'
26859 else
26860 ZLIB_LIBS='-lz'
26861 LIBS="$ZLIB_LIBS $LIBS"
26862
cristy8b350f62009-11-15 23:12:43 +000026863$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026864
cristy8b350f62009-11-15 23:12:43 +000026865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026866$as_echo "yes" >&6; }
26867 have_zlib='yes'
26868 fi
26869 else
cristy8b350f62009-11-15 23:12:43 +000026870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "no" >&6; }
26872 fi
26873fi
cristy73bd4a52010-10-05 11:24:23 +000026874 if test "$have_zlib" = 'yes'; then
26875 ZLIB_DELEGATE_TRUE=
26876 ZLIB_DELEGATE_FALSE='#'
26877else
26878 ZLIB_DELEGATE_TRUE='#'
26879 ZLIB_DELEGATE_FALSE=
26880fi
26881
cristy3ed852e2009-09-05 21:47:34 +000026882
26883
26884#
26885# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26886#
26887LIB_DL=''
26888if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026890$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026891if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026892 $as_echo_n "(cached) " >&6
26893else
26894 ac_check_lib_save_LIBS=$LIBS
26895LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026897/* end confdefs.h. */
26898
26899/* Override any GCC internal prototype to avoid an error.
26900 Use char because int might match the return type of a GCC
26901 builtin and then its argument prototype would still apply. */
26902#ifdef __cplusplus
26903extern "C"
26904#endif
26905char dlopen ();
26906int
26907main ()
26908{
26909return dlopen ();
26910 ;
26911 return 0;
26912}
26913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026914if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 ac_cv_lib_dl_dlopen=yes
26916else
cristy8b350f62009-11-15 23:12:43 +000026917 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000026918fi
cristy8b350f62009-11-15 23:12:43 +000026919rm -f core conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026921LIBS=$ac_check_lib_save_LIBS
26922fi
cristy8b350f62009-11-15 23:12:43 +000026923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000026924$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000026925if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026926 LIB_DL='-ldl'
26927fi
26928
26929 LIBS="$LIB_DL $LIBS"
26930fi
26931
26932
26933
26934#
26935# Check for Autotrace delegate library.
26936#
26937
26938# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000026939if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026940 withval=$with_autotrace; with_autotrace=$withval
26941else
26942 with_autotrace='no'
26943fi
26944
26945
26946if test "$with_autotrace" != 'yes'; then
26947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26948fi
26949
26950have_autotrace='no'
26951AUTOTRACE_CFLAGS=""
26952AUTOTRACE_LIBS=""
26953AUTOTRACE_PKG=""
26954if test "x$with_autotrace" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000026955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000026956$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000026957
26958pkg_failed=no
26959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26960$as_echo_n "checking for AUTOTRACE... " >&6; }
26961
26962if test -n "$AUTOTRACE_CFLAGS"; then
26963 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26964 elif test -n "$PKG_CONFIG"; then
26965 if test -n "$PKG_CONFIG" && \
26966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26967 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26968 ac_status=$?
26969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26970 test $ac_status = 0; }; then
26971 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26972else
26973 pkg_failed=yes
26974fi
26975 else
26976 pkg_failed=untried
26977fi
26978if test -n "$AUTOTRACE_LIBS"; then
26979 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26980 elif test -n "$PKG_CONFIG"; then
26981 if test -n "$PKG_CONFIG" && \
26982 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26983 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26984 ac_status=$?
26985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; then
26987 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26988else
26989 pkg_failed=yes
26990fi
26991 else
26992 pkg_failed=untried
26993fi
26994
26995
26996
26997if test $pkg_failed = yes; then
26998
26999if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27000 _pkg_short_errors_supported=yes
27001else
27002 _pkg_short_errors_supported=no
27003fi
27004 if test $_pkg_short_errors_supported = yes; then
27005 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27006 else
27007 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27008 fi
27009 # Put the nasty error message in config.log where it belongs
27010 echo "$AUTOTRACE_PKG_ERRORS" >&5
27011
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27013$as_echo "no" >&6; }
27014 have_autotrace=no
27015elif test $pkg_failed = untried; then
27016 have_autotrace=no
27017else
27018 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27019 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27021$as_echo "yes" >&6; }
27022 have_autotrace=yes
27023fi
cristy8b350f62009-11-15 23:12:43 +000027024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027025$as_echo "" >&6; }
27026fi
27027
27028if test "$have_autotrace" = 'yes'; then
27029 failed=0
27030
cristy8b350f62009-11-15 23:12:43 +000027031$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027032
27033 if test "$with_modules" = 'no'; then
27034 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27035 fi
27036fi
27037
cristy73bd4a52010-10-05 11:24:23 +000027038 if test "$have_autotrace" = 'yes'; then
27039 AUTOTRACE_DELEGATE_TRUE=
27040 AUTOTRACE_DELEGATE_FALSE='#'
27041else
27042 AUTOTRACE_DELEGATE_TRUE='#'
27043 AUTOTRACE_DELEGATE_FALSE=
27044fi
27045
cristy3ed852e2009-09-05 21:47:34 +000027046
27047
27048
27049
27050#
27051# Check for Display Postscript delegate library.
27052#
27053
27054# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000027055if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027056 withval=$with_dps; with_dps=$withval
27057else
27058 with_dps='yes'
27059fi
27060
27061
27062if test "$with_dps" != 'yes'; then
27063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27064fi
27065
27066have_dps='no'
27067DPS_LIBS=''
27068if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027070$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000027072$as_echo_n "checking for DPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027074$as_echo "" >&6; }
27075 failed=0
27076 passed=0
27077 PERSIST_CPPFLAGS="$CPPFLAGS"
27078 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000027079 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 +000027080if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027081 passed=`expr $passed + 1`
27082else
27083 failed=`expr $failed + 1`
27084fi
27085
27086
27087 # DPS issues:
27088 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27089 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27090 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27091 # ImageMagick itself doesn't use -lXt.
27092 have_libdps='no'
27093 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000027094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027095$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027096if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027097 $as_echo_n "(cached) " >&6
27098else
27099 ac_check_lib_save_LIBS=$LIBS
27100LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027102/* end confdefs.h. */
27103
27104/* Override any GCC internal prototype to avoid an error.
27105 Use char because int might match the return type of a GCC
27106 builtin and then its argument prototype would still apply. */
27107#ifdef __cplusplus
27108extern "C"
27109#endif
27110char DPSInitialize ();
27111int
27112main ()
27113{
27114return DPSInitialize ();
27115 ;
27116 return 0;
27117}
27118_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027119if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 ac_cv_lib_dps_DPSInitialize=yes
27121else
cristy8b350f62009-11-15 23:12:43 +000027122 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027123fi
cristy8b350f62009-11-15 23:12:43 +000027124rm -f core conftest.err conftest.$ac_objext \
27125 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027126LIBS=$ac_check_lib_save_LIBS
27127fi
cristy8b350f62009-11-15 23:12:43 +000027128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027129$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027130if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027131 have_libdps='yes'
27132else
27133 have_libdps='no'
27134fi
27135
27136 if test "$have_libdps" != 'yes'; then
27137 # Unset cache variable so we can try again.
27138 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000027139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000027140$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027141if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 $as_echo_n "(cached) " >&6
27143else
27144 ac_check_lib_save_LIBS=$LIBS
27145LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027147/* end confdefs.h. */
27148
27149/* Override any GCC internal prototype to avoid an error.
27150 Use char because int might match the return type of a GCC
27151 builtin and then its argument prototype would still apply. */
27152#ifdef __cplusplus
27153extern "C"
27154#endif
27155char DPSInitialize ();
27156int
27157main ()
27158{
27159return DPSInitialize ();
27160 ;
27161 return 0;
27162}
27163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027164if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027165 ac_cv_lib_dps_DPSInitialize=yes
27166else
cristy8b350f62009-11-15 23:12:43 +000027167 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000027168fi
cristy8b350f62009-11-15 23:12:43 +000027169rm -f core conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027171LIBS=$ac_check_lib_save_LIBS
27172fi
cristy8b350f62009-11-15 23:12:43 +000027173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000027174$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000027175if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 have_libdps='yes'
27177else
27178 have_libdps='no'
27179fi
27180
27181 if test "$have_libdps" = 'yes'; then
27182 LIBDPS_XT='-lXt'
27183 fi
27184 fi
27185 if test "$have_libdps" = 'yes'; then
27186 passed=`expr $passed + 1`
27187 else
27188 failed=`expr $failed + 1`
27189 fi
cristy8b350f62009-11-15 23:12:43 +000027190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027191$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027192if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027193 $as_echo_n "(cached) " >&6
27194else
27195 ac_check_lib_save_LIBS=$LIBS
27196LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198/* end confdefs.h. */
27199
27200/* Override any GCC internal prototype to avoid an error.
27201 Use char because int might match the return type of a GCC
27202 builtin and then its argument prototype would still apply. */
27203#ifdef __cplusplus
27204extern "C"
27205#endif
27206char XDPSPixelsPerPoint ();
27207int
27208main ()
27209{
27210return XDPSPixelsPerPoint ();
27211 ;
27212 return 0;
27213}
27214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27217else
cristy8b350f62009-11-15 23:12:43 +000027218 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000027219fi
cristy8b350f62009-11-15 23:12:43 +000027220rm -f core conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027222LIBS=$ac_check_lib_save_LIBS
27223fi
cristy8b350f62009-11-15 23:12:43 +000027224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000027225$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000027226if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027227 passed=`expr $passed + 1`
27228else
27229 failed=`expr $failed + 1`
27230fi
27231
cristy8b350f62009-11-15 23:12:43 +000027232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027233$as_echo_n "checking if DPS package is complete... " >&6; }
27234 if test $passed -gt 0; then
27235 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027237$as_echo "no -- some components failed test" >&6; }
27238 have_dps='no (failed tests)'
27239 CPPFLAGS="$PERSIST_CPPFLAGS"
27240 else
27241 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27242 LIBS="$DPS_LIBS $LIBS"
27243
cristy8b350f62009-11-15 23:12:43 +000027244$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027245
cristy8b350f62009-11-15 23:12:43 +000027246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027247$as_echo "yes" >&6; }
27248 have_dps='yes'
27249 fi
27250 else
cristy8b350f62009-11-15 23:12:43 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo "no" >&6; }
27253 CPPFLAGS=$PERSIST_CPPFLAGS
27254 fi
27255fi
cristy73bd4a52010-10-05 11:24:23 +000027256 if test "$have_dps" = 'yes'; then
27257 DPS_DELEGATE_TRUE=
27258 DPS_DELEGATE_FALSE='#'
27259else
27260 DPS_DELEGATE_TRUE='#'
27261 DPS_DELEGATE_FALSE=
27262fi
27263
cristy3ed852e2009-09-05 21:47:34 +000027264
27265
27266
27267#
27268# Check for DJVU delegate library.
27269#
27270
27271# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000027272if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027273 withval=$with_djvu; with_djvu=$withval
27274else
27275 with_djvu='yes'
27276fi
27277
27278
27279if test "$with_djvu" != 'yes'; then
27280 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27281fi
27282
27283have_djvu='no'
27284DJVU_LIBS=''
27285if test "$with_djvu" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027287$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000027289$as_echo_n "checking for DJVU... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027291$as_echo "" >&6; }
27292 failed=0
27293 passed=0
cristy8b350f62009-11-15 23:12:43 +000027294 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 +000027295if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027296 passed=`expr $passed + 1`
27297else
27298 failed=`expr $failed + 1`
27299fi
27300
27301
cristy8b350f62009-11-15 23:12:43 +000027302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000027303$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027304if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027305 $as_echo_n "(cached) " >&6
27306else
27307 ac_check_lib_save_LIBS=$LIBS
27308LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027310/* end confdefs.h. */
27311
27312/* Override any GCC internal prototype to avoid an error.
27313 Use char because int might match the return type of a GCC
27314 builtin and then its argument prototype would still apply. */
27315#ifdef __cplusplus
27316extern "C"
27317#endif
27318char ddjvu_context_create ();
27319int
27320main ()
27321{
27322return ddjvu_context_create ();
27323 ;
27324 return 0;
27325}
27326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027327if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027328 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27329else
cristy8b350f62009-11-15 23:12:43 +000027330 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000027331fi
cristy8b350f62009-11-15 23:12:43 +000027332rm -f core conftest.err conftest.$ac_objext \
27333 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027334LIBS=$ac_check_lib_save_LIBS
27335fi
cristy8b350f62009-11-15 23:12:43 +000027336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000027337$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000027338if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027339 passed=`expr $passed + 1`
27340else
27341 failed=`expr $failed + 1`
27342fi
27343
cristy8b350f62009-11-15 23:12:43 +000027344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027345$as_echo_n "checking if DJVU package is complete... " >&6; }
27346 if test $passed -gt 0; then
27347 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo "no -- some components failed test" >&6; }
27350 have_djvu='no (failed tests)'
27351 else
27352 DJVU_LIBS='-ldjvulibre'
27353 LIBS="$DJVU_LIBS $LIBS"
27354
cristy8b350f62009-11-15 23:12:43 +000027355$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027356
cristy8b350f62009-11-15 23:12:43 +000027357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027358$as_echo "yes" >&6; }
27359 have_djvu='yes'
27360 fi
27361 else
cristy8b350f62009-11-15 23:12:43 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027363$as_echo "no" >&6; }
27364 fi
27365fi
cristy73bd4a52010-10-05 11:24:23 +000027366 if test "$have_djvu" = 'yes'; then
27367 DJVU_DELEGATE_TRUE=
27368 DJVU_DELEGATE_FALSE='#'
27369else
27370 DJVU_DELEGATE_TRUE='#'
27371 DJVU_DELEGATE_FALSE=
27372fi
27373
cristy3ed852e2009-09-05 21:47:34 +000027374
27375
27376
27377#
cristy430a7312010-01-21 20:44:04 +000027378# Set DejaVu font directory.
27379#
27380
27381# Check whether --with-dejavu-font-dir was given.
27382if test "${with_dejavu_font_dir+set}" = set; then :
27383 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27384else
27385 with_dejavu_font_dir='default'
27386fi
27387
27388
27389if test "$with_dejavu_font_dir" != 'default'; then
27390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27391fi
27392
27393
27394#
cristy3ed852e2009-09-05 21:47:34 +000027395# Check for FFTW delegate library.
27396#
27397
27398# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000027399if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 withval=$with_fftw; with_fftw=$withval
27401else
27402 with_fftw='yes'
27403fi
27404
27405
27406if test "$with_fftw" != 'yes'; then
27407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27408fi
27409
27410have_fftw='no'
27411FFTW_LIBS=''
27412if test "$with_fftw" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
cristy3ed852e2009-09-05 21:47:34 +000027416$as_echo_n "checking for FFTW... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027418$as_echo "" >&6; }
27419 failed=0
27420 passed=0
cristy8b350f62009-11-15 23:12:43 +000027421 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027422if test "x$ac_cv_header_fftw3_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 passed=`expr $passed + 1`
27424else
27425 failed=`expr $failed + 1`
27426fi
27427
27428
cristy8b350f62009-11-15 23:12:43 +000027429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
cristy3ed852e2009-09-05 21:47:34 +000027430$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027431if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027432 $as_echo_n "(cached) " >&6
27433else
27434 ac_check_lib_save_LIBS=$LIBS
27435LIBS="-lfftw3 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027437/* end confdefs.h. */
27438
27439/* Override any GCC internal prototype to avoid an error.
27440 Use char because int might match the return type of a GCC
27441 builtin and then its argument prototype would still apply. */
27442#ifdef __cplusplus
27443extern "C"
27444#endif
27445char fftw_execute ();
27446int
27447main ()
27448{
27449return fftw_execute ();
27450 ;
27451 return 0;
27452}
27453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027454if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 ac_cv_lib_fftw3_fftw_execute=yes
27456else
cristy8b350f62009-11-15 23:12:43 +000027457 ac_cv_lib_fftw3_fftw_execute=no
cristy3ed852e2009-09-05 21:47:34 +000027458fi
cristy8b350f62009-11-15 23:12:43 +000027459rm -f core conftest.err conftest.$ac_objext \
27460 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027461LIBS=$ac_check_lib_save_LIBS
27462fi
cristy8b350f62009-11-15 23:12:43 +000027463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
cristy3ed852e2009-09-05 21:47:34 +000027464$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
cristyda16f162011-02-19 23:52:17 +000027465if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027466 passed=`expr $passed + 1`
27467else
27468 failed=`expr $failed + 1`
27469fi
27470
cristy8b350f62009-11-15 23:12:43 +000027471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027472$as_echo_n "checking if FFTW package is complete... " >&6; }
27473 if test $passed -gt 0; then
27474 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027476$as_echo "no -- some components failed test" >&6; }
27477 have_fftw='no (failed tests)'
27478 else
27479 FFTW_LIBS='-lfftw3'
27480 LIBS="$FFTW_LIBS $LIBS"
27481
cristy8b350f62009-11-15 23:12:43 +000027482$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027483
cristy8b350f62009-11-15 23:12:43 +000027484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027485$as_echo "yes" >&6; }
27486 have_fftw='yes'
27487 fi
27488 else
cristy8b350f62009-11-15 23:12:43 +000027489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027490$as_echo "no" >&6; }
27491 fi
27492fi
cristy73bd4a52010-10-05 11:24:23 +000027493 if test "$have_fftw" = 'yes'; then
27494 FFTW_DELEGATE_TRUE=
27495 FFTW_DELEGATE_FALSE='#'
27496else
27497 FFTW_DELEGATE_TRUE='#'
27498 FFTW_DELEGATE_FALSE=
27499fi
27500
cristy3ed852e2009-09-05 21:47:34 +000027501
27502
27503
27504#
27505# Check for FlashPIX delegate library.
27506#
27507
27508# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000027509if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027510 withval=$with_fpx; with_fpx=$withval
27511else
27512 with_fpx='yes'
27513fi
27514
27515
27516if test "$with_fpx" != 'yes'; then
27517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27518fi
27519
27520have_fpx='no'
27521FPX_LIBS=''
27522if test "$with_fpx" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027524$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo_n "checking for FlashPIX... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027528$as_echo "" >&6; }
27529 failed=0
27530 passed=0
27531 ac_ext=cpp
27532ac_cpp='$CXXCPP $CPPFLAGS'
27533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27536
27537
cristy8b350f62009-11-15 23:12:43 +000027538ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027539if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027540 passed=`expr $passed + 1`
27541else
27542 failed=`expr $failed + 1`
27543fi
27544
27545
cristy8b350f62009-11-15 23:12:43 +000027546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000027547$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027548if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027549 $as_echo_n "(cached) " >&6
27550else
27551 ac_check_lib_save_LIBS=$LIBS
27552LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027554/* end confdefs.h. */
27555
27556/* Override any GCC internal prototype to avoid an error.
27557 Use char because int might match the return type of a GCC
27558 builtin and then its argument prototype would still apply. */
27559#ifdef __cplusplus
27560extern "C"
27561#endif
27562char FPX_OpenImageByFilename ();
27563int
27564main ()
27565{
27566return FPX_OpenImageByFilename ();
27567 ;
27568 return 0;
27569}
27570_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027571if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27573else
cristy8b350f62009-11-15 23:12:43 +000027574 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000027575fi
cristy8b350f62009-11-15 23:12:43 +000027576rm -f core conftest.err conftest.$ac_objext \
27577 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027578LIBS=$ac_check_lib_save_LIBS
27579fi
cristy8b350f62009-11-15 23:12:43 +000027580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000027581$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000027582if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027583 passed=`expr $passed + 1`
27584else
27585 failed=`expr $failed + 1`
27586fi
27587
27588 ac_ext=c
27589ac_cpp='$CPP $CPPFLAGS'
27590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27592ac_compiler_gnu=$ac_cv_c_compiler_gnu
27593
cristy8b350f62009-11-15 23:12:43 +000027594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027595$as_echo_n "checking if FlashPIX package is complete... " >&6; }
27596 if test $passed -gt 0; then
27597 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000027598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027599$as_echo "no -- some components failed test" >&6; }
27600 have_fpx='no (failed tests)'
27601 else
27602 FPX_LIBS='-lfpx'
27603
cristy8b350f62009-11-15 23:12:43 +000027604$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027605
cristy8b350f62009-11-15 23:12:43 +000027606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027607$as_echo "yes" >&6; }
27608 have_fpx='yes'
27609 PERLMAINCC="$CXX"
27610 fi
27611 else
cristy8b350f62009-11-15 23:12:43 +000027612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027613$as_echo "no" >&6; }
27614 fi
27615fi
cristy73bd4a52010-10-05 11:24:23 +000027616 if test "$have_fpx" = 'yes'; then
27617 FPX_DELEGATE_TRUE=
27618 FPX_DELEGATE_FALSE='#'
27619else
27620 FPX_DELEGATE_TRUE='#'
27621 FPX_DELEGATE_FALSE=
27622fi
27623
cristy3ed852e2009-09-05 21:47:34 +000027624
27625
27626
27627#
27628# Check for fontconfig delegate library.
27629#
27630
27631# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000027632if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 withval=$with_fontconfig; with_fontconfig=$withval
27634else
27635 with_fontconfig=$have_x
27636fi
27637
27638
27639if test "$with_fontconfig" != 'yes'; then
27640 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27641fi
27642
27643have_fontconfig='no'
27644FONTCONFIG_CFLAGS=""
27645FONTCONFIG_LIBS=""
27646FONTCONFIG_PKG=""
27647if test "x$with_fontconfig" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000027648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027649$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000027650
27651pkg_failed=no
27652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27653$as_echo_n "checking for FONTCONFIG... " >&6; }
27654
27655if test -n "$FONTCONFIG_CFLAGS"; then
27656 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27657 elif test -n "$PKG_CONFIG"; then
27658 if test -n "$PKG_CONFIG" && \
27659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27660 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27661 ac_status=$?
27662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27663 test $ac_status = 0; }; then
27664 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27665else
27666 pkg_failed=yes
27667fi
27668 else
27669 pkg_failed=untried
27670fi
27671if test -n "$FONTCONFIG_LIBS"; then
27672 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27673 elif test -n "$PKG_CONFIG"; then
27674 if test -n "$PKG_CONFIG" && \
27675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27676 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27677 ac_status=$?
27678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27679 test $ac_status = 0; }; then
27680 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27681else
27682 pkg_failed=yes
27683fi
27684 else
27685 pkg_failed=untried
27686fi
27687
27688
27689
27690if test $pkg_failed = yes; then
27691
27692if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27693 _pkg_short_errors_supported=yes
27694else
27695 _pkg_short_errors_supported=no
27696fi
27697 if test $_pkg_short_errors_supported = yes; then
27698 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27699 else
27700 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27701 fi
27702 # Put the nasty error message in config.log where it belongs
27703 echo "$FONTCONFIG_PKG_ERRORS" >&5
27704
27705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27706$as_echo "no" >&6; }
27707 have_fontconfig=no
27708elif test $pkg_failed = untried; then
27709 have_fontconfig=no
27710else
27711 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27712 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27714$as_echo "yes" >&6; }
27715 have_fontconfig=yes
27716fi
cristy8b350f62009-11-15 23:12:43 +000027717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027718$as_echo "" >&6; }
27719fi
27720
27721if test "$have_fontconfig" = 'yes'; then
27722
cristy8b350f62009-11-15 23:12:43 +000027723$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027724
cristyd09bcf92010-03-25 03:04:45 +000027725 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000027726 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000027727 fi
cristy3ed852e2009-09-05 21:47:34 +000027728fi
27729
cristy73bd4a52010-10-05 11:24:23 +000027730 if test "$have_fontconfig" = 'yes'; then
27731 FONTCONFIG_DELEGATE_TRUE=
27732 FONTCONFIG_DELEGATE_FALSE='#'
27733else
27734 FONTCONFIG_DELEGATE_TRUE='#'
27735 FONTCONFIG_DELEGATE_FALSE=
27736fi
27737
cristy3ed852e2009-09-05 21:47:34 +000027738
27739
27740
27741
27742#
27743# Check for freetype delegate library.
27744#
27745
27746# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000027747if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027748 withval=$with_freetype; with_freetype=$withval
27749else
27750 with_freetype='yes'
27751fi
27752
27753
27754
27755if test "$with_freetype" != 'yes'; then
27756 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27757fi
27758
27759have_freetype='no'
27760FREETYPE_LIBS=''
27761if test "$with_freetype" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027763$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
cristy3ed852e2009-09-05 21:47:34 +000027765$as_echo_n "checking for FreeType 2.0... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027767$as_echo "" >&6; }
27768 failed=0
27769 passed=0
cristy66291112009-10-03 22:44:36 +000027770 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027771 PERSIST_CPPFLAGS="$CPPFLAGS"
27772 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27773 :
27774 else
27775 freetype_config=''
27776 for ac_prog in freetype-config
27777do
27778 # Extract the first word of "$ac_prog", so it can be a program name with args.
27779set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027781$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027782if ${ac_cv_prog_freetype_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027783 $as_echo_n "(cached) " >&6
27784else
27785 if test -n "$freetype_config"; then
27786 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27787else
27788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27789for as_dir in $PATH
27790do
27791 IFS=$as_save_IFS
27792 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027793 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27795 ac_cv_prog_freetype_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000027796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797 break 2
27798 fi
27799done
cristy8b350f62009-11-15 23:12:43 +000027800 done
cristy3ed852e2009-09-05 21:47:34 +000027801IFS=$as_save_IFS
27802
27803fi
27804fi
27805freetype_config=$ac_cv_prog_freetype_config
27806if test -n "$freetype_config"; then
cristy8b350f62009-11-15 23:12:43 +000027807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000027808$as_echo "$freetype_config" >&6; }
27809else
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo "no" >&6; }
27812fi
27813
27814
27815 test -n "$freetype_config" && break
27816done
27817 if test -n "$freetype_config"; then
27818 freetype_cflags=`$freetype_config --cflags`
27819 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000027820 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000027821 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27822 fi
27823 fi
27824
27825 if test "$FREETYPE_LIBS" = ''; then
cristy8b350f62009-11-15 23:12:43 +000027826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy3ed852e2009-09-05 21:47:34 +000027827$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027828if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027829 $as_echo_n "(cached) " >&6
27830else
27831 ac_check_lib_save_LIBS=$LIBS
27832LIBS="-lfreetype $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027834/* end confdefs.h. */
27835
27836/* Override any GCC internal prototype to avoid an error.
27837 Use char because int might match the return type of a GCC
27838 builtin and then its argument prototype would still apply. */
27839#ifdef __cplusplus
27840extern "C"
27841#endif
27842char FT_Init_FreeType ();
27843int
27844main ()
27845{
27846return FT_Init_FreeType ();
27847 ;
27848 return 0;
27849}
27850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027852 ac_cv_lib_freetype_FT_Init_FreeType=yes
27853else
cristy8b350f62009-11-15 23:12:43 +000027854 ac_cv_lib_freetype_FT_Init_FreeType=no
cristy3ed852e2009-09-05 21:47:34 +000027855fi
cristy8b350f62009-11-15 23:12:43 +000027856rm -f core conftest.err conftest.$ac_objext \
27857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027858LIBS=$ac_check_lib_save_LIBS
27859fi
cristy8b350f62009-11-15 23:12:43 +000027860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
cristy3ed852e2009-09-05 21:47:34 +000027861$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
cristyda16f162011-02-19 23:52:17 +000027862if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 FREETYPE_LIBS='-lfreetype'
27864fi
27865
27866 if test "$FREETYPE_LIBS" != ''; then
27867 passed=`expr $passed + 1`
27868 else
27869 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000027870 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000027871 fi
27872 fi
27873
cristy8b350f62009-11-15 23:12:43 +000027874 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027875if test "x$ac_cv_header_ft2build_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027876 FT2BUILD_H='#include <ft2build.h>'
27877else
27878 ft2build=''
27879fi
27880
27881
cristy8b350f62009-11-15 23:12:43 +000027882 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27883"
cristyda16f162011-02-19 23:52:17 +000027884if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 have_freetype_h='yes'
27886else
27887 have_freetype_h='no'
27888fi
27889
27890
27891 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27892 passed=`expr $passed + 1`
27893 else
27894 failed=`expr $failed + 1`
27895 CPPFLAGS="$PERSIST_CPPFLAGS"
27896 fi
27897
cristy8b350f62009-11-15 23:12:43 +000027898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027899$as_echo_n "checking if FreeType package is complete... " >&6; }
27900 if test $passed -gt 0; then
27901 if test $failed -gt 0; then
27902 FREETYPE_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000027904$as_echo "no -- some components failed test" >&6; }
27905 have_freetype='no (failed tests)'
27906 else
27907 LIBS="$FREETYPE_LIBS $LIBS"
27908
cristy8b350f62009-11-15 23:12:43 +000027909$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027910
27911 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27912
cristy8b350f62009-11-15 23:12:43 +000027913$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027914
27915 fi
cristy8b350f62009-11-15 23:12:43 +000027916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027917$as_echo "yes" >&6; }
27918 have_freetype='yes'
27919 fi
27920 else
cristy8b350f62009-11-15 23:12:43 +000027921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027922$as_echo "no" >&6; }
27923 fi
27924fi
cristy73bd4a52010-10-05 11:24:23 +000027925 if test "$have_freetype" = 'yes'; then
27926 FREETYPE_DELEGATE_TRUE=
27927 FREETYPE_DELEGATE_FALSE='#'
27928else
27929 FREETYPE_DELEGATE_TRUE='#'
27930 FREETYPE_DELEGATE_FALSE=
27931fi
27932
cristy3ed852e2009-09-05 21:47:34 +000027933
27934
27935
27936
27937#
27938# Check for Ghostscript library or framework.
27939#
27940# Test for iapi.h & test for gsapi_new_instance in -lgs
27941# or -framework Ghostscript
27942
27943
27944# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000027945if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027946 withval=$with_gslib; with_gslib=$withval
27947else
27948 with_gslib='no'
27949fi
27950
27951
cristyb7931f12009-09-25 10:22:21 +000027952gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000027953if test "$with_gslib" != 'yes'; then
27954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27955fi
27956
27957have_gslib='no'
27958GS_LIBS=''
27959if test "$with_gslib" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000027961$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000027963$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000027966 framework=0
cristy3ed852e2009-09-05 21:47:34 +000027967 failed=0
27968 passed=0
cristy8b350f62009-11-15 23:12:43 +000027969 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 +000027970if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 passed=`expr $passed + 1`
27972else
27973 failed=`expr $failed + 1`
27974fi
27975
27976
cristy8b350f62009-11-15 23:12:43 +000027977 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 +000027978if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027979 passed=`expr $passed + 1`
27980else
27981 failed=`expr $failed + 1`
27982fi
27983
27984
cristy73bd4a52010-10-05 11:24:23 +000027985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27986$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027987if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027988 $as_echo_n "(cached) " >&6
27989else
27990 ac_check_framework_save_LIBS=$LIBS
27991LIBS="-framework Ghostscript $LIBS"
27992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27993/* end confdefs.h. */
27994
27995/* Override any GCC internal prototype to avoid an error.
27996 Use char because int might match the return type of a GCC
27997 builtin and then its argument prototype would still apply. */
27998#ifdef __cplusplus
27999extern "C"
28000#endif
28001char gsapi_new_instance ();
28002int
28003main ()
28004{
28005return gsapi_new_instance ();
28006 ;
28007 return 0;
28008}
28009_ACEOF
28010if ac_fn_c_try_link "$LINENO"; then :
28011 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28012else
28013 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28014fi
28015rm -f core conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
28017LIBS=$ac_check_framework_save_LIBS
28018fi
28019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28020$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28021if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28022 framework=`expr $framework + 1`
28023else
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000028025$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028026if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028027 $as_echo_n "(cached) " >&6
28028else
28029 ac_check_lib_save_LIBS=$LIBS
28030LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028032/* end confdefs.h. */
28033
28034/* Override any GCC internal prototype to avoid an error.
28035 Use char because int might match the return type of a GCC
28036 builtin and then its argument prototype would still apply. */
28037#ifdef __cplusplus
28038extern "C"
28039#endif
28040char gsapi_new_instance ();
28041int
28042main ()
28043{
28044return gsapi_new_instance ();
28045 ;
28046 return 0;
28047}
28048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028050 ac_cv_lib_gs_gsapi_new_instance=yes
28051else
cristy8b350f62009-11-15 23:12:43 +000028052 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000028053fi
cristy8b350f62009-11-15 23:12:43 +000028054rm -f core conftest.err conftest.$ac_objext \
28055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028056LIBS=$ac_check_lib_save_LIBS
28057fi
cristy8b350f62009-11-15 23:12:43 +000028058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000028059$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000028060if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028061 passed=`expr $passed + 1`
28062else
28063 failed=`expr $failed + 1`
28064fi
cristy73bd4a52010-10-05 11:24:23 +000028065
28066fi
cristy8b350f62009-11-15 23:12:43 +000028067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028068$as_echo_n "checking if Ghostscript package is complete... " >&6; }
28069 if test $passed -gt 0; then
28070 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028072$as_echo "no -- some components failed test" >&6; }
28073 have_gslib='no (failed tests)'
28074 else
28075 if test $framework -gt 0; then
28076 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000028077 gslib_framework='yes'
cristy8b350f62009-11-15 23:12:43 +000028078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
cristy3ed852e2009-09-05 21:47:34 +000028079$as_echo "yes, using framework." >&6; }
28080 else
cristy8b350f62009-11-15 23:12:43 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
cristy3ed852e2009-09-05 21:47:34 +000028082$as_echo "yes, using library." >&6; }
28083 GS_LIBS='-lgs'
28084 fi
28085 LIBS="$GS_LIBS $LIBS"
28086
cristy8b350f62009-11-15 23:12:43 +000028087$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028088
28089 have_gslib='yes'
28090 fi
28091 else
cristy8b350f62009-11-15 23:12:43 +000028092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028093$as_echo "no" >&6; }
28094 fi
28095fi
cristy73bd4a52010-10-05 11:24:23 +000028096 if test "$have_gslib" = 'yes'; then
28097 GS_DELEGATE_TRUE=
28098 GS_DELEGATE_FALSE='#'
28099else
28100 GS_DELEGATE_TRUE='#'
28101 GS_DELEGATE_FALSE=
28102fi
28103
cristy3ed852e2009-09-05 21:47:34 +000028104
28105
28106# Set default font search path
28107
28108# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000028109if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028110 withval=$with_fontpath; with_fontpath=$withval
28111else
28112 with_fontpath=''
28113fi
28114
28115
28116if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28117 with_fontpath=''
28118else
28119
28120cat >>confdefs.h <<_ACEOF
28121#define MAGICK_FONT_PATH "$with_fontpath"
28122_ACEOF
28123
28124fi
28125if test "$with_fontpath=" != ''; then
28126 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28127fi
28128
28129# Set Ghostscript font directory
28130
28131# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000028132if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028133 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28134else
28135 with_gs_font_dir='default'
28136fi
28137
28138
28139if test "$with_gs_font_dir" != 'default'; then
28140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28141fi
28142
28143
28144#
28145# Check for GVC delegate library.
28146#
28147
28148# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000028149if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 withval=$with_gvc; with_gvc=$withval
28151else
28152 with_gvc='yes'
28153fi
28154
28155
28156if test "$with_gvc" != 'yes'; then
28157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28158fi
28159
28160GVC_PKG=""
28161if test "x$with_gvc" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028163$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028164
28165pkg_failed=no
28166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28167$as_echo_n "checking for GVC... " >&6; }
28168
28169if test -n "$GVC_CFLAGS"; then
28170 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28171 elif test -n "$PKG_CONFIG"; then
28172 if test -n "$PKG_CONFIG" && \
28173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28174 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28175 ac_status=$?
28176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28177 test $ac_status = 0; }; then
28178 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28179else
28180 pkg_failed=yes
28181fi
28182 else
28183 pkg_failed=untried
28184fi
28185if test -n "$GVC_LIBS"; then
28186 pkg_cv_GVC_LIBS="$GVC_LIBS"
28187 elif test -n "$PKG_CONFIG"; then
28188 if test -n "$PKG_CONFIG" && \
28189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28190 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28191 ac_status=$?
28192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28193 test $ac_status = 0; }; then
28194 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28195else
28196 pkg_failed=yes
28197fi
28198 else
28199 pkg_failed=untried
28200fi
28201
28202
28203
28204if test $pkg_failed = yes; then
28205
28206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28207 _pkg_short_errors_supported=yes
28208else
28209 _pkg_short_errors_supported=no
28210fi
28211 if test $_pkg_short_errors_supported = yes; then
28212 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28213 else
28214 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28215 fi
28216 # Put the nasty error message in config.log where it belongs
28217 echo "$GVC_PKG_ERRORS" >&5
28218
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28220$as_echo "no" >&6; }
28221 have_gvc=no
28222elif test $pkg_failed = untried; then
28223 have_gvc=no
28224else
28225 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28226 GVC_LIBS=$pkg_cv_GVC_LIBS
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28228$as_echo "yes" >&6; }
28229 have_gvc=yes
28230fi
cristy8b350f62009-11-15 23:12:43 +000028231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028232$as_echo "" >&6; }
28233fi
28234
28235if test "$have_gvc" = 'yes'; then
28236
cristy8b350f62009-11-15 23:12:43 +000028237$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028238
28239 if test "$with_modules" = 'no'; then
28240 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28241 fi
28242fi
28243
cristy73bd4a52010-10-05 11:24:23 +000028244 if test "$have_gvc" = 'yes'; then
28245 GVC_DELEGATE_TRUE=
28246 GVC_DELEGATE_FALSE='#'
28247else
28248 GVC_DELEGATE_TRUE='#'
28249 GVC_DELEGATE_FALSE=
28250fi
28251
cristy3ed852e2009-09-05 21:47:34 +000028252
28253
28254
28255
28256#
28257# Check for JBIG delegate library.
28258#
28259
28260
28261# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000028262if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028263 withval=$with_jbig; with_jbig=$withval
28264else
28265 with_jbig='yes'
28266fi
28267
28268
28269have_jbig='no'
28270JBIG_LIBS=''
28271if test "$with_jbig" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028273$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028275$as_echo_n "checking for JBIG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo "" >&6; }
28278 failed=0
28279 passed=0
cristy8b350f62009-11-15 23:12:43 +000028280 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028281if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028282 passed=`expr $passed + 1`
28283else
28284 failed=`expr $failed + 1`
28285fi
28286
28287
cristy8b350f62009-11-15 23:12:43 +000028288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000028289$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028290if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028291 $as_echo_n "(cached) " >&6
28292else
28293 ac_check_lib_save_LIBS=$LIBS
28294LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028296/* end confdefs.h. */
28297
28298/* Override any GCC internal prototype to avoid an error.
28299 Use char because int might match the return type of a GCC
28300 builtin and then its argument prototype would still apply. */
28301#ifdef __cplusplus
28302extern "C"
28303#endif
28304char jbg_dec_init ();
28305int
28306main ()
28307{
28308return jbg_dec_init ();
28309 ;
28310 return 0;
28311}
28312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028314 ac_cv_lib_jbig_jbg_dec_init=yes
28315else
cristy8b350f62009-11-15 23:12:43 +000028316 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000028317fi
cristy8b350f62009-11-15 23:12:43 +000028318rm -f core conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028320LIBS=$ac_check_lib_save_LIBS
28321fi
cristy8b350f62009-11-15 23:12:43 +000028322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000028323$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000028324if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028325 passed=`expr $passed + 1`
28326else
28327 failed=`expr $failed + 1`
28328fi
28329
cristy8b350f62009-11-15 23:12:43 +000028330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028331$as_echo_n "checking if JBIG package is complete... " >&6; }
28332 if test $passed -gt 0; then
28333 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028335$as_echo "no -- some components failed test" >&6; }
28336 have_jbig='no (failed tests)'
28337 else
28338 JBIG_LIBS='-ljbig'
28339 LIBS="$JBIG_LIBS $LIBS"
28340
cristy8b350f62009-11-15 23:12:43 +000028341$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028342
cristy8b350f62009-11-15 23:12:43 +000028343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028344$as_echo "yes" >&6; }
28345 have_jbig='yes'
28346 fi
28347 else
cristy8b350f62009-11-15 23:12:43 +000028348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028349$as_echo "no" >&6; }
28350 fi
28351fi
cristy73bd4a52010-10-05 11:24:23 +000028352 if test "$have_jbig" = 'yes'; then
28353 JBIG_DELEGATE_TRUE=
28354 JBIG_DELEGATE_FALSE='#'
28355else
28356 JBIG_DELEGATE_TRUE='#'
28357 JBIG_DELEGATE_FALSE=
28358fi
28359
cristy3ed852e2009-09-05 21:47:34 +000028360
28361
28362
28363#
28364# Check for JPEG delegate library.
28365#
28366
28367# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000028368if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028369 withval=$with_jpeg; with_jpeg=$withval
28370else
28371 with_jpeg='yes'
28372fi
28373
28374
28375if test "$with_jpeg" != 'yes'; then
28376 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28377fi
28378
28379have_jpeg='no'
28380JPEG_LIBS=''
28381if test "$with_jpeg" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028383$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000028385$as_echo_n "checking for JPEG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028387$as_echo "" >&6; }
28388 failed=0
28389 passed=0
cristy8b350f62009-11-15 23:12:43 +000028390 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028391if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028392 passed=`expr $passed + 1`
28393else
28394 failed=`expr $failed + 1`
28395fi
28396
28397
cristy8b350f62009-11-15 23:12:43 +000028398 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028399if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028400 passed=`expr $passed + 1`
28401else
28402 failed=`expr $failed + 1`
28403fi
28404
28405
cristy8b350f62009-11-15 23:12:43 +000028406 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028407if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 passed=`expr $passed + 1`
28409else
28410 failed=`expr $failed + 1`
28411fi
28412
28413
cristy8b350f62009-11-15 23:12:43 +000028414 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028415if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028416 passed=`expr $passed + 1`
28417else
28418 failed=`expr $failed + 1`
28419fi
28420
28421
cristy8b350f62009-11-15 23:12:43 +000028422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000028423$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028424if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028425 $as_echo_n "(cached) " >&6
28426else
28427 ac_check_lib_save_LIBS=$LIBS
28428LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028430/* end confdefs.h. */
28431
28432/* Override any GCC internal prototype to avoid an error.
28433 Use char because int might match the return type of a GCC
28434 builtin and then its argument prototype would still apply. */
28435#ifdef __cplusplus
28436extern "C"
28437#endif
28438char jpeg_read_header ();
28439int
28440main ()
28441{
28442return jpeg_read_header ();
28443 ;
28444 return 0;
28445}
28446_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028447if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028448 ac_cv_lib_jpeg_jpeg_read_header=yes
28449else
cristy8b350f62009-11-15 23:12:43 +000028450 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000028451fi
cristy8b350f62009-11-15 23:12:43 +000028452rm -f core conftest.err conftest.$ac_objext \
28453 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028454LIBS=$ac_check_lib_save_LIBS
28455fi
cristy8b350f62009-11-15 23:12:43 +000028456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000028457$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000028458if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028459 passed=`expr $passed + 1`
28460else
28461 failed=`expr $failed + 1`
28462fi
28463
28464
28465# Test for compatible JPEG library
28466if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000028468$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028469if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028470 $as_echo_n "(cached) " >&6
28471else
cristy8b350f62009-11-15 23:12:43 +000028472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028473/* end confdefs.h. */
28474#include <stdio.h>
28475#include <stdlib.h>
28476#include <jpeglib.h>
28477
28478int
28479main ()
28480{
28481
28482#if JPEG_LIB_VERSION < 62
28483#error IJG JPEG library must be version 6b or newer!
28484#endif
28485return 0;
28486
28487 ;
28488 return 0;
28489}
28490_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028491if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028492 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28493else
cristy8b350f62009-11-15 23:12:43 +000028494 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028495fi
cristy3ed852e2009-09-05 21:47:34 +000028496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28497fi
cristy8b350f62009-11-15 23:12:43 +000028498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000028499$as_echo "$ac_cv_jpeg_version_ok" >&6; }
28500fi
cristy8b350f62009-11-15 23:12:43 +000028501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo_n "checking if JPEG package is complete... " >&6; }
28503 if test $passed -gt 0; then
28504 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028506$as_echo "no -- some components failed test" >&6; }
28507 have_jpeg='no (failed tests)'
28508 else
28509 JPEG_LIBS='-ljpeg'
28510 LIBS="$JPEG_LIBS $LIBS"
28511
cristy8b350f62009-11-15 23:12:43 +000028512$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028513
cristy8b350f62009-11-15 23:12:43 +000028514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028515$as_echo "yes" >&6; }
28516 have_jpeg='yes'
28517 fi
28518 else
cristy8b350f62009-11-15 23:12:43 +000028519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028520$as_echo "no" >&6; }
28521 fi
28522fi
cristy73bd4a52010-10-05 11:24:23 +000028523 if test "$have_jpeg" = 'yes'; then
28524 JPEG_DELEGATE_TRUE=
28525 JPEG_DELEGATE_FALSE='#'
28526else
28527 JPEG_DELEGATE_TRUE='#'
28528 JPEG_DELEGATE_FALSE=
28529fi
28530
cristy3ed852e2009-09-05 21:47:34 +000028531
28532
28533
28534#
28535# Check for JPEG Version 2 delegate library.
28536#
28537
28538# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000028539if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028540 withval=$with_jp2; with_jp2=$withval
28541else
28542 with_jp2='yes'
28543fi
28544
28545
28546if test "$with_jp2" != 'yes'; then
28547 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28548fi
28549
28550have_jp2='no'
28551JP2_LIBS=''
28552if test "$with_jp2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028554$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028556$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028558$as_echo "" >&6; }
28559 failed=0
28560 passed=0
cristy8b350f62009-11-15 23:12:43 +000028561 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 +000028562if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028563 passed=`expr $passed + 1`
28564else
28565 failed=`expr $failed + 1`
28566fi
28567
28568
cristy8b350f62009-11-15 23:12:43 +000028569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000028570$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028571if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028572 $as_echo_n "(cached) " >&6
28573else
28574 ac_check_lib_save_LIBS=$LIBS
28575LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028577/* end confdefs.h. */
28578
28579/* Override any GCC internal prototype to avoid an error.
28580 Use char because int might match the return type of a GCC
28581 builtin and then its argument prototype would still apply. */
28582#ifdef __cplusplus
28583extern "C"
28584#endif
28585char jas_stream_fopen ();
28586int
28587main ()
28588{
28589return jas_stream_fopen ();
28590 ;
28591 return 0;
28592}
28593_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028594if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028595 ac_cv_lib_jasper_jas_stream_fopen=yes
28596else
cristy8b350f62009-11-15 23:12:43 +000028597 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000028598fi
cristy8b350f62009-11-15 23:12:43 +000028599rm -f core conftest.err conftest.$ac_objext \
28600 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028601LIBS=$ac_check_lib_save_LIBS
28602fi
cristy8b350f62009-11-15 23:12:43 +000028603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028604$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028605if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028606 passed=`expr $passed + 1`
28607else
28608 failed=`expr $failed + 1`
28609fi
28610
cristy8b350f62009-11-15 23:12:43 +000028611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028612$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28613 if test $passed -gt 0; then
28614 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000028615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028616$as_echo "no -- some components failed test" >&6; }
28617 have_jp2='no (failed tests)'
28618 else
28619 JP2_LIBS='-ljasper'
28620 LIBS="$JP2_LIBS $LIBS"
28621
cristy8b350f62009-11-15 23:12:43 +000028622$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028623
cristy8b350f62009-11-15 23:12:43 +000028624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028625$as_echo "yes" >&6; }
28626 have_jp2='yes'
28627 fi
28628 else
cristy8b350f62009-11-15 23:12:43 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028630$as_echo "no" >&6; }
28631 fi
28632fi
cristy73bd4a52010-10-05 11:24:23 +000028633 if test "$have_jp2" = 'yes'; then
28634 JP2_DELEGATE_TRUE=
28635 JP2_DELEGATE_FALSE='#'
28636else
28637 JP2_DELEGATE_TRUE='#'
28638 JP2_DELEGATE_FALSE=
28639fi
28640
cristy3ed852e2009-09-05 21:47:34 +000028641
28642
28643
28644#
28645# Check for LCMS delegate library.
28646#
cristy71203402010-06-18 13:12:03 +000028647# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000028648
28649# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000028650if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028651 withval=$with_lcms; with_lcms=$withval
28652else
28653 with_lcms='yes'
28654fi
28655
cristy71203402010-06-18 13:12:03 +000028656if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000028657 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28658fi
28659
cristy71203402010-06-18 13:12:03 +000028660# Disable LCMS2.
28661
28662# Check whether --with-lcms2 was given.
28663if test "${with_lcms2+set}" = set; then :
28664 withval=$with_lcms2; with_lcms2=$withval
28665else
28666 with_lcms2='yes'
28667fi
28668
28669if test "$with_lcms2" != 'yes' ; then
28670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28671fi
28672
28673have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000028674LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000028675if test "$with_lcms2" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000028676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028677$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28679$as_echo_n "checking for LCMS v2... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000028680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000028681$as_echo "" >&6; }
28682 failed=0
28683 passed=0
28684 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028685
28686 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000028687 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028688if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028689 have_lcms_header='yes'
28690fi
28691
28692
28693 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000028694
28695$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28696
cristy71203402010-06-18 13:12:03 +000028697 passed=`expr $passed + 1`
28698 fi
28699
28700 # Check for <lcms2/lcms2.h)
28701 if test "$have_lcms_header" != 'yes'; then
28702 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 +000028703if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028704 have_lcms_header='yes'
28705fi
28706
28707
cristy71203402010-06-18 13:12:03 +000028708 if test "$have_lcms_header" = 'yes'; then
28709 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000028710
cristy71203402010-06-18 13:12:03 +000028711$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000028712
cristy71203402010-06-18 13:12:03 +000028713 fi
cristyd09bcf92010-03-25 03:04:45 +000028714 fi
cristy71203402010-06-18 13:12:03 +000028715
28716 # Failed to find lcms header?
28717 if test "$have_lcms_header" != 'yes'; then
28718 failed=`expr $failed + 1`
28719 fi
28720
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28722$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028723if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000028724 $as_echo_n "(cached) " >&6
28725else
28726 ac_check_lib_save_LIBS=$LIBS
28727LIBS="-llcms2 $LIBS"
28728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28729/* end confdefs.h. */
28730
28731/* Override any GCC internal prototype to avoid an error.
28732 Use char because int might match the return type of a GCC
28733 builtin and then its argument prototype would still apply. */
28734#ifdef __cplusplus
28735extern "C"
28736#endif
cristy71203402010-06-18 13:12:03 +000028737char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028738int
28739main ()
28740{
cristy71203402010-06-18 13:12:03 +000028741return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000028742 ;
28743 return 0;
28744}
28745_ACEOF
28746if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028747 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000028748else
cristy71203402010-06-18 13:12:03 +000028749 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000028750fi
28751rm -f core conftest.err conftest.$ac_objext \
28752 conftest$ac_exeext conftest.$ac_ext
28753LIBS=$ac_check_lib_save_LIBS
28754fi
cristy71203402010-06-18 13:12:03 +000028755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28756$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028757if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000028758 passed=`expr $passed + 1`
28759else
28760 failed=`expr $failed + 1`
28761fi
28762
cristy71203402010-06-18 13:12:03 +000028763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28764$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028765 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028766 if test $failed -gt 0; then
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristyd09bcf92010-03-25 03:04:45 +000028768$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028769 have_lcms2='no (failed tests)'
28770 else
28771 LCMS_LIBS='-llcms2'
28772 LIBS="$LCMS_LIBS $LIBS"
28773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristyd09bcf92010-03-25 03:04:45 +000028774$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028775 have_lcms2='yes'
28776 fi
cristyd09bcf92010-03-25 03:04:45 +000028777 else
cristy71203402010-06-18 13:12:03 +000028778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristyd09bcf92010-03-25 03:04:45 +000028779$as_echo "no" >&6; }
28780 fi
28781fi
28782
cristy71203402010-06-18 13:12:03 +000028783#
28784# Check for LCMS v1 (1.11 or later)
28785#
28786if test $have_lcms2 = 'yes'; then
28787 with_lcms='no'
28788fi
28789
28790have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000028791if test "$with_lcms" != 'no'; then
cristyd09bcf92010-03-25 03:04:45 +000028792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28793$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28795$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000028796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28797$as_echo "" >&6; }
28798 failed=0
28799 passed=0
28800 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000028801
28802 # Check for <lcms.h>
28803 if test "$have_lcms_header" != 'yes'; then
28804 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028805if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028806 have_lcms_header='yes'
28807fi
28808
28809
cristy71203402010-06-18 13:12:03 +000028810 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028811 passed=`expr $passed + 1`
28812
cristy8b350f62009-11-15 23:12:43 +000028813$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028814
cristy71203402010-06-18 13:12:03 +000028815 fi
28816 fi
28817
28818 # Check for <lcms/lcms.h>
28819 if test "$have_lcms_header" != 'yes'; then
28820 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 +000028821if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028822 have_lcms_header='yes'
28823fi
28824
28825
cristy71203402010-06-18 13:12:03 +000028826 if test "$have_lcms_header" = 'yes'; then
28827 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028828
cristy8b350f62009-11-15 23:12:43 +000028829$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028830
cristy71203402010-06-18 13:12:03 +000028831 fi
cristy3ed852e2009-09-05 21:47:34 +000028832 fi
cristy71203402010-06-18 13:12:03 +000028833
28834 # Failed to find lcms header?
28835 if test "$have_lcms_header" != 'yes'; then
28836 failed=`expr $failed + 1`
28837 fi
28838
28839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28840$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028841if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028842 $as_echo_n "(cached) " >&6
28843else
28844 ac_check_lib_save_LIBS=$LIBS
28845LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028847/* end confdefs.h. */
28848
28849/* Override any GCC internal prototype to avoid an error.
28850 Use char because int might match the return type of a GCC
28851 builtin and then its argument prototype would still apply. */
28852#ifdef __cplusplus
28853extern "C"
28854#endif
cristy71203402010-06-18 13:12:03 +000028855char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028856int
28857main ()
28858{
cristy71203402010-06-18 13:12:03 +000028859return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000028860 ;
28861 return 0;
28862}
28863_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028864if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000028865 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000028866else
cristy71203402010-06-18 13:12:03 +000028867 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000028868fi
cristy8b350f62009-11-15 23:12:43 +000028869rm -f core conftest.err conftest.$ac_objext \
28870 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028871LIBS=$ac_check_lib_save_LIBS
28872fi
cristy71203402010-06-18 13:12:03 +000028873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28874$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000028875if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028876 passed=`expr $passed + 1`
28877else
28878 failed=`expr $failed + 1`
28879fi
28880
cristy8b350f62009-11-15 23:12:43 +000028881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028882$as_echo_n "checking if LCMS package is complete... " >&6; }
28883 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000028884 if test $failed -gt 0; then
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000028886$as_echo "no -- some components failed test" >&6; }
cristy71203402010-06-18 13:12:03 +000028887 have_lcms='no (failed tests)'
28888 else
28889 LCMS_LIBS='-llcms'
28890 LIBS="$LCMS_LIBS $LIBS"
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028892$as_echo "yes" >&6; }
cristy71203402010-06-18 13:12:03 +000028893 have_lcms='yes'
28894 fi
cristy3ed852e2009-09-05 21:47:34 +000028895 else
cristy71203402010-06-18 13:12:03 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo "no" >&6; }
28898 fi
28899fi
cristy71203402010-06-18 13:12:03 +000028900
cristy73bd4a52010-10-05 11:24:23 +000028901 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28902 LCMS_DELEGATE_TRUE=
28903 LCMS_DELEGATE_FALSE='#'
28904else
28905 LCMS_DELEGATE_TRUE='#'
28906 LCMS_DELEGATE_FALSE=
28907fi
28908
cristy71203402010-06-18 13:12:03 +000028909if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28910
28911$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28912
28913fi
28914
cristy3ed852e2009-09-05 21:47:34 +000028915
28916
28917
28918#
28919# Check for the LQR (Liquid Rescale) delegate library.
28920#
28921
28922# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000028923if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028924 withval=$with_lqr; with_lqr=$withval
28925else
28926 with_lqr='yes'
28927fi
28928
28929
28930if test "$with_lqr" != 'yes'; then
28931 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28932fi
28933
28934have_lqr='no'
28935LQR_CFLAGS=""
28936LQR_LIBS=""
28937LQR_PKG=""
28938if test "x$with_lqr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000028939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000028940$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000028941
28942pkg_failed=no
28943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28944$as_echo_n "checking for LQR... " >&6; }
28945
28946if test -n "$LQR_CFLAGS"; then
28947 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28948 elif test -n "$PKG_CONFIG"; then
28949 if test -n "$PKG_CONFIG" && \
28950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28951 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28952 ac_status=$?
28953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28954 test $ac_status = 0; }; then
28955 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28956else
28957 pkg_failed=yes
28958fi
28959 else
28960 pkg_failed=untried
28961fi
28962if test -n "$LQR_LIBS"; then
28963 pkg_cv_LQR_LIBS="$LQR_LIBS"
28964 elif test -n "$PKG_CONFIG"; then
28965 if test -n "$PKG_CONFIG" && \
28966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28967 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28968 ac_status=$?
28969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28970 test $ac_status = 0; }; then
28971 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28972else
28973 pkg_failed=yes
28974fi
28975 else
28976 pkg_failed=untried
28977fi
28978
28979
28980
28981if test $pkg_failed = yes; then
28982
28983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28984 _pkg_short_errors_supported=yes
28985else
28986 _pkg_short_errors_supported=no
28987fi
28988 if test $_pkg_short_errors_supported = yes; then
28989 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28990 else
28991 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28992 fi
28993 # Put the nasty error message in config.log where it belongs
28994 echo "$LQR_PKG_ERRORS" >&5
28995
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28997$as_echo "no" >&6; }
28998 have_lqr=no
28999elif test $pkg_failed = untried; then
29000 have_lqr=no
29001else
29002 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29003 LQR_LIBS=$pkg_cv_LQR_LIBS
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29005$as_echo "yes" >&6; }
29006 have_lqr=yes
29007fi
cristy8b350f62009-11-15 23:12:43 +000029008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029009$as_echo "" >&6; }
29010fi
29011
29012if test "$have_lqr" = 'yes'; then
29013
cristy8b350f62009-11-15 23:12:43 +000029014$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029015
29016 CFLAGS="$LQR_CFLAGS $CFLAGS"
29017fi
29018
cristy73bd4a52010-10-05 11:24:23 +000029019 if test "$have_lqr" = 'yes'; then
29020 LQR_DELEGATE_TRUE=
29021 LQR_DELEGATE_FALSE='#'
29022else
29023 LQR_DELEGATE_TRUE='#'
29024 LQR_DELEGATE_FALSE=
29025fi
29026
cristy3ed852e2009-09-05 21:47:34 +000029027
29028
29029
29030
cristyfbb0ef02010-12-19 02:32:11 +000029031# Disable LZMA (lzma library)
29032
29033# Check whether --with-lzma was given.
29034if test "${with_lzma+set}" = set; then :
29035 withval=$with_lzma; with_lzma=$withval
29036else
29037 with_lzma='yes'
29038fi
29039
29040if test "$with_lzma" != 'yes' ; then
29041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29042fi
29043
29044#
29045# Check for LZMA
29046#
29047have_lzma='no'
29048LZMA_LIBS=''
29049if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29051$as_echo "-------------------------------------------------------------" >&6; }
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29053$as_echo_n "checking for LZMA... " >&6; }
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29055$as_echo "" >&6; }
29056 failed=0
29057 passed=0
29058 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029059if test "x$ac_cv_header_lzma_h" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029060 passed=`expr $passed + 1`
29061else
29062 failed=`expr $failed + 1`
29063fi
29064
29065
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29067$as_echo_n "checking for lzma_code in -llzma... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029068if ${ac_cv_lib_lzma_lzma_code+:} false; then :
cristyfbb0ef02010-12-19 02:32:11 +000029069 $as_echo_n "(cached) " >&6
29070else
29071 ac_check_lib_save_LIBS=$LIBS
29072LIBS="-llzma $LIBS"
29073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29074/* end confdefs.h. */
29075
29076/* Override any GCC internal prototype to avoid an error.
29077 Use char because int might match the return type of a GCC
29078 builtin and then its argument prototype would still apply. */
29079#ifdef __cplusplus
29080extern "C"
29081#endif
29082char lzma_code ();
29083int
29084main ()
29085{
29086return lzma_code ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091if ac_fn_c_try_link "$LINENO"; then :
29092 ac_cv_lib_lzma_lzma_code=yes
29093else
29094 ac_cv_lib_lzma_lzma_code=no
29095fi
29096rm -f core conftest.err conftest.$ac_objext \
29097 conftest$ac_exeext conftest.$ac_ext
29098LIBS=$ac_check_lib_save_LIBS
29099fi
29100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29101$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
cristyda16f162011-02-19 23:52:17 +000029102if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
cristyfbb0ef02010-12-19 02:32:11 +000029103 passed=`expr $passed + 1`
29104else
29105 failed=`expr $failed + 1`
29106fi
29107
29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29109$as_echo_n "checking if LZMA package is complete... " >&6; }
29110 if test $passed -gt 0; then
29111 if test $failed -gt 0; then
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29113$as_echo "no -- some components failed test" >&6; }
29114 have_lzma='no (failed tests)'
29115 else
29116 LZMA_LIBS='-llzma'
29117 LIBS="$LZMA_LIBS $LIBS"
29118
29119$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29120
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29122$as_echo "yes" >&6; }
29123 have_lzma='yes'
29124 fi
29125 else
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29127$as_echo "no" >&6; }
29128 fi
29129fi
29130 if test "$have_lzma" = 'yes'; then
29131 LZMA_DELEGATE_TRUE=
29132 LZMA_DELEGATE_FALSE='#'
29133else
29134 LZMA_DELEGATE_TRUE='#'
29135 LZMA_DELEGATE_FALSE=
29136fi
29137
29138
29139
29140
cristy3ed852e2009-09-05 21:47:34 +000029141#
29142# Check for the OpenEXR delegate library.
29143#
29144
29145# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000029146if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029147 withval=$with_openexr; with_openexr=$withval
29148else
29149 with_openexr='yes'
29150fi
29151
29152
29153if test "$with_openexr" != 'yes'; then
29154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29155fi
29156
29157have_openexr='no'
29158OPENEXR_CFLAGS=""
29159OPENEXR_LIBS=""
29160OPENEXR_PKG=""
29161if test "x$with_openexr" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029163$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029164
29165pkg_failed=no
29166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29167$as_echo_n "checking for OPENEXR... " >&6; }
29168
29169if test -n "$OPENEXR_CFLAGS"; then
29170 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29171 elif test -n "$PKG_CONFIG"; then
29172 if test -n "$PKG_CONFIG" && \
29173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29174 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29175 ac_status=$?
29176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29177 test $ac_status = 0; }; then
29178 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29179else
29180 pkg_failed=yes
29181fi
29182 else
29183 pkg_failed=untried
29184fi
29185if test -n "$OPENEXR_LIBS"; then
29186 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29187 elif test -n "$PKG_CONFIG"; then
29188 if test -n "$PKG_CONFIG" && \
29189 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29190 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29191 ac_status=$?
29192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29193 test $ac_status = 0; }; then
29194 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29195else
29196 pkg_failed=yes
29197fi
29198 else
29199 pkg_failed=untried
29200fi
29201
29202
29203
29204if test $pkg_failed = yes; then
29205
29206if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29207 _pkg_short_errors_supported=yes
29208else
29209 _pkg_short_errors_supported=no
29210fi
29211 if test $_pkg_short_errors_supported = yes; then
29212 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29213 else
29214 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29215 fi
29216 # Put the nasty error message in config.log where it belongs
29217 echo "$OPENEXR_PKG_ERRORS" >&5
29218
29219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29220$as_echo "no" >&6; }
29221 have_openexr=no
29222elif test $pkg_failed = untried; then
29223 have_openexr=no
29224else
29225 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29226 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29228$as_echo "yes" >&6; }
29229 have_openexr=yes
29230fi
cristy8b350f62009-11-15 23:12:43 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo "" >&6; }
29233fi
29234
29235if test "$have_openexr" = 'yes'; then
29236
cristy8b350f62009-11-15 23:12:43 +000029237$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029238
29239 if test "$with_modules" = 'no'; then
29240 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29241 fi
29242fi
29243
cristy73bd4a52010-10-05 11:24:23 +000029244 if test "$have_openexr" = 'yes'; then
29245 OPENEXR_DELEGATE_TRUE=
29246 OPENEXR_DELEGATE_FALSE='#'
29247else
29248 OPENEXR_DELEGATE_TRUE='#'
29249 OPENEXR_DELEGATE_FALSE=
29250fi
29251
cristy3ed852e2009-09-05 21:47:34 +000029252
29253
29254
29255
29256#
29257# Check for PNG delegate library.
29258#
29259
29260# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000029261if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029262 withval=$with_png; with_png=$withval
29263else
29264 with_png='yes'
29265fi
29266
29267
29268if test "$with_png" != 'yes'; then
29269 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29270fi
29271
29272have_png='no'
29273PNG_LIBS=''
29274if test "$with_png" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029276$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029278$as_echo_n "checking for PNG... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029280$as_echo "" >&6; }
29281 failed=0
29282 passed=0
cristy8b350f62009-11-15 23:12:43 +000029283 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029284if test "x$ac_cv_header_png_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029285 passed=`expr $passed + 1`
29286else
29287 failed=`expr $failed + 1`
29288fi
29289
29290
cristy8b350f62009-11-15 23:12:43 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
cristy3ed852e2009-09-05 21:47:34 +000029292$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029293if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029294 $as_echo_n "(cached) " >&6
29295else
29296 ac_check_lib_save_LIBS=$LIBS
29297LIBS="-lpng $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029299/* end confdefs.h. */
29300
29301/* Override any GCC internal prototype to avoid an error.
29302 Use char because int might match the return type of a GCC
29303 builtin and then its argument prototype would still apply. */
29304#ifdef __cplusplus
29305extern "C"
29306#endif
29307char png_get_io_ptr ();
29308int
29309main ()
29310{
29311return png_get_io_ptr ();
29312 ;
29313 return 0;
29314}
29315_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029316if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029317 ac_cv_lib_png_png_get_io_ptr=yes
29318else
cristy8b350f62009-11-15 23:12:43 +000029319 ac_cv_lib_png_png_get_io_ptr=no
cristy3ed852e2009-09-05 21:47:34 +000029320fi
cristy8b350f62009-11-15 23:12:43 +000029321rm -f core conftest.err conftest.$ac_objext \
29322 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029323LIBS=$ac_check_lib_save_LIBS
29324fi
cristy8b350f62009-11-15 23:12:43 +000029325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
cristy3ed852e2009-09-05 21:47:34 +000029326$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
cristyda16f162011-02-19 23:52:17 +000029327if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029328 passed=`expr $passed + 1`
29329else
29330 failed=`expr $failed + 1`
29331fi
29332
cristy8b350f62009-11-15 23:12:43 +000029333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo_n "checking if PNG package is complete... " >&6; }
29335 if test $passed -gt 0; then
29336 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029338$as_echo "no -- some components failed test" >&6; }
29339 have_png='no (failed tests)'
29340 else
29341 PNG_LIBS='-lpng'
29342 LIBS="$PNG_LIBS $LIBS"
29343
cristy8b350f62009-11-15 23:12:43 +000029344$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029345
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo "yes" >&6; }
29348 have_png='yes'
29349 fi
29350 else
cristy8b350f62009-11-15 23:12:43 +000029351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029352$as_echo "no" >&6; }
29353 fi
29354fi
cristy73bd4a52010-10-05 11:24:23 +000029355 if test "$have_png" = 'yes'; then
29356 PNG_DELEGATE_TRUE=
29357 PNG_DELEGATE_FALSE='#'
29358else
29359 PNG_DELEGATE_TRUE='#'
29360 PNG_DELEGATE_FALSE=
29361fi
29362
cristy3ed852e2009-09-05 21:47:34 +000029363
29364
29365
29366#
29367# Check for RSVG delegate library.
29368#
29369
29370# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000029371if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029372 withval=$with_rsvg; with_rsvg=$withval
29373else
29374 with_rsvg=$have_x
29375fi
29376
29377
29378if test "$with_rsvg" != 'yes'; then
29379 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29380fi
29381
29382have_rsvg='no'
29383have_cairo='no'
29384RSVG_CFLAGS=""
29385RSVG_LIBS=""
29386RSVG_PKG=""
29387if test "x$with_rsvg" = "xyes"; then
cristy8b350f62009-11-15 23:12:43 +000029388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029389$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029390
29391pkg_failed=no
29392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29393$as_echo_n "checking for RSVG... " >&6; }
29394
29395if test -n "$RSVG_CFLAGS"; then
29396 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29397 elif test -n "$PKG_CONFIG"; then
29398 if test -n "$PKG_CONFIG" && \
29399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29400 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29401 ac_status=$?
29402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29403 test $ac_status = 0; }; then
29404 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29405else
29406 pkg_failed=yes
29407fi
29408 else
29409 pkg_failed=untried
29410fi
29411if test -n "$RSVG_LIBS"; then
29412 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29413 elif test -n "$PKG_CONFIG"; then
29414 if test -n "$PKG_CONFIG" && \
29415 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29416 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29417 ac_status=$?
29418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29419 test $ac_status = 0; }; then
29420 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29421else
29422 pkg_failed=yes
29423fi
29424 else
29425 pkg_failed=untried
29426fi
29427
29428
29429
29430if test $pkg_failed = yes; then
29431
29432if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29433 _pkg_short_errors_supported=yes
29434else
29435 _pkg_short_errors_supported=no
29436fi
29437 if test $_pkg_short_errors_supported = yes; then
29438 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29439 else
29440 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29441 fi
29442 # Put the nasty error message in config.log where it belongs
29443 echo "$RSVG_PKG_ERRORS" >&5
29444
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29446$as_echo "no" >&6; }
29447 have_rsvg=no
29448elif test $pkg_failed = untried; then
29449 have_rsvg=no
29450else
29451 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29452 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29454$as_echo "yes" >&6; }
29455 have_rsvg=yes
29456fi
cristy8b350f62009-11-15 23:12:43 +000029457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029458$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029459
29460pkg_failed=no
29461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29462$as_echo_n "checking for CAIRO_SVG... " >&6; }
29463
29464if test -n "$CAIRO_SVG_CFLAGS"; then
29465 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29466 elif test -n "$PKG_CONFIG"; then
29467 if test -n "$PKG_CONFIG" && \
29468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29469 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29470 ac_status=$?
29471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29472 test $ac_status = 0; }; then
29473 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29474else
29475 pkg_failed=yes
29476fi
29477 else
29478 pkg_failed=untried
29479fi
29480if test -n "$CAIRO_SVG_LIBS"; then
29481 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29482 elif test -n "$PKG_CONFIG"; then
29483 if test -n "$PKG_CONFIG" && \
29484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29485 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29486 ac_status=$?
29487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488 test $ac_status = 0; }; then
29489 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29490else
29491 pkg_failed=yes
29492fi
29493 else
29494 pkg_failed=untried
29495fi
29496
29497
29498
29499if test $pkg_failed = yes; then
29500
29501if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29502 _pkg_short_errors_supported=yes
29503else
29504 _pkg_short_errors_supported=no
29505fi
29506 if test $_pkg_short_errors_supported = yes; then
29507 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29508 else
29509 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29510 fi
29511 # Put the nasty error message in config.log where it belongs
29512 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29513
29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29515$as_echo "no" >&6; }
29516 have_cairo=no
29517elif test $pkg_failed = untried; then
29518 have_cairo=no
29519else
29520 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29521 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29523$as_echo "yes" >&6; }
29524 have_cairo=yes
29525fi
cristy8b350f62009-11-15 23:12:43 +000029526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029527$as_echo "" >&6; }
29528fi
29529
29530if test "$have_rsvg" = 'yes'; then
29531
cristy8b350f62009-11-15 23:12:43 +000029532$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029533
29534 if test "$with_modules" = 'no'; then
29535 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29536 fi
29537fi
29538
29539if test "$have_cairo" = 'yes'; then
29540
cristy8b350f62009-11-15 23:12:43 +000029541$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029542
29543 if test "$with_modules" = 'no'; then
29544 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29545 fi
29546fi
29547
cristy73bd4a52010-10-05 11:24:23 +000029548 if test "$have_rsvg" = 'yes'; then
29549 RSVG_DELEGATE_TRUE=
29550 RSVG_DELEGATE_FALSE='#'
29551else
29552 RSVG_DELEGATE_TRUE='#'
29553 RSVG_DELEGATE_FALSE=
29554fi
29555
29556 if test "$have_cairo" = 'yes'; then
29557 CAIRO_DELEGATE_TRUE=
29558 CAIRO_DELEGATE_FALSE='#'
29559else
29560 CAIRO_DELEGATE_TRUE='#'
29561 CAIRO_DELEGATE_FALSE=
29562fi
29563
cristy3ed852e2009-09-05 21:47:34 +000029564
29565
29566
29567
29568#
29569# Check for TIFF delegate library.
29570#
29571
29572# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000029573if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029574 withval=$with_tiff; with_tiff=$withval
29575else
29576 with_tiff='yes'
29577fi
29578
29579
29580if test "$with_tiff" != 'yes'; then
29581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29582fi
29583
29584have_tiff='no'
29585TIFF_LIBS=''
29586if test "$with_tiff" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029588$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029590$as_echo_n "checking for TIFF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029592$as_echo "" >&6; }
29593 failed=0
29594 passed=0
cristy8b350f62009-11-15 23:12:43 +000029595 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029596if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029597 passed=`expr $passed + 1`
29598else
29599 failed=`expr $failed + 1`
29600fi
29601
29602
cristy8b350f62009-11-15 23:12:43 +000029603 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029604if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029605 passed=`expr $passed + 1`
29606else
29607 failed=`expr $failed + 1`
29608fi
29609
29610
cristy8b350f62009-11-15 23:12:43 +000029611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029612$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029613if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029614 $as_echo_n "(cached) " >&6
29615else
29616 ac_check_lib_save_LIBS=$LIBS
29617LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029619/* end confdefs.h. */
29620
29621/* Override any GCC internal prototype to avoid an error.
29622 Use char because int might match the return type of a GCC
29623 builtin and then its argument prototype would still apply. */
29624#ifdef __cplusplus
29625extern "C"
29626#endif
29627char TIFFOpen ();
29628int
29629main ()
29630{
29631return TIFFOpen ();
29632 ;
29633 return 0;
29634}
29635_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029636if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029637 ac_cv_lib_tiff_TIFFOpen=yes
29638else
cristy8b350f62009-11-15 23:12:43 +000029639 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029640fi
cristy8b350f62009-11-15 23:12:43 +000029641rm -f core conftest.err conftest.$ac_objext \
29642 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029643LIBS=$ac_check_lib_save_LIBS
29644fi
cristy8b350f62009-11-15 23:12:43 +000029645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029646$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029647if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029648 passed=`expr $passed + 1`
29649else
29650 failed=`expr $failed + 1`
29651fi
29652
cristy8b350f62009-11-15 23:12:43 +000029653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029654$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029655if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029656 $as_echo_n "(cached) " >&6
29657else
29658 ac_check_lib_save_LIBS=$LIBS
29659LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029661/* end confdefs.h. */
29662
29663/* Override any GCC internal prototype to avoid an error.
29664 Use char because int might match the return type of a GCC
29665 builtin and then its argument prototype would still apply. */
29666#ifdef __cplusplus
29667extern "C"
29668#endif
29669char TIFFClientOpen ();
29670int
29671main ()
29672{
29673return TIFFClientOpen ();
29674 ;
29675 return 0;
29676}
29677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029679 ac_cv_lib_tiff_TIFFClientOpen=yes
29680else
cristy8b350f62009-11-15 23:12:43 +000029681 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000029682fi
cristy8b350f62009-11-15 23:12:43 +000029683rm -f core conftest.err conftest.$ac_objext \
29684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029685LIBS=$ac_check_lib_save_LIBS
29686fi
cristy8b350f62009-11-15 23:12:43 +000029687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029688$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029689if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029690 passed=`expr $passed + 1`
29691else
29692 failed=`expr $failed + 1`
29693fi
29694
cristyb97f1002010-07-26 14:02:57 +000029695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29696$as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029697if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
cristyb97f1002010-07-26 14:02:57 +000029698 $as_echo_n "(cached) " >&6
29699else
29700 ac_check_lib_save_LIBS=$LIBS
29701LIBS="-ltiff $LIBS"
29702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29703/* end confdefs.h. */
29704
29705/* Override any GCC internal prototype to avoid an error.
29706 Use char because int might match the return type of a GCC
29707 builtin and then its argument prototype would still apply. */
29708#ifdef __cplusplus
29709extern "C"
29710#endif
29711char TIFFIsBigEndian ();
29712int
29713main ()
29714{
29715return TIFFIsBigEndian ();
29716 ;
29717 return 0;
29718}
29719_ACEOF
29720if ac_fn_c_try_link "$LINENO"; then :
29721 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29722else
29723 ac_cv_lib_tiff_TIFFIsBigEndian=no
29724fi
29725rm -f core conftest.err conftest.$ac_objext \
29726 conftest$ac_exeext conftest.$ac_ext
29727LIBS=$ac_check_lib_save_LIBS
29728fi
29729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29730$as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
cristyda16f162011-02-19 23:52:17 +000029731if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
cristyb97f1002010-07-26 14:02:57 +000029732 passed=`expr $passed + 1`
29733else
29734 failed=`expr $failed + 1`
29735fi
29736
cristy8b350f62009-11-15 23:12:43 +000029737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029738$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029739if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029740 $as_echo_n "(cached) " >&6
29741else
29742 ac_check_lib_save_LIBS=$LIBS
29743LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029745/* end confdefs.h. */
29746
29747/* Override any GCC internal prototype to avoid an error.
29748 Use char because int might match the return type of a GCC
29749 builtin and then its argument prototype would still apply. */
29750#ifdef __cplusplus
29751extern "C"
29752#endif
29753char TIFFIsByteSwapped ();
29754int
29755main ()
29756{
29757return TIFFIsByteSwapped ();
29758 ;
29759 return 0;
29760}
29761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029762if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029763 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29764else
cristy8b350f62009-11-15 23:12:43 +000029765 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000029766fi
cristy8b350f62009-11-15 23:12:43 +000029767rm -f core conftest.err conftest.$ac_objext \
29768 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029769LIBS=$ac_check_lib_save_LIBS
29770fi
cristy8b350f62009-11-15 23:12:43 +000029771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000029772$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000029773if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029774 passed=`expr $passed + 1`
29775else
29776 failed=`expr $failed + 1`
29777fi
29778
cristy8b350f62009-11-15 23:12:43 +000029779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029780$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029781if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029782 $as_echo_n "(cached) " >&6
29783else
29784 ac_check_lib_save_LIBS=$LIBS
29785LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029787/* end confdefs.h. */
29788
29789/* Override any GCC internal prototype to avoid an error.
29790 Use char because int might match the return type of a GCC
29791 builtin and then its argument prototype would still apply. */
29792#ifdef __cplusplus
29793extern "C"
29794#endif
29795char TIFFReadRGBATile ();
29796int
29797main ()
29798{
29799return TIFFReadRGBATile ();
29800 ;
29801 return 0;
29802}
29803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029804if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029805 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29806else
cristy8b350f62009-11-15 23:12:43 +000029807 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000029808fi
cristy8b350f62009-11-15 23:12:43 +000029809rm -f core conftest.err conftest.$ac_objext \
29810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029811LIBS=$ac_check_lib_save_LIBS
29812fi
cristy8b350f62009-11-15 23:12:43 +000029813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000029814$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000029815if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 passed=`expr $passed + 1`
29817else
29818 failed=`expr $failed + 1`
29819fi
29820
cristy8b350f62009-11-15 23:12:43 +000029821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000029822$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029823if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029824 $as_echo_n "(cached) " >&6
29825else
29826 ac_check_lib_save_LIBS=$LIBS
29827LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029829/* end confdefs.h. */
29830
29831/* Override any GCC internal prototype to avoid an error.
29832 Use char because int might match the return type of a GCC
29833 builtin and then its argument prototype would still apply. */
29834#ifdef __cplusplus
29835extern "C"
29836#endif
29837char TIFFReadRGBAStrip ();
29838int
29839main ()
29840{
29841return TIFFReadRGBAStrip ();
29842 ;
29843 return 0;
29844}
29845_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029846if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029847 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29848else
cristy8b350f62009-11-15 23:12:43 +000029849 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000029850fi
cristy8b350f62009-11-15 23:12:43 +000029851rm -f core conftest.err conftest.$ac_objext \
29852 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029853LIBS=$ac_check_lib_save_LIBS
29854fi
cristy8b350f62009-11-15 23:12:43 +000029855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000029856$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000029857if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029858 passed=`expr $passed + 1`
29859else
29860 failed=`expr $failed + 1`
29861fi
29862
cristy8b350f62009-11-15 23:12:43 +000029863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029864$as_echo_n "checking if TIFF package is complete... " >&6; }
29865 if test $passed -gt 0; then
29866 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000029868$as_echo "no -- some components failed test" >&6; }
29869 have_tiff='no (failed tests)'
29870 else
29871 TIFF_LIBS='-ltiff'
29872 LIBS="$TIFF_LIBS $LIBS"
29873
cristy8b350f62009-11-15 23:12:43 +000029874$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029875
cristy8b350f62009-11-15 23:12:43 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029877$as_echo "yes" >&6; }
29878 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000029879 for ac_header in tiffconf.h
29880do :
29881 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029882if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029883 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029884#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000029885_ACEOF
29886
29887fi
29888
29889done
29890
cristy8b350f62009-11-15 23:12:43 +000029891 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3ed852e2009-09-05 21:47:34 +000029892 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29893 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000029894do :
29895 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29896ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000029897if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000029898 cat >>confdefs.h <<_ACEOF
29899#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29900_ACEOF
29901
29902fi
29903done
29904
29905 fi
29906 else
cristy8b350f62009-11-15 23:12:43 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029908$as_echo "no" >&6; }
29909 fi
29910fi
cristy73bd4a52010-10-05 11:24:23 +000029911 if test "$have_tiff" = 'yes'; then
29912 TIFF_DELEGATE_TRUE=
29913 TIFF_DELEGATE_FALSE='#'
29914else
29915 TIFF_DELEGATE_TRUE='#'
29916 TIFF_DELEGATE_FALSE=
29917fi
29918
cristy3ed852e2009-09-05 21:47:34 +000029919
29920
29921
29922#
29923# Set Windows font directory.
29924#
29925
29926# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029927if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029928 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29929else
29930 with_windows_font_dir=''
29931fi
29932
29933if test "$with_windows_font_dir" != '' ; then
29934 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29935fi
29936
29937
29938#
29939# Check for WMF delegate library.
29940#
29941
29942# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000029943if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029944 withval=$with_wmf; with_wmf=$withval
29945else
cristy8d63d1d2010-01-06 20:38:37 +000029946 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000029947fi
29948
29949
29950if test "$with_wmf" != 'yes'; then
29951 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29952fi
29953
29954have_wmf='no'
29955WMF_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000029956if test "$with_wmf" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000029958$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000029960$as_echo_n "checking for WMF... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000029961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000029962$as_echo "" >&6; }
cristy735e8942010-04-02 20:32:57 +000029963 failed=0
29964 passed=0
29965 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029966if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000029967 passed=`expr $passed + 1`
29968else
29969 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029970fi
29971
29972
cristy735e8942010-04-02 20:32:57 +000029973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29974$as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029975if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029976 $as_echo_n "(cached) " >&6
29977else
29978 ac_check_lib_save_LIBS=$LIBS
cristy22652362010-04-02 23:22:31 +000029979LIBS="-lwmf "-lwmflite" $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029981/* end confdefs.h. */
29982
29983/* Override any GCC internal prototype to avoid an error.
29984 Use char because int might match the return type of a GCC
29985 builtin and then its argument prototype would still apply. */
29986#ifdef __cplusplus
29987extern "C"
29988#endif
cristy735e8942010-04-02 20:32:57 +000029989char wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029990int
29991main ()
29992{
cristy735e8942010-04-02 20:32:57 +000029993return wmf_eps_function ();
cristy3ed852e2009-09-05 21:47:34 +000029994 ;
29995 return 0;
29996}
29997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029998if ac_fn_c_try_link "$LINENO"; then :
cristy735e8942010-04-02 20:32:57 +000029999 ac_cv_lib_wmf_wmf_eps_function=yes
cristy3ed852e2009-09-05 21:47:34 +000030000else
cristy735e8942010-04-02 20:32:57 +000030001 ac_cv_lib_wmf_wmf_eps_function=no
cristy3ed852e2009-09-05 21:47:34 +000030002fi
cristy8b350f62009-11-15 23:12:43 +000030003rm -f core conftest.err conftest.$ac_objext \
30004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030005LIBS=$ac_check_lib_save_LIBS
30006fi
cristy735e8942010-04-02 20:32:57 +000030007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30008$as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
cristyda16f162011-02-19 23:52:17 +000030009if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
cristy735e8942010-04-02 20:32:57 +000030010 passed=`expr $passed + 1`
30011else
30012 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030013fi
30014
cristy735e8942010-04-02 20:32:57 +000030015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30016$as_echo_n "checking if WMF package is complete... " >&6; }
30017 if test $passed -gt 0; then
30018 if test $failed -gt 0; then
30019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30020$as_echo "no -- some components failed test" >&6; }
30021 have_wmf='no (failed tests)'
cristy3ed852e2009-09-05 21:47:34 +000030022 else
cristy735e8942010-04-02 20:32:57 +000030023 WMF_LIBS='-lwmf -lwmflite'
30024 LIBS="$WMF_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030025
cristy8b350f62009-11-15 23:12:43 +000030026$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030027
cristy735e8942010-04-02 20:32:57 +000030028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030029$as_echo "yes" >&6; }
cristy735e8942010-04-02 20:32:57 +000030030 have_wmf='yes'
30031 fi
cristy3ed852e2009-09-05 21:47:34 +000030032 else
cristy8b350f62009-11-15 23:12:43 +000030033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030034$as_echo "no" >&6; }
30035 fi
30036fi
cristy73bd4a52010-10-05 11:24:23 +000030037 if test "$have_wmf" = 'yes'; then
30038 WMF_DELEGATE_TRUE=
30039 WMF_DELEGATE_FALSE='#'
30040else
30041 WMF_DELEGATE_TRUE='#'
30042 WMF_DELEGATE_FALSE=
30043fi
30044
cristy3ed852e2009-09-05 21:47:34 +000030045
30046
30047
30048
cristy735e8942010-04-02 20:32:57 +000030049
cristy3ed852e2009-09-05 21:47:34 +000030050#
30051# Check for XML delegate library.
30052#
30053
30054# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000030055if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030056 withval=$with_xml; with_xml=$withval
30057else
30058 with_xml=$have_x
30059fi
30060
30061
30062if test "$with_xml" != 'yes' ; then
30063 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30064fi
30065
30066have_xml='no'
30067XML_LIBS=''
30068if test "$with_xml" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030070$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo_n "checking for XML... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030074$as_echo "" >&6; }
30075 PERSIST_LDFLAGS=$LDFLAGS
30076 PERSIST_CPPFLAGS=$CPPFLAGS
30077 xml2_config=''
30078 for ac_prog in xml2-config
30079do
30080 # Extract the first word of "$ac_prog", so it can be a program name with args.
30081set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030083$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030084if ${ac_cv_prog_xml2_config+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030085 $as_echo_n "(cached) " >&6
30086else
30087 if test -n "$xml2_config"; then
30088 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30089else
30090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30091for as_dir in $PATH
30092do
30093 IFS=$as_save_IFS
30094 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030095 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30097 ac_cv_prog_xml2_config="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000030098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030099 break 2
30100 fi
30101done
cristy8b350f62009-11-15 23:12:43 +000030102 done
cristy3ed852e2009-09-05 21:47:34 +000030103IFS=$as_save_IFS
30104
30105fi
30106fi
30107xml2_config=$ac_cv_prog_xml2_config
30108if test -n "$xml2_config"; then
cristy8b350f62009-11-15 23:12:43 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
cristy3ed852e2009-09-05 21:47:34 +000030110$as_echo "$xml2_config" >&6; }
30111else
cristy8b350f62009-11-15 23:12:43 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo "no" >&6; }
30114fi
30115
30116
30117 test -n "$xml2_config" && break
30118done
30119 if test -n "$xml2_config"; then
30120 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30121 # the shared library installed under /usr/lib, whereas the package
30122 # installs itself under $prefix/libxml and $prefix/lib.
30123 xml2_prefix=`xml2-config --prefix`
30124 if test -d "${xml2_prefix}/include/libxml2"; then
30125 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30126 fi
30127 if test "${xml2_prefix}" != '/usr'; then
30128 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30129 fi
30130 fi
30131 failed=0
30132 passed=0
cristy8b350f62009-11-15 23:12:43 +000030133 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030134if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030135 passed=`expr $passed + 1`
30136else
30137 failed=`expr $failed + 1`
30138fi
30139
30140
cristy8b350f62009-11-15 23:12:43 +000030141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030142$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030143if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 $as_echo_n "(cached) " >&6
30145else
30146 ac_check_lib_save_LIBS=$LIBS
30147LIBS="-lxml2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030149/* end confdefs.h. */
30150
30151/* Override any GCC internal prototype to avoid an error.
30152 Use char because int might match the return type of a GCC
30153 builtin and then its argument prototype would still apply. */
30154#ifdef __cplusplus
30155extern "C"
30156#endif
30157char xmlParseExternalEntity ();
30158int
30159main ()
30160{
30161return xmlParseExternalEntity ();
30162 ;
30163 return 0;
30164}
30165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030166if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030167 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30168else
cristy8b350f62009-11-15 23:12:43 +000030169 ac_cv_lib_xml2_xmlParseExternalEntity=no
cristy3ed852e2009-09-05 21:47:34 +000030170fi
cristy8b350f62009-11-15 23:12:43 +000030171rm -f core conftest.err conftest.$ac_objext \
30172 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030173LIBS=$ac_check_lib_save_LIBS
30174fi
cristy8b350f62009-11-15 23:12:43 +000030175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
cristy3ed852e2009-09-05 21:47:34 +000030176$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
cristyda16f162011-02-19 23:52:17 +000030177if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030178 passed=`expr $passed + 1`
30179else
30180 failed=`expr $failed + 1`
30181fi
30182
cristy8b350f62009-11-15 23:12:43 +000030183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030184$as_echo_n "checking if XML package is complete... " >&6; }
30185 if test $passed -gt 0; then
30186 if test $failed -gt 0; then
cristy8b350f62009-11-15 23:12:43 +000030187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
cristy3ed852e2009-09-05 21:47:34 +000030188$as_echo "no -- some components failed test" >&6; }
30189 have_xml='no (failed tests)'
30190 LDFLAGS="$PERSIST_LDFLAGS"
30191 CPPFLAGS="$PERSIST_CPPFLAGS"
30192 else
30193 XML_LIBS='-lxml2'
30194 LIBS="$XML_LIBS $LIBS"
30195
cristy8b350f62009-11-15 23:12:43 +000030196$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030197
cristy8b350f62009-11-15 23:12:43 +000030198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000030199$as_echo "yes" >&6; }
30200 have_xml='yes'
30201 fi
30202 else
cristy8b350f62009-11-15 23:12:43 +000030203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030204$as_echo "no" >&6; }
30205 fi
30206fi
cristy73bd4a52010-10-05 11:24:23 +000030207 if test "$have_xml" = 'yes'; then
30208 XML_DELEGATE_TRUE=
30209 XML_DELEGATE_FALSE='#'
30210else
30211 XML_DELEGATE_TRUE='#'
30212 XML_DELEGATE_FALSE=
30213fi
30214
cristy3ed852e2009-09-05 21:47:34 +000030215
30216
30217
30218# Substitute compiler name to build/link PerlMagick
30219#
30220
30221
30222#
30223# Configure install Paths
30224#
30225
30226# Subdirectory under lib to place ImageMagick lib files
30227LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30228
30229cat >>confdefs.h <<_ACEOF
30230#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30231_ACEOF
30232
30233
30234# Path to ImageMagick bin directory
30235EXECUTABLE_PATH="${BIN_DIR}"
30236DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30237case "${build_os}" in
30238 mingw* )
30239 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30240 ;;
30241esac
30242
30243cat >>confdefs.h <<_ACEOF
30244#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30245_ACEOF
30246
30247
30248
30249# Path to ImageMagick lib
30250LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30251DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30252case "${build_os}" in
30253 mingw* )
30254 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30255 ;;
30256esac
30257
30258cat >>confdefs.h <<_ACEOF
30259#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30260_ACEOF
30261
30262
30263
30264# Subdirectory under lib to place ImageMagick configuration files
30265CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30266
30267cat >>confdefs.h <<_ACEOF
30268#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30269_ACEOF
30270
30271CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30272DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30273case "${build_os}" in
30274 mingw* )
30275 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30276 ;;
30277esac
30278
30279cat >>confdefs.h <<_ACEOF
30280#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30281_ACEOF
30282
30283
30284
30285#
30286# Subdirectory under lib to place ImageMagick coder module files
30287CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30288
30289cat >>confdefs.h <<_ACEOF
30290#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30291_ACEOF
30292
30293CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30294DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30295case "${build_os}" in
30296 mingw* )
30297 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30298 ;;
30299esac
30300
30301cat >>confdefs.h <<_ACEOF
30302#define CODER_PATH "$DEFINE_CODER_PATH"
30303_ACEOF
30304
30305
30306
30307#
30308# Subdirectory under lib to place ImageMagick filter module files
30309FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30310
30311cat >>confdefs.h <<_ACEOF
30312#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30313_ACEOF
30314
30315FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30316DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30317case "${build_os}" in
30318 mingw* )
30319 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30320 ;;
30321esac
30322
30323cat >>confdefs.h <<_ACEOF
30324#define FILTER_PATH "$DEFINE_FILTER_PATH"
30325_ACEOF
30326
30327
30328
30329#
30330# Path to ImageMagick documentation files
30331DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30332DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
30333DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
30334case "${build_os}" in
30335 mingw* )
30336 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30337 ;;
30338esac
30339
30340cat >>confdefs.h <<_ACEOF
30341#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30342_ACEOF
30343
30344
30345
30346#
30347# Path to ImageMagick share files
30348SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30349SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30350DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30351case "${build_os}" in
30352 mingw* )
30353 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30354 ;;
30355esac
30356
30357cat >>confdefs.h <<_ACEOF
30358#define SHARE_PATH "$DEFINE_SHARE_PATH"
30359_ACEOF
30360
30361
30362
30363# Subdirectory under share to place ImageMagick configuration files
30364SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
30365
30366cat >>confdefs.h <<_ACEOF
30367#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30368_ACEOF
30369
30370SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30371DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30372case "${build_os}" in
30373 mingw* )
30374 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30375 ;;
30376esac
30377
30378cat >>confdefs.h <<_ACEOF
30379#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30380_ACEOF
30381
30382
30383
30384#
30385# program_transform_name is formed for use in a Makefile, so create a
30386# modified version for use in a shell script.
30387configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30388
30389# Default delegate definitions
cristy8b350f62009-11-15 23:12:43 +000030390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000030391$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000030394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000030395$as_echo "" >&6; }
30396AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000030397BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000030398BZIPDelegateDefault='bzip2'
30399BrowseDelegateDefault='xdg-open'
30400CGMDecodeDelegateDefault='ralcgm'
30401CatDelegateDefault='cat'
30402DNGDecodeDelegateDefault='ufraw-batch'
30403GVCDecodeDelegateDefault='dot'
30404DVIDecodeDelegateDefault='dvips'
30405EchoDelegateDefault='echo'
30406EditorDelegateDefault='xterm'
30407FIGDecodeDelegateDefault='fig2dev'
30408ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30409DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30410MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30411GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000030412HPGLDecodeDelegateDefault='hp2xx'
30413HTMLDecodeDelegateDefault='html2ps'
30414ILBMDecodeDelegateDefault='ilbmtoppm'
30415ILBMEncodeDelegateDefault='ppmtoilbm'
30416LPDelegateDefault='lp'
30417LPRDelegateDefault='lpr'
30418LZWDecodeDelegateDefault='uncompress'
30419LZWEncodeDelegateDefault='compress'
30420LaunchDelegateDefault='gimp'
30421MANDelegateDefault='groff'
30422MPEGDecodeDelegateDefault='ffmpeg'
30423MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000030424MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000030425MVDelegateDefault='mv'
30426PCLDelegateDefault='pcl6'
30427PGPDecodeDelegateDefault='pgpv'
30428POVDelegateDefault='povray'
30429if test "$native_win32_build" = 'yes'; then
30430 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000030431elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030432 PSDelegateDefault='gsc'
30433else
30434 PSDelegateDefault='gs'
30435fi
30436RLEEncodeDelegateDefault='rawtorle'
30437RMDelegateDefault='rm'
cristy4689cf02010-02-17 21:15:45 +000030438RSVGDecodeDelegateDefault='rsvg'
cristy3ed852e2009-09-05 21:47:34 +000030439SCANDecodeDelegateDefault='scanimage'
30440TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000030441UniconvertorDelegateDefault='uniconvertor'
cristy23f7a922010-10-11 00:27:48 +000030442WEBPDelegateDefault='webpconv'
cristy3ed852e2009-09-05 21:47:34 +000030443WMFDecodeDelegateDefault='wmf2eps'
30444WWWDecodeDelegateDefault='curl'
30445XPSDelegateDefault='gxps'
30446ZipDelegateDefault='gzip'
30447
30448# Search for delegates
30449# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30450set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030452$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030453if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030454 $as_echo_n "(cached) " >&6
30455else
30456 case $AutotraceDecodeDelegate in
30457 [\\/]* | ?:[\\/]*)
30458 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30459 ;;
30460 *)
30461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30462for as_dir in $PATH
30463do
30464 IFS=$as_save_IFS
30465 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030466 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30468 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030470 break 2
30471 fi
30472done
cristy8b350f62009-11-15 23:12:43 +000030473 done
cristy3ed852e2009-09-05 21:47:34 +000030474IFS=$as_save_IFS
30475
30476 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30477 ;;
30478esac
30479fi
30480AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30481if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030483$as_echo "$AutotraceDecodeDelegate" >&6; }
30484else
cristy8b350f62009-11-15 23:12:43 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486$as_echo "no" >&6; }
30487fi
30488
30489
cristy3ed852e2009-09-05 21:47:34 +000030490# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30491set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030493$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030494if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030495 $as_echo_n "(cached) " >&6
30496else
30497 case $BlenderDecodeDelegate in
30498 [\\/]* | ?:[\\/]*)
30499 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30500 ;;
30501 *)
30502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30503for as_dir in $PATH
30504do
30505 IFS=$as_save_IFS
30506 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30509 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030511 break 2
30512 fi
30513done
cristy8b350f62009-11-15 23:12:43 +000030514 done
cristy3ed852e2009-09-05 21:47:34 +000030515IFS=$as_save_IFS
30516
30517 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30518 ;;
30519esac
30520fi
30521BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30522if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030524$as_echo "$BlenderDecodeDelegate" >&6; }
30525else
cristy8b350f62009-11-15 23:12:43 +000030526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030527$as_echo "no" >&6; }
30528fi
30529
30530
30531# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30532set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030534$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030535if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030536 $as_echo_n "(cached) " >&6
30537else
30538 case $BZIPDelegate in
30539 [\\/]* | ?:[\\/]*)
30540 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30541 ;;
30542 *)
30543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30544for as_dir in $PATH
30545do
30546 IFS=$as_save_IFS
30547 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030548 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30550 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030552 break 2
30553 fi
30554done
cristy8b350f62009-11-15 23:12:43 +000030555 done
cristy3ed852e2009-09-05 21:47:34 +000030556IFS=$as_save_IFS
30557
30558 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30559 ;;
30560esac
30561fi
30562BZIPDelegate=$ac_cv_path_BZIPDelegate
30563if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030565$as_echo "$BZIPDelegate" >&6; }
30566else
cristy8b350f62009-11-15 23:12:43 +000030567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030568$as_echo "no" >&6; }
30569fi
30570
30571
30572# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30573set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030575$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030576if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030577 $as_echo_n "(cached) " >&6
30578else
30579 case $BrowseDelegate in
30580 [\\/]* | ?:[\\/]*)
30581 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30582 ;;
30583 *)
30584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30585for as_dir in $PATH
30586do
30587 IFS=$as_save_IFS
30588 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030589 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30591 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030593 break 2
30594 fi
30595done
cristy8b350f62009-11-15 23:12:43 +000030596 done
cristy3ed852e2009-09-05 21:47:34 +000030597IFS=$as_save_IFS
30598
30599 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30600 ;;
30601esac
30602fi
30603BrowseDelegate=$ac_cv_path_BrowseDelegate
30604if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030606$as_echo "$BrowseDelegate" >&6; }
30607else
cristy8b350f62009-11-15 23:12:43 +000030608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030609$as_echo "no" >&6; }
30610fi
30611
30612
30613# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30614set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030616$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030617if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030618 $as_echo_n "(cached) " >&6
30619else
30620 case $CGMDecodeDelegate in
30621 [\\/]* | ?:[\\/]*)
30622 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30623 ;;
30624 *)
30625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30626for as_dir in $PATH
30627do
30628 IFS=$as_save_IFS
30629 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030630 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30632 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030634 break 2
30635 fi
30636done
cristy8b350f62009-11-15 23:12:43 +000030637 done
cristy3ed852e2009-09-05 21:47:34 +000030638IFS=$as_save_IFS
30639
30640 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30641 ;;
30642esac
30643fi
30644CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30645if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030647$as_echo "$CGMDecodeDelegate" >&6; }
30648else
cristy8b350f62009-11-15 23:12:43 +000030649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030650$as_echo "no" >&6; }
30651fi
30652
30653
30654# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30655set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030657$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030658if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030659 $as_echo_n "(cached) " >&6
30660else
30661 case $CatDelegate in
30662 [\\/]* | ?:[\\/]*)
30663 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30664 ;;
30665 *)
30666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30667for as_dir in $PATH
30668do
30669 IFS=$as_save_IFS
30670 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030671 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30673 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030675 break 2
30676 fi
30677done
cristy8b350f62009-11-15 23:12:43 +000030678 done
cristy3ed852e2009-09-05 21:47:34 +000030679IFS=$as_save_IFS
30680
30681 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30682 ;;
30683esac
30684fi
30685CatDelegate=$ac_cv_path_CatDelegate
30686if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030688$as_echo "$CatDelegate" >&6; }
30689else
cristy8b350f62009-11-15 23:12:43 +000030690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030691$as_echo "no" >&6; }
30692fi
30693
30694
30695# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30696set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030699if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030700 $as_echo_n "(cached) " >&6
30701else
30702 case $DNGDecodeDelegate in
30703 [\\/]* | ?:[\\/]*)
30704 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30705 ;;
30706 *)
30707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30708for as_dir in $PATH
30709do
30710 IFS=$as_save_IFS
30711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030712 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30714 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030716 break 2
30717 fi
30718done
cristy8b350f62009-11-15 23:12:43 +000030719 done
cristy3ed852e2009-09-05 21:47:34 +000030720IFS=$as_save_IFS
30721
30722 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30723 ;;
30724esac
30725fi
30726DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30727if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030729$as_echo "$DNGDecodeDelegate" >&6; }
30730else
cristy8b350f62009-11-15 23:12:43 +000030731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030732$as_echo "no" >&6; }
30733fi
30734
30735
30736# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30737set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030739$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030740if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030741 $as_echo_n "(cached) " >&6
30742else
30743 case $GVCDecodeDelegate in
30744 [\\/]* | ?:[\\/]*)
30745 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30746 ;;
30747 *)
30748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30749for as_dir in $PATH
30750do
30751 IFS=$as_save_IFS
30752 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30755 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030757 break 2
30758 fi
30759done
cristy8b350f62009-11-15 23:12:43 +000030760 done
cristy3ed852e2009-09-05 21:47:34 +000030761IFS=$as_save_IFS
30762
30763 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30764 ;;
30765esac
30766fi
30767GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30768if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030770$as_echo "$GVCDecodeDelegate" >&6; }
30771else
cristy8b350f62009-11-15 23:12:43 +000030772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030773$as_echo "no" >&6; }
30774fi
30775
30776
30777# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30778set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030780$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030781if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030782 $as_echo_n "(cached) " >&6
30783else
30784 case $DVIDecodeDelegate in
30785 [\\/]* | ?:[\\/]*)
30786 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30787 ;;
30788 *)
30789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30790for as_dir in $PATH
30791do
30792 IFS=$as_save_IFS
30793 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030794 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30796 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030798 break 2
30799 fi
30800done
cristy8b350f62009-11-15 23:12:43 +000030801 done
cristy3ed852e2009-09-05 21:47:34 +000030802IFS=$as_save_IFS
30803
30804 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30805 ;;
30806esac
30807fi
30808DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30809if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030811$as_echo "$DVIDecodeDelegate" >&6; }
30812else
cristy8b350f62009-11-15 23:12:43 +000030813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030814$as_echo "no" >&6; }
30815fi
30816
30817
30818# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30819set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030822if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030823 $as_echo_n "(cached) " >&6
30824else
30825 case $EchoDelegate in
30826 [\\/]* | ?:[\\/]*)
30827 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30828 ;;
30829 *)
30830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30831for as_dir in $PATH
30832do
30833 IFS=$as_save_IFS
30834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30837 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030839 break 2
30840 fi
30841done
cristy8b350f62009-11-15 23:12:43 +000030842 done
cristy3ed852e2009-09-05 21:47:34 +000030843IFS=$as_save_IFS
30844
30845 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30846 ;;
30847esac
30848fi
30849EchoDelegate=$ac_cv_path_EchoDelegate
30850if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030852$as_echo "$EchoDelegate" >&6; }
30853else
cristy8b350f62009-11-15 23:12:43 +000030854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030855$as_echo "no" >&6; }
30856fi
30857
30858
30859# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30860set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030863if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030864 $as_echo_n "(cached) " >&6
30865else
30866 case $EditorDelegate in
30867 [\\/]* | ?:[\\/]*)
30868 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30869 ;;
30870 *)
30871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30872for as_dir in $PATH
30873do
30874 IFS=$as_save_IFS
30875 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030876 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30878 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030880 break 2
30881 fi
30882done
cristy8b350f62009-11-15 23:12:43 +000030883 done
cristy3ed852e2009-09-05 21:47:34 +000030884IFS=$as_save_IFS
30885
30886 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30887 ;;
30888esac
30889fi
30890EditorDelegate=$ac_cv_path_EditorDelegate
30891if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030893$as_echo "$EditorDelegate" >&6; }
30894else
cristy8b350f62009-11-15 23:12:43 +000030895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030896$as_echo "no" >&6; }
30897fi
30898
30899
30900# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30901set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030904if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030905 $as_echo_n "(cached) " >&6
30906else
30907 case $FIGDecodeDelegate in
30908 [\\/]* | ?:[\\/]*)
30909 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30910 ;;
30911 *)
30912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30913for as_dir in $PATH
30914do
30915 IFS=$as_save_IFS
30916 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30919 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030921 break 2
30922 fi
30923done
cristy8b350f62009-11-15 23:12:43 +000030924 done
cristy3ed852e2009-09-05 21:47:34 +000030925IFS=$as_save_IFS
30926
30927 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30928 ;;
30929esac
30930fi
30931FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30932if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030934$as_echo "$FIGDecodeDelegate" >&6; }
30935else
cristy8b350f62009-11-15 23:12:43 +000030936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030937$as_echo "no" >&6; }
30938fi
30939
30940
30941# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30942set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030944$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030945if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030946 $as_echo_n "(cached) " >&6
30947else
30948 case $ConvertDelegate in
30949 [\\/]* | ?:[\\/]*)
30950 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30951 ;;
30952 *)
30953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30954for as_dir in $PATH
30955do
30956 IFS=$as_save_IFS
30957 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030958 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000030959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30960 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000030961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030962 break 2
30963 fi
30964done
cristy8b350f62009-11-15 23:12:43 +000030965 done
cristy3ed852e2009-09-05 21:47:34 +000030966IFS=$as_save_IFS
30967
30968 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30969 ;;
30970esac
30971fi
30972ConvertDelegate=$ac_cv_path_ConvertDelegate
30973if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000030974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000030975$as_echo "$ConvertDelegate" >&6; }
30976else
cristy8b350f62009-11-15 23:12:43 +000030977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000030978$as_echo "no" >&6; }
30979fi
30980
30981
30982# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30983set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000030984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000030985$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030986if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030987 $as_echo_n "(cached) " >&6
30988else
30989 case $DisplayDelegate in
30990 [\\/]* | ?:[\\/]*)
30991 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30992 ;;
30993 *)
30994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30995for as_dir in $PATH
30996do
30997 IFS=$as_save_IFS
30998 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000030999 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31001 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031003 break 2
31004 fi
31005done
cristy8b350f62009-11-15 23:12:43 +000031006 done
cristy3ed852e2009-09-05 21:47:34 +000031007IFS=$as_save_IFS
31008
31009 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31010 ;;
31011esac
31012fi
31013DisplayDelegate=$ac_cv_path_DisplayDelegate
31014if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031016$as_echo "$DisplayDelegate" >&6; }
31017else
cristy8b350f62009-11-15 23:12:43 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031019$as_echo "no" >&6; }
31020fi
31021
31022
31023# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31024set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031027if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031028 $as_echo_n "(cached) " >&6
31029else
31030 case $MogrifyDelegate in
31031 [\\/]* | ?:[\\/]*)
31032 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31033 ;;
31034 *)
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036for as_dir in $PATH
31037do
31038 IFS=$as_save_IFS
31039 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031040 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031044 break 2
31045 fi
31046done
cristy8b350f62009-11-15 23:12:43 +000031047 done
cristy3ed852e2009-09-05 21:47:34 +000031048IFS=$as_save_IFS
31049
31050 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31051 ;;
31052esac
31053fi
31054MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31055if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031057$as_echo "$MogrifyDelegate" >&6; }
31058else
cristy8b350f62009-11-15 23:12:43 +000031059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031060$as_echo "no" >&6; }
31061fi
31062
31063
31064# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31065set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031067$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031068if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031069 $as_echo_n "(cached) " >&6
31070else
31071 case $GnuplotDecodeDelegate in
31072 [\\/]* | ?:[\\/]*)
31073 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31074 ;;
31075 *)
31076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077for as_dir in $PATH
31078do
31079 IFS=$as_save_IFS
31080 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031081 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031085 break 2
31086 fi
31087done
cristy8b350f62009-11-15 23:12:43 +000031088 done
cristy3ed852e2009-09-05 21:47:34 +000031089IFS=$as_save_IFS
31090
31091 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31092 ;;
31093esac
31094fi
31095GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31096if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031098$as_echo "$GnuplotDecodeDelegate" >&6; }
31099else
cristy8b350f62009-11-15 23:12:43 +000031100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031101$as_echo "no" >&6; }
31102fi
31103
31104
cristy3ed852e2009-09-05 21:47:34 +000031105# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31106set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031109if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031110 $as_echo_n "(cached) " >&6
31111else
31112 case $HPGLDecodeDelegate in
31113 [\\/]* | ?:[\\/]*)
31114 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31115 ;;
31116 *)
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118for as_dir in $PATH
31119do
31120 IFS=$as_save_IFS
31121 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031122 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31124 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031126 break 2
31127 fi
31128done
cristy8b350f62009-11-15 23:12:43 +000031129 done
cristy3ed852e2009-09-05 21:47:34 +000031130IFS=$as_save_IFS
31131
31132 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31133 ;;
31134esac
31135fi
31136HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31137if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031139$as_echo "$HPGLDecodeDelegate" >&6; }
31140else
cristy8b350f62009-11-15 23:12:43 +000031141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031142$as_echo "no" >&6; }
31143fi
31144
31145
31146# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31147set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031150if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031151 $as_echo_n "(cached) " >&6
31152else
31153 case $HTMLDecodeDelegate in
31154 [\\/]* | ?:[\\/]*)
31155 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31156 ;;
31157 *)
31158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31159for as_dir in $PATH
31160do
31161 IFS=$as_save_IFS
31162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31165 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031167 break 2
31168 fi
31169done
cristy8b350f62009-11-15 23:12:43 +000031170 done
cristy3ed852e2009-09-05 21:47:34 +000031171IFS=$as_save_IFS
31172
31173 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31174 ;;
31175esac
31176fi
31177HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31178if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031180$as_echo "$HTMLDecodeDelegate" >&6; }
31181else
cristy8b350f62009-11-15 23:12:43 +000031182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031183$as_echo "no" >&6; }
31184fi
31185
31186
31187# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31188set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031190$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031191if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031192 $as_echo_n "(cached) " >&6
31193else
31194 case $ILBMDecodeDelegate in
31195 [\\/]* | ?:[\\/]*)
31196 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31197 ;;
31198 *)
31199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31200for as_dir in $PATH
31201do
31202 IFS=$as_save_IFS
31203 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031204 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31206 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031208 break 2
31209 fi
31210done
cristy8b350f62009-11-15 23:12:43 +000031211 done
cristy3ed852e2009-09-05 21:47:34 +000031212IFS=$as_save_IFS
31213
31214 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31215 ;;
31216esac
31217fi
31218ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31219if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031221$as_echo "$ILBMDecodeDelegate" >&6; }
31222else
cristy8b350f62009-11-15 23:12:43 +000031223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031224$as_echo "no" >&6; }
31225fi
31226
31227
31228# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31229set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031231$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031232if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031233 $as_echo_n "(cached) " >&6
31234else
31235 case $ILBMEncodeDelegate in
31236 [\\/]* | ?:[\\/]*)
31237 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31238 ;;
31239 *)
31240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241for as_dir in $PATH
31242do
31243 IFS=$as_save_IFS
31244 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031245 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031249 break 2
31250 fi
31251done
cristy8b350f62009-11-15 23:12:43 +000031252 done
cristy3ed852e2009-09-05 21:47:34 +000031253IFS=$as_save_IFS
31254
31255 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31256 ;;
31257esac
31258fi
31259ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31260if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031262$as_echo "$ILBMEncodeDelegate" >&6; }
31263else
cristy8b350f62009-11-15 23:12:43 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031265$as_echo "no" >&6; }
31266fi
31267
31268
31269# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31270set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031272$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031273if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031274 $as_echo_n "(cached) " >&6
31275else
31276 case $LPDelegate in
31277 [\\/]* | ?:[\\/]*)
31278 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31279 ;;
31280 *)
31281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31282for as_dir in $PATH
31283do
31284 IFS=$as_save_IFS
31285 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031286 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31288 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031290 break 2
31291 fi
31292done
cristy8b350f62009-11-15 23:12:43 +000031293 done
cristy3ed852e2009-09-05 21:47:34 +000031294IFS=$as_save_IFS
31295
31296 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31297 ;;
31298esac
31299fi
31300LPDelegate=$ac_cv_path_LPDelegate
31301if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031303$as_echo "$LPDelegate" >&6; }
31304else
cristy8b350f62009-11-15 23:12:43 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031306$as_echo "no" >&6; }
31307fi
31308
31309
31310# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31311set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031313$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031314if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031315 $as_echo_n "(cached) " >&6
31316else
31317 case $LPRDelegate in
31318 [\\/]* | ?:[\\/]*)
31319 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31320 ;;
31321 *)
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323for as_dir in $PATH
31324do
31325 IFS=$as_save_IFS
31326 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031327 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031331 break 2
31332 fi
31333done
cristy8b350f62009-11-15 23:12:43 +000031334 done
cristy3ed852e2009-09-05 21:47:34 +000031335IFS=$as_save_IFS
31336
31337 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31338 ;;
31339esac
31340fi
31341LPRDelegate=$ac_cv_path_LPRDelegate
31342if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031344$as_echo "$LPRDelegate" >&6; }
31345else
cristy8b350f62009-11-15 23:12:43 +000031346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031347$as_echo "no" >&6; }
31348fi
31349
31350
31351# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31352set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031354$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031355if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031356 $as_echo_n "(cached) " >&6
31357else
31358 case $LZWDecodeDelegate in
31359 [\\/]* | ?:[\\/]*)
31360 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31361 ;;
31362 *)
31363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364for as_dir in $PATH
31365do
31366 IFS=$as_save_IFS
31367 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372 break 2
31373 fi
31374done
cristy8b350f62009-11-15 23:12:43 +000031375 done
cristy3ed852e2009-09-05 21:47:34 +000031376IFS=$as_save_IFS
31377
31378 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31379 ;;
31380esac
31381fi
31382LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31383if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031385$as_echo "$LZWDecodeDelegate" >&6; }
31386else
cristy8b350f62009-11-15 23:12:43 +000031387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031388$as_echo "no" >&6; }
31389fi
31390
31391
31392# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31393set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031395$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031396if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 $as_echo_n "(cached) " >&6
31398else
31399 case $LZWEncodeDelegate in
31400 [\\/]* | ?:[\\/]*)
31401 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31402 ;;
31403 *)
31404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405for as_dir in $PATH
31406do
31407 IFS=$as_save_IFS
31408 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031409 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031413 break 2
31414 fi
31415done
cristy8b350f62009-11-15 23:12:43 +000031416 done
cristy3ed852e2009-09-05 21:47:34 +000031417IFS=$as_save_IFS
31418
31419 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31420 ;;
31421esac
31422fi
31423LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31424if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031426$as_echo "$LZWEncodeDelegate" >&6; }
31427else
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo "no" >&6; }
31430fi
31431
31432
31433# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31434set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031437if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031438 $as_echo_n "(cached) " >&6
31439else
31440 case $LaunchDelegate in
31441 [\\/]* | ?:[\\/]*)
31442 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31443 ;;
31444 *)
31445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31446for as_dir in $PATH
31447do
31448 IFS=$as_save_IFS
31449 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031450 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31452 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031454 break 2
31455 fi
31456done
cristy8b350f62009-11-15 23:12:43 +000031457 done
cristy3ed852e2009-09-05 21:47:34 +000031458IFS=$as_save_IFS
31459
31460 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31461 ;;
31462esac
31463fi
31464LaunchDelegate=$ac_cv_path_LaunchDelegate
31465if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031467$as_echo "$LaunchDelegate" >&6; }
31468else
cristy8b350f62009-11-15 23:12:43 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031470$as_echo "no" >&6; }
31471fi
31472
31473
31474# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31475set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031477$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031478if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031479 $as_echo_n "(cached) " >&6
31480else
31481 case $MANDelegate in
31482 [\\/]* | ?:[\\/]*)
31483 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31484 ;;
31485 *)
31486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31487for as_dir in $PATH
31488do
31489 IFS=$as_save_IFS
31490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31493 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031495 break 2
31496 fi
31497done
cristy8b350f62009-11-15 23:12:43 +000031498 done
cristy3ed852e2009-09-05 21:47:34 +000031499IFS=$as_save_IFS
31500
31501 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31502 ;;
31503esac
31504fi
31505MANDelegate=$ac_cv_path_MANDelegate
31506if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031508$as_echo "$MANDelegate" >&6; }
31509else
cristy8b350f62009-11-15 23:12:43 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031511$as_echo "no" >&6; }
31512fi
31513
31514
31515# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31516set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031518$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031519if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031520 $as_echo_n "(cached) " >&6
31521else
31522 case $MPEGDecodeDelegate in
31523 [\\/]* | ?:[\\/]*)
31524 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31525 ;;
31526 *)
31527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31528for as_dir in $PATH
31529do
31530 IFS=$as_save_IFS
31531 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31534 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031536 break 2
31537 fi
31538done
cristy8b350f62009-11-15 23:12:43 +000031539 done
cristy3ed852e2009-09-05 21:47:34 +000031540IFS=$as_save_IFS
31541
31542 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31543 ;;
31544esac
31545fi
31546MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31547if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031549$as_echo "$MPEGDecodeDelegate" >&6; }
31550else
cristy8b350f62009-11-15 23:12:43 +000031551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031552$as_echo "no" >&6; }
31553fi
31554
31555
31556# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31557set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031559$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031560if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031561 $as_echo_n "(cached) " >&6
31562else
31563 case $MPEGEncodeDelegate in
31564 [\\/]* | ?:[\\/]*)
31565 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31566 ;;
31567 *)
31568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31569for as_dir in $PATH
31570do
31571 IFS=$as_save_IFS
31572 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031573 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31575 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031577 break 2
31578 fi
31579done
cristy8b350f62009-11-15 23:12:43 +000031580 done
cristy3ed852e2009-09-05 21:47:34 +000031581IFS=$as_save_IFS
31582
31583 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31584 ;;
31585esac
31586fi
31587MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31588if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031590$as_echo "$MPEGEncodeDelegate" >&6; }
31591else
cristy8b350f62009-11-15 23:12:43 +000031592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031593$as_echo "no" >&6; }
31594fi
31595
31596
cristy935c86e2010-06-05 23:50:07 +000031597# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31598set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031601if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000031602 $as_echo_n "(cached) " >&6
31603else
31604 case $MrSIDDecodeDelegate in
31605 [\\/]* | ?:[\\/]*)
31606 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31607 ;;
31608 *)
31609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31610for as_dir in $PATH
31611do
31612 IFS=$as_save_IFS
31613 test -z "$as_dir" && as_dir=.
31614 for ac_exec_ext in '' $ac_executable_extensions; do
31615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31616 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31618 break 2
31619 fi
31620done
31621 done
31622IFS=$as_save_IFS
31623
31624 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31625 ;;
31626esac
31627fi
31628MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31629if test -n "$MrSIDDecodeDelegate"; then
31630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31631$as_echo "$MrSIDDecodeDelegate" >&6; }
31632else
31633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31634$as_echo "no" >&6; }
31635fi
31636
31637
cristy3ed852e2009-09-05 21:47:34 +000031638# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31639set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031641$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031642if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031643 $as_echo_n "(cached) " >&6
31644else
31645 case $MVDelegate in
31646 [\\/]* | ?:[\\/]*)
31647 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31648 ;;
31649 *)
31650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31651for as_dir in $PATH
31652do
31653 IFS=$as_save_IFS
31654 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031655 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31657 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031659 break 2
31660 fi
31661done
cristy8b350f62009-11-15 23:12:43 +000031662 done
cristy3ed852e2009-09-05 21:47:34 +000031663IFS=$as_save_IFS
31664
31665 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31666 ;;
31667esac
31668fi
31669MVDelegate=$ac_cv_path_MVDelegate
31670if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031672$as_echo "$MVDelegate" >&6; }
31673else
cristy8b350f62009-11-15 23:12:43 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031675$as_echo "no" >&6; }
31676fi
31677
31678
31679# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31680set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031683if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031684 $as_echo_n "(cached) " >&6
31685else
31686 case $PCLDelegate in
31687 [\\/]* | ?:[\\/]*)
31688 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31689 ;;
31690 *)
31691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31692for as_dir in $PATH
31693do
31694 IFS=$as_save_IFS
31695 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031696 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31698 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031700 break 2
31701 fi
31702done
cristy8b350f62009-11-15 23:12:43 +000031703 done
cristy3ed852e2009-09-05 21:47:34 +000031704IFS=$as_save_IFS
31705
31706 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31707 ;;
31708esac
31709fi
31710PCLDelegate=$ac_cv_path_PCLDelegate
31711if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031713$as_echo "$PCLDelegate" >&6; }
31714else
cristy8b350f62009-11-15 23:12:43 +000031715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031716$as_echo "no" >&6; }
31717fi
31718
31719
31720# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31721set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031724if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031725 $as_echo_n "(cached) " >&6
31726else
31727 case $PGPDecodeDelegate in
31728 [\\/]* | ?:[\\/]*)
31729 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31730 ;;
31731 *)
31732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31733for as_dir in $PATH
31734do
31735 IFS=$as_save_IFS
31736 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031737 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31739 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031741 break 2
31742 fi
31743done
cristy8b350f62009-11-15 23:12:43 +000031744 done
cristy3ed852e2009-09-05 21:47:34 +000031745IFS=$as_save_IFS
31746
31747 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31748 ;;
31749esac
31750fi
31751PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31752if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031754$as_echo "$PGPDecodeDelegate" >&6; }
31755else
cristy8b350f62009-11-15 23:12:43 +000031756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031757$as_echo "no" >&6; }
31758fi
31759
31760
31761# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31762set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031764$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031765if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031766 $as_echo_n "(cached) " >&6
31767else
31768 case $POVDelegate in
31769 [\\/]* | ?:[\\/]*)
31770 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31771 ;;
31772 *)
31773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31774for as_dir in $PATH
31775do
31776 IFS=$as_save_IFS
31777 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031778 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31780 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031782 break 2
31783 fi
31784done
cristy8b350f62009-11-15 23:12:43 +000031785 done
cristy3ed852e2009-09-05 21:47:34 +000031786IFS=$as_save_IFS
31787
31788 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31789 ;;
31790esac
31791fi
31792POVDelegate=$ac_cv_path_POVDelegate
31793if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031795$as_echo "$POVDelegate" >&6; }
31796else
cristy8b350f62009-11-15 23:12:43 +000031797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031798$as_echo "no" >&6; }
31799fi
31800
31801
31802for ac_prog in gsx gsc "$PSDelegateDefault"
31803do
31804 # Extract the first word of "$ac_prog", so it can be a program name with args.
31805set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031807$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031808if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031809 $as_echo_n "(cached) " >&6
31810else
31811 case $PSDelegate in
31812 [\\/]* | ?:[\\/]*)
31813 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31814 ;;
31815 *)
31816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817for as_dir in $PATH
31818do
31819 IFS=$as_save_IFS
31820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031825 break 2
31826 fi
31827done
cristy8b350f62009-11-15 23:12:43 +000031828 done
cristy3ed852e2009-09-05 21:47:34 +000031829IFS=$as_save_IFS
31830
31831 ;;
31832esac
31833fi
31834PSDelegate=$ac_cv_path_PSDelegate
31835if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031837$as_echo "$PSDelegate" >&6; }
31838else
cristy8b350f62009-11-15 23:12:43 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031840$as_echo "no" >&6; }
31841fi
31842
31843
31844 test -n "$PSDelegate" && break
31845done
31846test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31847
31848# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31849set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031852if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031853 $as_echo_n "(cached) " >&6
31854else
31855 case $RLEEncodeDelegate in
31856 [\\/]* | ?:[\\/]*)
31857 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31858 ;;
31859 *)
31860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31861for as_dir in $PATH
31862do
31863 IFS=$as_save_IFS
31864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31867 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869 break 2
31870 fi
31871done
cristy8b350f62009-11-15 23:12:43 +000031872 done
cristy3ed852e2009-09-05 21:47:34 +000031873IFS=$as_save_IFS
31874
31875 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31876 ;;
31877esac
31878fi
31879RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31880if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031882$as_echo "$RLEEncodeDelegate" >&6; }
31883else
cristy8b350f62009-11-15 23:12:43 +000031884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031885$as_echo "no" >&6; }
31886fi
31887
31888
31889# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31890set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031893if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031894 $as_echo_n "(cached) " >&6
31895else
31896 case $RMDelegate in
31897 [\\/]* | ?:[\\/]*)
31898 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31899 ;;
31900 *)
31901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31902for as_dir in $PATH
31903do
31904 IFS=$as_save_IFS
31905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31908 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031910 break 2
31911 fi
31912done
cristy8b350f62009-11-15 23:12:43 +000031913 done
cristy3ed852e2009-09-05 21:47:34 +000031914IFS=$as_save_IFS
31915
31916 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31917 ;;
31918esac
31919fi
31920RMDelegate=$ac_cv_path_RMDelegate
31921if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000031922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000031923$as_echo "$RMDelegate" >&6; }
31924else
cristy8b350f62009-11-15 23:12:43 +000031925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000031926$as_echo "no" >&6; }
31927fi
31928
31929
cristy4689cf02010-02-17 21:15:45 +000031930# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31931set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031934if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000031935 $as_echo_n "(cached) " >&6
31936else
31937 case $RSVGDecodeDelegate in
31938 [\\/]* | ?:[\\/]*)
31939 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31940 ;;
31941 *)
31942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31943for as_dir in $PATH
31944do
31945 IFS=$as_save_IFS
31946 test -z "$as_dir" && as_dir=.
31947 for ac_exec_ext in '' $ac_executable_extensions; do
31948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31949 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31951 break 2
31952 fi
31953done
31954 done
31955IFS=$as_save_IFS
31956
31957 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31958 ;;
31959esac
31960fi
31961RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31962if test -n "$RSVGDecodeDelegate"; then
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31964$as_echo "$RSVGDecodeDelegate" >&6; }
31965else
31966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31967$as_echo "no" >&6; }
31968fi
31969
31970
cristy3ed852e2009-09-05 21:47:34 +000031971# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31972set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000031973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000031974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031975if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031976 $as_echo_n "(cached) " >&6
31977else
31978 case $SCANDecodeDelegate in
31979 [\\/]* | ?:[\\/]*)
31980 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31981 ;;
31982 *)
31983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31984for as_dir in $PATH
31985do
31986 IFS=$as_save_IFS
31987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000031988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000031989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31990 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000031991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000031992 break 2
31993 fi
31994done
cristy8b350f62009-11-15 23:12:43 +000031995 done
cristy3ed852e2009-09-05 21:47:34 +000031996IFS=$as_save_IFS
31997
31998 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31999 ;;
32000esac
32001fi
32002SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32003if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032005$as_echo "$SCANDecodeDelegate" >&6; }
32006else
cristy8b350f62009-11-15 23:12:43 +000032007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032008$as_echo "no" >&6; }
32009fi
32010
32011
32012# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32013set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032016if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032017 $as_echo_n "(cached) " >&6
32018else
32019 case $TXTDelegate in
32020 [\\/]* | ?:[\\/]*)
32021 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
32022 ;;
32023 *)
32024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32025for as_dir in $PATH
32026do
32027 IFS=$as_save_IFS
32028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32031 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032033 break 2
32034 fi
32035done
cristy8b350f62009-11-15 23:12:43 +000032036 done
cristy3ed852e2009-09-05 21:47:34 +000032037IFS=$as_save_IFS
32038
32039 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32040 ;;
32041esac
32042fi
32043TXTDelegate=$ac_cv_path_TXTDelegate
32044if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032046$as_echo "$TXTDelegate" >&6; }
32047else
cristy8b350f62009-11-15 23:12:43 +000032048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032049$as_echo "no" >&6; }
32050fi
32051
32052
cristy5ac9ac82010-07-29 13:24:24 +000032053# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32054set dummy "$UniconvertorDelegateDefault"; ac_word=$2
32055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32056$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032057if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000032058 $as_echo_n "(cached) " >&6
32059else
32060 case $UniconvertorDelegate in
32061 [\\/]* | ?:[\\/]*)
32062 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
32063 ;;
32064 *)
32065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32066for as_dir in $PATH
32067do
32068 IFS=$as_save_IFS
32069 test -z "$as_dir" && as_dir=.
32070 for ac_exec_ext in '' $ac_executable_extensions; do
32071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32072 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
32073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32074 break 2
32075 fi
32076done
32077 done
32078IFS=$as_save_IFS
32079
32080 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32081 ;;
32082esac
32083fi
32084UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32085if test -n "$UniconvertorDelegate"; then
32086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32087$as_echo "$UniconvertorDelegate" >&6; }
32088else
32089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32090$as_echo "no" >&6; }
32091fi
32092
32093
cristy23f7a922010-10-11 00:27:48 +000032094# Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
32095set dummy "$WEBPDelegateDefault"; ac_word=$2
32096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032098if ${ac_cv_path_WEBPDelegate+:} false; then :
cristy23f7a922010-10-11 00:27:48 +000032099 $as_echo_n "(cached) " >&6
32100else
32101 case $WEBPDelegate in
32102 [\\/]* | ?:[\\/]*)
32103 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
32104 ;;
32105 *)
32106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32107for as_dir in $PATH
32108do
32109 IFS=$as_save_IFS
32110 test -z "$as_dir" && as_dir=.
32111 for ac_exec_ext in '' $ac_executable_extensions; do
32112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32113 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
32114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32115 break 2
32116 fi
32117done
32118 done
32119IFS=$as_save_IFS
32120
32121 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
32122 ;;
32123esac
32124fi
32125WEBPDelegate=$ac_cv_path_WEBPDelegate
32126if test -n "$WEBPDelegate"; then
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
32128$as_echo "$WEBPDelegate" >&6; }
32129else
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32131$as_echo "no" >&6; }
32132fi
32133
32134
cristy3ed852e2009-09-05 21:47:34 +000032135# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32136set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032139if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032140 $as_echo_n "(cached) " >&6
32141else
32142 case $WMFDecodeDelegate in
32143 [\\/]* | ?:[\\/]*)
32144 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
32145 ;;
32146 *)
32147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32148for as_dir in $PATH
32149do
32150 IFS=$as_save_IFS
32151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32154 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032156 break 2
32157 fi
32158done
cristy8b350f62009-11-15 23:12:43 +000032159 done
cristy3ed852e2009-09-05 21:47:34 +000032160IFS=$as_save_IFS
32161
32162 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32163 ;;
32164esac
32165fi
32166WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32167if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo "$WMFDecodeDelegate" >&6; }
32170else
cristy8b350f62009-11-15 23:12:43 +000032171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032172$as_echo "no" >&6; }
32173fi
32174
32175
32176# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32177set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032180if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032181 $as_echo_n "(cached) " >&6
32182else
32183 case $WWWDecodeDelegate in
32184 [\\/]* | ?:[\\/]*)
32185 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
32186 ;;
32187 *)
32188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32189for as_dir in $PATH
32190do
32191 IFS=$as_save_IFS
32192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32195 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032197 break 2
32198 fi
32199done
cristy8b350f62009-11-15 23:12:43 +000032200 done
cristy3ed852e2009-09-05 21:47:34 +000032201IFS=$as_save_IFS
32202
32203 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32204 ;;
32205esac
32206fi
32207WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32208if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032210$as_echo "$WWWDecodeDelegate" >&6; }
32211else
cristy8b350f62009-11-15 23:12:43 +000032212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032213$as_echo "no" >&6; }
32214fi
32215
32216
32217# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32218set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032221if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032222 $as_echo_n "(cached) " >&6
32223else
32224 case $XPSDelegate in
32225 [\\/]* | ?:[\\/]*)
32226 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
32227 ;;
32228 *)
32229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32230for as_dir in $PATH
32231do
32232 IFS=$as_save_IFS
32233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32236 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032238 break 2
32239 fi
32240done
cristy8b350f62009-11-15 23:12:43 +000032241 done
cristy3ed852e2009-09-05 21:47:34 +000032242IFS=$as_save_IFS
32243
32244 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32245 ;;
32246esac
32247fi
32248XPSDelegate=$ac_cv_path_XPSDelegate
32249if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032251$as_echo "$XPSDelegate" >&6; }
32252else
cristy8b350f62009-11-15 23:12:43 +000032253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032254$as_echo "no" >&6; }
32255fi
32256
32257
32258# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32259set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032262if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032263 $as_echo_n "(cached) " >&6
32264else
32265 case $ZipDelegate in
32266 [\\/]* | ?:[\\/]*)
32267 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
32268 ;;
32269 *)
32270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32271for as_dir in $PATH
32272do
32273 IFS=$as_save_IFS
32274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32277 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032279 break 2
32280 fi
32281done
cristy8b350f62009-11-15 23:12:43 +000032282 done
cristy3ed852e2009-09-05 21:47:34 +000032283IFS=$as_save_IFS
32284
32285 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32286 ;;
32287esac
32288fi
32289ZipDelegate=$ac_cv_path_ZipDelegate
32290if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032292$as_echo "$ZipDelegate" >&6; }
32293else
cristy8b350f62009-11-15 23:12:43 +000032294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295$as_echo "no" >&6; }
32296fi
32297
32298
32299
32300# Prefer lpr to lp; lp needs options tacked on.
32301if test "$LPRDelegate" != no; then
32302 PrintDelegate="$LPRDelegate"
32303else
32304 PrintDelegate="$LPDelegate -c -s"
32305fi
32306
32307
32308# Installed ImageMagick utiltity paths
32309ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32310DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32311MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32312
32313# Set delegate booleans
32314have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32315have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32316have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32317have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32318have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000032319have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032320have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32321have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000032322have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32323have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32324
32325#
32326# Test for font directories
32327#
32328type_include_files=''
32329
cristy430a7312010-01-21 20:44:04 +000032330# Dejavu fonts.
32331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32332$as_echo_n "checking for Dejavu fonts directory... " >&6; }
32333dejavu_font_dir=''
32334if test "${with_dejavu_font_dir}" != 'default'; then
32335 dejavu_font_dir="${with_dejavu_font_dir}/"
32336else
32337 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32338 if test -f "${font_dir}DejaVuSerif.ttf"; then
32339 dejavu_font_dir="${font_dir}"
32340 break 1
32341 fi
32342 done
32343fi
32344if test "${dejavu_font_dir}x" != 'x'; then
32345 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32347$as_echo "$dejavu_font_dir" >&6; }
32348else
32349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32350$as_echo "not found!" >&6; };
32351fi
32352
32353
cristy3ed852e2009-09-05 21:47:34 +000032354# Windows
32355windows_font_dir=''
32356if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32357 windows_font_dir="${with_windows_font_dir}/"
32358fi
cristy430a7312010-01-21 20:44:04 +000032359if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032360 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32361 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32362 fi
32363 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32364 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32365 fi
32366 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32367 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32368 fi
32369fi
cristy430a7312010-01-21 20:44:04 +000032370if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000032371 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32372fi
32373
32374
32375# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000032376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32378ghostscript_font_dir=''
32379if test "${with_gs_font_dir}" != 'default'; then
32380 ghostscript_font_dir="${with_gs_font_dir}/"
32381else
32382 if test "${native_win32_build}" = 'yes'; then
32383 # Native Windows Build
32384 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32385 if test -f "${font_dir}a010013l.pfb"; then
32386 ghostscript_font_dir="$font_dir"
32387 break 1
32388 fi
32389 done
32390 if test "${PSDelegate}" != 'gswin32c'; then
32391 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32392 fi
32393 else
32394 # Linux / Mac OS X / Unix Build
32395 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
32396 if test -f "${font_dir}a010013l.pfb"; then
32397 ghostscript_font_dir="${font_dir}"
32398 break 1
32399 fi
32400 done
32401 if test "${ghostscript_font_dir}x" = 'x'; then
32402 if test "$PSDelegate" != 'gs'; then
32403 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32404 fi
32405 fi
32406 fi
32407fi
32408if test "${ghostscript_font_dir}x" != 'x'; then
32409 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy8b350f62009-11-15 23:12:43 +000032410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
cristy3ed852e2009-09-05 21:47:34 +000032411$as_echo "$ghostscript_font_dir" >&6; }
32412else
cristy8b350f62009-11-15 23:12:43 +000032413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
cristy3ed852e2009-09-05 21:47:34 +000032414$as_echo "not found!" >&6; };
32415fi
32416
32417case "${build_os}" in
32418 mingw* )
32419 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32420 ;;
32421esac
32422
32423
32424
32425#
32426# Handle case where user doesn't want frozen paths
32427#
32428if test "$with_frozenpaths" != 'yes'; then
32429 # Re-set delegate definitions to default (no paths)
32430 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032431 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32432 BZIPDelegate="$BZIPDelegateDefault"
32433 BrowseDelegate="$BrowseDelegateDefault"
32434 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32435 CatDelegate="$CatDelegateDefault"
32436 ConvertDelegate="$ConvertDelegateDefault"
32437 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32438 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32439 EchoDelegate="$EchoDelegateDefault"
32440 EditorDelegate="$EditorDelegateDefault"
32441 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32442 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32443 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32444 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32445 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32446 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32447 LPDelegate="$LPDelegateDefault"
32448 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32449 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32450 LaunchDelegate="$LaunchDelegateDefault"
32451 MANDelegate="$MANDelegateDefault"
32452 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32453 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032454 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000032455 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32456 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032457 PCLDelegate="$PCLDelegateDefault"
32458 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32459 POVDelegate="$POVDelegateDefault"
32460 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032461 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32462 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000032463 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032464 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32465 ShowImageDelegate="$ShowImageDelegateDefault"
32466 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000032467 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy23f7a922010-10-11 00:27:48 +000032468 WEBPDelegate="$WEBPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000032469 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32470 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32471 XPSDelegate="$XPSDelegateDefault"
32472 ZipDelegate="$ZipDelegateDefault"
32473fi
32474
32475# Delegate substitutions
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485
32486
32487
32488
32489
32490
32491
32492
32493
32494
32495
32496
32497
32498
32499
32500
32501
32502
32503
32504
32505
32506
32507
32508
32509
32510
32511
32512
32513
32514
32515
32516
32517
cristy935c86e2010-06-05 23:50:07 +000032518
cristy3ed852e2009-09-05 21:47:34 +000032519#
32520# RPM support.
32521#
32522RPM=''
32523for ac_prog in gnutar gtar tar
32524do
32525 # Extract the first word of "$ac_prog", so it can be a program name with args.
32526set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032529if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032530 $as_echo_n "(cached) " >&6
32531else
32532 if test -n "$TAR"; then
32533 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32534else
32535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32536for as_dir in $PATH
32537do
32538 IFS=$as_save_IFS
32539 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32542 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032544 break 2
32545 fi
32546done
cristy8b350f62009-11-15 23:12:43 +000032547 done
cristy3ed852e2009-09-05 21:47:34 +000032548IFS=$as_save_IFS
32549
32550fi
32551fi
32552TAR=$ac_cv_prog_TAR
32553if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000032554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000032555$as_echo "$TAR" >&6; }
32556else
cristy8b350f62009-11-15 23:12:43 +000032557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032558$as_echo "no" >&6; }
32559fi
32560
32561
32562 test -n "$TAR" && break
32563done
32564
32565for ac_prog in perl
32566do
32567 # Extract the first word of "$ac_prog", so it can be a program name with args.
32568set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032570$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032571if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032572 $as_echo_n "(cached) " >&6
32573else
32574 if test -n "$PERL"; then
32575 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32576else
32577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32578for as_dir in $PATH
32579do
32580 IFS=$as_save_IFS
32581 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032582 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32584 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586 break 2
32587 fi
32588done
cristy8b350f62009-11-15 23:12:43 +000032589 done
cristy3ed852e2009-09-05 21:47:34 +000032590IFS=$as_save_IFS
32591
32592fi
32593fi
32594PERL=$ac_cv_prog_PERL
32595if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000032596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032597$as_echo "$PERL" >&6; }
32598else
cristy8b350f62009-11-15 23:12:43 +000032599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032600$as_echo "no" >&6; }
32601fi
32602
32603
32604 test -n "$PERL" && break
32605done
32606
32607for ac_prog in rpmbuild rpm
32608do
32609 # Extract the first word of "$ac_prog", so it can be a program name with args.
32610set dummy $ac_prog; 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_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032614 $as_echo_n "(cached) " >&6
32615else
32616 if test -n "$RPM"; then
32617 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32618else
32619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32620for as_dir in $PATH
32621do
32622 IFS=$as_save_IFS
32623 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032624 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32626 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032628 break 2
32629 fi
32630done
cristy8b350f62009-11-15 23:12:43 +000032631 done
cristy3ed852e2009-09-05 21:47:34 +000032632IFS=$as_save_IFS
32633
32634fi
32635fi
32636RPM=$ac_cv_prog_RPM
32637if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000032638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639$as_echo "$RPM" >&6; }
32640else
cristy8b350f62009-11-15 23:12:43 +000032641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032642$as_echo "no" >&6; }
32643fi
32644
32645
32646 test -n "$RPM" && break
32647done
32648
32649
cristy73bd4a52010-10-05 11:24:23 +000032650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32651
32652
32653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32654
32655
32656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32657
32658
32659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32660
32661
32662 if test "x$RPM" != "x" ; then
32663 RPM_DELEGATE_TRUE=
32664 RPM_DELEGATE_FALSE='#'
32665else
32666 RPM_DELEGATE_TRUE='#'
32667 RPM_DELEGATE_FALSE=
32668fi
32669
cristy3ed852e2009-09-05 21:47:34 +000032670
32671#
32672# 7ZIP support (http://p7zip.sourceforge.net/)
32673#
32674P7ZIP=''
32675for ac_prog in 7za
32676do
32677 # Extract the first word of "$ac_prog", so it can be a program name with args.
32678set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032681if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032682 $as_echo_n "(cached) " >&6
32683else
32684 if test -n "$P7ZIP"; then
32685 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32686else
32687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32688for as_dir in $PATH
32689do
32690 IFS=$as_save_IFS
32691 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032692 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32694 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032696 break 2
32697 fi
32698done
cristy8b350f62009-11-15 23:12:43 +000032699 done
cristy3ed852e2009-09-05 21:47:34 +000032700IFS=$as_save_IFS
32701
32702fi
32703fi
32704P7ZIP=$ac_cv_prog_P7ZIP
32705if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032707$as_echo "$P7ZIP" >&6; }
32708else
cristy8b350f62009-11-15 23:12:43 +000032709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032710$as_echo "no" >&6; }
32711fi
32712
32713
32714 test -n "$P7ZIP" && break
32715done
32716
32717
cristy73bd4a52010-10-05 11:24:23 +000032718 if test "x$P7ZIP" != "x" ; then
32719 P7ZIP_DELEGATE_TRUE=
32720 P7ZIP_DELEGATE_FALSE='#'
32721else
32722 P7ZIP_DELEGATE_TRUE='#'
32723 P7ZIP_DELEGATE_FALSE=
32724fi
32725
cristy3ed852e2009-09-05 21:47:34 +000032726
32727#
32728# ZIP support (http://www.info-zip.org/Zip.html)
32729#
32730ZIP=''
32731for ac_prog in zip
32732do
32733 # Extract the first word of "$ac_prog", so it can be a program name with args.
32734set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032737if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032738 $as_echo_n "(cached) " >&6
32739else
32740 if test -n "$ZIP"; then
32741 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32742else
32743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32744for as_dir in $PATH
32745do
32746 IFS=$as_save_IFS
32747 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032748 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32750 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000032751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032752 break 2
32753 fi
32754done
cristy8b350f62009-11-15 23:12:43 +000032755 done
cristy3ed852e2009-09-05 21:47:34 +000032756IFS=$as_save_IFS
32757
32758fi
32759fi
32760ZIP=$ac_cv_prog_ZIP
32761if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000032762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000032763$as_echo "$ZIP" >&6; }
32764else
cristy8b350f62009-11-15 23:12:43 +000032765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032766$as_echo "no" >&6; }
32767fi
32768
32769
32770 test -n "$ZIP" && break
32771done
32772
32773
cristy73bd4a52010-10-05 11:24:23 +000032774 if test "x$ZIP" != "x" ; then
32775 ZIP_DELEGATE_TRUE=
32776 ZIP_DELEGATE_FALSE='#'
32777else
32778 ZIP_DELEGATE_TRUE='#'
32779 ZIP_DELEGATE_FALSE=
32780fi
32781
cristy3ed852e2009-09-05 21:47:34 +000032782
32783#
32784# GhostPCL related configuration.
32785#
32786PCLColorDevice=ppmraw
32787PCLCMYKDevice=bmpsep8
32788PCLMonoDevice=pbmraw
32789if test -z "$PCLVersion"; then
32790 PCLVersion='unknown'
32791fi
32792if test $have_pcl = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032794$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000032796$as_echo_n "checking for PCL... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo "" >&6; }
32799 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000032800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032801$as_echo_n "checking for pcl color device... " >&6; }
32802 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32803 :
32804 else
32805 PCLColorDevice=ppmraw
32806 fi
cristy8b350f62009-11-15 23:12:43 +000032807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032808$as_echo "$PCLColorDevice" >&6; }
32809
32810 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032812$as_echo_n "checking for pcl CMYK device... " >&6; }
32813 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32814 :
32815 else
32816 PCLCMYKDevice=$PCLColorDevice
32817 fi
cristy8b350f62009-11-15 23:12:43 +000032818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032819$as_echo "$PCLCMYKDevice" >&6; }
32820
32821 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032823$as_echo_n "checking for pcl mono device... " >&6; }
32824 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32825 :
32826 else
32827 PCLMonoDevice=$PCLColorDevice
32828 fi
cristy8b350f62009-11-15 23:12:43 +000032829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032830$as_echo "$PCLMonoDevice" >&6; }
32831fi
32832
32833
32834
32835
32836
32837
32838#
32839# GhostXPS related configuration.
32840#
32841XPSColorDevice=ppmraw
32842XPSCMYKDevice=bmpsep8
32843XPSMonoDevice=pbmraw
32844if test -z "$XPSVersion"; then
32845 XPSVersion='unknown'
32846fi
32847if test $have_xps = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032849$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851$as_echo_n "checking for XPS... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032853$as_echo "" >&6; }
32854 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032856$as_echo_n "checking for xps color device... " >&6; }
32857 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32858 :
32859 else
32860 XPSColorDevice=ppmraw
32861 fi
cristy8b350f62009-11-15 23:12:43 +000032862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032863$as_echo "$XPSColorDevice" >&6; }
32864
32865 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032867$as_echo_n "checking for xps CMYK device... " >&6; }
32868 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32869 :
32870 else
32871 XPSCMYKDevice=$XPSColorDevice
32872 fi
cristy8b350f62009-11-15 23:12:43 +000032873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032874$as_echo "$XPSCMYKDevice" >&6; }
32875
32876 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032878$as_echo_n "checking for xps mono device... " >&6; }
32879 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32880 :
32881 else
32882 XPSMonoDevice=$XPSColorDevice
32883 fi
cristy8b350f62009-11-15 23:12:43 +000032884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo "$XPSMonoDevice" >&6; }
32886fi
32887
32888
32889
32890
32891
32892
32893#
32894# Ghostscript related configuration.
32895#
cristya97426c2011-02-04 01:41:27 +000032896GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000032897GSColorDevice=pnmraw
32898GSCMYKDevice=pam
32899GSMonoDevice=pbmraw
32900GSPDFDevice=pdfwrite
32901GSPSDevice=pswrite
32902GSEPSDevice=epswrite
32903GSVersion='unknown'
32904if test $have_gs = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000032906$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000032908$as_echo_n "checking for Ghostscript... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000032909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000032910$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000032912$as_echo_n "checking for Ghostscript version... " >&6; }
32913 if GSVersion=`$PSDelegate --version`; then
32914 :
32915 else
32916 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32917 fi
cristy8b350f62009-11-15 23:12:43 +000032918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
cristy3ed852e2009-09-05 21:47:34 +000032919$as_echo "$GSVersion" >&6; }
32920
32921 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo_n "checking for gs alpha device... " >&6; }
32924 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32925 :
32926 else
32927 GSAlphaDevice=pnmraw
32928 fi
cristy8b350f62009-11-15 23:12:43 +000032929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032930$as_echo "$GSAlphaDevice" >&6; }
32931
32932 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000032933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo_n "checking for gs color device... " >&6; }
32935 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32936 :
32937 else
32938 GSColorDevice=pnmraw
32939 fi
cristy8b350f62009-11-15 23:12:43 +000032940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032941$as_echo "$GSColorDevice" >&6; }
32942
32943 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000032944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032945$as_echo_n "checking for gs CMYK device... " >&6; }
32946 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32947 :
32948 else
32949 GSCMYKDevice=bmpsep8
32950 fi
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$GSCMYKDevice" >&6; }
32953
32954 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000032955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032956$as_echo_n "checking for gs mono device... " >&6; }
32957 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32958 :
32959 else
32960 GSMonoDevice=$GSColorDevice
32961 fi
cristy8b350f62009-11-15 23:12:43 +000032962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032963$as_echo "$GSMonoDevice" >&6; }
32964
32965 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo_n "checking for gs PDF writing device... " >&6; }
32968 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32969 :
32970 else
32971 GSPDFDevice=nodevice
32972 fi
cristy8b350f62009-11-15 23:12:43 +000032973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo "$GSPDFDevice" >&6; }
32975
32976 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000032977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032978$as_echo_n "checking for gs PS writing device... " >&6; }
32979 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32980 :
32981 else
32982 GSPSDevice=nodevice
32983 fi
cristy8b350f62009-11-15 23:12:43 +000032984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032985$as_echo "$GSPSDevice" >&6; }
32986
32987 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000032988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000032989$as_echo_n "checking for gs EPS writing device... " >&6; }
32990 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32991 :
32992 else
32993 GSEPSDevice=nodevice
32994 fi
cristy8b350f62009-11-15 23:12:43 +000032995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo "$GSEPSDevice" >&6; }
32997fi
32998
32999
33000
33001
33002
33003
33004
33005
33006
33007
33008#
33009# PerlMagick-related configuration
33010#
33011
33012# Look for PERL if PerlMagick requested
33013# If name/path of desired PERL interpreter is specified, look for that one first
33014have_perl='no'
33015if test "$with_perl" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000033016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033017$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033019$as_echo_n "checking for Perl... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000033020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy3ed852e2009-09-05 21:47:34 +000033021$as_echo "" >&6; }
33022 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000033024$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033025if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033026 $as_echo_n "(cached) " >&6
33027else
33028 ac_cv_path_PERL="$with_perl"
33029fi
cristy8b350f62009-11-15 23:12:43 +000033030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033031$as_echo "$ac_cv_path_PERL" >&6; };
33032 PERL=$ac_cv_path_PERL
33033 have_perl="$ac_cv_path_PERL"
33034 else
33035 for ac_prog in perl perl5
33036do
33037 # Extract the first word of "$ac_prog", so it can be a program name with args.
33038set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033041if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033042 $as_echo_n "(cached) " >&6
33043else
33044 case $PERL in
33045 [\\/]* | ?:[\\/]*)
33046 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33047 ;;
33048 *)
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050for as_dir in $PATH
33051do
33052 IFS=$as_save_IFS
33053 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33056 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058 break 2
33059 fi
33060done
cristy8b350f62009-11-15 23:12:43 +000033061 done
cristy3ed852e2009-09-05 21:47:34 +000033062IFS=$as_save_IFS
33063
33064 ;;
33065esac
33066fi
33067PERL=$ac_cv_path_PERL
33068if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000033069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000033070$as_echo "$PERL" >&6; }
33071else
cristy8b350f62009-11-15 23:12:43 +000033072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033073$as_echo "no" >&6; }
33074fi
33075
33076
33077 test -n "$PERL" && break
33078done
33079 if test "$ac_cv_path_PERL"; then
33080 have_perl="$ac_cv_path_PERL"
33081 fi
33082 fi
33083fi
33084
cristy949301e2010-01-06 01:38:40 +000033085if test "$with_perl" != 'yes' ; then
33086 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33087fi
33088
33089PERL_SUPPORTS_DESTDIR='no'
33090
cristy3ed852e2009-09-05 21:47:34 +000033091with_perl_static='no'
33092with_perl_dynamic='no'
33093if test "$have_perl" != 'no'; then
33094 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33095 with_perl_static='yes'
33096 fi
33097 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33098 with_perl_dynamic='yes'
33099 fi
33100 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000033101
33102
33103
33104
33105 if test -n "$PERL"; then :
33106
33107 ax_perl_version="5.8.1"
33108
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33110$as_echo_n "checking for perl version... " >&6; }
33111
33112 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33113
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33115$as_echo "$perl_version" >&6; }
33116
33117 PERL_VERSION=$perl_version
33118
33119
33120
33121
33122
33123 # Used to indicate true or false condition
33124 ax_compare_version=false
33125
33126 # Convert the two version strings to be compared into a format that
33127 # allows a simple string comparison. The end result is that a version
33128 # string of the form 1.12.5-r617 will be converted to the form
33129 # 0001001200050617. In other words, each number is zero padded to four
33130 # digits, and non digits are removed.
33131
33132 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33133 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33134 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33135 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33136 -e 's/[^0-9]//g'`
33137
33138
33139 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33140 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33141 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33142 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33143 -e 's/[^0-9]//g'`
33144
33145
33146 ax_compare_version=`echo "x$ax_compare_version_A
33147x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33148
33149
33150
33151 if test "$ax_compare_version" = "true" ; then
33152
33153 :
33154 PERL_SUPPORTS_DESTDIR='yes'
33155
33156 else
33157 :
33158 PERL_SUPPORTS_DESTDIR='no'
33159
33160 fi
33161
33162
33163else
33164
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33166$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33167 PERL_SUPPORTS_DESTDIR='no'
33168
cristy3ed852e2009-09-05 21:47:34 +000033169fi
cristy73bd4a52010-10-05 11:24:23 +000033170
33171fi
33172 if test "$have_perl" != 'no'; then
33173 WITH_PERL_TRUE=
33174 WITH_PERL_FALSE='#'
33175else
33176 WITH_PERL_TRUE='#'
33177 WITH_PERL_FALSE=
33178fi
33179
33180 if test $with_perl_static = 'yes'; then
33181 WITH_PERL_STATIC_TRUE=
33182 WITH_PERL_STATIC_FALSE='#'
33183else
33184 WITH_PERL_STATIC_TRUE='#'
33185 WITH_PERL_STATIC_FALSE=
33186fi
33187
33188 if test $with_perl_dynamic = 'yes'; then
33189 WITH_PERL_DYNAMIC_TRUE=
33190 WITH_PERL_DYNAMIC_FALSE='#'
33191else
33192 WITH_PERL_DYNAMIC_TRUE='#'
33193 WITH_PERL_DYNAMIC_FALSE=
33194fi
33195
cristy3ed852e2009-09-05 21:47:34 +000033196
33197
33198# Determine path to pick up MagickCore library from for use with building PerlMagick
33199MAGICKCORE_PATH="${LIB_DIR}"
33200if test $with_perl_static = 'yes'; then
33201 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33202 libtool_objdir=$objdir
33203
33204 # Linker search path to library, followed by -lMagickCore
33205 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33206fi
33207
33208
33209# Create a simple string containing format names for all delegate libraries
33210DELEGATES=''
33211if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33212if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33213if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33214if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33215if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33216if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33217if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33218if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33219if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33220if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33221if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33222if test "$have_jpeg" = 'yes'; then
33223 DELEGATES="$DELEGATES jpeg";
33224 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33225fi
33226if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000033227if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000033228if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33229if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000033230if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000033231if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33232if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33233if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33234if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33235if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33236if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33237if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33238if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33239if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33240
33241
33242
33243#
33244# Handle special compiler flags
33245#
33246
33247# Add '-p' if prof source profiling support enabled
33248if test "$enable_prof" = 'yes'; then
33249 CFLAGS="-p $CFLAGS"
33250 CXXFLAGS="-p $CXXFLAGS"
33251 LDFLAGS="-p $LDFLAGS"
33252fi
33253
33254# Add '-pg' if gprof source profiling support enabled
33255if test "$enable_gprof" = 'yes'; then
33256 CFLAGS="-pg $CFLAGS"
33257 CXXFLAGS="-pg $CXXFLAGS"
33258 LDFLAGS="-pg $LDFLAGS"
33259fi
33260
33261# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33262# This is a gcc-specific feature
33263if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000033264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033266if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033267 $as_echo_n "(cached) " >&6
33268else
33269 ac_check_lib_save_LIBS=$LIBS
33270LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033272/* end confdefs.h. */
33273
33274/* Override any GCC internal prototype to avoid an error.
33275 Use char because int might match the return type of a GCC
33276 builtin and then its argument prototype would still apply. */
33277#ifdef __cplusplus
33278extern "C"
33279#endif
33280char _gcov_init ();
33281int
33282main ()
33283{
33284return _gcov_init ();
33285 ;
33286 return 0;
33287}
33288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033290 ac_cv_lib_gcov__gcov_init=yes
33291else
cristy8b350f62009-11-15 23:12:43 +000033292 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033293fi
cristy8b350f62009-11-15 23:12:43 +000033294rm -f core conftest.err conftest.$ac_objext \
33295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033296LIBS=$ac_check_lib_save_LIBS
33297fi
cristy8b350f62009-11-15 23:12:43 +000033298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033299$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033300if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033301 cat >>confdefs.h <<_ACEOF
33302#define HAVE_LIBGCOV 1
33303_ACEOF
33304
33305 LIBS="-lgcov $LIBS"
33306
33307fi
33308
cristy8b350f62009-11-15 23:12:43 +000033309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000033310$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033311if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033312 $as_echo_n "(cached) " >&6
33313else
33314 ac_check_lib_save_LIBS=$LIBS
33315LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033317/* end confdefs.h. */
33318
33319/* Override any GCC internal prototype to avoid an error.
33320 Use char because int might match the return type of a GCC
33321 builtin and then its argument prototype would still apply. */
33322#ifdef __cplusplus
33323extern "C"
33324#endif
33325char __gcov_init ();
33326int
33327main ()
33328{
33329return __gcov_init ();
33330 ;
33331 return 0;
33332}
33333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033335 ac_cv_lib_gcov___gcov_init=yes
33336else
cristy8b350f62009-11-15 23:12:43 +000033337 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000033338fi
cristy8b350f62009-11-15 23:12:43 +000033339rm -f core conftest.err conftest.$ac_objext \
33340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033341LIBS=$ac_check_lib_save_LIBS
33342fi
cristy8b350f62009-11-15 23:12:43 +000033343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000033344$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000033345if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033346 cat >>confdefs.h <<_ACEOF
33347#define HAVE_LIBGCOV 1
33348_ACEOF
33349
33350 LIBS="-lgcov $LIBS"
33351
33352fi
33353
33354 case "$target_os" in
33355 darwin*)
33356 OSX_GCOV_LDFLAG="-Wl,-single_module"
33357 ;;
33358 *)
33359 OSX_GCOV_LDFLAG=""
33360 ;;
33361 esac
33362
33363 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33364 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33365 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33366fi
33367
33368#
33369# Build library dependency list for libMagickCore
33370#
33371
33372MAGICK_LIBLTDL='' # Libltdl for build
33373MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33374MAGICK_LTDLDEPS='' # extra libltdl dependencies
33375if test "$with_ltdl" != 'no'
33376then
33377 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33378 MAGICK_API_LIBLTDL='-lltdl'
33379 fi
33380 MAGICK_LIBLTDL=${LIBLTDL}
33381 MAGICK_LTDLDEPS=${LTDLDEPS}
33382fi
33383
33384
33385
33386if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000033387 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 +000033388else
cristyfbb0ef02010-12-19 02:32:11 +000033389 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000033390fi
33391
33392
33393#
33394# Remove extraneous spaces from output variables (asthetic)
33395#
33396X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33397X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33398X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33399X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33400
33401CC=`echo $CC | sed -e 's/ */ /g'`
33402CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33403CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33404CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33405DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33406DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33407LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33408TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33409MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33410#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33411
33412# Pass only user-provided LIBS as "global" libraries
33413LIBS=$USER_LIBS
33414
33415#AC_SUBST(CPPFLAGS)
33416
33417#AC_SUBST(LDFLAGS)
33418#AC_SUBST(X_PRE_LIBS)
33419#AC_SUBST(X_LIBS)
33420#AC_SUBST(X_EXTRA_LIBS)
33421
33422MAGICK_CFLAGS=$CFLAGS
33423MAGICK_CXXFLAGS="$CXXFLAGS"
33424MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33425MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33426MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33427MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33428
33429
33430
33431
33432
33433
33434
33435
cristyfd9dcd42010-08-08 18:07:02 +000033436
cristy3ed852e2009-09-05 21:47:34 +000033437# Set configured scripts to executable.
33438ac_config_commands="$ac_config_commands default"
33439
33440ac_config_commands="$ac_config_commands MagickCore-config.in"
33441
33442ac_config_commands="$ac_config_commands Magick-config.in"
33443
33444ac_config_commands="$ac_config_commands MagickWand-config.in"
33445
33446ac_config_commands="$ac_config_commands Wand-config.in"
33447
33448ac_config_commands="$ac_config_commands Magick++-config.in"
33449
33450ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33451
33452
cristy8b350f62009-11-15 23:12:43 +000033453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy3ed852e2009-09-05 21:47:34 +000033454$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo "Update ImageMagick configuration" >&6; }
33457cat >confcache <<\_ACEOF
33458# This file is a shell script that caches the results of configure
33459# tests run on this system so they can be shared between configure
33460# scripts and configure runs, see configure's option --config-cache.
33461# It is not useful on other systems. If it contains results you don't
33462# want to keep, you may remove or edit it.
33463#
33464# config.status only pays attention to the cache file if you give it
33465# the --recheck option to rerun configure.
33466#
33467# `ac_cv_env_foo' variables (set or unset) will be overridden when
33468# loading this file, other *unset* `ac_cv_foo' will be assigned the
33469# following values.
33470
33471_ACEOF
33472
33473# The following way of writing the cache mishandles newlines in values,
33474# but we know of no workaround that is simple, portable, and efficient.
33475# So, we kill variables containing newlines.
33476# Ultrix sh set writes to stderr and can't be redirected directly,
33477# and sets the high bit in the cache file unless we assign to the vars.
33478(
33479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33480 eval ac_val=\$$ac_var
33481 case $ac_val in #(
33482 *${as_nl}*)
33483 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000033484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000033485$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33486 esac
33487 case $ac_var in #(
33488 _ | IFS | as_nl) ;; #(
33489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000033490 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000033491 esac ;;
33492 esac
33493 done
33494
33495 (set) 2>&1 |
33496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33497 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000033498 # `set' does not quote correctly, so add quotes: double-quote
33499 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000033500 sed -n \
33501 "s/'/'\\\\''/g;
33502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33503 ;; #(
33504 *)
33505 # `set' quotes correctly as required by POSIX, so do not add quotes.
33506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33507 ;;
33508 esac |
33509 sort
33510) |
33511 sed '
33512 /^ac_cv_env_/b end
33513 t clear
33514 :clear
33515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33516 t end
33517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33518 :end' >>confcache
33519if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33520 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000033521 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000033522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033523$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000033524 if test ! -f "$cache_file" || test -h "$cache_file"; then
33525 cat confcache >"$cache_file"
33526 else
33527 case $cache_file in #(
33528 */* | ?:*)
33529 mv -f confcache "$cache_file"$$ &&
33530 mv -f "$cache_file"$$ "$cache_file" ;; #(
33531 *)
33532 mv -f confcache "$cache_file" ;;
33533 esac
33534 fi
33535 fi
cristy3ed852e2009-09-05 21:47:34 +000033536 else
cristy8b350f62009-11-15 23:12:43 +000033537 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000033538$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33539 fi
33540fi
33541rm -f confcache
33542
33543test "x$prefix" = xNONE && prefix=$ac_default_prefix
33544# Let make expand exec_prefix.
33545test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33546
33547DEFS=-DHAVE_CONFIG_H
33548
33549ac_libobjs=
33550ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000033551U=
cristy3ed852e2009-09-05 21:47:34 +000033552for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33553 # 1. Remove the extension, and $U if already installed.
33554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33557 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000033558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000033560done
33561LIBOBJS=$ac_libobjs
33562
33563LTLIBOBJS=$ac_ltlibobjs
33564
33565
cristy73bd4a52010-10-05 11:24:23 +000033566 if test -n "$EXEEXT"; then
33567 am__EXEEXT_TRUE=
33568 am__EXEEXT_FALSE='#'
33569else
33570 am__EXEEXT_TRUE='#'
33571 am__EXEEXT_FALSE=
33572fi
cristy3ed852e2009-09-05 21:47:34 +000033573
cristy73bd4a52010-10-05 11:24:23 +000033574if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033575 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033576Usually this means the macro was only invoked conditionally." "$LINENO" 5
33577fi
33578if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033579 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033580Usually this means the macro was only invoked conditionally." "$LINENO" 5
33581fi
33582if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033583 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033584Usually this means the macro was only invoked conditionally." "$LINENO" 5
33585fi
33586if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033587 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033588Usually this means the macro was only invoked conditionally." "$LINENO" 5
33589fi
33590if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033591 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033592Usually this means the macro was only invoked conditionally." "$LINENO" 5
33593fi
33594if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033595 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033596Usually this means the macro was only invoked conditionally." "$LINENO" 5
33597fi
33598if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033599 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033600Usually this means the macro was only invoked conditionally." "$LINENO" 5
33601fi
33602if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033603 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033604Usually this means the macro was only invoked conditionally." "$LINENO" 5
33605fi
cristy73bd4a52010-10-05 11:24:23 +000033606if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033607 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033608Usually this means the macro was only invoked conditionally." "$LINENO" 5
33609fi
33610if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033611 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033612Usually this means the macro was only invoked conditionally." "$LINENO" 5
33613fi
33614LT_CONFIG_H=config/config.h
33615
33616 _ltdl_libobjs=
33617 _ltdl_ltlibobjs=
33618 if test -n "$_LT_LIBOBJS"; then
33619 # Remove the extension.
33620 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33621 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33622 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33623 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33624 done
33625 fi
33626 ltdl_LIBOBJS=$_ltdl_libobjs
33627
33628 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33629
33630
33631if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033632 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033633Usually this means the macro was only invoked conditionally." "$LINENO" 5
33634fi
33635if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033636 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033637Usually this means the macro was only invoked conditionally." "$LINENO" 5
33638fi
33639if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033640 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033641Usually this means the macro was only invoked conditionally." "$LINENO" 5
33642fi
33643if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033644 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033645Usually this means the macro was only invoked conditionally." "$LINENO" 5
33646fi
33647
33648if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033649 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033650Usually this means the macro was only invoked conditionally." "$LINENO" 5
33651fi
33652if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033653 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033654Usually this means the macro was only invoked conditionally." "$LINENO" 5
33655fi
33656if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033657 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033658Usually this means the macro was only invoked conditionally." "$LINENO" 5
33659fi
33660if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033661 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033662Usually this means the macro was only invoked conditionally." "$LINENO" 5
33663fi
33664if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033665 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033666Usually this means the macro was only invoked conditionally." "$LINENO" 5
33667fi
33668if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033669 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033670Usually this means the macro was only invoked conditionally." "$LINENO" 5
33671fi
33672if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033673 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033674Usually this means the macro was only invoked conditionally." "$LINENO" 5
33675fi
33676if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033677 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033678Usually this means the macro was only invoked conditionally." "$LINENO" 5
33679fi
33680if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033681 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033682Usually this means the macro was only invoked conditionally." "$LINENO" 5
33683fi
33684if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033685 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033686Usually this means the macro was only invoked conditionally." "$LINENO" 5
33687fi
33688if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033689 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033690Usually this means the macro was only invoked conditionally." "$LINENO" 5
33691fi
33692if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033693 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033694Usually this means the macro was only invoked conditionally." "$LINENO" 5
33695fi
33696if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033697 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033698Usually this means the macro was only invoked conditionally." "$LINENO" 5
33699fi
33700if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033701 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033702Usually this means the macro was only invoked conditionally." "$LINENO" 5
33703fi
33704if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033705 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033706Usually this means the macro was only invoked conditionally." "$LINENO" 5
33707fi
33708if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033709 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033710Usually this means the macro was only invoked conditionally." "$LINENO" 5
33711fi
33712if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033713 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033714Usually this means the macro was only invoked conditionally." "$LINENO" 5
33715fi
33716if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033717 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033718Usually this means the macro was only invoked conditionally." "$LINENO" 5
33719fi
33720if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033721 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033722Usually this means the macro was only invoked conditionally." "$LINENO" 5
33723fi
33724if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033725 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033726Usually this means the macro was only invoked conditionally." "$LINENO" 5
33727fi
cristyfbb0ef02010-12-19 02:32:11 +000033728if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33729 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33730Usually this means the macro was only invoked conditionally." "$LINENO" 5
33731fi
cristy73bd4a52010-10-05 11:24:23 +000033732if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033733 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033734Usually this means the macro was only invoked conditionally." "$LINENO" 5
33735fi
33736if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033737 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033738Usually this means the macro was only invoked conditionally." "$LINENO" 5
33739fi
33740if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033741 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033742Usually this means the macro was only invoked conditionally." "$LINENO" 5
33743fi
33744if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033745 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033746Usually this means the macro was only invoked conditionally." "$LINENO" 5
33747fi
33748if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033749 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033750Usually this means the macro was only invoked conditionally." "$LINENO" 5
33751fi
33752if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033753 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033754Usually this means the macro was only invoked conditionally." "$LINENO" 5
33755fi
33756if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033757 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033758Usually this means the macro was only invoked conditionally." "$LINENO" 5
33759fi
33760if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033761 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033762Usually this means the macro was only invoked conditionally." "$LINENO" 5
33763fi
33764if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033765 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033766Usually this means the macro was only invoked conditionally." "$LINENO" 5
33767fi
33768if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033769 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033770Usually this means the macro was only invoked conditionally." "$LINENO" 5
33771fi
33772if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033773 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033774Usually this means the macro was only invoked conditionally." "$LINENO" 5
33775fi
33776if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033777 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033778Usually this means the macro was only invoked conditionally." "$LINENO" 5
33779fi
33780if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000033781 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000033782Usually this means the macro was only invoked conditionally." "$LINENO" 5
33783fi
cristy3ed852e2009-09-05 21:47:34 +000033784
cristyda16f162011-02-19 23:52:17 +000033785: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000033786ac_write_fail=0
33787ac_clean_files_save=$ac_clean_files
33788ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000033789{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000033791as_write_fail=0
33792cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000033793#! $SHELL
33794# Generated by $as_me.
33795# Run this file to recreate the current configuration.
33796# Compiler output produced by configure, useful for debugging
33797# configure, is in config.log if it exists.
33798
33799debug=false
33800ac_cs_recheck=false
33801ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000033802
cristy8b350f62009-11-15 23:12:43 +000033803SHELL=\${CONFIG_SHELL-$SHELL}
33804export SHELL
33805_ASEOF
33806cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33807## -------------------- ##
33808## M4sh Initialization. ##
33809## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000033810
33811# Be more Bourne compatible
33812DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000033813if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000033814 emulate sh
33815 NULLCMD=:
33816 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33817 # is contrary to our usage. Disable this feature.
33818 alias -g '${1+"$@"}'='"$@"'
33819 setopt NO_GLOB_SUBST
33820else
cristy8b350f62009-11-15 23:12:43 +000033821 case `(set -o) 2>/dev/null` in #(
33822 *posix*) :
33823 set -o posix ;; #(
33824 *) :
33825 ;;
cristy3ed852e2009-09-05 21:47:34 +000033826esac
cristy3ed852e2009-09-05 21:47:34 +000033827fi
33828
33829
cristy3ed852e2009-09-05 21:47:34 +000033830as_nl='
33831'
33832export as_nl
33833# Printing a long string crashes Solaris 7 /usr/bin/printf.
33834as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33835as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33836as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000033837# Prefer a ksh shell builtin over an external printf program on Solaris,
33838# but without wasting forks for bash or zsh.
33839if test -z "$BASH_VERSION$ZSH_VERSION" \
33840 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33841 as_echo='print -r --'
33842 as_echo_n='print -rn --'
33843elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000033844 as_echo='printf %s\n'
33845 as_echo_n='printf %s'
33846else
33847 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33848 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33849 as_echo_n='/usr/ucb/echo -n'
33850 else
33851 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33852 as_echo_n_body='eval
33853 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000033854 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000033855 *"$as_nl"*)
33856 expr "X$arg" : "X\\(.*\\)$as_nl";
33857 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33858 esac;
33859 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33860 '
33861 export as_echo_n_body
33862 as_echo_n='sh -c $as_echo_n_body as_echo'
33863 fi
33864 export as_echo_body
33865 as_echo='sh -c $as_echo_body as_echo'
33866fi
33867
33868# The user is always right.
33869if test "${PATH_SEPARATOR+set}" != set; then
33870 PATH_SEPARATOR=:
33871 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33872 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33873 PATH_SEPARATOR=';'
33874 }
33875fi
33876
cristy3ed852e2009-09-05 21:47:34 +000033877
33878# IFS
33879# We need space, tab and new line, in precisely that order. Quoting is
33880# there to prevent editors from complaining about space-tab.
33881# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33882# splitting by setting IFS to empty value.)
33883IFS=" "" $as_nl"
33884
33885# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000033886as_myself=
cristy8b350f62009-11-15 23:12:43 +000033887case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000033888 *[\\/]* ) as_myself=$0 ;;
33889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33890for as_dir in $PATH
33891do
33892 IFS=$as_save_IFS
33893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33895 done
cristy3ed852e2009-09-05 21:47:34 +000033896IFS=$as_save_IFS
33897
33898 ;;
33899esac
33900# We did not find ourselves, most probably we were run as `sh COMMAND'
33901# in which case we are not to be found in the path.
33902if test "x$as_myself" = x; then
33903 as_myself=$0
33904fi
33905if test ! -f "$as_myself"; then
33906 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000033907 exit 1
cristy3ed852e2009-09-05 21:47:34 +000033908fi
33909
cristy8b350f62009-11-15 23:12:43 +000033910# Unset variables that we do not need and which cause bugs (e.g. in
33911# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33912# suppresses any "Segmentation fault" message there. '((' could
33913# trigger a bug in pdksh 5.2.14.
33914for as_var in BASH_ENV ENV MAIL MAILPATH
33915do eval test x\${$as_var+set} = xset \
33916 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000033917done
33918PS1='$ '
33919PS2='> '
33920PS4='+ '
33921
33922# NLS nuisances.
33923LC_ALL=C
33924export LC_ALL
33925LANGUAGE=C
33926export LANGUAGE
33927
cristy8b350f62009-11-15 23:12:43 +000033928# CDPATH.
33929(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33930
33931
cristy98dddb52010-11-04 00:30:15 +000033932# as_fn_error STATUS ERROR [LINENO LOG_FD]
33933# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000033934# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33935# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000033936# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000033937as_fn_error ()
33938{
cristy98dddb52010-11-04 00:30:15 +000033939 as_status=$1; test $as_status -eq 0 && as_status=1
33940 if test "$4"; then
33941 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33942 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000033943 fi
cristy98dddb52010-11-04 00:30:15 +000033944 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000033945 as_fn_exit $as_status
33946} # as_fn_error
33947
33948
33949# as_fn_set_status STATUS
33950# -----------------------
33951# Set $? to STATUS, without forking.
33952as_fn_set_status ()
33953{
33954 return $1
33955} # as_fn_set_status
33956
33957# as_fn_exit STATUS
33958# -----------------
33959# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33960as_fn_exit ()
33961{
33962 set +e
33963 as_fn_set_status $1
33964 exit $1
33965} # as_fn_exit
33966
33967# as_fn_unset VAR
33968# ---------------
33969# Portably unset VAR.
33970as_fn_unset ()
33971{
33972 { eval $1=; unset $1;}
33973}
33974as_unset=as_fn_unset
33975# as_fn_append VAR VALUE
33976# ----------------------
33977# Append the text in VALUE to the end of the definition contained in VAR. Take
33978# advantage of any shell optimizations that allow amortized linear growth over
33979# repeated appends, instead of the typical quadratic growth present in naive
33980# implementations.
33981if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33982 eval 'as_fn_append ()
33983 {
33984 eval $1+=\$2
33985 }'
33986else
33987 as_fn_append ()
33988 {
33989 eval $1=\$$1\$2
33990 }
33991fi # as_fn_append
33992
33993# as_fn_arith ARG...
33994# ------------------
33995# Perform arithmetic evaluation on the ARGs, and store the result in the
33996# global $as_val. Take advantage of shells that can avoid forks. The arguments
33997# must be portable across $(()) and expr.
33998if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33999 eval 'as_fn_arith ()
34000 {
34001 as_val=$(( $* ))
34002 }'
34003else
34004 as_fn_arith ()
34005 {
34006 as_val=`expr "$@" || test $? -eq 1`
34007 }
34008fi # as_fn_arith
34009
34010
cristy3ed852e2009-09-05 21:47:34 +000034011if expr a : '\(a\)' >/dev/null 2>&1 &&
34012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34013 as_expr=expr
34014else
34015 as_expr=false
34016fi
34017
34018if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34019 as_basename=basename
34020else
34021 as_basename=false
34022fi
34023
cristy8b350f62009-11-15 23:12:43 +000034024if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34025 as_dirname=dirname
34026else
34027 as_dirname=false
34028fi
cristy3ed852e2009-09-05 21:47:34 +000034029
cristy3ed852e2009-09-05 21:47:34 +000034030as_me=`$as_basename -- "$0" ||
34031$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34032 X"$0" : 'X\(//\)$' \| \
34033 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34034$as_echo X/"$0" |
34035 sed '/^.*\/\([^/][^/]*\)\/*$/{
34036 s//\1/
34037 q
34038 }
34039 /^X\/\(\/\/\)$/{
34040 s//\1/
34041 q
34042 }
34043 /^X\/\(\/\).*/{
34044 s//\1/
34045 q
34046 }
34047 s/.*/./; q'`
34048
cristy8b350f62009-11-15 23:12:43 +000034049# Avoid depending upon Character Ranges.
34050as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34051as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34052as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34053as_cr_digits='0123456789'
34054as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000034055
34056ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000034057case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000034058-n*)
cristy8b350f62009-11-15 23:12:43 +000034059 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000034060 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000034061 xy) ECHO_C='\c';;
34062 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34063 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000034064 esac;;
34065*)
34066 ECHO_N='-n';;
34067esac
cristy3ed852e2009-09-05 21:47:34 +000034068
34069rm -f conf$$ conf$$.exe conf$$.file
34070if test -d conf$$.dir; then
34071 rm -f conf$$.dir/conf$$.file
34072else
34073 rm -f conf$$.dir
34074 mkdir conf$$.dir 2>/dev/null
34075fi
34076if (echo >conf$$.file) 2>/dev/null; then
34077 if ln -s conf$$.file conf$$ 2>/dev/null; then
34078 as_ln_s='ln -s'
34079 # ... but there are two gotchas:
34080 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34081 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34082 # In both cases, we have to default to `cp -p'.
34083 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34084 as_ln_s='cp -p'
34085 elif ln conf$$.file conf$$ 2>/dev/null; then
34086 as_ln_s=ln
34087 else
34088 as_ln_s='cp -p'
34089 fi
34090else
34091 as_ln_s='cp -p'
34092fi
34093rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34094rmdir conf$$.dir 2>/dev/null
34095
cristy8b350f62009-11-15 23:12:43 +000034096
34097# as_fn_mkdir_p
34098# -------------
34099# Create "$as_dir" as a directory, including parents if necessary.
34100as_fn_mkdir_p ()
34101{
34102
34103 case $as_dir in #(
34104 -*) as_dir=./$as_dir;;
34105 esac
34106 test -d "$as_dir" || eval $as_mkdir_p || {
34107 as_dirs=
34108 while :; do
34109 case $as_dir in #(
34110 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34111 *) as_qdir=$as_dir;;
34112 esac
34113 as_dirs="'$as_qdir' $as_dirs"
34114 as_dir=`$as_dirname -- "$as_dir" ||
34115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34116 X"$as_dir" : 'X\(//\)[^/]' \| \
34117 X"$as_dir" : 'X\(//\)$' \| \
34118 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34119$as_echo X"$as_dir" |
34120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34121 s//\1/
34122 q
34123 }
34124 /^X\(\/\/\)[^/].*/{
34125 s//\1/
34126 q
34127 }
34128 /^X\(\/\/\)$/{
34129 s//\1/
34130 q
34131 }
34132 /^X\(\/\).*/{
34133 s//\1/
34134 q
34135 }
34136 s/.*/./; q'`
34137 test -d "$as_dir" && break
34138 done
34139 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000034140 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000034141
34142
34143} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000034144if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000034145 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000034146else
34147 test -d ./-p && rmdir ./-p
34148 as_mkdir_p=false
34149fi
34150
34151if test -x / >/dev/null 2>&1; then
34152 as_test_x='test -x'
34153else
34154 if ls -dL / >/dev/null 2>&1; then
34155 as_ls_L_option=L
34156 else
34157 as_ls_L_option=
34158 fi
34159 as_test_x='
34160 eval sh -c '\''
34161 if test -d "$1"; then
34162 test -d "$1/.";
34163 else
cristy8b350f62009-11-15 23:12:43 +000034164 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000034165 -*)set "./$1";;
34166 esac;
cristy8b350f62009-11-15 23:12:43 +000034167 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000034168 ???[sx]*):;;*)false;;esac;fi
34169 '\'' sh
34170 '
34171fi
34172as_executable_p=$as_test_x
34173
34174# Sed expression to map a string onto a valid CPP name.
34175as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34176
34177# Sed expression to map a string onto a valid variable name.
34178as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34179
34180
34181exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000034182## ----------------------------------- ##
34183## Main body of $CONFIG_STATUS script. ##
34184## ----------------------------------- ##
34185_ASEOF
34186test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000034187
cristy8b350f62009-11-15 23:12:43 +000034188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34189# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000034190# report actual input values of CONFIG_FILES etc. instead of their
34191# values after options handling.
34192ac_log="
cristyee742642011-02-26 02:49:59 +000034193This file was extended by ImageMagick $as_me 6.6.8, which was
cristyda16f162011-02-19 23:52:17 +000034194generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000034195
34196 CONFIG_FILES = $CONFIG_FILES
34197 CONFIG_HEADERS = $CONFIG_HEADERS
34198 CONFIG_LINKS = $CONFIG_LINKS
34199 CONFIG_COMMANDS = $CONFIG_COMMANDS
34200 $ $0 $@
34201
34202on `(hostname || uname -n) 2>/dev/null | sed 1q`
34203"
34204
34205_ACEOF
34206
34207case $ac_config_files in *"
34208"*) set x $ac_config_files; shift; ac_config_files=$*;;
34209esac
34210
34211case $ac_config_headers in *"
34212"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34213esac
34214
34215
34216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34217# Files that config.status was made for.
34218config_files="$ac_config_files"
34219config_headers="$ac_config_headers"
34220config_commands="$ac_config_commands"
34221
34222_ACEOF
34223
34224cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34225ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000034226\`$as_me' instantiates files and other configuration actions
34227from templates according to the current configuration. Unless the files
34228and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000034229
cristy8b350f62009-11-15 23:12:43 +000034230Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000034231
34232 -h, --help print this help, then exit
34233 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000034234 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000034235 -q, --quiet, --silent
34236 do not print progress messages
34237 -d, --debug don't remove temporary files
34238 --recheck update $as_me by reconfiguring in the same conditions
34239 --file=FILE[:TEMPLATE]
34240 instantiate the configuration file FILE
34241 --header=FILE[:TEMPLATE]
34242 instantiate the configuration header FILE
34243
34244Configuration files:
34245$config_files
34246
34247Configuration headers:
34248$config_headers
34249
34250Configuration commands:
34251$config_commands
34252
cristy8b350f62009-11-15 23:12:43 +000034253Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000034254
34255_ACEOF
34256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000034257ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000034258ac_cs_version="\\
cristyee742642011-02-26 02:49:59 +000034259ImageMagick config.status 6.6.8
cristyda16f162011-02-19 23:52:17 +000034260configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000034261 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000034262
cristy98dddb52010-11-04 00:30:15 +000034263Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000034264This config.status script is free software; the Free Software Foundation
34265gives unlimited permission to copy, distribute and modify it."
34266
34267ac_pwd='$ac_pwd'
34268srcdir='$srcdir'
34269INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000034270MKDIR_P='$MKDIR_P'
34271AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000034272test -n "\$AWK" || AWK=awk
34273_ACEOF
34274
34275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34276# The default lists apply if the user does not specify any file.
34277ac_need_defaults=:
34278while test $# != 0
34279do
34280 case $1 in
cristyda16f162011-02-19 23:52:17 +000034281 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000034282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34284 ac_shift=:
34285 ;;
cristyda16f162011-02-19 23:52:17 +000034286 --*=)
34287 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34288 ac_optarg=
34289 ac_shift=:
34290 ;;
cristy3ed852e2009-09-05 21:47:34 +000034291 *)
34292 ac_option=$1
34293 ac_optarg=$2
34294 ac_shift=shift
34295 ;;
34296 esac
34297
34298 case $ac_option in
34299 # Handling of the options.
34300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34301 ac_cs_recheck=: ;;
34302 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34303 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000034304 --config | --confi | --conf | --con | --co | --c )
34305 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000034306 --debug | --debu | --deb | --de | --d | -d )
34307 debug=: ;;
34308 --file | --fil | --fi | --f )
34309 $ac_shift
34310 case $ac_optarg in
34311 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000034312 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000034313 esac
cristy8b350f62009-11-15 23:12:43 +000034314 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034315 ac_need_defaults=false;;
34316 --header | --heade | --head | --hea )
34317 $ac_shift
34318 case $ac_optarg in
34319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34320 esac
cristy8b350f62009-11-15 23:12:43 +000034321 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000034322 ac_need_defaults=false;;
34323 --he | --h)
34324 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000034325 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034326Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000034327 --help | --hel | -h )
34328 $as_echo "$ac_cs_usage"; exit ;;
34329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34330 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34331 ac_cs_silent=: ;;
34332
34333 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000034334 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000034335Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000034336
cristy8b350f62009-11-15 23:12:43 +000034337 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000034338 ac_need_defaults=false ;;
34339
34340 esac
34341 shift
34342done
34343
34344ac_configure_extra_args=
34345
34346if $ac_cs_silent; then
34347 exec 6>/dev/null
34348 ac_configure_extra_args="$ac_configure_extra_args --silent"
34349fi
34350
34351_ACEOF
34352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34353if \$ac_cs_recheck; then
34354 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34355 shift
34356 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34357 CONFIG_SHELL='$SHELL'
34358 export CONFIG_SHELL
34359 exec "\$@"
34360fi
34361
34362_ACEOF
34363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34364exec 5>>config.log
34365{
34366 echo
34367 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34368## Running $as_me. ##
34369_ASBOX
34370 $as_echo "$ac_log"
34371} >&5
34372
34373_ACEOF
34374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000034375#
34376# INIT-COMMANDS
34377#
34378PACKAGE="$PACKAGE"
34379AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34380
34381
34382# The HP-UX ksh and POSIX shell print the target directory to stdout
34383# if CDPATH is set.
34384(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34385
34386sed_quote_subst='$sed_quote_subst'
34387double_quote_subst='$double_quote_subst'
34388delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000034389SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34390Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34391GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34392EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34393FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34394SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34395ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34396LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34397macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34398macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34399AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34400DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34401OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34402enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34403enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34404pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34405enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34406host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34407host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34408host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34409build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34410build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34411build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34412NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34413LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34414max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34415ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34416exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34417lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34418lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34419lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034420lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34421lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034422reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34423reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34424deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34425file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034426file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34427want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34428sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034429AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34430AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034431archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034432STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34433RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34434old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34435old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34436old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34437lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34438CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34439CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34440compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34441GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34442lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34443lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34444lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34445lt_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 +000034446nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34447lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034448objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34449MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34450lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034451lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034452lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034453lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34454lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34455need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034456MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034457DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34458NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34459LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34460OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34461OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34462libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34463shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34464extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34465archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34466enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34467export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34468whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34469compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34470old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34471old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34472archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34473archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34474module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34475module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34476with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34477allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34478no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34479hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34480hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34481hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34482hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34483hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34484hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34485hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34486hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34487inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34488link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034489always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34490export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34491exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34492include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34493prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034494postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034495file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34496variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34497need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34498need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34499version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34500runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34501shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34502shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34503libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34504library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34505soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34506install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34507postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34508postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34509finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34510finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34511hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34512sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34513sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34514hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34515enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34516enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34517enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34518old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34519striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34520compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34521predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34522postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34523predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34524postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34525compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34526LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34527reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34528reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34529old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34530compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34531GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34532lt_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 +000034533lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034534lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034535lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34536lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34537archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34538enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34539export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34540whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34541compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34542old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34543old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34544archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34545archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34546module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34547module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34548with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34549allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34550no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34551hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34552hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34553hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34554hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34555hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34556hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34557hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34558hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34559inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34560link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034561always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34562export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34563exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34564include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34565prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000034566postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000034567file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34568hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34569compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34570predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34571postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34572predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34573postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34574compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000034575
34576LTCC='$LTCC'
34577LTCFLAGS='$LTCFLAGS'
34578compiler='$compiler_DEFAULT'
34579
cristy0c60a692010-11-04 01:09:47 +000034580# A function that is used when there is no print builtin or printf.
34581func_fallback_echo ()
34582{
34583 eval 'cat <<_LTECHO_EOF
34584\$1
34585_LTECHO_EOF'
34586}
34587
cristy73bd4a52010-10-05 11:24:23 +000034588# Quote evaled strings.
34589for var in SED \
34590GREP \
34591EGREP \
34592FGREP \
cristy0c60a692010-11-04 01:09:47 +000034593SHELL \
34594ECHO \
cristy73bd4a52010-10-05 11:24:23 +000034595LD \
cristy0c60a692010-11-04 01:09:47 +000034596AS \
34597DLLTOOL \
34598OBJDUMP \
cristy73bd4a52010-10-05 11:24:23 +000034599NM \
34600LN_S \
34601lt_SP2NL \
34602lt_NL2SP \
34603reload_flag \
34604deplibs_check_method \
34605file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000034606file_magic_glob \
34607want_nocaseglob \
34608sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000034609AR \
34610AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000034611archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034612STRIP \
34613RANLIB \
34614CC \
34615CFLAGS \
34616compiler \
34617lt_cv_sys_global_symbol_pipe \
34618lt_cv_sys_global_symbol_to_cdecl \
34619lt_cv_sys_global_symbol_to_c_name_address \
34620lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000034621nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000034622lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000034623lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000034624lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000034625lt_prog_compiler_static \
34626lt_cv_prog_compiler_c_o \
34627need_locks \
cristyda16f162011-02-19 23:52:17 +000034628MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000034629DSYMUTIL \
34630NMEDIT \
34631LIPO \
34632OTOOL \
34633OTOOL64 \
34634shrext_cmds \
34635export_dynamic_flag_spec \
34636whole_archive_flag_spec \
34637compiler_needs_object \
34638with_gnu_ld \
34639allow_undefined_flag \
34640no_undefined_flag \
34641hardcode_libdir_flag_spec \
34642hardcode_libdir_flag_spec_ld \
34643hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000034644exclude_expsyms \
34645include_expsyms \
34646file_list_spec \
34647variables_saved_for_relink \
34648libname_spec \
34649library_names_spec \
34650soname_spec \
cristy0c60a692010-11-04 01:09:47 +000034651install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000034652finish_eval \
34653old_striplib \
34654striplib \
34655compiler_lib_search_dirs \
34656predep_objects \
34657postdep_objects \
34658predeps \
34659postdeps \
34660compiler_lib_search_path \
34661LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000034662reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034663compiler_CXX \
34664lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034665lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000034666lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034667lt_prog_compiler_static_CXX \
34668lt_cv_prog_compiler_c_o_CXX \
34669export_dynamic_flag_spec_CXX \
34670whole_archive_flag_spec_CXX \
34671compiler_needs_object_CXX \
34672with_gnu_ld_CXX \
34673allow_undefined_flag_CXX \
34674no_undefined_flag_CXX \
34675hardcode_libdir_flag_spec_CXX \
34676hardcode_libdir_flag_spec_ld_CXX \
34677hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034678exclude_expsyms_CXX \
34679include_expsyms_CXX \
34680file_list_spec_CXX \
34681compiler_lib_search_dirs_CXX \
34682predep_objects_CXX \
34683postdep_objects_CXX \
34684predeps_CXX \
34685postdeps_CXX \
34686compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034688 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034690 ;;
34691 *)
34692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34693 ;;
34694 esac
34695done
34696
34697# Double-quote double-evaled strings.
34698for var in reload_cmds \
34699old_postinstall_cmds \
34700old_postuninstall_cmds \
34701old_archive_cmds \
34702extract_expsyms_cmds \
34703old_archive_from_new_cmds \
34704old_archive_from_expsyms_cmds \
34705archive_cmds \
34706archive_expsym_cmds \
34707module_cmds \
34708module_expsym_cmds \
34709export_symbols_cmds \
34710prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000034711postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000034712postinstall_cmds \
34713postuninstall_cmds \
34714finish_cmds \
34715sys_lib_search_path_spec \
34716sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000034717reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000034718old_archive_cmds_CXX \
34719old_archive_from_new_cmds_CXX \
34720old_archive_from_expsyms_cmds_CXX \
34721archive_cmds_CXX \
34722archive_expsym_cmds_CXX \
34723module_cmds_CXX \
34724module_expsym_cmds_CXX \
34725export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000034726prelink_cmds_CXX \
34727postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000034728 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000034729 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000034730 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000034731 ;;
34732 *)
34733 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34734 ;;
34735 esac
34736done
34737
cristy73bd4a52010-10-05 11:24:23 +000034738ac_aux_dir='$ac_aux_dir'
34739xsi_shell='$xsi_shell'
34740lt_shell_append='$lt_shell_append'
34741
34742# See if we are running on zsh, and set the options which allow our
34743# commands through without removal of \ escapes INIT.
34744if test -n "\${ZSH_VERSION+set}" ; then
34745 setopt NO_GLOB_SUBST
34746fi
34747
34748
34749 PACKAGE='$PACKAGE'
34750 VERSION='$VERSION'
34751 TIMESTAMP='$TIMESTAMP'
34752 RM='$RM'
34753 ofile='$ofile'
34754
34755
34756
34757
34758
34759
cristy3ed852e2009-09-05 21:47:34 +000034760_ACEOF
34761
34762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34763
34764# Handling of arguments.
34765for ac_config_target in $ac_config_targets
34766do
34767 case $ac_config_target in
34768 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy73bd4a52010-10-05 11:24:23 +000034769 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000034770 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34771 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34772 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34773 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34774 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000034775 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000034776 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34777 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34778 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34779 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34780 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34781 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34782 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34783 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34784 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34785 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34786 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34787 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34788 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34789 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34790 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34791 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34792 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34793 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34794 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34795 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34796 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34797 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34798 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34799 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34800 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34801 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34802 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34803 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34804 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34805 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34806 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34807 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34808 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000034809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34810 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000034811 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34812 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34813 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34814 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34815 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34816 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34817 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34818
cristy98dddb52010-11-04 00:30:15 +000034819 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000034820 esac
34821done
34822
34823
34824# If the user did not use the arguments to specify the items to instantiate,
34825# then the envvar interface is used. Set only those that are not.
34826# We use the long form for the default assignment because of an extremely
34827# bizarre bug on SunOS 4.1.3.
34828if $ac_need_defaults; then
34829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34832fi
34833
34834# Have a temporary directory for convenience. Make it in the build tree
34835# simply because there is no reason against having it here, and in addition,
34836# creating and moving files from /tmp can sometimes cause problems.
34837# Hook for its removal unless debugging.
34838# Note that there is a small window in which the directory will not be cleaned:
34839# after its creation but before its name has been assigned to `$tmp'.
34840$debug ||
34841{
cristyda16f162011-02-19 23:52:17 +000034842 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000034843 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000034844 : "${ac_tmp:=$tmp}"
34845 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000034846' 0
cristy8b350f62009-11-15 23:12:43 +000034847 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000034848}
34849# Create a (secure) tmp directory for tmp files.
34850
34851{
34852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000034853 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000034854} ||
34855{
34856 tmp=./conf$$-$RANDOM
34857 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000034858} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000034859ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000034860
34861# Set up the scripts for CONFIG_FILES section.
34862# No need to generate them if there are no CONFIG_FILES.
34863# This happens for instance with `./config.status config.h'.
34864if test -n "$CONFIG_FILES"; then
34865
34866
cristy8b350f62009-11-15 23:12:43 +000034867ac_cr=`echo X | tr X '\015'`
34868# On cygwin, bash can eat \r inside `` if the user requested igncr.
34869# But we know of no other shell where ac_cr would be empty at this
34870# point, so we can use a bashism as a fallback.
34871if test "x$ac_cr" = x; then
34872 eval ac_cr=\$\'\\r\'
34873fi
cristy3ed852e2009-09-05 21:47:34 +000034874ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34875if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000034876 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000034877else
34878 ac_cs_awk_cr=$ac_cr
34879fi
34880
cristyda16f162011-02-19 23:52:17 +000034881echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000034882_ACEOF
34883
34884
34885{
34886 echo "cat >conf$$subs.awk <<_ACEOF" &&
34887 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34888 echo "_ACEOF"
34889} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034890 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34891ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000034892ac_delim='%!_!# '
34893for ac_last_try in false false false false false :; do
34894 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000034895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034896
34897 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34898 if test $ac_delim_n = $ac_delim_num; then
34899 break
34900 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000034901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034902 else
34903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34904 fi
34905done
34906rm -f conf$$subs.sh
34907
34908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000034909cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034910_ACEOF
34911sed -n '
34912h
34913s/^/S["/; s/!.*/"]=/
34914p
34915g
34916s/^[^!]*!//
34917:repl
34918t repl
34919s/'"$ac_delim"'$//
34920t delim
34921:nl
34922h
cristycd4c5312009-11-22 01:19:08 +000034923s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034924t more1
34925s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34926p
34927n
34928b repl
34929:more1
34930s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34931p
34932g
34933s/.\{148\}//
34934t nl
34935:delim
34936h
cristycd4c5312009-11-22 01:19:08 +000034937s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000034938t more2
34939s/["\\]/\\&/g; s/^/"/; s/$/"/
34940p
34941b
34942:more2
34943s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34944p
34945g
34946s/.\{148\}//
34947t delim
34948' <conf$$subs.awk | sed '
34949/^[^""]/{
34950 N
34951 s/\n//
34952}
34953' >>$CONFIG_STATUS || ac_write_fail=1
34954rm -f conf$$subs.awk
34955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34956_ACAWK
cristyda16f162011-02-19 23:52:17 +000034957cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000034958 for (key in S) S_is_set[key] = 1
34959 FS = ""
34960
34961}
34962{
34963 line = $ 0
34964 nfields = split(line, field, "@")
34965 substed = 0
34966 len = length(field[1])
34967 for (i = 2; i < nfields; i++) {
34968 key = field[i]
34969 keylen = length(key)
34970 if (S_is_set[key]) {
34971 value = S[key]
34972 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34973 len += length(value) + length(field[++i])
34974 substed = 1
34975 } else
34976 len += 1 + keylen
34977 }
34978
34979 print line
34980}
34981
34982_ACAWK
34983_ACEOF
34984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34985if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34987else
34988 cat
cristyda16f162011-02-19 23:52:17 +000034989fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000034990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000034991_ACEOF
34992
cristy98dddb52010-11-04 00:30:15 +000034993# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34994# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000034995# trailing colons and then remove the whole line if VPATH becomes empty
34996# (actually we leave an empty line to preserve line numbers).
34997if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000034998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34999h
35000s///
35001s/^/:/
35002s/[ ]*$/:/
35003s/:\$(srcdir):/:/g
35004s/:\${srcdir}:/:/g
35005s/:@srcdir@:/:/g
35006s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000035007s/:*$//
cristy98dddb52010-11-04 00:30:15 +000035008x
35009s/\(=[ ]*\).*/\1/
35010G
35011s/\n//
cristy3ed852e2009-09-05 21:47:34 +000035012s/^[^=]*=[ ]*$//
35013}'
35014fi
35015
35016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35017fi # test -n "$CONFIG_FILES"
35018
35019# Set up the scripts for CONFIG_HEADERS section.
35020# No need to generate them if there are no CONFIG_HEADERS.
35021# This happens for instance with `./config.status Makefile'.
35022if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000035023cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000035024BEGIN {
35025_ACEOF
35026
35027# Transform confdefs.h into an awk script `defines.awk', embedded as
35028# here-document in config.status, that substitutes the proper values into
35029# config.h.in to produce config.h.
35030
35031# Create a delimiter string that does not exist in confdefs.h, to ease
35032# handling of long lines.
35033ac_delim='%!_!# '
35034for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000035035 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35036 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000035037 break
35038 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000035039 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035040 else
35041 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35042 fi
35043done
35044
35045# For the awk script, D is an array of macro values keyed by name,
35046# likewise P contains macro parameters if any. Preserve backslash
35047# newline sequences.
35048
35049ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35050sed -n '
35051s/.\{148\}/&'"$ac_delim"'/g
35052t rset
35053:rset
35054s/^[ ]*#[ ]*define[ ][ ]*/ /
35055t def
35056d
35057:def
35058s/\\$//
35059t bsnl
35060s/["\\]/\\&/g
35061s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35062D["\1"]=" \3"/p
35063s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35064d
35065:bsnl
35066s/["\\]/\\&/g
35067s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35068D["\1"]=" \3\\\\\\n"\\/p
35069t cont
35070s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35071t cont
35072d
35073:cont
35074n
35075s/.\{148\}/&'"$ac_delim"'/g
35076t clear
35077:clear
35078s/\\$//
35079t bsnlc
35080s/["\\]/\\&/g; s/^/"/; s/$/"/p
35081d
35082:bsnlc
35083s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35084b cont
35085' <confdefs.h | sed '
35086s/'"$ac_delim"'/"\\\
35087"/g' >>$CONFIG_STATUS || ac_write_fail=1
35088
35089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35090 for (key in D) D_is_set[key] = 1
35091 FS = ""
35092}
35093/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35094 line = \$ 0
35095 split(line, arg, " ")
35096 if (arg[1] == "#") {
35097 defundef = arg[2]
35098 mac1 = arg[3]
35099 } else {
35100 defundef = substr(arg[1], 2)
35101 mac1 = arg[2]
35102 }
35103 split(mac1, mac2, "(") #)
35104 macro = mac2[1]
35105 prefix = substr(line, 1, index(line, defundef) - 1)
35106 if (D_is_set[macro]) {
35107 # Preserve the white space surrounding the "#".
35108 print prefix "define", macro P[macro] D[macro]
35109 next
35110 } else {
35111 # Replace #undef with comments. This is necessary, for example,
35112 # in the case of _POSIX_SOURCE, which is predefined and required
35113 # on some systems where configure will not decide to define it.
35114 if (defundef == "undef") {
35115 print "/*", prefix defundef, macro, "*/"
35116 next
35117 }
35118 }
35119}
35120{ print }
35121_ACAWK
35122_ACEOF
35123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000035124 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035125fi # test -n "$CONFIG_HEADERS"
35126
35127
35128eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35129shift
35130for ac_tag
35131do
35132 case $ac_tag in
35133 :[FHLC]) ac_mode=$ac_tag; continue;;
35134 esac
35135 case $ac_mode$ac_tag in
35136 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000035137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035138 :[FH]-) ac_tag=-:-;;
35139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35140 esac
35141 ac_save_IFS=$IFS
35142 IFS=:
35143 set x $ac_tag
35144 IFS=$ac_save_IFS
35145 shift
35146 ac_file=$1
35147 shift
35148
35149 case $ac_mode in
35150 :L) ac_source=$1;;
35151 :[FH])
35152 ac_file_inputs=
35153 for ac_f
35154 do
35155 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000035156 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000035157 *) # Look for the file first in the build tree, then in the source tree
35158 # (if the path is not absolute). The absolute path cannot be DOS-style,
35159 # because $ac_f cannot contain `:'.
35160 test -f "$ac_f" ||
35161 case $ac_f in
35162 [\\/$]*) false;;
35163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35164 esac ||
cristy98dddb52010-11-04 00:30:15 +000035165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000035166 esac
35167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000035168 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000035169 done
35170
35171 # Let's still pretend it is `configure' which instantiates (i.e., don't
35172 # use $as_me), people would be surprised to read:
35173 # /* config.h. Generated by config.status. */
35174 configure_input='Generated from '`
35175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35176 `' by configure.'
35177 if test x"$ac_file" != x-; then
35178 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180$as_echo "$as_me: creating $ac_file" >&6;}
35181 fi
35182 # Neutralize special characters interpreted by sed in replacement strings.
35183 case $configure_input in #(
35184 *\&* | *\|* | *\\* )
35185 ac_sed_conf_input=`$as_echo "$configure_input" |
35186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35187 *) ac_sed_conf_input=$configure_input;;
35188 esac
35189
35190 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000035191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000035192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000035193 esac
35194 ;;
35195 esac
35196
35197 ac_dir=`$as_dirname -- "$ac_file" ||
35198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35199 X"$ac_file" : 'X\(//\)[^/]' \| \
35200 X"$ac_file" : 'X\(//\)$' \| \
35201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35202$as_echo X"$ac_file" |
35203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35204 s//\1/
35205 q
35206 }
35207 /^X\(\/\/\)[^/].*/{
35208 s//\1/
35209 q
35210 }
35211 /^X\(\/\/\)$/{
35212 s//\1/
35213 q
35214 }
35215 /^X\(\/\).*/{
35216 s//\1/
35217 q
35218 }
35219 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000035220 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035221 ac_builddir=.
35222
35223case "$ac_dir" in
35224.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35225*)
35226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35227 # A ".." for each directory in $ac_dir_suffix.
35228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35229 case $ac_top_builddir_sub in
35230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35232 esac ;;
35233esac
35234ac_abs_top_builddir=$ac_pwd
35235ac_abs_builddir=$ac_pwd$ac_dir_suffix
35236# for backward compatibility:
35237ac_top_builddir=$ac_top_build_prefix
35238
35239case $srcdir in
35240 .) # We are building in place.
35241 ac_srcdir=.
35242 ac_top_srcdir=$ac_top_builddir_sub
35243 ac_abs_top_srcdir=$ac_pwd ;;
35244 [\\/]* | ?:[\\/]* ) # Absolute name.
35245 ac_srcdir=$srcdir$ac_dir_suffix;
35246 ac_top_srcdir=$srcdir
35247 ac_abs_top_srcdir=$srcdir ;;
35248 *) # Relative name.
35249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35250 ac_top_srcdir=$ac_top_build_prefix$srcdir
35251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35252esac
35253ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35254
35255
35256 case $ac_mode in
35257 :F)
35258 #
35259 # CONFIG_FILE
35260 #
35261
35262 case $INSTALL in
35263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35265 esac
cristy73bd4a52010-10-05 11:24:23 +000035266 ac_MKDIR_P=$MKDIR_P
35267 case $MKDIR_P in
35268 [\\/$]* | ?:[\\/]* ) ;;
35269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35270 esac
cristy3ed852e2009-09-05 21:47:34 +000035271_ACEOF
35272
35273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35274# If the template does not know about datarootdir, expand it.
35275# FIXME: This hack should be removed a few years after 2.60.
35276ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000035277ac_sed_dataroot='
35278/datarootdir/ {
35279 p
35280 q
35281}
35282/@datadir@/p
35283/@docdir@/p
35284/@infodir@/p
35285/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000035286/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000035287case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35288*datarootdir*) ac_datarootdir_seen=yes;;
35289*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000035290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000035291$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35292_ACEOF
35293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35294 ac_datarootdir_hack='
35295 s&@datadir@&$datadir&g
35296 s&@docdir@&$docdir&g
35297 s&@infodir@&$infodir&g
35298 s&@localedir@&$localedir&g
35299 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000035300 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000035301esac
35302_ACEOF
35303
35304# Neutralize VPATH when `$srcdir' = `.'.
35305# Shell code in configure.ac might set extrasub.
35306# FIXME: do we really want to maintain this feature?
35307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35308ac_sed_extra="$ac_vpsub
35309$extrasub
35310_ACEOF
35311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35312:t
35313/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35314s|@configure_input@|$ac_sed_conf_input|;t t
35315s&@top_builddir@&$ac_top_builddir_sub&;t t
35316s&@top_build_prefix@&$ac_top_build_prefix&;t t
35317s&@srcdir@&$ac_srcdir&;t t
35318s&@abs_srcdir@&$ac_abs_srcdir&;t t
35319s&@top_srcdir@&$ac_top_srcdir&;t t
35320s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35321s&@builddir@&$ac_builddir&;t t
35322s&@abs_builddir@&$ac_abs_builddir&;t t
35323s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35324s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000035325s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000035326$ac_datarootdir_hack
35327"
cristyda16f162011-02-19 23:52:17 +000035328eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035330
35331test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000035332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35334 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000035335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035336which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000035338which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000035339
cristyda16f162011-02-19 23:52:17 +000035340 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000035341 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000035342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000035344 esac \
cristy98dddb52010-11-04 00:30:15 +000035345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035346 ;;
35347 :H)
35348 #
35349 # CONFIG_HEADER
35350 #
35351 if test x"$ac_file" != x-; then
35352 {
35353 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035354 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35355 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000035356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000035357 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000035358 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000035359$as_echo "$as_me: $ac_file is unchanged" >&6;}
35360 else
35361 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000035362 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000035363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035364 fi
35365 else
35366 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000035367 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000035368 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000035369 fi
cristy73bd4a52010-10-05 11:24:23 +000035370# Compute "$ac_file"'s index in $config_headers.
35371_am_arg="$ac_file"
35372_am_stamp_count=1
35373for _am_header in $config_headers :; do
35374 case $_am_header in
35375 $_am_arg | $_am_arg:* )
35376 break ;;
35377 * )
35378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35379 esac
35380done
35381echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35382$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35383 X"$_am_arg" : 'X\(//\)[^/]' \| \
35384 X"$_am_arg" : 'X\(//\)$' \| \
35385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35386$as_echo X"$_am_arg" |
35387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35388 s//\1/
35389 q
35390 }
35391 /^X\(\/\/\)[^/].*/{
35392 s//\1/
35393 q
35394 }
35395 /^X\(\/\/\)$/{
35396 s//\1/
35397 q
35398 }
35399 /^X\(\/\).*/{
35400 s//\1/
35401 q
35402 }
35403 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000035404 ;;
35405
cristy8b350f62009-11-15 23:12:43 +000035406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000035407$as_echo "$as_me: executing $ac_file commands" >&6;}
35408 ;;
35409 esac
35410
35411
35412 case $ac_file$ac_mode in
cristy73bd4a52010-10-05 11:24:23 +000035413 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35414ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35415ac_prefix_conf_PKG=`echo MagickCore`
35416ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35417ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35418ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35419if test ".$ac_prefix_conf_INP" = "."; then
35420 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35421 case "$ac_file" in
35422 *.h) ac_prefix_conf_INP=$ac_file ;;
35423 *)
35424 esac
35425 test ".$ac_prefix_conf_INP" != "." && break
35426 done
35427fi
35428if test ".$ac_prefix_conf_INP" = "."; then
35429 case "$ac_prefix_conf_OUT" in
35430 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35431 ;;
35432 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35433 ;;
35434 *) ac_prefix_conf_INP=config.h
35435 ;;
35436 esac
35437fi
35438if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000035439 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000035440else
35441 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35442 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35443 fi fi
35444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35445$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35446 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000035447 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35448 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35449 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35450 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35451 $as_echo "#endif/" >> conftest.prefix
35452 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35453 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35454 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000035455 # now executing _script on _DEF input to create _OUT output file
35456 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35457 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35458 echo ' ' >>$tmp/pconfig.h
35459 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35460
35461 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35462 echo ' ' >>$tmp/pconfig.h
35463 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35464 echo "#endif" >>$tmp/pconfig.h
35465 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35466 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35467$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35468 else
35469 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35470$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35471 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35472 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35473 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35474$as_echo X"$ac_prefix_conf_OUT" |
35475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35476 s//\1/
35477 q
35478 }
35479 /^X\(\/\/\)[^/].*/{
35480 s//\1/
35481 q
35482 }
35483 /^X\(\/\/\)$/{
35484 s//\1/
35485 q
35486 }
35487 /^X\(\/\).*/{
35488 s//\1/
35489 q
35490 }
35491 s/.*/./; q'`
35492 as_dir="$ac_dir"; as_fn_mkdir_p
35493 rm -f "$ac_prefix_conf_OUT"
35494 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35495 fi
35496 cp conftest.prefix _configs.sed
35497 else
cristy98dddb52010-11-04 00:30:15 +000035498 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 +000035499 fi
35500 rm -f conftest.*
35501fi
35502 ;;
35503 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35504 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35505 # are listed without --file. Let's play safe and only enable the eval
35506 # if we detect the quoting.
35507 case $CONFIG_FILES in
35508 *\'*) eval set x "$CONFIG_FILES" ;;
35509 *) set x $CONFIG_FILES ;;
35510 esac
35511 shift
35512 for mf
35513 do
35514 # Strip MF so we end up with the name of the file.
35515 mf=`echo "$mf" | sed -e 's/:.*$//'`
35516 # Check whether this is an Automake generated Makefile or not.
35517 # We used to match only the files named `Makefile.in', but
35518 # some people rename them; so instead we look at the file content.
35519 # Grep'ing the first line is not enough: some people post-process
35520 # each Makefile.in and add a new line on top of each file to say so.
35521 # Grep'ing the whole file is not good either: AIX grep has a line
35522 # limit of 2048, but all sed's we know have understand at least 4000.
35523 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35524 dirpart=`$as_dirname -- "$mf" ||
35525$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35526 X"$mf" : 'X\(//\)[^/]' \| \
35527 X"$mf" : 'X\(//\)$' \| \
35528 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35529$as_echo X"$mf" |
35530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35531 s//\1/
35532 q
35533 }
35534 /^X\(\/\/\)[^/].*/{
35535 s//\1/
35536 q
35537 }
35538 /^X\(\/\/\)$/{
35539 s//\1/
35540 q
35541 }
35542 /^X\(\/\).*/{
35543 s//\1/
35544 q
35545 }
35546 s/.*/./; q'`
35547 else
35548 continue
35549 fi
35550 # Extract the definition of DEPDIR, am__include, and am__quote
35551 # from the Makefile without running `make'.
35552 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35553 test -z "$DEPDIR" && continue
35554 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35555 test -z "am__include" && continue
35556 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35557 # When using ansi2knr, U may be empty or an underscore; expand it
35558 U=`sed -n 's/^U = //p' < "$mf"`
35559 # Find all dependency output files, they are included files with
35560 # $(DEPDIR) in their names. We invoke sed twice because it is the
35561 # simplest approach to changing $(DEPDIR) to its actual value in the
35562 # expansion.
35563 for file in `sed -n "
35564 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35565 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35566 # Make sure the directory exists.
35567 test -f "$dirpart/$file" && continue
35568 fdir=`$as_dirname -- "$file" ||
35569$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35570 X"$file" : 'X\(//\)[^/]' \| \
35571 X"$file" : 'X\(//\)$' \| \
35572 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35573$as_echo X"$file" |
35574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35575 s//\1/
35576 q
35577 }
35578 /^X\(\/\/\)[^/].*/{
35579 s//\1/
35580 q
35581 }
35582 /^X\(\/\/\)$/{
35583 s//\1/
35584 q
35585 }
35586 /^X\(\/\).*/{
35587 s//\1/
35588 q
35589 }
35590 s/.*/./; q'`
35591 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35592 # echo "creating $dirpart/$file"
35593 echo '# dummy' > "$dirpart/$file"
35594 done
35595 done
35596}
35597 ;;
35598 "libtool":C)
35599
35600 # See if we are running on zsh, and set the options which allow our
35601 # commands through without removal of \ escapes.
35602 if test -n "${ZSH_VERSION+set}" ; then
35603 setopt NO_GLOB_SUBST
35604 fi
35605
35606 cfgfile="${ofile}T"
35607 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35608 $RM "$cfgfile"
35609
35610 cat <<_LT_EOF >> "$cfgfile"
35611#! $SHELL
35612
35613# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35614# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35615# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35616# NOTE: Changes made to this file will be lost: look at ltmain.sh.
35617#
35618# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy0c60a692010-11-04 01:09:47 +000035619# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35620# Inc.
cristy73bd4a52010-10-05 11:24:23 +000035621# Written by Gordon Matzigkeit, 1996
35622#
35623# This file is part of GNU Libtool.
35624#
35625# GNU Libtool is free software; you can redistribute it and/or
35626# modify it under the terms of the GNU General Public License as
35627# published by the Free Software Foundation; either version 2 of
35628# the License, or (at your option) any later version.
35629#
35630# As a special exception to the GNU General Public License,
35631# if you distribute this file as part of a program or library that
35632# is built using GNU Libtool, you may include this file under the
35633# same distribution terms that you use for the rest of that program.
35634#
35635# GNU Libtool is distributed in the hope that it will be useful,
35636# but WITHOUT ANY WARRANTY; without even the implied warranty of
35637# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35638# GNU General Public License for more details.
35639#
35640# You should have received a copy of the GNU General Public License
35641# along with GNU Libtool; see the file COPYING. If not, a copy
35642# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35643# obtained by writing to the Free Software Foundation, Inc.,
35644# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35645
35646
35647# The names of the tagged configurations supported by this script.
35648available_tags="CXX "
35649
35650# ### BEGIN LIBTOOL CONFIG
35651
35652# A sed program that does not truncate output.
35653SED=$lt_SED
35654
35655# Sed that helps us avoid accidentally triggering echo(1) options like -n.
35656Xsed="\$SED -e 1s/^X//"
35657
35658# A grep program that handles long lines.
35659GREP=$lt_GREP
35660
35661# An ERE matcher.
35662EGREP=$lt_EGREP
35663
35664# A literal string matcher.
35665FGREP=$lt_FGREP
35666
cristy0c60a692010-11-04 01:09:47 +000035667# Shell to use when invoking shell scripts.
35668SHELL=$lt_SHELL
35669
35670# An echo program that protects backslashes.
35671ECHO=$lt_ECHO
35672
cristy73bd4a52010-10-05 11:24:23 +000035673# Which release of libtool.m4 was used?
35674macro_version=$macro_version
35675macro_revision=$macro_revision
35676
35677# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000035678AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000035679
35680# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000035681DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000035682
35683# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000035684OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000035685
35686# Whether or not to build shared libraries.
35687build_libtool_libs=$enable_shared
35688
35689# Whether or not to build static libraries.
35690build_old_libs=$enable_static
35691
35692# What type of objects to build.
35693pic_mode=$pic_mode
35694
35695# Whether or not to optimize for fast installation.
35696fast_install=$enable_fast_install
35697
35698# The host system.
35699host_alias=$host_alias
35700host=$host
35701host_os=$host_os
35702
35703# The build system.
35704build_alias=$build_alias
35705build=$build
35706build_os=$build_os
35707
35708# A BSD- or MS-compatible name lister.
35709NM=$lt_NM
35710
35711# Whether we need soft or hard links.
35712LN_S=$lt_LN_S
35713
35714# What is the maximum length of a command?
35715max_cmd_len=$max_cmd_len
35716
35717# Object file suffix (normally "o").
35718objext=$ac_objext
35719
35720# Executable file suffix (normally "").
35721exeext=$exeext
35722
35723# whether the shell understands "unset".
35724lt_unset=$lt_unset
35725
35726# turn spaces into newlines.
35727SP2NL=$lt_lt_SP2NL
35728
35729# turn newlines into spaces.
35730NL2SP=$lt_lt_NL2SP
35731
cristyda16f162011-02-19 23:52:17 +000035732# convert \$build file names to \$host format.
35733to_host_file_cmd=$lt_cv_to_host_file_cmd
35734
35735# convert \$build files to toolchain format.
35736to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35737
cristy73bd4a52010-10-05 11:24:23 +000035738# Method to check whether dependent libraries are shared objects.
35739deplibs_check_method=$lt_deplibs_check_method
35740
cristyda16f162011-02-19 23:52:17 +000035741# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000035742file_magic_cmd=$lt_file_magic_cmd
35743
cristyda16f162011-02-19 23:52:17 +000035744# How to find potential files when deplibs_check_method = "file_magic".
35745file_magic_glob=$lt_file_magic_glob
35746
35747# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35748want_nocaseglob=$lt_want_nocaseglob
35749
35750# Command to associate shared and link libraries.
35751sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35752
cristy73bd4a52010-10-05 11:24:23 +000035753# The archiver.
35754AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000035755
35756# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000035757AR_FLAGS=$lt_AR_FLAGS
35758
cristyda16f162011-02-19 23:52:17 +000035759# How to feed a file listing to the archiver.
35760archiver_list_spec=$lt_archiver_list_spec
35761
cristy73bd4a52010-10-05 11:24:23 +000035762# A symbol stripping program.
35763STRIP=$lt_STRIP
35764
35765# Commands used to install an old-style archive.
35766RANLIB=$lt_RANLIB
35767old_postinstall_cmds=$lt_old_postinstall_cmds
35768old_postuninstall_cmds=$lt_old_postuninstall_cmds
35769
cristy0c60a692010-11-04 01:09:47 +000035770# Whether to use a lock for old archive extraction.
35771lock_old_archive_extraction=$lock_old_archive_extraction
35772
cristy73bd4a52010-10-05 11:24:23 +000035773# A C compiler.
35774LTCC=$lt_CC
35775
35776# LTCC compiler flags.
35777LTCFLAGS=$lt_CFLAGS
35778
35779# Take the output of nm and produce a listing of raw symbols and C names.
35780global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35781
35782# Transform the output of nm in a proper C declaration.
35783global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35784
35785# Transform the output of nm in a C name address pair.
35786global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35787
35788# Transform the output of nm in a C name address pair when lib prefix is needed.
35789global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35790
cristyda16f162011-02-19 23:52:17 +000035791# Specify filename containing input files for \$NM.
35792nm_file_list_spec=$lt_nm_file_list_spec
35793
35794# The root where to search for dependent libraries,and in which our libraries should be installed.
35795lt_sysroot=$lt_sysroot
35796
cristy73bd4a52010-10-05 11:24:23 +000035797# The name of the directory that contains temporary libtool files.
35798objdir=$objdir
35799
cristy73bd4a52010-10-05 11:24:23 +000035800# Used to examine libraries when file_magic_cmd begins with "file".
35801MAGIC_CMD=$MAGIC_CMD
35802
35803# Must we lock files when doing compilation?
35804need_locks=$lt_need_locks
35805
cristyda16f162011-02-19 23:52:17 +000035806# Manifest tool.
35807MANIFEST_TOOL=$lt_MANIFEST_TOOL
35808
cristy73bd4a52010-10-05 11:24:23 +000035809# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35810DSYMUTIL=$lt_DSYMUTIL
35811
35812# Tool to change global to local symbols on Mac OS X.
35813NMEDIT=$lt_NMEDIT
35814
35815# Tool to manipulate fat objects and archives on Mac OS X.
35816LIPO=$lt_LIPO
35817
35818# ldd/readelf like tool for Mach-O binaries on Mac OS X.
35819OTOOL=$lt_OTOOL
35820
35821# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35822OTOOL64=$lt_OTOOL64
35823
35824# Old archive suffix (normally "a").
35825libext=$libext
35826
35827# Shared library suffix (normally ".so").
35828shrext_cmds=$lt_shrext_cmds
35829
35830# The commands to extract the exported symbol list from a shared archive.
35831extract_expsyms_cmds=$lt_extract_expsyms_cmds
35832
35833# Variables whose values should be saved in libtool wrapper scripts and
35834# restored at link time.
35835variables_saved_for_relink=$lt_variables_saved_for_relink
35836
35837# Do we need the "lib" prefix for modules?
35838need_lib_prefix=$need_lib_prefix
35839
35840# Do we need a version for libraries?
35841need_version=$need_version
35842
35843# Library versioning type.
35844version_type=$version_type
35845
35846# Shared library runtime path variable.
35847runpath_var=$runpath_var
35848
35849# Shared library path variable.
35850shlibpath_var=$shlibpath_var
35851
35852# Is shlibpath searched before the hard-coded library search path?
35853shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35854
35855# Format of library name prefix.
35856libname_spec=$lt_libname_spec
35857
35858# List of archive names. First name is the real one, the rest are links.
35859# The last name is the one that the linker finds with -lNAME
35860library_names_spec=$lt_library_names_spec
35861
35862# The coded name of the library, if different from the real name.
35863soname_spec=$lt_soname_spec
35864
cristy0c60a692010-11-04 01:09:47 +000035865# Permission mode override for installation of shared libraries.
35866install_override_mode=$lt_install_override_mode
35867
cristy73bd4a52010-10-05 11:24:23 +000035868# Command to use after installation of a shared archive.
35869postinstall_cmds=$lt_postinstall_cmds
35870
35871# Command to use after uninstallation of a shared archive.
35872postuninstall_cmds=$lt_postuninstall_cmds
35873
35874# Commands used to finish a libtool library installation in a directory.
35875finish_cmds=$lt_finish_cmds
35876
35877# As "finish_cmds", except a single script fragment to be evaled but
35878# not shown.
35879finish_eval=$lt_finish_eval
35880
35881# Whether we should hardcode library paths into libraries.
35882hardcode_into_libs=$hardcode_into_libs
35883
35884# Compile-time system search path for libraries.
35885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35886
35887# Run-time system search path for libraries.
35888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35889
35890# Whether dlopen is supported.
35891dlopen_support=$enable_dlopen
35892
35893# Whether dlopen of programs is supported.
35894dlopen_self=$enable_dlopen_self
35895
35896# Whether dlopen of statically linked programs is supported.
35897dlopen_self_static=$enable_dlopen_self_static
35898
35899# Commands to strip libraries.
35900old_striplib=$lt_old_striplib
35901striplib=$lt_striplib
35902
35903
35904# The linker used to build libraries.
35905LD=$lt_LD
35906
cristy0c60a692010-11-04 01:09:47 +000035907# How to create reloadable object files.
35908reload_flag=$lt_reload_flag
35909reload_cmds=$lt_reload_cmds
35910
cristy73bd4a52010-10-05 11:24:23 +000035911# Commands used to build an old-style archive.
35912old_archive_cmds=$lt_old_archive_cmds
35913
35914# A language specific compiler.
35915CC=$lt_compiler
35916
35917# Is the compiler the GNU compiler?
35918with_gcc=$GCC
35919
35920# Compiler flag to turn off builtin functions.
35921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35922
cristy73bd4a52010-10-05 11:24:23 +000035923# Additional compiler flags for building library objects.
35924pic_flag=$lt_lt_prog_compiler_pic
35925
cristyda16f162011-02-19 23:52:17 +000035926# How to pass a linker flag through the compiler.
35927wl=$lt_lt_prog_compiler_wl
35928
cristy73bd4a52010-10-05 11:24:23 +000035929# Compiler flag to prevent dynamic linking.
35930link_static_flag=$lt_lt_prog_compiler_static
35931
35932# Does compiler simultaneously support -c and -o options?
35933compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35934
35935# Whether or not to add -lc for building shared libraries.
35936build_libtool_need_lc=$archive_cmds_need_lc
35937
35938# Whether or not to disallow shared libs when runtime libs are static.
35939allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35940
35941# Compiler flag to allow reflexive dlopens.
35942export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35943
35944# Compiler flag to generate shared objects directly from archives.
35945whole_archive_flag_spec=$lt_whole_archive_flag_spec
35946
35947# Whether the compiler copes with passing no objects directly.
35948compiler_needs_object=$lt_compiler_needs_object
35949
35950# Create an old-style archive from a shared archive.
35951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35952
35953# Create a temporary old-style archive to link instead of a shared archive.
35954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35955
35956# Commands used to build a shared archive.
35957archive_cmds=$lt_archive_cmds
35958archive_expsym_cmds=$lt_archive_expsym_cmds
35959
35960# Commands used to build a loadable module if different from building
35961# a shared archive.
35962module_cmds=$lt_module_cmds
35963module_expsym_cmds=$lt_module_expsym_cmds
35964
35965# Whether we are building with GNU ld or not.
35966with_gnu_ld=$lt_with_gnu_ld
35967
35968# Flag that allows shared libraries with undefined symbols to be built.
35969allow_undefined_flag=$lt_allow_undefined_flag
35970
35971# Flag that enforces no undefined symbols.
35972no_undefined_flag=$lt_no_undefined_flag
35973
35974# Flag to hardcode \$libdir into a binary during linking.
35975# This must work even if \$libdir does not exist
35976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35977
35978# If ld is used when linking, flag to hardcode \$libdir into a binary
35979# during linking. This must work even if \$libdir does not exist.
35980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35981
35982# Whether we need a single "-rpath" flag with a separated argument.
35983hardcode_libdir_separator=$lt_hardcode_libdir_separator
35984
35985# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35986# DIR into the resulting binary.
35987hardcode_direct=$hardcode_direct
35988
35989# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35990# DIR into the resulting binary and the resulting library dependency is
35991# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35992# library is relocated.
35993hardcode_direct_absolute=$hardcode_direct_absolute
35994
35995# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35996# into the resulting binary.
35997hardcode_minus_L=$hardcode_minus_L
35998
35999# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36000# into the resulting binary.
36001hardcode_shlibpath_var=$hardcode_shlibpath_var
36002
36003# Set to "yes" if building a shared library automatically hardcodes DIR
36004# into the library and all subsequent libraries and executables linked
36005# against it.
36006hardcode_automatic=$hardcode_automatic
36007
36008# Set to yes if linker adds runtime paths of dependent libraries
36009# to runtime path list.
36010inherit_rpath=$inherit_rpath
36011
36012# Whether libtool must link a program against all its dependency libraries.
36013link_all_deplibs=$link_all_deplibs
36014
cristy73bd4a52010-10-05 11:24:23 +000036015# Set to "yes" if exported symbols are required.
36016always_export_symbols=$always_export_symbols
36017
36018# The commands to list exported symbols.
36019export_symbols_cmds=$lt_export_symbols_cmds
36020
36021# Symbols that should not be listed in the preloaded symbols.
36022exclude_expsyms=$lt_exclude_expsyms
36023
36024# Symbols that must always be exported.
36025include_expsyms=$lt_include_expsyms
36026
36027# Commands necessary for linking programs (against libraries) with templates.
36028prelink_cmds=$lt_prelink_cmds
36029
cristyda16f162011-02-19 23:52:17 +000036030# Commands necessary for finishing linking programs.
36031postlink_cmds=$lt_postlink_cmds
36032
cristy73bd4a52010-10-05 11:24:23 +000036033# Specify filename containing input files.
36034file_list_spec=$lt_file_list_spec
36035
36036# How to hardcode a shared library path into an executable.
36037hardcode_action=$hardcode_action
36038
36039# The directories searched by this compiler when creating a shared library.
36040compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36041
36042# Dependencies to place before and after the objects being linked to
36043# create a shared library.
36044predep_objects=$lt_predep_objects
36045postdep_objects=$lt_postdep_objects
36046predeps=$lt_predeps
36047postdeps=$lt_postdeps
36048
36049# The library search path used internally by the compiler when linking
36050# a shared library.
36051compiler_lib_search_path=$lt_compiler_lib_search_path
36052
36053# ### END LIBTOOL CONFIG
36054
36055_LT_EOF
36056
36057 case $host_os in
36058 aix3*)
36059 cat <<\_LT_EOF >> "$cfgfile"
36060# AIX sometimes has problems with the GCC collect2 program. For some
36061# reason, if we set the COLLECT_NAMES environment variable, the problems
36062# vanish in a puff of smoke.
36063if test "X${COLLECT_NAMES+set}" != Xset; then
36064 COLLECT_NAMES=
36065 export COLLECT_NAMES
36066fi
36067_LT_EOF
36068 ;;
36069 esac
36070
36071
36072ltmain="$ac_aux_dir/ltmain.sh"
36073
36074
36075 # We use sed instead of cat because bash on DJGPP gets confused if
36076 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36077 # text mode, it properly converts lines to CR/LF. This bash problem
36078 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000036079 sed '$q' "$ltmain" >> "$cfgfile" \
36080 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000036081
cristyda16f162011-02-19 23:52:17 +000036082 if test x"$xsi_shell" = xyes; then
36083 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36084func_dirname ()\
36085{\
36086\ case ${1} in\
36087\ */*) func_dirname_result="${1%/*}${2}" ;;\
36088\ * ) func_dirname_result="${3}" ;;\
36089\ esac\
36090} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36091 && mv -f "$cfgfile.tmp" "$cfgfile" \
36092 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36093test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036094
36095
cristyda16f162011-02-19 23:52:17 +000036096 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36097func_basename ()\
36098{\
36099\ func_basename_result="${1##*/}"\
36100} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36101 && mv -f "$cfgfile.tmp" "$cfgfile" \
36102 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36103test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036104
36105
cristyda16f162011-02-19 23:52:17 +000036106 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36107func_dirname_and_basename ()\
36108{\
36109\ case ${1} in\
36110\ */*) func_dirname_result="${1%/*}${2}" ;;\
36111\ * ) func_dirname_result="${3}" ;;\
36112\ esac\
36113\ func_basename_result="${1##*/}"\
36114} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36115 && mv -f "$cfgfile.tmp" "$cfgfile" \
36116 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36117test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000036118
cristyda16f162011-02-19 23:52:17 +000036119
36120 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36121func_stripname ()\
36122{\
36123\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36124\ # positional parameters, so assign one to ordinary parameter first.\
36125\ func_stripname_result=${3}\
36126\ func_stripname_result=${func_stripname_result#"${1}"}\
36127\ func_stripname_result=${func_stripname_result%"${2}"}\
36128} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36129 && mv -f "$cfgfile.tmp" "$cfgfile" \
36130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36131test 0 -eq $? || _lt_function_replace_fail=:
36132
36133
36134 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36135func_split_long_opt ()\
36136{\
36137\ func_split_long_opt_name=${1%%=*}\
36138\ func_split_long_opt_arg=${1#*=}\
36139} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36140 && mv -f "$cfgfile.tmp" "$cfgfile" \
36141 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36142test 0 -eq $? || _lt_function_replace_fail=:
36143
36144
36145 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36146func_split_short_opt ()\
36147{\
36148\ func_split_short_opt_arg=${1#??}\
36149\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36150} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36151 && mv -f "$cfgfile.tmp" "$cfgfile" \
36152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36153test 0 -eq $? || _lt_function_replace_fail=:
36154
36155
36156 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36157func_lo2o ()\
36158{\
36159\ case ${1} in\
36160\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36161\ *) func_lo2o_result=${1} ;;\
36162\ esac\
36163} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36164 && mv -f "$cfgfile.tmp" "$cfgfile" \
36165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36166test 0 -eq $? || _lt_function_replace_fail=:
36167
36168
36169 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36170func_xform ()\
36171{\
36172 func_xform_result=${1%.*}.lo\
36173} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36174 && mv -f "$cfgfile.tmp" "$cfgfile" \
36175 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36176test 0 -eq $? || _lt_function_replace_fail=:
36177
36178
36179 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36180func_arith ()\
36181{\
36182 func_arith_result=$(( $* ))\
36183} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36184 && mv -f "$cfgfile.tmp" "$cfgfile" \
36185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36186test 0 -eq $? || _lt_function_replace_fail=:
36187
36188
36189 sed -e '/^func_len ()$/,/^} # func_len /c\
36190func_len ()\
36191{\
36192 func_len_result=${#1}\
36193} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36194 && mv -f "$cfgfile.tmp" "$cfgfile" \
36195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36196test 0 -eq $? || _lt_function_replace_fail=:
36197
36198fi
36199
36200if test x"$lt_shell_append" = xyes; then
36201 sed -e '/^func_append ()$/,/^} # func_append /c\
36202func_append ()\
36203{\
36204 eval "${1}+=\\${2}"\
36205} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36206 && mv -f "$cfgfile.tmp" "$cfgfile" \
36207 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36208test 0 -eq $? || _lt_function_replace_fail=:
36209
36210
36211 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36212func_append_quoted ()\
36213{\
36214\ func_quote_for_eval "${2}"\
36215\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36216} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36217 && mv -f "$cfgfile.tmp" "$cfgfile" \
36218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36219test 0 -eq $? || _lt_function_replace_fail=:
36220
36221
36222 # Save a `func_append' function call where possible by direct use of '+='
36223 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36224 && mv -f "$cfgfile.tmp" "$cfgfile" \
36225 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36226 test 0 -eq $? || _lt_function_replace_fail=:
36227else
36228 # Save a `func_append' function call even when '+=' is not available
36229 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36230 && mv -f "$cfgfile.tmp" "$cfgfile" \
36231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36232 test 0 -eq $? || _lt_function_replace_fail=:
36233fi
36234
36235if test x"$_lt_function_replace_fail" = x":"; then
36236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36237$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36238fi
36239
36240
36241 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000036242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36243 chmod +x "$ofile"
36244
36245
36246 cat <<_LT_EOF >> "$ofile"
36247
36248# ### BEGIN LIBTOOL TAG CONFIG: CXX
36249
36250# The linker used to build libraries.
36251LD=$lt_LD_CXX
36252
cristy0c60a692010-11-04 01:09:47 +000036253# How to create reloadable object files.
36254reload_flag=$lt_reload_flag_CXX
36255reload_cmds=$lt_reload_cmds_CXX
36256
cristy73bd4a52010-10-05 11:24:23 +000036257# Commands used to build an old-style archive.
36258old_archive_cmds=$lt_old_archive_cmds_CXX
36259
36260# A language specific compiler.
36261CC=$lt_compiler_CXX
36262
36263# Is the compiler the GNU compiler?
36264with_gcc=$GCC_CXX
36265
36266# Compiler flag to turn off builtin functions.
36267no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36268
cristy73bd4a52010-10-05 11:24:23 +000036269# Additional compiler flags for building library objects.
36270pic_flag=$lt_lt_prog_compiler_pic_CXX
36271
cristyda16f162011-02-19 23:52:17 +000036272# How to pass a linker flag through the compiler.
36273wl=$lt_lt_prog_compiler_wl_CXX
36274
cristy73bd4a52010-10-05 11:24:23 +000036275# Compiler flag to prevent dynamic linking.
36276link_static_flag=$lt_lt_prog_compiler_static_CXX
36277
36278# Does compiler simultaneously support -c and -o options?
36279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36280
36281# Whether or not to add -lc for building shared libraries.
36282build_libtool_need_lc=$archive_cmds_need_lc_CXX
36283
36284# Whether or not to disallow shared libs when runtime libs are static.
36285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36286
36287# Compiler flag to allow reflexive dlopens.
36288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36289
36290# Compiler flag to generate shared objects directly from archives.
36291whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36292
36293# Whether the compiler copes with passing no objects directly.
36294compiler_needs_object=$lt_compiler_needs_object_CXX
36295
36296# Create an old-style archive from a shared archive.
36297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36298
36299# Create a temporary old-style archive to link instead of a shared archive.
36300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36301
36302# Commands used to build a shared archive.
36303archive_cmds=$lt_archive_cmds_CXX
36304archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36305
36306# Commands used to build a loadable module if different from building
36307# a shared archive.
36308module_cmds=$lt_module_cmds_CXX
36309module_expsym_cmds=$lt_module_expsym_cmds_CXX
36310
36311# Whether we are building with GNU ld or not.
36312with_gnu_ld=$lt_with_gnu_ld_CXX
36313
36314# Flag that allows shared libraries with undefined symbols to be built.
36315allow_undefined_flag=$lt_allow_undefined_flag_CXX
36316
36317# Flag that enforces no undefined symbols.
36318no_undefined_flag=$lt_no_undefined_flag_CXX
36319
36320# Flag to hardcode \$libdir into a binary during linking.
36321# This must work even if \$libdir does not exist
36322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36323
36324# If ld is used when linking, flag to hardcode \$libdir into a binary
36325# during linking. This must work even if \$libdir does not exist.
36326hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36327
36328# Whether we need a single "-rpath" flag with a separated argument.
36329hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36330
36331# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36332# DIR into the resulting binary.
36333hardcode_direct=$hardcode_direct_CXX
36334
36335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36336# DIR into the resulting binary and the resulting library dependency is
36337# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36338# library is relocated.
36339hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36340
36341# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36342# into the resulting binary.
36343hardcode_minus_L=$hardcode_minus_L_CXX
36344
36345# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36346# into the resulting binary.
36347hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36348
36349# Set to "yes" if building a shared library automatically hardcodes DIR
36350# into the library and all subsequent libraries and executables linked
36351# against it.
36352hardcode_automatic=$hardcode_automatic_CXX
36353
36354# Set to yes if linker adds runtime paths of dependent libraries
36355# to runtime path list.
36356inherit_rpath=$inherit_rpath_CXX
36357
36358# Whether libtool must link a program against all its dependency libraries.
36359link_all_deplibs=$link_all_deplibs_CXX
36360
cristy73bd4a52010-10-05 11:24:23 +000036361# Set to "yes" if exported symbols are required.
36362always_export_symbols=$always_export_symbols_CXX
36363
36364# The commands to list exported symbols.
36365export_symbols_cmds=$lt_export_symbols_cmds_CXX
36366
36367# Symbols that should not be listed in the preloaded symbols.
36368exclude_expsyms=$lt_exclude_expsyms_CXX
36369
36370# Symbols that must always be exported.
36371include_expsyms=$lt_include_expsyms_CXX
36372
36373# Commands necessary for linking programs (against libraries) with templates.
36374prelink_cmds=$lt_prelink_cmds_CXX
36375
cristyda16f162011-02-19 23:52:17 +000036376# Commands necessary for finishing linking programs.
36377postlink_cmds=$lt_postlink_cmds_CXX
36378
cristy73bd4a52010-10-05 11:24:23 +000036379# Specify filename containing input files.
36380file_list_spec=$lt_file_list_spec_CXX
36381
36382# How to hardcode a shared library path into an executable.
36383hardcode_action=$hardcode_action_CXX
36384
36385# The directories searched by this compiler when creating a shared library.
36386compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36387
36388# Dependencies to place before and after the objects being linked to
36389# create a shared library.
36390predep_objects=$lt_predep_objects_CXX
36391postdep_objects=$lt_postdep_objects_CXX
36392predeps=$lt_predeps_CXX
36393postdeps=$lt_postdeps_CXX
36394
36395# The library search path used internally by the compiler when linking
36396# a shared library.
36397compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36398
36399# ### END LIBTOOL TAG CONFIG: CXX
36400_LT_EOF
36401
36402 ;;
cristy3ed852e2009-09-05 21:47:34 +000036403 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36404 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36405 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36406 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36407 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36408 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36409
36410 esac
36411done # for ac_tag
36412
36413
cristy8b350f62009-11-15 23:12:43 +000036414as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000036415_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000036416ac_clean_files=$ac_clean_files_save
36417
36418test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000036419 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036420
36421
36422# configure is writing to config.log, and then calls config.status.
36423# config.status does its own redirection, appending to config.log.
36424# Unfortunately, on DOS this fails, as config.log is still kept open
36425# by configure, so config.status won't be able to write to it; its
36426# output is simply discarded. So we exec the FD to /dev/null,
36427# effectively closing config.log, so it can be properly (re)opened and
36428# appended to by config.status. When coming back to configure, we
36429# need to make the FD available again.
36430if test "$no_create" != yes; then
36431 ac_cs_success=:
36432 ac_config_status_args=
36433 test "$silent" = yes &&
36434 ac_config_status_args="$ac_config_status_args --quiet"
36435 exec 5>/dev/null
36436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36437 exec 5>>config.log
36438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36439 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000036440 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000036441fi
36442if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000036443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000036444$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36445fi
36446
36447
36448rm -f magick-version
36449
cristy430a7312010-01-21 20:44:04 +000036450result_dejavu_font_dir='none'
36451if test "${dejavu_font_dir}x" != 'x'; then
36452 result_dejavu_font_dir=$dejavu_font_dir
36453fi
36454
cristy3ed852e2009-09-05 21:47:34 +000036455result_ghostscript_font_dir='none'
36456if test "${ghostscript_font_dir}x" != 'x'; then
36457 result_ghostscript_font_dir=$ghostscript_font_dir
36458fi
36459
36460result_windows_font_dir='none'
36461if test "${windows_font_dir}x" != 'x'; then
36462 result_windows_font_dir=${windows_font_dir}
36463fi
36464
cristy8b350f62009-11-15 23:12:43 +000036465{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
cristy3ed852e2009-09-05 21:47:34 +000036466ImageMagick is configured as follows. Please verify that this configuration
36467matches your expectations.
36468
36469Host system type: $host
36470Build system type: $build
36471
36472 Option Value
36473-------------------------------------------------------------------------------
36474Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36475Static libraries --enable-static=$enable_static $libtool_build_static_libs
36476Module support --with-modules=$with_modules $with_modules
36477GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36478Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36479High Dynamic Range Imagery
36480 --enable-hdri=$enable_hdri $enable_hdri
36481
36482Delegate Configuration:
36483BZLIB --with-bzlib=$with_bzlib $have_bzlib
36484Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036485Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036486DJVU --with-djvu=$with_djvu $have_djvu
36487DPS --with-dps=$with_dps $have_dps
36488FFTW --with-fftw=$with_fftw $have_fftw
36489FlashPIX --with-fpx=$with_fpx $have_fpx
36490FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36491FreeType --with-freetype=$with_freetype $have_freetype
36492GhostPCL None $PCLDelegate ($PCLVersion)
36493GhostXPS None $XPSDelegate ($XPSVersion)
36494Ghostscript None $PSDelegate ($GSVersion)
36495Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36496Ghostscript lib --with-gslib=$with_gslib $have_gslib
36497Graphviz --with-gvc=$with_gvc $have_gvc
36498JBIG --with-jbig=$with_jbig $have_jbig
36499JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36500JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036501LCMS v1 --with-lcms=$with_lcms $have_lcms
36502LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036503LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036504LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036505Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36506OpenEXR --with-openexr=$with_openexr $have_openexr
36507PERL --with-perl=$with_perl $have_perl
36508PNG --with-png=$with_png $have_png
36509RSVG --with-rsvg=$with_rsvg $have_rsvg
36510TIFF --with-tiff=$with_tiff $have_tiff
36511Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36512WMF --with-wmf=$with_wmf $have_wmf
36513X11 --with-x=$with_x $have_x
36514XML --with-xml=$with_xml $have_xml
36515ZLIB --with-zlib=$with_zlib $have_zlib
36516
36517X11 Configuration:
36518 X_CFLAGS = $X_CFLAGS
36519 X_PRE_LIBS = $X_PRE_LIBS
36520 X_LIBS = $X_LIBS
36521 X_EXTRA_LIBS = $X_EXTRA_LIBS
36522
36523Options used to compile and link:
36524 PREFIX = $PREFIX_DIR
36525 EXEC-PREFIX = $EXEC_PREFIX_DIR
36526 VERSION = $PACKAGE_VERSION
36527 CC = $CC
36528 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036529 CPPFLAGS = $MAGICK_CPPFLAGS
36530 PCFLAGS = $MAGICK_PCFLAGS
36531 DEFS = $DEFS
36532 LDFLAGS = $LDFLAGS
36533 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36534 LIBS = $MAGICK_LIBS
36535 CXX = $CXX
36536 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036537 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036538" >&5
36539$as_echo "
36540ImageMagick is configured as follows. Please verify that this configuration
36541matches your expectations.
36542
36543Host system type: $host
36544Build system type: $build
36545
36546 Option Value
36547-------------------------------------------------------------------------------
36548Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36549Static libraries --enable-static=$enable_static $libtool_build_static_libs
36550Module support --with-modules=$with_modules $with_modules
36551GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36552Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36553High Dynamic Range Imagery
36554 --enable-hdri=$enable_hdri $enable_hdri
36555
36556Delegate Configuration:
36557BZLIB --with-bzlib=$with_bzlib $have_bzlib
36558Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000036559Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000036560DJVU --with-djvu=$with_djvu $have_djvu
36561DPS --with-dps=$with_dps $have_dps
36562FFTW --with-fftw=$with_fftw $have_fftw
36563FlashPIX --with-fpx=$with_fpx $have_fpx
36564FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36565FreeType --with-freetype=$with_freetype $have_freetype
36566GhostPCL None $PCLDelegate ($PCLVersion)
36567GhostXPS None $XPSDelegate ($XPSVersion)
36568Ghostscript None $PSDelegate ($GSVersion)
36569Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36570Ghostscript lib --with-gslib=$with_gslib $have_gslib
36571Graphviz --with-gvc=$with_gvc $have_gvc
36572JBIG --with-jbig=$with_jbig $have_jbig
36573JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36574JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000036575LCMS v1 --with-lcms=$with_lcms $have_lcms
36576LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000036577LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000036578LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000036579Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36580OpenEXR --with-openexr=$with_openexr $have_openexr
36581PERL --with-perl=$with_perl $have_perl
36582PNG --with-png=$with_png $have_png
36583RSVG --with-rsvg=$with_rsvg $have_rsvg
36584TIFF --with-tiff=$with_tiff $have_tiff
36585Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36586WMF --with-wmf=$with_wmf $have_wmf
36587X11 --with-x=$with_x $have_x
36588XML --with-xml=$with_xml $have_xml
36589ZLIB --with-zlib=$with_zlib $have_zlib
36590
36591X11 Configuration:
36592 X_CFLAGS = $X_CFLAGS
36593 X_PRE_LIBS = $X_PRE_LIBS
36594 X_LIBS = $X_LIBS
36595 X_EXTRA_LIBS = $X_EXTRA_LIBS
36596
36597Options used to compile and link:
36598 PREFIX = $PREFIX_DIR
36599 EXEC-PREFIX = $EXEC_PREFIX_DIR
36600 VERSION = $PACKAGE_VERSION
36601 CC = $CC
36602 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000036603 CPPFLAGS = $MAGICK_CPPFLAGS
36604 PCFLAGS = $MAGICK_PCFLAGS
36605 DEFS = $DEFS
36606 LDFLAGS = $LDFLAGS
36607 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36608 LIBS = $MAGICK_LIBS
36609 CXX = $CXX
36610 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000036611 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000036612" >&6; }