blob: 64252b6b27e423f511dc155aed0dde294d2defee [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy29eb34e2011-10-16 00:46:08 +00003# Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy3ed852e2009-09-05 21:47:34 +00008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
cristy98dddb52010-11-04 00:30:15 +00009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +000011#
cristy8b350f62009-11-15 23:12:43 +000012#
cristy3ed852e2009-09-05 21:47:34 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000018
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
cristy8b350f62009-11-15 23:12:43 +000029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
cristy3ed852e2009-09-05 21:47:34 +000034esac
cristy3ed852e2009-09-05 21:47:34 +000035fi
36
37
cristy3ed852e2009-09-05 21:47:34 +000038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000062 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
cristy3ed852e2009-09-05 21:47:34 +000085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000094as_myself=
cristy8b350f62009-11-15 23:12:43 +000095case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
cristy3ed852e2009-09-05 21:47:34 +0000104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000115 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000116fi
117
cristy8b350f62009-11-15 23:12:43 +0000118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
cristy8b350f62009-11-15 23:12:43 +0000136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000177test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188else
189 as_have_required=no
190fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211fi
212fi
213 done;;
214 esac
215 as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
cristyda16f162011-02-19 23:52:17 +0000228 # Preserve -v and -x to the replacement shell.
cristy8b350f62009-11-15 23:12:43 +0000229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
cristyda16f162011-02-19 23:52:17 +0000233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
cristy8b350f62009-11-15 23:12:43 +0000240fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: http://www.imagemagick.org about your system, including
251$0: any error possibly output before this message. Then
252$0: install a modern shell, or manually run the script
253$0: under such a shell if you do have one."
254 fi
255 exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273 { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282 return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290 set +e
291 as_fn_set_status $1
292 exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301 case $as_dir in #(
302 -*) as_dir=./$as_dir;;
303 esac
304 test -d "$as_dir" || eval $as_mkdir_p || {
305 as_dirs=
306 while :; do
307 case $as_dir in #(
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309 *) as_qdir=$as_dir;;
310 esac
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)[^/].*/{
323 s//\1/
324 q
325 }
326 /^X\(\/\/\)$/{
327 s//\1/
328 q
329 }
330 /^X\(\/\).*/{
331 s//\1/
332 q
333 }
334 s/.*/./; q'`
335 test -d "$as_dir" && break
336 done
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
350 {
351 eval $1+=\$2
352 }'
353else
354 as_fn_append ()
355 {
356 eval $1=\$$1\$2
357 }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 eval 'as_fn_arith ()
367 {
368 as_val=$(( $* ))
369 }'
370else
371 as_fn_arith ()
372 {
373 as_val=`expr "$@" || test $? -eq 1`
374 }
375fi # as_fn_arith
376
377
cristy98dddb52010-11-04 00:30:15 +0000378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000382# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000383as_fn_error ()
384{
cristy98dddb52010-11-04 00:30:15 +0000385 as_status=$1; test $as_status -eq 0 && as_status=1
386 if test "$4"; then
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000389 fi
cristy98dddb52010-11-04 00:30:15 +0000390 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000391 as_fn_exit $as_status
392} # as_fn_error
393
cristy3ed852e2009-09-05 21:47:34 +0000394if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 as_expr=expr
397else
398 as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 as_basename=basename
403else
404 as_basename=false
405fi
406
cristy8b350f62009-11-15 23:12:43 +0000407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_dirname=dirname
409else
410 as_dirname=false
411fi
cristy3ed852e2009-09-05 21:47:34 +0000412
cristy3ed852e2009-09-05 21:47:34 +0000413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\/\)$/{
423 s//\1/
424 q
425 }
426 /^X\/\(\/\).*/{
427 s//\1/
428 q
429 }
430 s/.*/./; q'`
431
cristy8b350f62009-11-15 23:12:43 +0000432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000438
439
cristy8b350f62009-11-15 23:12:43 +0000440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000445 sed -n '
446 p
447 /[$]LINENO/=
448 ' <$as_myself |
449 sed '
450 s/[$]LINENO.*/&-/
451 t lineno
452 b
453 :lineno
454 N
455 :loop
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 t loop
458 s/-\n.*//
459 ' >$as_me.lineno &&
460 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
cristy3ed852e2009-09-05 21:47:34 +0000462
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
466 . "./$as_me.lineno"
467 # Exit status is that of the last command.
468 exit
469}
470
cristy3ed852e2009-09-05 21:47:34 +0000471ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000472case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000473-n*)
cristy8b350f62009-11-15 23:12:43 +0000474 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000476 xy) ECHO_C='\c';;
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000479 esac;;
480*)
481 ECHO_N='-n';;
482esac
cristy3ed852e2009-09-05 21:47:34 +0000483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487else
488 rm -f conf$$.dir
489 mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505else
506 as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000512 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000513else
514 test -d ./-p && rmdir ./-p
515 as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519 as_test_x='test -x'
520else
521 if ls -dL / >/dev/null 2>&1; then
522 as_ls_L_option=L
523 else
524 as_ls_L_option=
525 fi
526 as_test_x='
527 eval sh -c '\''
528 if test -d "$1"; then
529 test -d "$1/.";
530 else
cristy8b350f62009-11-15 23:12:43 +0000531 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +0000532 -*)set "./$1";;
533 esac;
cristy8b350f62009-11-15 23:12:43 +0000534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +0000535 ???[sx]*):;;*)false;;esac;fi
536 '\'' sh
537 '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
cristy73bd4a52010-10-05 11:24:23 +0000547SHELL=${CONFIG_SHELL-/bin/sh}
548
cristy73bd4a52010-10-05 11:24:23 +0000549lt_ltdl_dir='ltdl'
550
551lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
cristy0c60a692010-11-04 01:09:47 +0000553
cristycd4c5312009-11-22 01:19:08 +0000554test -n "$DJDIR" || exec 7<&0 </dev/null
555exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000556
557# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000558# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000559# so uname gets run too.
560ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562#
563# Initializations.
564#
565ac_default_prefix=/usr/local
566ac_clean_files=
567ac_config_libobj_dir=.
568LIBOBJS=
569cross_compiling=no
570subdirs=
571MFLAGS=
572MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000573
574# Identity of this package.
575PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000576PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000577PACKAGE_VERSION='7.0.0-0'
578PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000579PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000580PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000581
cristy4c08aed2011-07-01 19:47:50 +0000582ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000583ac_config_libobj_dir=ltdl
584# Factoring default headers for most tests.
585ac_includes_default="\
586#include <stdio.h>
587#ifdef HAVE_SYS_TYPES_H
588# include <sys/types.h>
589#endif
590#ifdef HAVE_SYS_STAT_H
591# include <sys/stat.h>
592#endif
593#ifdef STDC_HEADERS
594# include <stdlib.h>
595# include <stddef.h>
596#else
597# ifdef HAVE_STDLIB_H
598# include <stdlib.h>
599# endif
600#endif
601#ifdef HAVE_STRING_H
602# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603# include <memory.h>
604# endif
605# include <string.h>
606#endif
607#ifdef HAVE_STRINGS_H
608# include <strings.h>
609#endif
610#ifdef HAVE_INTTYPES_H
611# include <inttypes.h>
612#endif
613#ifdef HAVE_STDINT_H
614# include <stdint.h>
615#endif
616#ifdef HAVE_UNISTD_H
617# include <unistd.h>
618#endif"
619
cristycd4c5312009-11-22 01:19:08 +0000620ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000621ac_subst_vars='ltdl_LTLIBOBJS
622ltdl_LIBOBJS
623am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000626MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000627MAGICK_LIBS
628MAGICK_LDFLAGS
629MAGICK_PCFLAGS
630MAGICK_CPPFLAGS
631MAGICK_CXXFLAGS
632MAGICK_CFLAGS
633MAGICK_DEP_LIBS
634MAGICK_LTDLDEPS
635MAGICK_LIBLTDL
636OSX_GCOV_LDFLAG
637DELEGATES
638MAGICKCORE_PATH
639PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000640WITH_PERL_DYNAMIC_FALSE
641WITH_PERL_DYNAMIC_TRUE
642WITH_PERL_STATIC_FALSE
643WITH_PERL_STATIC_TRUE
644WITH_PERL_FALSE
645WITH_PERL_TRUE
646PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000647GSVersion
648GSPSDevice
649GSPDFDevice
650GSMonoDevice
651GSEPSDevice
652GSColorDevice
653GSCMYKDevice
654GSAlphaDevice
655XPSVersion
656XPSCMYKDevice
657XPSColorDevice
658XPSMonoDevice
659PCLVersion
660PCLCMYKDevice
661PCLColorDevice
662PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000663ZIP_DELEGATE_FALSE
664ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000665ZIP
cristy73bd4a52010-10-05 11:24:23 +0000666P7ZIP_DELEGATE_FALSE
667P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000668P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000669RPM_DELEGATE_FALSE
670RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000671RPM
672PERL
673TAR
674ShowImageDelegate
675type_include_files
676ghostscript_font_dir
677windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000678dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000679PrintDelegate
680ZipDelegate
681XPSDelegate
682WWWDecodeDelegate
683WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000684UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000685TXTDelegate
686SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000687RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000688RMDelegate
689RLEEncodeDelegate
690PSDelegate
691POVDelegate
692PGPDecodeDelegate
693PCLDelegate
694MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000695MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696MPEGEncodeDelegate
697MPEGDecodeDelegate
698MANDelegate
699LaunchDelegate
700LZWEncodeDelegate
701LZWDecodeDelegate
702LPRDelegate
703LPDelegate
704ILBMEncodeDelegate
705ILBMDecodeDelegate
706HTMLDecodeDelegate
707HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708GnuplotDecodeDelegate
709MogrifyDelegate
710DisplayDelegate
711ConvertDelegate
712FIGDecodeDelegate
713EditorDelegate
714EchoDelegate
715DVIDecodeDelegate
716GVCDecodeDelegate
717DNGDecodeDelegate
718CatDelegate
719CGMDecodeDelegate
720BrowseDelegate
721BZIPDelegate
722BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000724SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000725SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000726CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000727DOCUMENTATION_PATH
728FILTER_PATH
729CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000730LIBRARY_PATH
731EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000732INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000733PERLMAINCC
734XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000735XML_DELEGATE_FALSE
736XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000737xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000738WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000739WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000740WMF_DELEGATE_FALSE
741WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000742WEBP_LIBS
743WEBP_DELEGATE_FALSE
744WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000745TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000746TIFF_DELEGATE_FALSE
747TIFF_DELEGATE_TRUE
748CAIRO_DELEGATE_FALSE
749CAIRO_DELEGATE_TRUE
750RSVG_DELEGATE_FALSE
751RSVG_DELEGATE_TRUE
752CAIRO_SVG_LIBS
753CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000754RSVG_LIBS
755RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000756PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000757PNG_DELEGATE_FALSE
758PNG_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000759PANGOFT2_DELEGATE_FALSE
760PANGOFT2_DELEGATE_TRUE
761PANGO_DELEGATE_FALSE
762PANGO_DELEGATE_TRUE
763PANGO_LIBS
764PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000765OPENEXR_DELEGATE_FALSE
766OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000767OPENEXR_LIBS
768OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000769LZMA_DELEGATE_FALSE
770LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000771LZMA_LIBS
772LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000773LQR_DELEGATE_FALSE
774LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000775LQR_LIBS
776LQR_CFLAGS
777LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778LCMS_DELEGATE_FALSE
779LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000780JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000781JP2_DELEGATE_FALSE
782JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000783JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000784JPEG_DELEGATE_FALSE
785JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000787JBIG_DELEGATE_FALSE
788JBIG_DELEGATE_TRUE
789GVC_DELEGATE_FALSE
790GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000791GVC_LIBS
792GVC_CFLAGS
793GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794GS_DELEGATE_FALSE
795GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797FREETYPE_DELEGATE_FALSE
798FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000799freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000800FONTCONFIG_DELEGATE_FALSE
801FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802FONTCONFIG_LIBS
803FONTCONFIG_CFLAGS
804FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000805FPX_DELEGATE_FALSE
806FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000807FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808FFTW_DELEGATE_FALSE
809FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811DJVU_DELEGATE_FALSE
812DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000813DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000814DPS_DELEGATE_FALSE
815DPS_DELEGATE_TRUE
816AUTOTRACE_DELEGATE_FALSE
817AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000818AUTOTRACE_LIBS
819AUTOTRACE_CFLAGS
820LIB_DL
821ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000822ZLIB_DELEGATE_FALSE
823ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000824XEXT_LIBS
825X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000826X11_DELEGATE_FALSE
827X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828X_EXTRA_LIBS
829X_LIBS
830X_PRE_LIBS
831X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000832XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000833BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834BZLIB_DELEGATE_FALSE
835BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836CCMALLOCDelegate
837UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838HasUMEM_FALSE
839HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840THREAD_LIBS
841GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000842WITH_MAGICK_PLUS_PLUS_FALSE
843WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000845MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000846POW_LIB
847LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000848UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000849UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000850UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000851UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000852UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000853UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000854INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000855INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000856UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000857UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000858INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000859INT32_T
860UINT16_T
861INT16_T
862UINT8_T
863INT8_T
864LIBRARY_EXTRA_CPPFLAGS
865MODULE_EXTRA_CPPFLAGS
866LIBSTDCLDFLAGS
867PERL_MAKE_OPTIONS
868QUANTUM_DEPTH
cristy73bd4a52010-10-05 11:24:23 +0000869MAINT
870MAINTAINER_MODE_FALSE
871MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000872MAGICK_HDRI
873DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876WITH_MODULES_FALSE
877WITH_MODULES_TRUE
878WITH_SHARED_LIBS_FALSE
879WITH_SHARED_LIBS_TRUE
880LTDLOPEN
881LT_CONFIG_H
882CONVENIENCE_LTDL_FALSE
883CONVENIENCE_LTDL_TRUE
884INSTALL_LTDL_FALSE
885INSTALL_LTDL_TRUE
886ARGZ_H
887sys_symbol_underscore
888LIBADD_DL
889LT_DLPREOPEN
890LIBADD_DLD_LINK
891LIBADD_SHL_LOAD
892LIBADD_DLOPEN
893LT_DLLOADERS
894INCLTDL
895LTDLINCL
896LTDLDEPS
897LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000898LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000899CXXCPP
900OTOOL64
901OTOOL
902LIPO
903NMEDIT
904DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000905MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000906RANLIB
cristyda16f162011-02-19 23:52:17 +0000907ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000908AR
909NM
910ac_ct_DUMPBIN
911DUMPBIN
912LIBTOOL
913OBJDUMP
914DLLTOOL
915AS
cristy3ed852e2009-09-05 21:47:34 +0000916LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000917CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000918CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000919OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000920PTHREAD_CFLAGS
921PTHREAD_LIBS
922PTHREAD_CC
923ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000924SHAREARCH_DIR
925INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000926WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000927USING_CL_FALSE
928USING_CL_TRUE
929CYGWIN_BUILD_FALSE
930CYGWIN_BUILD_TRUE
931WIN32_NATIVE_BUILD_FALSE
932WIN32_NATIVE_BUILD_TRUE
933WINGDI32_DELEGATE_FALSE
934WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000935GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000936PKG_CONFIG
cristy3ed852e2009-09-05 21:47:34 +0000937LN_S
cristy3ed852e2009-09-05 21:47:34 +0000938LD
cristy73bd4a52010-10-05 11:24:23 +0000939FGREP
940SED
941am__fastdepCXX_FALSE
942am__fastdepCXX_TRUE
943CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000944ac_ct_CXX
945CXXFLAGS
946CXX
cristya0b81c32010-01-22 02:54:33 +0000947EGREP
948GREP
949CPP
cristy73bd4a52010-10-05 11:24:23 +0000950am__fastdepCC_FALSE
951am__fastdepCC_TRUE
952CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000953am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000954AMDEPBACKSLASH
955AMDEP_FALSE
956AMDEP_TRUE
957am__quote
958am__include
959DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000960OBJEXT
961EXEEXT
962ac_ct_CC
963CPPFLAGS
964LDFLAGS
965CFLAGS
966CC
967DIRSEP
968MAGICK_FILTER_MODULE_PATH
969MAGICK_CONFIGURE_BUILD_PATH
970MAGICK_CONFIGURE_SRC_PATH
971MAGICK_CODER_MODULE_PATH
972MAN_DIR
973INFO_DIR
974PERSISTINCLUDE_DIR
975INCLUDE_DIR
976LIB_DIR
977LOCALSTATE_DIR
978SHAREDSTATE_DIR
979SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000980DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000981DATA_DIR
982LIBEXEC_DIR
983SBIN_DIR
984BIN_DIR
985EXEC_PREFIX_DIR
986PREFIX_DIR
987CONFIG_STATUS_DEPENDENCIES
988MAGICK_LIB_VERSION_NUMBER
989MAGICK_LIB_VERSION_TEXT
990MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000991AM_BACKSLASH
992AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000993AM_DEFAULT_V
994AM_V
cristy73bd4a52010-10-05 11:24:23 +0000995am__untar
996am__tar
997AMTAR
998am__leading_dot
999SET_MAKE
1000AWK
1001mkdir_p
1002MKDIR_P
1003INSTALL_STRIP_PROGRAM
1004STRIP
1005install_sh
1006MAKEINFO
1007AUTOHEADER
1008AUTOMAKE
1009AUTOCONF
1010ACLOCAL
1011VERSION
1012PACKAGE
1013CYGPATH_W
1014am__isrc
1015INSTALL_DATA
1016INSTALL_SCRIPT
1017INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001018PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001019PACKAGE_RELEASE_DATE
1020PACKAGE_LIB_VERSION_NUMBER
1021PACKAGE_LIB_VERSION
1022PACKAGE_CHANGE_DATE
1023PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001024PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001025MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001026MAGICK_LIBRARY_VERSION_INFO
1027MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001028MAGICK_LIBRARY_AGE
1029MAGICK_LIBRARY_REVISION
1030MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001031MAGICK_TARGET_OS
1032MAGICK_TARGET_VENDOR
1033MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001034target_os
1035target_vendor
1036target_cpu
1037target
1038host_os
1039host_vendor
1040host_cpu
1041host
1042build_os
1043build_vendor
1044build_cpu
1045build
1046CONFIGURE_ARGS
1047DISTCHECK_CONFIG_FLAGS
1048target_alias
1049host_alias
1050build_alias
1051LIBS
1052ECHO_T
1053ECHO_N
1054ECHO_C
1055DEFS
1056mandir
1057localedir
1058libdir
1059psdir
1060pdfdir
1061dvidir
1062htmldir
1063infodir
1064docdir
1065oldincludedir
1066includedir
1067localstatedir
1068sharedstatedir
1069sysconfdir
1070datadir
1071datarootdir
1072libexecdir
1073sbindir
1074bindir
1075program_transform_name
1076prefix
1077exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001078PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001079PACKAGE_BUGREPORT
1080PACKAGE_STRING
1081PACKAGE_VERSION
1082PACKAGE_TARNAME
1083PACKAGE_NAME
1084PATH_SEPARATOR
1085SHELL'
1086ac_subst_files=''
1087ac_user_opts='
1088enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001089enable_silent_rules
1090enable_dependency_tracking
1091with_gnu_ld
1092with_dmalloc
cristy3ed852e2009-09-05 21:47:34 +00001093enable_bounds_checking
1094enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001095with_includearch_dir
1096with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001097with_threads
1098enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001099enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001100enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001101enable_shared
1102enable_static
1103with_pic
1104enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001105with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001106enable_libtool_lock
1107with_included_ltdl
1108with_ltdl_include
1109with_ltdl_lib
1110enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001111with_modules
1112enable_delegate_build
1113enable_deprecated
1114enable_installed
1115enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001116enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001117enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001118enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001119enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001120enable_ccmalloc
1121enable_efence
1122enable_prof
1123enable_gprof
1124enable_gcov
1125with_method_prefix
1126with_quantum_depth
1127with_cache
1128with_frozenpaths
1129with_magick_plus_plus
1130with_perl
1131with_perl_options
1132with_umem
1133with_libstdc
1134with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001135with_x
cristy3ed852e2009-09-05 21:47:34 +00001136with_zlib
1137with_autotrace
1138with_dps
1139with_djvu
cristy430a7312010-01-21 20:44:04 +00001140with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001141with_fftw
1142with_fpx
1143with_fontconfig
1144with_freetype
1145with_gslib
1146with_fontpath
1147with_gs_font_dir
1148with_gvc
1149with_jbig
1150with_jpeg
1151with_jp2
1152with_lcms
cristy71203402010-06-18 13:12:03 +00001153with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001154with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001155with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001156with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001157with_pango
cristy3ed852e2009-09-05 21:47:34 +00001158with_png
1159with_rsvg
1160with_tiff
cristyb1860752011-03-14 00:27:46 +00001161with_webp
cristy3ed852e2009-09-05 21:47:34 +00001162with_windows_font_dir
1163with_wmf
1164with_xml
1165'
1166 ac_precious_vars='build_alias
1167host_alias
1168target_alias
1169CC
1170CFLAGS
1171LDFLAGS
1172LIBS
1173CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001174CPP
cristy3ed852e2009-09-05 21:47:34 +00001175CXX
1176CXXFLAGS
1177CCC
cristy73bd4a52010-10-05 11:24:23 +00001178PKG_CONFIG
1179CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001180XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001181AUTOTRACE_CFLAGS
1182AUTOTRACE_LIBS
1183FONTCONFIG_CFLAGS
1184FONTCONFIG_LIBS
1185GVC_CFLAGS
1186GVC_LIBS
1187LQR_CFLAGS
1188LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001189LZMA_CFLAGS
1190LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001191OPENEXR_CFLAGS
1192OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001193PANGO_CFLAGS
1194PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001195RSVG_CFLAGS
1196RSVG_LIBS
1197CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001198CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001199
1200
1201# Initialize some variables set by options.
1202ac_init_help=
1203ac_init_version=false
1204ac_unrecognized_opts=
1205ac_unrecognized_sep=
1206# The variables have the same names as the options, with
1207# dashes changed to underlines.
1208cache_file=/dev/null
1209exec_prefix=NONE
1210no_create=
1211no_recursion=
1212prefix=NONE
1213program_prefix=NONE
1214program_suffix=NONE
1215program_transform_name=s,x,x,
1216silent=
1217site=
1218srcdir=
1219verbose=
1220x_includes=NONE
1221x_libraries=NONE
1222
1223# Installation directory options.
1224# These are left unexpanded so users can "make install exec_prefix=/foo"
1225# and all the variables that are supposed to be based on exec_prefix
1226# by default will actually change.
1227# Use braces instead of parens because sh, perl, etc. also accept them.
1228# (The list follows the same order as the GNU Coding Standards.)
1229bindir='${exec_prefix}/bin'
1230sbindir='${exec_prefix}/sbin'
1231libexecdir='${exec_prefix}/libexec'
1232datarootdir='${prefix}/share'
1233datadir='${datarootdir}'
1234sysconfdir='${prefix}/etc'
1235sharedstatedir='${prefix}/com'
1236localstatedir='${prefix}/var'
1237includedir='${prefix}/include'
1238oldincludedir='/usr/include'
1239docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1240infodir='${datarootdir}/info'
1241htmldir='${docdir}'
1242dvidir='${docdir}'
1243pdfdir='${docdir}'
1244psdir='${docdir}'
1245libdir='${exec_prefix}/lib'
1246localedir='${datarootdir}/locale'
1247mandir='${datarootdir}/man'
1248
1249ac_prev=
1250ac_dashdash=
1251for ac_option
1252do
1253 # If the previous option needs an argument, assign it.
1254 if test -n "$ac_prev"; then
1255 eval $ac_prev=\$ac_option
1256 ac_prev=
1257 continue
1258 fi
1259
1260 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001261 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1262 *=) ac_optarg= ;;
1263 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001264 esac
1265
1266 # Accept the important Cygnus configure options, so we can diagnose typos.
1267
1268 case $ac_dashdash$ac_option in
1269 --)
1270 ac_dashdash=yes ;;
1271
1272 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1273 ac_prev=bindir ;;
1274 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1275 bindir=$ac_optarg ;;
1276
1277 -build | --build | --buil | --bui | --bu)
1278 ac_prev=build_alias ;;
1279 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1280 build_alias=$ac_optarg ;;
1281
1282 -cache-file | --cache-file | --cache-fil | --cache-fi \
1283 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1284 ac_prev=cache_file ;;
1285 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1286 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1287 cache_file=$ac_optarg ;;
1288
1289 --config-cache | -C)
1290 cache_file=config.cache ;;
1291
1292 -datadir | --datadir | --datadi | --datad)
1293 ac_prev=datadir ;;
1294 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1295 datadir=$ac_optarg ;;
1296
1297 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1298 | --dataroo | --dataro | --datar)
1299 ac_prev=datarootdir ;;
1300 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1301 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1302 datarootdir=$ac_optarg ;;
1303
1304 -disable-* | --disable-*)
1305 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001308 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1312 *"
1313"enable_$ac_useropt"
1314"*) ;;
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1317 esac
1318 eval enable_$ac_useropt=no ;;
1319
1320 -docdir | --docdir | --docdi | --doc | --do)
1321 ac_prev=docdir ;;
1322 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1323 docdir=$ac_optarg ;;
1324
1325 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1326 ac_prev=dvidir ;;
1327 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1328 dvidir=$ac_optarg ;;
1329
1330 -enable-* | --enable-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001334 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"enable_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval enable_$ac_useropt=\$ac_optarg ;;
1345
1346 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1347 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1348 | --exec | --exe | --ex)
1349 ac_prev=exec_prefix ;;
1350 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1351 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1352 | --exec=* | --exe=* | --ex=*)
1353 exec_prefix=$ac_optarg ;;
1354
1355 -gas | --gas | --ga | --g)
1356 # Obsolete; use --with-gas.
1357 with_gas=yes ;;
1358
1359 -help | --help | --hel | --he | -h)
1360 ac_init_help=long ;;
1361 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1362 ac_init_help=recursive ;;
1363 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1364 ac_init_help=short ;;
1365
1366 -host | --host | --hos | --ho)
1367 ac_prev=host_alias ;;
1368 -host=* | --host=* | --hos=* | --ho=*)
1369 host_alias=$ac_optarg ;;
1370
1371 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1372 ac_prev=htmldir ;;
1373 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1374 | --ht=*)
1375 htmldir=$ac_optarg ;;
1376
1377 -includedir | --includedir | --includedi | --included | --include \
1378 | --includ | --inclu | --incl | --inc)
1379 ac_prev=includedir ;;
1380 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1381 | --includ=* | --inclu=* | --incl=* | --inc=*)
1382 includedir=$ac_optarg ;;
1383
1384 -infodir | --infodir | --infodi | --infod | --info | --inf)
1385 ac_prev=infodir ;;
1386 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1387 infodir=$ac_optarg ;;
1388
1389 -libdir | --libdir | --libdi | --libd)
1390 ac_prev=libdir ;;
1391 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1392 libdir=$ac_optarg ;;
1393
1394 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1395 | --libexe | --libex | --libe)
1396 ac_prev=libexecdir ;;
1397 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1398 | --libexe=* | --libex=* | --libe=*)
1399 libexecdir=$ac_optarg ;;
1400
1401 -localedir | --localedir | --localedi | --localed | --locale)
1402 ac_prev=localedir ;;
1403 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1404 localedir=$ac_optarg ;;
1405
1406 -localstatedir | --localstatedir | --localstatedi | --localstated \
1407 | --localstate | --localstat | --localsta | --localst | --locals)
1408 ac_prev=localstatedir ;;
1409 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1410 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1411 localstatedir=$ac_optarg ;;
1412
1413 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1414 ac_prev=mandir ;;
1415 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1416 mandir=$ac_optarg ;;
1417
1418 -nfp | --nfp | --nf)
1419 # Obsolete; use --without-fp.
1420 with_fp=no ;;
1421
1422 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1423 | --no-cr | --no-c | -n)
1424 no_create=yes ;;
1425
1426 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1427 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1428 no_recursion=yes ;;
1429
1430 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1431 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1432 | --oldin | --oldi | --old | --ol | --o)
1433 ac_prev=oldincludedir ;;
1434 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1435 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1436 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1437 oldincludedir=$ac_optarg ;;
1438
1439 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1440 ac_prev=prefix ;;
1441 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1442 prefix=$ac_optarg ;;
1443
1444 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1445 | --program-pre | --program-pr | --program-p)
1446 ac_prev=program_prefix ;;
1447 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1448 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1449 program_prefix=$ac_optarg ;;
1450
1451 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1452 | --program-suf | --program-su | --program-s)
1453 ac_prev=program_suffix ;;
1454 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1455 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1456 program_suffix=$ac_optarg ;;
1457
1458 -program-transform-name | --program-transform-name \
1459 | --program-transform-nam | --program-transform-na \
1460 | --program-transform-n | --program-transform- \
1461 | --program-transform | --program-transfor \
1462 | --program-transfo | --program-transf \
1463 | --program-trans | --program-tran \
1464 | --progr-tra | --program-tr | --program-t)
1465 ac_prev=program_transform_name ;;
1466 -program-transform-name=* | --program-transform-name=* \
1467 | --program-transform-nam=* | --program-transform-na=* \
1468 | --program-transform-n=* | --program-transform-=* \
1469 | --program-transform=* | --program-transfor=* \
1470 | --program-transfo=* | --program-transf=* \
1471 | --program-trans=* | --program-tran=* \
1472 | --progr-tra=* | --program-tr=* | --program-t=*)
1473 program_transform_name=$ac_optarg ;;
1474
1475 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1476 ac_prev=pdfdir ;;
1477 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1478 pdfdir=$ac_optarg ;;
1479
1480 -psdir | --psdir | --psdi | --psd | --ps)
1481 ac_prev=psdir ;;
1482 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1483 psdir=$ac_optarg ;;
1484
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1487 silent=yes ;;
1488
1489 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1490 ac_prev=sbindir ;;
1491 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1492 | --sbi=* | --sb=*)
1493 sbindir=$ac_optarg ;;
1494
1495 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1496 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1497 | --sharedst | --shareds | --shared | --share | --shar \
1498 | --sha | --sh)
1499 ac_prev=sharedstatedir ;;
1500 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1501 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1502 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1503 | --sha=* | --sh=*)
1504 sharedstatedir=$ac_optarg ;;
1505
1506 -site | --site | --sit)
1507 ac_prev=site ;;
1508 -site=* | --site=* | --sit=*)
1509 site=$ac_optarg ;;
1510
1511 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1512 ac_prev=srcdir ;;
1513 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1514 srcdir=$ac_optarg ;;
1515
1516 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1517 | --syscon | --sysco | --sysc | --sys | --sy)
1518 ac_prev=sysconfdir ;;
1519 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1520 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1521 sysconfdir=$ac_optarg ;;
1522
1523 -target | --target | --targe | --targ | --tar | --ta | --t)
1524 ac_prev=target_alias ;;
1525 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1526 target_alias=$ac_optarg ;;
1527
1528 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1529 verbose=yes ;;
1530
1531 -version | --version | --versio | --versi | --vers | -V)
1532 ac_init_version=: ;;
1533
1534 -with-* | --with-*)
1535 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1536 # Reject names that are not valid shell variable names.
1537 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001538 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001539 ac_useropt_orig=$ac_useropt
1540 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1541 case $ac_user_opts in
1542 *"
1543"with_$ac_useropt"
1544"*) ;;
1545 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1546 ac_unrecognized_sep=', ';;
1547 esac
1548 eval with_$ac_useropt=\$ac_optarg ;;
1549
1550 -without-* | --without-*)
1551 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1552 # Reject names that are not valid shell variable names.
1553 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001554 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001555 ac_useropt_orig=$ac_useropt
1556 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557 case $ac_user_opts in
1558 *"
1559"with_$ac_useropt"
1560"*) ;;
1561 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1562 ac_unrecognized_sep=', ';;
1563 esac
1564 eval with_$ac_useropt=no ;;
1565
1566 --x)
1567 # Obsolete; use --with-x.
1568 with_x=yes ;;
1569
1570 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1571 | --x-incl | --x-inc | --x-in | --x-i)
1572 ac_prev=x_includes ;;
1573 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1574 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1575 x_includes=$ac_optarg ;;
1576
1577 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1578 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1579 ac_prev=x_libraries ;;
1580 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1581 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1582 x_libraries=$ac_optarg ;;
1583
cristy98dddb52010-11-04 00:30:15 +00001584 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1585Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001586 ;;
1587
1588 *=*)
1589 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1590 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001591 case $ac_envvar in #(
1592 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001593 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001594 esac
cristy3ed852e2009-09-05 21:47:34 +00001595 eval $ac_envvar=\$ac_optarg
1596 export $ac_envvar ;;
1597
1598 *)
1599 # FIXME: should be removed in autoconf 3.0.
1600 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1601 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1602 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001603 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001604 ;;
1605
1606 esac
1607done
1608
1609if test -n "$ac_prev"; then
1610 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001611 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001612fi
1613
1614if test -n "$ac_unrecognized_opts"; then
1615 case $enable_option_checking in
1616 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001617 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001618 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1619 esac
1620fi
1621
1622# Check all directory arguments for consistency.
1623for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1624 datadir sysconfdir sharedstatedir localstatedir includedir \
1625 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1626 libdir localedir mandir
1627do
1628 eval ac_val=\$$ac_var
1629 # Remove trailing slashes.
1630 case $ac_val in
1631 */ )
1632 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1633 eval $ac_var=\$ac_val;;
1634 esac
1635 # Be sure to have absolute directory names.
1636 case $ac_val in
1637 [\\/$]* | ?:[\\/]* ) continue;;
1638 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1639 esac
cristy98dddb52010-11-04 00:30:15 +00001640 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001641done
1642
1643# There might be people who depend on the old broken behavior: `$host'
1644# used to hold the argument of --host etc.
1645# FIXME: To remove some day.
1646build=$build_alias
1647host=$host_alias
1648target=$target_alias
1649
1650# FIXME: To remove some day.
1651if test "x$host_alias" != x; then
1652 if test "x$build_alias" = x; then
1653 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001654 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1655 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001656 elif test "x$build_alias" != "x$host_alias"; then
1657 cross_compiling=yes
1658 fi
1659fi
1660
1661ac_tool_prefix=
1662test -n "$host_alias" && ac_tool_prefix=$host_alias-
1663
1664test "$silent" = yes && exec 6>/dev/null
1665
1666
1667ac_pwd=`pwd` && test -n "$ac_pwd" &&
1668ac_ls_di=`ls -di .` &&
1669ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001670 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001671test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001672 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001673
1674
1675# Find the source files, if location was not specified.
1676if test -z "$srcdir"; then
1677 ac_srcdir_defaulted=yes
1678 # Try the directory containing this script, then the parent directory.
1679 ac_confdir=`$as_dirname -- "$as_myself" ||
1680$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1681 X"$as_myself" : 'X\(//\)[^/]' \| \
1682 X"$as_myself" : 'X\(//\)$' \| \
1683 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1684$as_echo X"$as_myself" |
1685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1686 s//\1/
1687 q
1688 }
1689 /^X\(\/\/\)[^/].*/{
1690 s//\1/
1691 q
1692 }
1693 /^X\(\/\/\)$/{
1694 s//\1/
1695 q
1696 }
1697 /^X\(\/\).*/{
1698 s//\1/
1699 q
1700 }
1701 s/.*/./; q'`
1702 srcdir=$ac_confdir
1703 if test ! -r "$srcdir/$ac_unique_file"; then
1704 srcdir=..
1705 fi
1706else
1707 ac_srcdir_defaulted=no
1708fi
1709if test ! -r "$srcdir/$ac_unique_file"; then
1710 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001711 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001712fi
1713ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1714ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001715 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001716 pwd)`
1717# When building in place, set srcdir=.
1718if test "$ac_abs_confdir" = "$ac_pwd"; then
1719 srcdir=.
1720fi
1721# Remove unnecessary trailing slashes from srcdir.
1722# Double slashes in file names in object file debugging info
1723# mess up M-x gdb in Emacs.
1724case $srcdir in
1725*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1726esac
1727for ac_var in $ac_precious_vars; do
1728 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1729 eval ac_env_${ac_var}_value=\$${ac_var}
1730 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1731 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1732done
1733
1734#
1735# Report the --help message.
1736#
1737if test "$ac_init_help" = "long"; then
1738 # Omit some internal or obsolete options to make the list less imposing.
1739 # This message is too long to be a string in the A/UX 3.1 sh.
1740 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001741\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001742
1743Usage: $0 [OPTION]... [VAR=VALUE]...
1744
1745To assign environment variables (e.g., CC, CFLAGS...), specify them as
1746VAR=VALUE. See below for descriptions of some of the useful variables.
1747
1748Defaults for the options are specified in brackets.
1749
1750Configuration:
1751 -h, --help display this help and exit
1752 --help=short display options specific to this package
1753 --help=recursive display the short help of all the included packages
1754 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001755 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001756 --cache-file=FILE cache test results in FILE [disabled]
1757 -C, --config-cache alias for \`--cache-file=config.cache'
1758 -n, --no-create do not create output files
1759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1760
1761Installation directories:
1762 --prefix=PREFIX install architecture-independent files in PREFIX
1763 [$ac_default_prefix]
1764 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1765 [PREFIX]
1766
1767By default, \`make install' will install all the files in
1768\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1769an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1770for instance \`--prefix=\$HOME'.
1771
1772For better control, use the options below.
1773
1774Fine tuning of the installation directories:
1775 --bindir=DIR user executables [EPREFIX/bin]
1776 --sbindir=DIR system admin executables [EPREFIX/sbin]
1777 --libexecdir=DIR program executables [EPREFIX/libexec]
1778 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1779 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1780 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1781 --libdir=DIR object code libraries [EPREFIX/lib]
1782 --includedir=DIR C header files [PREFIX/include]
1783 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1784 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1785 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1786 --infodir=DIR info documentation [DATAROOTDIR/info]
1787 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1788 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001789 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001790 --htmldir=DIR html documentation [DOCDIR]
1791 --dvidir=DIR dvi documentation [DOCDIR]
1792 --pdfdir=DIR pdf documentation [DOCDIR]
1793 --psdir=DIR ps documentation [DOCDIR]
1794_ACEOF
1795
1796 cat <<\_ACEOF
1797
cristy73bd4a52010-10-05 11:24:23 +00001798Program names:
1799 --program-prefix=PREFIX prepend PREFIX to installed program names
1800 --program-suffix=SUFFIX append SUFFIX to installed program names
1801 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1802
cristy3ed852e2009-09-05 21:47:34 +00001803X features:
1804 --x-includes=DIR X include files are in DIR
1805 --x-libraries=DIR X library files are in DIR
1806
1807System types:
1808 --build=BUILD configure for building on BUILD [guessed]
1809 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1810 --target=TARGET configure for building compilers for TARGET [HOST]
1811_ACEOF
1812fi
1813
1814if test -n "$ac_init_help"; then
1815 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001816 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001817 esac
1818 cat <<\_ACEOF
1819
1820Optional Features:
1821 --disable-option-checking ignore unrecognized --enable/--with options
1822 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1823 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001824 --enable-silent-rules less verbose build output (undo: `make V=1')
1825 --disable-silent-rules verbose build output (undo: `make V=0')
1826 --disable-dependency-tracking speeds up one-time build
1827 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001828 --bounds-checking enable run-time bounds-checking
1829 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001830 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001831 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001832 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001833 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001834 --enable-shared[=PKGS] build shared libraries [default=yes]
1835 --enable-static[=PKGS] build static libraries [default=yes]
1836 --enable-fast-install[=PKGS]
1837 optimize for fast installation [default=yes]
1838 --disable-libtool-lock avoid locking (might break parallel builds)
1839 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-delegate-build look for delegate libraries in build directory
1841 --disable-deprecated exclude deprecated methods in MagickCore and
1842 MagickWand API's
1843 --disable-installed Formally install ImageMagick under PREFIX
1844 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001845 --enable-zero-configuration
1846 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001847 zero-configuration ImageMagick
1848 --enable-hdri accurately represent the wide range of intensity
1849 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001851 --enable-maintainer-mode enable make rules and dependencies not useful
1852 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001853 --enable-ccmalloc enable 'ccmalloc' memory debug support
1854 --enable-efence enable 'efence' memory debug support
1855 --enable-prof enable 'prof' profiling support
1856 --enable-gprof enable 'gprof' profiling support
1857 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001858 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001859
1860Optional Packages:
1861 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1862 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001863 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001864 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy670aa3c2011-11-03 00:54:00 +00001865 --includearch-dir=DIR ARCH specific include directory
1866 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001867 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001868 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001869 both]
cristyda16f162011-02-19 23:52:17 +00001870 --with-sysroot=DIR Search for dependent libraries within DIR
1871 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001872 --with-included-ltdl use the GNU ltdl sources included here
1873 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1874 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001875 --with-modules enable building dynamically loadable modules
1876 --with-method-prefix=PREFIX
1877 prefix MagickCore API methods
1878 --with-quantum-depth=DEPTH
1879 number of bits in a pixel quantum (default 16)
1880 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1881 memory)
1882 --with-frozenpaths freeze delegate paths
1883 --without-magick-plus-plus
1884 disable build/install of Magick++
1885 --with-perl enable build/install of PerlMagick
1886 --with-perl-options=OPTIONS
1887 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001888 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001889 --with-umem enable umem memory allocation library support
1890 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1891 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001892 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001893 --without-zlib disable ZLIB support
1894 --with-autotrace enable autotrace support
1895 --without-dps disable Display Postscript support
1896 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001897 --with-dejavu-font-dir=DIR
1898 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001899 --without-fftw disable FFTW support
1900 --without-fpx disable FlashPIX support
1901 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001902 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001903 --without-gslib enable Ghostscript library support
1904 --with-fontpath=DIR prepend to default font search path
1905 --with-gs-font-dir=DIR Ghostscript font directory
1906 --without-gvc disable GVC support
1907 --without-jbig disable JBIG support
1908 --without-jpeg disable JPEG support
1909 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001910 --without-lcms disable lcms (v1.1X) support
1911 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001912 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001913 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001914 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001915 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001916 --without-png disable PNG support
1917 --without-rsvg disable RSVG support
1918 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001919 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001920 --with-windows-font-dir=DIR
1921 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001922 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001923 --without-xml disable XML support
1924
1925Some influential environment variables:
1926 CC C compiler command
1927 CFLAGS C compiler flags
1928 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1929 nonstandard directory <lib dir>
1930 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001931 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001932 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001933 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001934 CXX C++ compiler command
1935 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001936 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001937 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001938 XMKMF Path to xmkmf, Makefile generator for X Window System
1939 AUTOTRACE_CFLAGS
1940 C compiler flags for AUTOTRACE, overriding pkg-config
1941 AUTOTRACE_LIBS
1942 linker flags for AUTOTRACE, overriding pkg-config
1943 FONTCONFIG_CFLAGS
1944 C compiler flags for FONTCONFIG, overriding pkg-config
1945 FONTCONFIG_LIBS
1946 linker flags for FONTCONFIG, overriding pkg-config
1947 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1948 GVC_LIBS linker flags for GVC, overriding pkg-config
1949 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1950 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001951 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1952 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001953 OPENEXR_CFLAGS
1954 C compiler flags for OPENEXR, overriding pkg-config
1955 OPENEXR_LIBS
1956 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001957 PANGO_CFLAGS
1958 C compiler flags for PANGO, overriding pkg-config
1959 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001960 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1961 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1962 CAIRO_SVG_CFLAGS
1963 C compiler flags for CAIRO_SVG, overriding pkg-config
1964 CAIRO_SVG_LIBS
1965 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001966
1967Use these variables to override the choices made by `configure' or to help
1968it to find libraries and programs with nonstandard names/locations.
1969
1970Report bugs to <http://www.imagemagick.org>.
1971_ACEOF
1972ac_status=$?
1973fi
1974
1975if test "$ac_init_help" = "recursive"; then
1976 # If there are subdirs, report their specific --help.
1977 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1978 test -d "$ac_dir" ||
1979 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1980 continue
1981 ac_builddir=.
1982
1983case "$ac_dir" in
1984.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985*)
1986 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1987 # A ".." for each directory in $ac_dir_suffix.
1988 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1989 case $ac_top_builddir_sub in
1990 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1991 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1992 esac ;;
1993esac
1994ac_abs_top_builddir=$ac_pwd
1995ac_abs_builddir=$ac_pwd$ac_dir_suffix
1996# for backward compatibility:
1997ac_top_builddir=$ac_top_build_prefix
1998
1999case $srcdir in
2000 .) # We are building in place.
2001 ac_srcdir=.
2002 ac_top_srcdir=$ac_top_builddir_sub
2003 ac_abs_top_srcdir=$ac_pwd ;;
2004 [\\/]* | ?:[\\/]* ) # Absolute name.
2005 ac_srcdir=$srcdir$ac_dir_suffix;
2006 ac_top_srcdir=$srcdir
2007 ac_abs_top_srcdir=$srcdir ;;
2008 *) # Relative name.
2009 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2010 ac_top_srcdir=$ac_top_build_prefix$srcdir
2011 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2012esac
2013ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2014
2015 cd "$ac_dir" || { ac_status=$?; continue; }
2016 # Check for guested configure.
2017 if test -f "$ac_srcdir/configure.gnu"; then
2018 echo &&
2019 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2020 elif test -f "$ac_srcdir/configure"; then
2021 echo &&
2022 $SHELL "$ac_srcdir/configure" --help=recursive
2023 else
2024 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2025 fi || ac_status=$?
2026 cd "$ac_pwd" || { ac_status=$?; break; }
2027 done
2028fi
2029
2030test -n "$ac_init_help" && exit $ac_status
2031if $ac_init_version; then
2032 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002033ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002034generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002035
cristy98dddb52010-11-04 00:30:15 +00002036Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002037This configure script is free software; the Free Software Foundation
2038gives unlimited permission to copy, distribute and modify it.
2039_ACEOF
2040 exit
2041fi
cristy8b350f62009-11-15 23:12:43 +00002042
2043## ------------------------ ##
2044## Autoconf initialization. ##
2045## ------------------------ ##
2046
2047# ac_fn_c_try_compile LINENO
2048# --------------------------
2049# Try to compile conftest.$ac_ext, and return whether this succeeded.
2050ac_fn_c_try_compile ()
2051{
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 rm -f conftest.$ac_objext
2054 if { { ac_try="$ac_compile"
2055case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058esac
2059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060$as_echo "$ac_try_echo"; } >&5
2061 (eval "$ac_compile") 2>conftest.err
2062 ac_status=$?
2063 if test -s conftest.err; then
2064 grep -v '^ *+' conftest.err >conftest.er1
2065 cat conftest.er1 >&5
2066 mv -f conftest.er1 conftest.err
2067 fi
2068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2069 test $ac_status = 0; } && {
2070 test -z "$ac_c_werror_flag" ||
2071 test ! -s conftest.err
2072 } && test -s conftest.$ac_objext; then :
2073 ac_retval=0
2074else
2075 $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079fi
cristyda16f162011-02-19 23:52:17 +00002080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002081 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002082
2083} # ac_fn_c_try_compile
2084
cristy95646052009-11-28 23:05:30 +00002085# ac_fn_c_try_cpp LINENO
2086# ----------------------
2087# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2088ac_fn_c_try_cpp ()
2089{
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 ac_status=$?
2100 if test -s conftest.err; then
2101 grep -v '^ *+' conftest.err >conftest.er1
2102 cat conftest.er1 >&5
2103 mv -f conftest.er1 conftest.err
2104 fi
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002106 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2108 test ! -s conftest.err
2109 }; then :
2110 ac_retval=0
2111else
2112 $as_echo "$as_me: failed program was:" >&5
2113sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 ac_retval=1
2116fi
cristyda16f162011-02-19 23:52:17 +00002117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002118 as_fn_set_status $ac_retval
2119
2120} # ac_fn_c_try_cpp
2121
cristy8b350f62009-11-15 23:12:43 +00002122# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123# -------------------------------------------------------
2124# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125# the include files in INCLUDES and setting the cache variable VAR
2126# accordingly.
2127ac_fn_c_check_header_mongrel ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002130 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002133if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002134 $as_echo_n "(cached) " >&6
2135fi
2136eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139else
2140 # Is the header compilable?
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142$as_echo_n "checking $2 usability... " >&6; }
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_header_compiler=yes
2150else
2151 ac_header_compiler=no
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155$as_echo "$ac_header_compiler" >&6; }
2156
2157# Is the header present?
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159$as_echo_n "checking $2 presence... " >&6; }
2160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h. */
2162#include <$2>
2163_ACEOF
2164if ac_fn_c_try_cpp "$LINENO"; then :
2165 ac_header_preproc=yes
2166else
2167 ac_header_preproc=no
2168fi
cristyda16f162011-02-19 23:52:17 +00002169rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171$as_echo "$ac_header_preproc" >&6; }
2172
2173# So? What about this header?
2174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175 yes:no: )
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ;;
2181 no:yes:* )
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2185$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2189$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002192( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002193## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002194## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002195 ) | sed "s/^/$as_me: WARNING: /" >&2
2196 ;;
2197esac
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002200if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002201 $as_echo_n "(cached) " >&6
2202else
2203 eval "$3=\$ac_header_compiler"
2204fi
2205eval ac_res=\$$3
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208fi
cristyda16f162011-02-19 23:52:17 +00002209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002210
2211} # ac_fn_c_check_header_mongrel
2212
2213# ac_fn_c_try_run LINENO
2214# ----------------------
2215# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2216# that executables *can* be run.
2217ac_fn_c_try_run ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 if { { ac_try="$ac_link"
2221case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2224esac
2225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2226$as_echo "$ac_try_echo"; } >&5
2227 (eval "$ac_link") 2>&5
2228 ac_status=$?
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2231 { { case "(($ac_try" in
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2234esac
2235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236$as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_try") 2>&5
2238 ac_status=$?
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; }; }; then :
2241 ac_retval=0
2242else
2243 $as_echo "$as_me: program exited with status $ac_status" >&5
2244 $as_echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 ac_retval=$ac_status
2248fi
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002251 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002252
2253} # ac_fn_c_try_run
2254
2255# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2256# -------------------------------------------------------
2257# Tests whether HEADER exists and can be compiled using the include files in
2258# INCLUDES, setting the cache variable VAR accordingly.
2259ac_fn_c_check_header_compile ()
2260{
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2263$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002264if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002265 $as_echo_n "(cached) " >&6
2266else
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268/* end confdefs.h. */
2269$4
2270#include <$2>
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273 eval "$3=yes"
2274else
2275 eval "$3=no"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002283
2284} # ac_fn_c_check_header_compile
2285
cristya0b81c32010-01-22 02:54:33 +00002286# ac_fn_cxx_try_compile LINENO
2287# ----------------------------
2288# Try to compile conftest.$ac_ext, and return whether this succeeded.
2289ac_fn_cxx_try_compile ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 rm -f conftest.$ac_objext
2293 if { { ac_try="$ac_compile"
2294case "(($ac_try" in
2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296 *) ac_try_echo=$ac_try;;
2297esac
2298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299$as_echo "$ac_try_echo"; } >&5
2300 (eval "$ac_compile") 2>conftest.err
2301 ac_status=$?
2302 if test -s conftest.err; then
2303 grep -v '^ *+' conftest.err >conftest.er1
2304 cat conftest.er1 >&5
2305 mv -f conftest.er1 conftest.err
2306 fi
2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308 test $ac_status = 0; } && {
2309 test -z "$ac_cxx_werror_flag" ||
2310 test ! -s conftest.err
2311 } && test -s conftest.$ac_objext; then :
2312 ac_retval=0
2313else
2314 $as_echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 ac_retval=1
2318fi
cristyda16f162011-02-19 23:52:17 +00002319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002320 as_fn_set_status $ac_retval
2321
2322} # ac_fn_cxx_try_compile
2323
cristy8b350f62009-11-15 23:12:43 +00002324# ac_fn_c_try_link LINENO
2325# -----------------------
2326# Try to link conftest.$ac_ext, and return whether this succeeded.
2327ac_fn_c_try_link ()
2328{
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 rm -f conftest.$ac_objext conftest$ac_exeext
2331 if { { ac_try="$ac_link"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337$as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>conftest.err
2339 ac_status=$?
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2344 fi
2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } && {
2347 test -z "$ac_c_werror_flag" ||
2348 test ! -s conftest.err
2349 } && test -s conftest$ac_exeext && {
2350 test "$cross_compiling" = yes ||
2351 $as_test_x conftest$ac_exeext
2352 }; then :
2353 ac_retval=0
2354else
2355 $as_echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_retval=1
2359fi
2360 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2361 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2362 # interfere with the next link command; also delete a directory that is
2363 # left behind by Apple's compiler. We do this before executing the actions.
2364 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002366 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002367
2368} # ac_fn_c_try_link
2369
cristy73bd4a52010-10-05 11:24:23 +00002370# ac_fn_c_check_func LINENO FUNC VAR
2371# ----------------------------------
2372# Tests whether FUNC exists, setting the cache variable VAR accordingly
2373ac_fn_c_check_func ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002378if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002379 $as_echo_n "(cached) " >&6
2380else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382/* end confdefs.h. */
2383/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2385#define $2 innocuous_$2
2386
2387/* System header to define __stub macros and hopefully few prototypes,
2388 which can conflict with char $2 (); below.
2389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2390 <limits.h> exists even on freestanding compilers. */
2391
2392#ifdef __STDC__
2393# include <limits.h>
2394#else
2395# include <assert.h>
2396#endif
2397
2398#undef $2
2399
2400/* Override any GCC internal prototype to avoid an error.
2401 Use char because int might match the return type of a GCC
2402 builtin and then its argument prototype would still apply. */
2403#ifdef __cplusplus
2404extern "C"
2405#endif
2406char $2 ();
2407/* The GNU C library defines this for functions which it implements
2408 to always fail with ENOSYS. Some functions are actually named
2409 something starting with __ and the normal name is an alias. */
2410#if defined __stub_$2 || defined __stub___$2
2411choke me
2412#endif
2413
2414int
2415main ()
2416{
2417return $2 ();
2418 ;
2419 return 0;
2420}
2421_ACEOF
2422if ac_fn_c_try_link "$LINENO"; then :
2423 eval "$3=yes"
2424else
2425 eval "$3=no"
2426fi
2427rm -f core conftest.err conftest.$ac_objext \
2428 conftest$ac_exeext conftest.$ac_ext
2429fi
2430eval ac_res=\$$3
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002434
2435} # ac_fn_c_check_func
2436
2437# ac_fn_cxx_try_cpp LINENO
2438# ------------------------
2439# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2440ac_fn_cxx_try_cpp ()
2441{
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 if { { ac_try="$ac_cpp conftest.$ac_ext"
2444case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447esac
2448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449$as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2451 ac_status=$?
2452 if test -s conftest.err; then
2453 grep -v '^ *+' conftest.err >conftest.er1
2454 cat conftest.er1 >&5
2455 mv -f conftest.er1 conftest.err
2456 fi
2457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002458 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002459 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2460 test ! -s conftest.err
2461 }; then :
2462 ac_retval=0
2463else
2464 $as_echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 ac_retval=1
2468fi
cristyda16f162011-02-19 23:52:17 +00002469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002470 as_fn_set_status $ac_retval
2471
2472} # ac_fn_cxx_try_cpp
2473
2474# ac_fn_cxx_try_link LINENO
2475# -------------------------
2476# Try to link conftest.$ac_ext, and return whether this succeeded.
2477ac_fn_cxx_try_link ()
2478{
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 rm -f conftest.$ac_objext conftest$ac_exeext
2481 if { { ac_try="$ac_link"
2482case "(($ac_try" in
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2485esac
2486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487$as_echo "$ac_try_echo"; } >&5
2488 (eval "$ac_link") 2>conftest.err
2489 ac_status=$?
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2494 fi
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } && {
2497 test -z "$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest$ac_exeext && {
2500 test "$cross_compiling" = yes ||
2501 $as_test_x conftest$ac_exeext
2502 }; then :
2503 ac_retval=0
2504else
2505 $as_echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508 ac_retval=1
2509fi
2510 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2511 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2512 # interfere with the next link command; also delete a directory that is
2513 # left behind by Apple's compiler. We do this before executing the actions.
2514 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002515 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002516 as_fn_set_status $ac_retval
2517
2518} # ac_fn_cxx_try_link
2519
cristy98dddb52010-11-04 00:30:15 +00002520# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2521# ---------------------------------------------
2522# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2523# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002524ac_fn_c_check_decl ()
2525{
2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002527 as_decl_name=`echo $2|sed 's/ *(.*//'`
2528 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2530$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002531if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002532 $as_echo_n "(cached) " >&6
2533else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535/* end confdefs.h. */
2536$4
2537int
2538main ()
2539{
cristy98dddb52010-11-04 00:30:15 +00002540#ifndef $as_decl_name
2541#ifdef __cplusplus
2542 (void) $as_decl_use;
2543#else
2544 (void) $as_decl_name;
2545#endif
cristy73bd4a52010-10-05 11:24:23 +00002546#endif
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552if ac_fn_c_try_compile "$LINENO"; then :
2553 eval "$3=yes"
2554else
2555 eval "$3=no"
2556fi
2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558fi
2559eval ac_res=\$$3
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002563
2564} # ac_fn_c_check_decl
2565
cristy8b350f62009-11-15 23:12:43 +00002566# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2567# -------------------------------------------
2568# Tests whether TYPE exists after having included INCLUDES, setting cache
2569# variable VAR accordingly.
2570ac_fn_c_check_type ()
2571{
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002575if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002576 $as_echo_n "(cached) " >&6
2577else
2578 eval "$3=no"
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580/* end confdefs.h. */
2581$4
2582int
2583main ()
2584{
2585if (sizeof ($2))
2586 return 0;
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591if ac_fn_c_try_compile "$LINENO"; then :
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593/* end confdefs.h. */
2594$4
2595int
2596main ()
2597{
2598if (sizeof (($2)))
2599 return 0;
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604if ac_fn_c_try_compile "$LINENO"; then :
2605
2606else
2607 eval "$3=yes"
2608fi
2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612fi
2613eval ac_res=\$$3
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002617
2618} # ac_fn_c_check_type
2619
cristy92703d82010-04-26 00:18:18 +00002620# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2621# ----------------------------------------------------
2622# Tries to find if the field MEMBER exists in type AGGR, after including
2623# INCLUDES, setting cache variable VAR accordingly.
2624ac_fn_c_check_member ()
2625{
2626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2628$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002629if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002630 $as_echo_n "(cached) " >&6
2631else
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$5
2635int
2636main ()
2637{
2638static $2 ac_aggr;
2639if (ac_aggr.$3)
2640return 0;
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645if ac_fn_c_try_compile "$LINENO"; then :
2646 eval "$4=yes"
2647else
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$5
2651int
2652main ()
2653{
2654static $2 ac_aggr;
2655if (sizeof ac_aggr.$3)
2656return 0;
2657 ;
2658 return 0;
2659}
2660_ACEOF
2661if ac_fn_c_try_compile "$LINENO"; then :
2662 eval "$4=yes"
2663else
2664 eval "$4=no"
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669fi
2670eval ac_res=\$$4
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002674
2675} # ac_fn_c_check_member
2676
cristy501c8042011-05-26 17:46:28 +00002677# ac_fn_c_find_intX_t LINENO BITS VAR
2678# -----------------------------------
2679# Finds a signed integer type with width BITS, setting cache variable VAR
2680# accordingly.
2681ac_fn_c_find_intX_t ()
2682{
2683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2685$as_echo_n "checking for int$2_t... " >&6; }
2686if eval \${$3+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688else
2689 eval "$3=no"
2690 # Order is important - never check a type that is potentially smaller
2691 # than half of the expected target width.
2692 for ac_type in int$2_t 'int' 'long int' \
2693 'long long int' 'short int' 'signed char'; do
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695/* end confdefs.h. */
2696$ac_includes_default
2697 enum { N = $2 / 2 - 1 };
2698int
2699main ()
2700{
2701static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2702test_array [0] = 0
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708if ac_fn_c_try_compile "$LINENO"; then :
2709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2710/* end confdefs.h. */
2711$ac_includes_default
2712 enum { N = $2 / 2 - 1 };
2713int
2714main ()
2715{
2716static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2717 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2718test_array [0] = 0
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724if ac_fn_c_try_compile "$LINENO"; then :
2725
2726else
2727 case $ac_type in #(
2728 int$2_t) :
2729 eval "$3=yes" ;; #(
2730 *) :
2731 eval "$3=\$ac_type" ;;
2732esac
2733fi
2734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 if eval test \"x\$"$3"\" = x"no"; then :
2738
2739else
2740 break
2741fi
2742 done
2743fi
2744eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746$as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2748
2749} # ac_fn_c_find_intX_t
2750
2751# ac_fn_c_find_uintX_t LINENO BITS VAR
2752# ------------------------------------
2753# Finds an unsigned integer type with width BITS, setting cache variable VAR
2754# accordingly.
2755ac_fn_c_find_uintX_t ()
2756{
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2759$as_echo_n "checking for uint$2_t... " >&6; }
2760if eval \${$3+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762else
2763 eval "$3=no"
2764 # Order is important - never check a type that is potentially smaller
2765 # than half of the expected target width.
2766 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2767 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2769/* end confdefs.h. */
2770$ac_includes_default
2771int
2772main ()
2773{
2774static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2775test_array [0] = 0
2776
2777 ;
2778 return 0;
2779}
2780_ACEOF
2781if ac_fn_c_try_compile "$LINENO"; then :
2782 case $ac_type in #(
2783 uint$2_t) :
2784 eval "$3=yes" ;; #(
2785 *) :
2786 eval "$3=\$ac_type" ;;
2787esac
2788fi
2789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 if eval test \"x\$"$3"\" = x"no"; then :
2791
2792else
2793 break
2794fi
2795 done
2796fi
2797eval ac_res=\$$3
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2799$as_echo "$ac_res" >&6; }
2800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2801
2802} # ac_fn_c_find_uintX_t
2803
cristy8b350f62009-11-15 23:12:43 +00002804# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2805# --------------------------------------------
2806# Tries to find the compile-time value of EXPR in a program that includes
2807# INCLUDES, setting VAR accordingly. Returns whether the value could be
2808# computed
2809ac_fn_c_compute_int ()
2810{
2811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2812 if test "$cross_compiling" = yes; then
2813 # Depending upon the size, compute the lo and hi bounds.
2814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2815/* end confdefs.h. */
2816$4
2817int
2818main ()
2819{
2820static int test_array [1 - 2 * !(($2) >= 0)];
2821test_array [0] = 0
2822
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827if ac_fn_c_try_compile "$LINENO"; then :
2828 ac_lo=0 ac_mid=0
2829 while :; do
2830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831/* end confdefs.h. */
2832$4
2833int
2834main ()
2835{
2836static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2837test_array [0] = 0
2838
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844 ac_hi=$ac_mid; break
2845else
2846 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2847 if test $ac_lo -le $ac_mid; then
2848 ac_lo= ac_hi=
2849 break
2850 fi
2851 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2852fi
2853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 done
2855else
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858$4
2859int
2860main ()
2861{
2862static int test_array [1 - 2 * !(($2) < 0)];
2863test_array [0] = 0
2864
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_hi=-1 ac_mid=-1
2871 while :; do
2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2873/* end confdefs.h. */
2874$4
2875int
2876main ()
2877{
2878static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2879test_array [0] = 0
2880
2881 ;
2882 return 0;
2883}
2884_ACEOF
2885if ac_fn_c_try_compile "$LINENO"; then :
2886 ac_lo=$ac_mid; break
2887else
2888 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2889 if test $ac_mid -le $ac_hi; then
2890 ac_lo= ac_hi=
2891 break
2892 fi
2893 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2894fi
2895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 done
2897else
2898 ac_lo= ac_hi=
2899fi
2900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901fi
2902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903# Binary search between lo and hi bounds.
2904while test "x$ac_lo" != "x$ac_hi"; do
2905 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2907/* end confdefs.h. */
2908$4
2909int
2910main ()
2911{
2912static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2913test_array [0] = 0
2914
2915 ;
2916 return 0;
2917}
2918_ACEOF
2919if ac_fn_c_try_compile "$LINENO"; then :
2920 ac_hi=$ac_mid
2921else
2922 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2923fi
2924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925done
2926case $ac_lo in #((
2927?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2928'') ac_retval=1 ;;
2929esac
2930 else
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932/* end confdefs.h. */
2933$4
2934static long int longval () { return $2; }
2935static unsigned long int ulongval () { return $2; }
2936#include <stdio.h>
2937#include <stdlib.h>
2938int
2939main ()
2940{
2941
2942 FILE *f = fopen ("conftest.val", "w");
2943 if (! f)
2944 return 1;
2945 if (($2) < 0)
2946 {
2947 long int i = longval ();
2948 if (i != ($2))
2949 return 1;
2950 fprintf (f, "%ld", i);
2951 }
2952 else
2953 {
2954 unsigned long int i = ulongval ();
2955 if (i != ($2))
2956 return 1;
2957 fprintf (f, "%lu", i);
2958 }
2959 /* Do not output a trailing newline, as this causes \r\n confusion
2960 on some platforms. */
2961 return ferror (f) || fclose (f) != 0;
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967if ac_fn_c_try_run "$LINENO"; then :
2968 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2969else
2970 ac_retval=1
2971fi
2972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2973 conftest.$ac_objext conftest.beam conftest.$ac_ext
2974rm -f conftest.val
2975
2976 fi
cristyda16f162011-02-19 23:52:17 +00002977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002978 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002979
2980} # ac_fn_c_compute_int
2981
2982# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2983# ---------------------------------------------------------
2984# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2985# the include files in INCLUDES and setting the cache variable VAR
2986# accordingly.
2987ac_fn_cxx_check_header_mongrel ()
2988{
2989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002990 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2992$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002993if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002994 $as_echo_n "(cached) " >&6
2995fi
2996eval ac_res=\$$3
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998$as_echo "$ac_res" >&6; }
2999else
3000 # Is the header compilable?
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3002$as_echo_n "checking $2 usability... " >&6; }
3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h. */
3005$4
3006#include <$2>
3007_ACEOF
3008if ac_fn_cxx_try_compile "$LINENO"; then :
3009 ac_header_compiler=yes
3010else
3011 ac_header_compiler=no
3012fi
3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3015$as_echo "$ac_header_compiler" >&6; }
3016
3017# Is the header present?
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3019$as_echo_n "checking $2 presence... " >&6; }
3020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3021/* end confdefs.h. */
3022#include <$2>
3023_ACEOF
3024if ac_fn_cxx_try_cpp "$LINENO"; then :
3025 ac_header_preproc=yes
3026else
3027 ac_header_preproc=no
3028fi
cristyda16f162011-02-19 23:52:17 +00003029rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3031$as_echo "$ac_header_preproc" >&6; }
3032
3033# So? What about this header?
3034case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3035 yes:no: )
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3037$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3040 ;;
3041 no:yes:* )
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3043$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3045$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3047$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3049$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3051$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003052( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003053## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003054## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003055 ) | sed "s/^/$as_me: WARNING: /" >&2
3056 ;;
3057esac
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3059$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003060if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003061 $as_echo_n "(cached) " >&6
3062else
3063 eval "$3=\$ac_header_compiler"
3064fi
3065eval ac_res=\$$3
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067$as_echo "$ac_res" >&6; }
3068fi
cristyda16f162011-02-19 23:52:17 +00003069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003070
3071} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003072cat >config.log <<_ACEOF
3073This file contains any messages produced by compilers while
3074running configure, to aid debugging if configure makes a mistake.
3075
cristy29eb34e2011-10-16 00:46:08 +00003076It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003077generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003078
3079 $ $0 $@
3080
3081_ACEOF
3082exec 5>>config.log
3083{
3084cat <<_ASUNAME
3085## --------- ##
3086## Platform. ##
3087## --------- ##
3088
3089hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3090uname -m = `(uname -m) 2>/dev/null || echo unknown`
3091uname -r = `(uname -r) 2>/dev/null || echo unknown`
3092uname -s = `(uname -s) 2>/dev/null || echo unknown`
3093uname -v = `(uname -v) 2>/dev/null || echo unknown`
3094
3095/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3096/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3097
3098/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3099/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3100/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3101/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3102/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3103/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3104/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3105
3106_ASUNAME
3107
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003113 $as_echo "PATH: $as_dir"
3114 done
cristy3ed852e2009-09-05 21:47:34 +00003115IFS=$as_save_IFS
3116
3117} >&5
3118
3119cat >&5 <<_ACEOF
3120
3121
3122## ----------- ##
3123## Core tests. ##
3124## ----------- ##
3125
3126_ACEOF
3127
3128
3129# Keep a trace of the command line.
3130# Strip out --no-create and --no-recursion so they do not pile up.
3131# Strip out --silent because we don't want to record it for future runs.
3132# Also quote any args containing shell meta-characters.
3133# Make two passes to allow for proper duplicate-argument suppression.
3134ac_configure_args=
3135ac_configure_args0=
3136ac_configure_args1=
3137ac_must_keep_next=false
3138for ac_pass in 1 2
3139do
3140 for ac_arg
3141 do
3142 case $ac_arg in
3143 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3145 | -silent | --silent | --silen | --sile | --sil)
3146 continue ;;
3147 *\'*)
3148 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3149 esac
3150 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003151 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003152 2)
cristy8b350f62009-11-15 23:12:43 +00003153 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003154 if test $ac_must_keep_next = true; then
3155 ac_must_keep_next=false # Got value, back to normal.
3156 else
3157 case $ac_arg in
3158 *=* | --config-cache | -C | -disable-* | --disable-* \
3159 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3160 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3161 | -with-* | --with-* | -without-* | --without-* | --x)
3162 case "$ac_configure_args0 " in
3163 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3164 esac
3165 ;;
3166 -* ) ac_must_keep_next=true ;;
3167 esac
3168 fi
cristy8b350f62009-11-15 23:12:43 +00003169 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003170 ;;
3171 esac
3172 done
3173done
cristy8b350f62009-11-15 23:12:43 +00003174{ ac_configure_args0=; unset ac_configure_args0;}
3175{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003176
3177# When interrupted or exit'd, cleanup temporary files, and complete
3178# config.log. We remove comments because anyway the quotes in there
3179# would cause problems or look ugly.
3180# WARNING: Use '\'' to represent an apostrophe within the trap.
3181# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3182trap 'exit_status=$?
3183 # Save into config.log some information that might help in debugging.
3184 {
3185 echo
3186
cristy98dddb52010-11-04 00:30:15 +00003187 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003188## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003189## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003190 echo
3191 # The following way of writing the cache mishandles newlines in values,
3192(
3193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3194 eval ac_val=\$$ac_var
3195 case $ac_val in #(
3196 *${as_nl}*)
3197 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003199$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3200 esac
3201 case $ac_var in #(
3202 _ | IFS | as_nl) ;; #(
3203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003204 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003205 esac ;;
3206 esac
3207 done
3208 (set) 2>&1 |
3209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3210 *${as_nl}ac_space=\ *)
3211 sed -n \
3212 "s/'\''/'\''\\\\'\'''\''/g;
3213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3214 ;; #(
3215 *)
3216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3217 ;;
3218 esac |
3219 sort
3220)
3221 echo
3222
cristy98dddb52010-11-04 00:30:15 +00003223 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003224## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003225## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003226 echo
3227 for ac_var in $ac_subst_vars
3228 do
3229 eval ac_val=\$$ac_var
3230 case $ac_val in
3231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3232 esac
3233 $as_echo "$ac_var='\''$ac_val'\''"
3234 done | sort
3235 echo
3236
3237 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003238 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003239## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003240## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003241 echo
3242 for ac_var in $ac_subst_files
3243 do
3244 eval ac_val=\$$ac_var
3245 case $ac_val in
3246 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3247 esac
3248 $as_echo "$ac_var='\''$ac_val'\''"
3249 done | sort
3250 echo
3251 fi
3252
3253 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003254 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003255## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003256## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003257 echo
3258 cat confdefs.h
3259 echo
3260 fi
3261 test "$ac_signal" != 0 &&
3262 $as_echo "$as_me: caught signal $ac_signal"
3263 $as_echo "$as_me: exit $exit_status"
3264 } >&5
3265 rm -f core *.core core.conftest.* &&
3266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3267 exit $exit_status
3268' 0
3269for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003271done
3272ac_signal=0
3273
3274# confdefs.h avoids OS command line length limits that DEFS can exceed.
3275rm -f -r conftest* confdefs.h
3276
cristy8b350f62009-11-15 23:12:43 +00003277$as_echo "/* confdefs.h */" > confdefs.h
3278
cristy3ed852e2009-09-05 21:47:34 +00003279# Predefined preprocessor variables.
3280
3281cat >>confdefs.h <<_ACEOF
3282#define PACKAGE_NAME "$PACKAGE_NAME"
3283_ACEOF
3284
cristy3ed852e2009-09-05 21:47:34 +00003285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_VERSION "$PACKAGE_VERSION"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_STRING "$PACKAGE_STRING"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297cat >>confdefs.h <<_ACEOF
3298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3299_ACEOF
3300
cristy8b350f62009-11-15 23:12:43 +00003301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_URL "$PACKAGE_URL"
3303_ACEOF
3304
cristy3ed852e2009-09-05 21:47:34 +00003305
3306# Let the site file select an alternate cache file if it wants to.
3307# Prefer an explicitly selected file to automatically selected ones.
3308ac_site_file1=NONE
3309ac_site_file2=NONE
3310if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003311 # We do not want a PATH search for config.site.
3312 case $CONFIG_SITE in #((
3313 -*) ac_site_file1=./$CONFIG_SITE;;
3314 */*) ac_site_file1=$CONFIG_SITE;;
3315 *) ac_site_file1=./$CONFIG_SITE;;
3316 esac
cristy3ed852e2009-09-05 21:47:34 +00003317elif test "x$prefix" != xNONE; then
3318 ac_site_file1=$prefix/share/config.site
3319 ac_site_file2=$prefix/etc/config.site
3320else
3321 ac_site_file1=$ac_default_prefix/share/config.site
3322 ac_site_file2=$ac_default_prefix/etc/config.site
3323fi
3324for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3325do
3326 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003327 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3330 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003331 . "$ac_site_file" \
3332 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334as_fn_error $? "failed to load site script $ac_site_file
3335See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003336 fi
3337done
3338
3339if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003340 # Some versions of bash will fail to source /dev/null (special files
3341 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3342 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003343 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003344$as_echo "$as_me: loading cache $cache_file" >&6;}
3345 case $cache_file in
3346 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3347 *) . "./$cache_file";;
3348 esac
3349 fi
3350else
cristy8b350f62009-11-15 23:12:43 +00003351 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003352$as_echo "$as_me: creating cache $cache_file" >&6;}
3353 >$cache_file
3354fi
3355
cristycd4c5312009-11-22 01:19:08 +00003356as_fn_append ac_header_list " stdlib.h"
3357as_fn_append ac_header_list " unistd.h"
3358as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003359# Check that the precious variables saved in the cache have kept the same
3360# value.
3361ac_cache_corrupted=false
3362for ac_var in $ac_precious_vars; do
3363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3364 eval ac_new_set=\$ac_env_${ac_var}_set
3365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3366 eval ac_new_val=\$ac_env_${ac_var}_value
3367 case $ac_old_set,$ac_new_set in
3368 set,)
cristy8b350f62009-11-15 23:12:43 +00003369 { $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 +00003370$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3371 ac_cache_corrupted=: ;;
3372 ,set)
cristy8b350f62009-11-15 23:12:43 +00003373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003374$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3375 ac_cache_corrupted=: ;;
3376 ,);;
3377 *)
3378 if test "x$ac_old_val" != "x$ac_new_val"; then
3379 # differences in whitespace do not lead to failure.
3380 ac_old_val_w=`echo x $ac_old_val`
3381 ac_new_val_w=`echo x $ac_new_val`
3382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3385 ac_cache_corrupted=:
3386 else
cristy8b350f62009-11-15 23:12:43 +00003387 { $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 +00003388$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3389 eval $ac_var=\$ac_old_val
3390 fi
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003394$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3395 fi;;
3396 esac
3397 # Pass precious variables to config.status.
3398 if test "$ac_new_set" = set; then
3399 case $ac_new_val in
3400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3401 *) ac_arg=$ac_var=$ac_new_val ;;
3402 esac
3403 case " $ac_configure_args " in
3404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003406 esac
3407 fi
3408done
3409if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003413$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003415fi
cristy8b350f62009-11-15 23:12:43 +00003416## -------------------- ##
3417## Main body of script. ##
3418## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003419
3420ac_ext=c
3421ac_cpp='$CPP $CPPFLAGS'
3422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427
3428ac_aux_dir=
3429for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003430 if test -f "$ac_dir/install-sh"; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f "$ac_dir/install.sh"; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f "$ac_dir/shtool"; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
cristy3ed852e2009-09-05 21:47:34 +00003443done
3444if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003445 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003446fi
3447
3448# These three variables are undocumented and unsupported,
3449# and are intended to be withdrawn in a future Autoconf release.
3450# They can cause serious problems if a builder's source tree is in a directory
3451# whose full name contains unusual characters.
3452ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3453ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3454ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3455
3456
3457
3458
3459ac_config_headers="$ac_config_headers config/config.h"
3460
cristy24fc1fe2010-10-23 21:13:01 +00003461
cristy4c08aed2011-07-01 19:47:50 +00003462ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003463
cristy4c08aed2011-07-01 19:47:50 +00003464ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003465
3466
3467#
3468# Save initial user-tunable values
3469#
3470USER_LIBS=$LIBS
3471for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3472 eval isset=\${$var+set}
3473 if test "$isset" = 'set'; then
3474 eval val=$`echo $var`
3475 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3476 fi
3477done
3478
3479
3480CONFIGURE_ARGS="$0 ${ac_configure_args}"
3481
3482
3483# Source file containing package/library versioning information.
3484. ${srcdir}/version.sh
3485
cristy15a88782010-01-31 23:24:49 +00003486echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003487# Make sure we can run config.sub.
3488$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003490
cristy8b350f62009-11-15 23:12:43 +00003491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003492$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003493if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003494 $as_echo_n "(cached) " >&6
3495else
3496 ac_build_alias=$build_alias
3497test "x$ac_build_alias" = x &&
3498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3499test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003503
3504fi
cristy8b350f62009-11-15 23:12:43 +00003505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003506$as_echo "$ac_cv_build" >&6; }
3507case $ac_cv_build in
3508*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003509*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003510esac
3511build=$ac_cv_build
3512ac_save_IFS=$IFS; IFS='-'
3513set x $ac_cv_build
3514shift
3515build_cpu=$1
3516build_vendor=$2
3517shift; shift
3518# Remember, the first character of IFS is used to create $*,
3519# except with old shells:
3520build_os=$*
3521IFS=$ac_save_IFS
3522case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3523
3524
cristy8b350f62009-11-15 23:12:43 +00003525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003526$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003527if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003528 $as_echo_n "(cached) " >&6
3529else
3530 if test "x$host_alias" = x; then
3531 ac_cv_host=$ac_cv_build
3532else
3533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003535fi
3536
3537fi
cristy8b350f62009-11-15 23:12:43 +00003538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003539$as_echo "$ac_cv_host" >&6; }
3540case $ac_cv_host in
3541*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003542*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003543esac
3544host=$ac_cv_host
3545ac_save_IFS=$IFS; IFS='-'
3546set x $ac_cv_host
3547shift
3548host_cpu=$1
3549host_vendor=$2
3550shift; shift
3551# Remember, the first character of IFS is used to create $*,
3552# except with old shells:
3553host_os=$*
3554IFS=$ac_save_IFS
3555case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3556
3557
cristy8b350f62009-11-15 23:12:43 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003559$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003560if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003561 $as_echo_n "(cached) " >&6
3562else
3563 if test "x$target_alias" = x; then
3564 ac_cv_target=$ac_cv_host
3565else
3566 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003568fi
3569
3570fi
cristy8b350f62009-11-15 23:12:43 +00003571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003572$as_echo "$ac_cv_target" >&6; }
3573case $ac_cv_target in
3574*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003575*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003576esac
3577target=$ac_cv_target
3578ac_save_IFS=$IFS; IFS='-'
3579set x $ac_cv_target
3580shift
3581target_cpu=$1
3582target_vendor=$2
3583shift; shift
3584# Remember, the first character of IFS is used to create $*,
3585# except with old shells:
3586target_os=$*
3587IFS=$ac_save_IFS
3588case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3589
3590
3591# The aliases save the names the user supplied, while $host etc.
3592# will get canonicalized.
3593test -n "$target_alias" &&
3594 test "$program_prefix$program_suffix$program_transform_name" = \
3595 NONENONEs,x,x, &&
3596 program_prefix=${target_alias}-
3597
cristy837d6dc2010-02-27 01:16:57 +00003598
3599
3600
cristy19615b82011-04-13 20:02:01 +00003601MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003602
3603
cristy19615b82011-04-13 20:02:01 +00003604MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003605
3606
cristy19615b82011-04-13 20:02:01 +00003607MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003608
3609
cristy3ed852e2009-09-05 21:47:34 +00003610# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003611MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3612
3613MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3614
cristyde3fc5d2012-02-12 15:40:47 +00003615MAGICK_SVN_REVISION=6837
cristyd694ca32011-03-27 21:42:54 +00003616
3617
cristy3ed852e2009-09-05 21:47:34 +00003618
3619
3620# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3622$as_echo_n "checking whether build environment is sane... " >&6; }
3623# Just in case
3624sleep 1
3625echo timestamp > conftest.file
3626# Reject unsafe characters in $srcdir or the absolute working directory
3627# name. Accept space and tab only in the latter.
3628am_lf='
3629'
3630case `pwd` in
3631 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003632 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003633esac
3634case $srcdir in
3635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003636 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003637esac
cristy3ed852e2009-09-05 21:47:34 +00003638
cristy73bd4a52010-10-05 11:24:23 +00003639# Do `set' in a subshell so we don't clobber the current shell's
3640# arguments. Must try -L first in case configure is actually a
3641# symlink; some systems play weird games with the mod time of symlinks
3642# (eg FreeBSD returns the mod time of the symlink's containing
3643# directory).
3644if (
3645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3646 if test "$*" = "X"; then
3647 # -L didn't work.
3648 set X `ls -t "$srcdir/configure" conftest.file`
3649 fi
3650 rm -f conftest.file
3651 if test "$*" != "X $srcdir/configure conftest.file" \
3652 && test "$*" != "X conftest.file $srcdir/configure"; then
3653
3654 # If neither matched, then we have a broken ls. This can happen
3655 # if, for instance, CONFIG_SHELL is bash and it inherits a
3656 # broken ls alias from the environment. This has actually
3657 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003658 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003659alias in your environment" "$LINENO" 5
3660 fi
3661
3662 test "$2" = conftest.file
3663 )
3664then
3665 # Ok.
3666 :
3667else
cristy98dddb52010-11-04 00:30:15 +00003668 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003669Check your system clock" "$LINENO" 5
3670fi
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672$as_echo "yes" >&6; }
3673
3674am__api_version='1.11'
3675
3676# Find a good install program. We prefer a C program (faster),
3677# so one script is as good as another. But avoid the broken or
3678# incompatible versions:
3679# SysV /etc/install, /usr/sbin/install
3680# SunOS /usr/etc/install
3681# IRIX /sbin/install
3682# AIX /bin/install
3683# AmigaOS /C/install, which installs bootblocks on floppy discs
3684# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3685# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3686# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3687# OS/2's system install, which has a completely different semantic
3688# ./install, which can be erroneously created by make from ./install.sh.
3689# Reject install programs that cannot install multiple files.
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3691$as_echo_n "checking for a BSD-compatible install... " >&6; }
3692if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003693if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003694 $as_echo_n "(cached) " >&6
3695else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 # Account for people who put trailing slashes in PATH elements.
3702case $as_dir/ in #((
3703 ./ | .// | /[cC]/* | \
3704 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3706 /usr/ucb/* ) ;;
3707 *)
3708 # OSF1 and SCO ODT 3.0 have their own names for install.
3709 # Don't use installbsd from OSF since it installs stuff as root
3710 # by default.
3711 for ac_prog in ginstall scoinst install; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3714 if test $ac_prog = install &&
3715 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716 # AIX install. It has an incompatible calling convention.
3717 :
3718 elif test $ac_prog = install &&
3719 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # program-specific install script used by HP pwplus--don't use.
3721 :
3722 else
3723 rm -rf conftest.one conftest.two conftest.dir
3724 echo one > conftest.one
3725 echo two > conftest.two
3726 mkdir conftest.dir
3727 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3728 test -s conftest.one && test -s conftest.two &&
3729 test -s conftest.dir/conftest.one &&
3730 test -s conftest.dir/conftest.two
3731 then
3732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3733 break 3
3734 fi
3735 fi
3736 fi
3737 done
3738 done
3739 ;;
3740esac
3741
3742 done
3743IFS=$as_save_IFS
3744
3745rm -rf conftest.one conftest.two conftest.dir
3746
3747fi
3748 if test "${ac_cv_path_install+set}" = set; then
3749 INSTALL=$ac_cv_path_install
3750 else
3751 # As a last resort, use the slow shell script. Don't cache a
3752 # value for INSTALL within a source directory, because that will
3753 # break other packages using the cache if that directory is
3754 # removed, or if the value is a relative name.
3755 INSTALL=$ac_install_sh
3756 fi
3757fi
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3759$as_echo "$INSTALL" >&6; }
3760
3761# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3762# It thinks the first close brace ends the variable substitution.
3763test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3764
3765test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3766
3767test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3768
3769test "$program_prefix" != NONE &&
3770 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3771# Use a double $ so make ignores it.
3772test "$program_suffix" != NONE &&
3773 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3774# Double any \ or $.
3775# By default was `s,x,x', remove it if useless.
3776ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3777program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3778
3779# expand $ac_aux_dir to an absolute path
3780am_aux_dir=`cd $ac_aux_dir && pwd`
3781
3782if test x"${MISSING+set}" != xset; then
3783 case $am_aux_dir in
3784 *\ * | *\ *)
3785 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3786 *)
3787 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3788 esac
3789fi
3790# Use eval to expand $SHELL
3791if eval "$MISSING --run true"; then
3792 am_missing_run="$MISSING --run "
3793else
3794 am_missing_run=
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3796$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3797fi
3798
3799if test x"${install_sh}" != xset; then
3800 case $am_aux_dir in
3801 *\ * | *\ *)
3802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3803 *)
3804 install_sh="\${SHELL} $am_aux_dir/install-sh"
3805 esac
3806fi
3807
3808# Installed binaries are usually stripped using `strip' when the user
3809# run `make install-strip'. However `strip' might not be the right
3810# tool to use in cross-compilation environments, therefore Automake
3811# will honor the `STRIP' environment variable to overrule this program.
3812if test "$cross_compiling" != no; then
3813 if test -n "$ac_tool_prefix"; then
3814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3815set dummy ${ac_tool_prefix}strip; ac_word=$2
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003818if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003819 $as_echo_n "(cached) " >&6
3820else
3821 if test -n "$STRIP"; then
3822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835done
3836 done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841STRIP=$ac_cv_prog_STRIP
3842if test -n "$STRIP"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3844$as_echo "$STRIP" >&6; }
3845else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851fi
3852if test -z "$ac_cv_prog_STRIP"; then
3853 ac_ct_STRIP=$STRIP
3854 # Extract the first word of "strip", so it can be a program name with args.
3855set dummy strip; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003858if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003859 $as_echo_n "(cached) " >&6
3860else
3861 if test -n "$ac_ct_STRIP"; then
3862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3863else
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_prog_ac_ct_STRIP="strip"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
3876 done
3877IFS=$as_save_IFS
3878
3879fi
3880fi
3881ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3882if test -n "$ac_ct_STRIP"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3884$as_echo "$ac_ct_STRIP" >&6; }
3885else
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887$as_echo "no" >&6; }
3888fi
3889
3890 if test "x$ac_ct_STRIP" = x; then
3891 STRIP=":"
3892 else
3893 case $cross_compiling:$ac_tool_warned in
3894yes:)
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3897ac_tool_warned=yes ;;
3898esac
3899 STRIP=$ac_ct_STRIP
3900 fi
3901else
3902 STRIP="$ac_cv_prog_STRIP"
3903fi
3904
3905fi
3906INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3907
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3909$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3910if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003911 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003912 $as_echo_n "(cached) " >&6
3913else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in mkdir gmkdir; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3923 'mkdir (GNU coreutils) '* | \
3924 'mkdir (coreutils) '* | \
3925 'mkdir (fileutils) '4.1*)
3926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3927 break 3;;
3928 esac
3929 done
3930 done
3931 done
3932IFS=$as_save_IFS
3933
3934fi
3935
3936 test -d ./--version && rmdir ./--version
3937 if test "${ac_cv_path_mkdir+set}" = set; then
3938 MKDIR_P="$ac_cv_path_mkdir -p"
3939 else
3940 # As a last resort, use the slow shell script. Don't cache a
3941 # value for MKDIR_P within a source directory, because that will
3942 # break other packages using the cache if that directory is
3943 # removed, or if the value is a relative name.
3944 MKDIR_P="$ac_install_sh -d"
3945 fi
3946fi
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3948$as_echo "$MKDIR_P" >&6; }
3949
3950mkdir_p="$MKDIR_P"
3951case $mkdir_p in
3952 [\\/$]* | ?:[\\/]*) ;;
3953 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3954esac
3955
3956for ac_prog in gawk mawk nawk awk
3957do
3958 # Extract the first word of "$ac_prog", so it can be a program name with args.
3959set dummy $ac_prog; ac_word=$2
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003962if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003963 $as_echo_n "(cached) " >&6
3964else
3965 if test -n "$AWK"; then
3966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3975 ac_cv_prog_AWK="$ac_prog"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980 done
3981IFS=$as_save_IFS
3982
3983fi
3984fi
3985AWK=$ac_cv_prog_AWK
3986if test -n "$AWK"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3988$as_echo "$AWK" >&6; }
3989else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991$as_echo "no" >&6; }
3992fi
3993
3994
3995 test -n "$AWK" && break
3996done
3997
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3999$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4000set x ${MAKE-make}
4001ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004002if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004003 $as_echo_n "(cached) " >&6
4004else
4005 cat >conftest.make <<\_ACEOF
4006SHELL = /bin/sh
4007all:
4008 @echo '@@@%%%=$(MAKE)=@@@%%%'
4009_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004010# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004011case `${MAKE-make} -f conftest.make 2>/dev/null` in
4012 *@@@%%%=?*=@@@%%%*)
4013 eval ac_cv_prog_make_${ac_make}_set=yes;;
4014 *)
4015 eval ac_cv_prog_make_${ac_make}_set=no;;
4016esac
4017rm -f conftest.make
4018fi
4019if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4021$as_echo "yes" >&6; }
4022 SET_MAKE=
4023else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026 SET_MAKE="MAKE=${MAKE-make}"
4027fi
4028
4029rm -rf .tst 2>/dev/null
4030mkdir .tst 2>/dev/null
4031if test -d .tst; then
4032 am__leading_dot=.
4033else
4034 am__leading_dot=_
4035fi
4036rmdir .tst 2>/dev/null
4037
cristya448bd22011-10-14 12:38:13 +00004038# Check whether --enable-silent-rules was given.
4039if test "${enable_silent_rules+set}" = set; then :
4040 enableval=$enable_silent_rules;
4041fi
4042
4043case $enable_silent_rules in
4044yes) AM_DEFAULT_VERBOSITY=0;;
4045no) AM_DEFAULT_VERBOSITY=1;;
4046*) AM_DEFAULT_VERBOSITY=1;;
4047esac
cristyc3fb77b2012-02-06 01:49:41 +00004048am_make=${MAKE-make}
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4050$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4051if ${am_cv_make_support_nested_variables+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 if $as_echo 'TRUE=$(BAR$(V))
4055BAR0=false
4056BAR1=true
4057V=1
4058am__doit:
4059 @$(TRUE)
4060.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4061 am_cv_make_support_nested_variables=yes
4062else
4063 am_cv_make_support_nested_variables=no
4064fi
4065fi
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4067$as_echo "$am_cv_make_support_nested_variables" >&6; }
4068if test $am_cv_make_support_nested_variables = yes; then
4069 AM_V='$(V)'
4070 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4071else
4072 AM_V=$AM_DEFAULT_VERBOSITY
4073 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4074fi
cristya448bd22011-10-14 12:38:13 +00004075AM_BACKSLASH='\'
4076
cristy73bd4a52010-10-05 11:24:23 +00004077if test "`cd $srcdir && pwd`" != "`pwd`"; then
4078 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4079 # is not polluted with repeated "-I."
4080 am__isrc=' -I$(srcdir)'
4081 # test to see if srcdir already configured
4082 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004083 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004084 fi
4085fi
4086
4087# test whether we have cygpath
4088if test -z "$CYGPATH_W"; then
4089 if (cygpath --version) >/dev/null 2>/dev/null; then
4090 CYGPATH_W='cygpath -w'
4091 else
4092 CYGPATH_W=echo
4093 fi
4094fi
4095
4096
4097# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004098 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004099 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004100
4101
cristya448bd22011-10-14 12:38:13 +00004102cat >>confdefs.h <<_ACEOF
4103#define PACKAGE "$PACKAGE"
4104_ACEOF
4105
4106
4107cat >>confdefs.h <<_ACEOF
4108#define VERSION "$VERSION"
4109_ACEOF
4110
cristy73bd4a52010-10-05 11:24:23 +00004111# Some tools Automake needs.
4112
4113ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4114
4115
4116AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4117
4118
4119AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4120
4121
4122AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4123
4124
4125MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4126
4127# We need awk for the "check" target. The system "awk" is bad on
4128# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004129# Always define AMTAR for backward compatibility. Yes, it's still used
4130# in the wild :-( We should find a proper way to deprecate it ...
4131AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004132
cristyc3fb77b2012-02-06 01:49:41 +00004133am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004134
4135
4136
4137
4138
cristy3ed852e2009-09-05 21:47:34 +00004139
4140# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004141# Check whether --enable-silent-rules was given.
4142if test "${enable_silent_rules+set}" = set; then :
4143 enableval=$enable_silent_rules;
4144fi
4145
4146case $enable_silent_rules in
4147yes) AM_DEFAULT_VERBOSITY=0;;
4148no) AM_DEFAULT_VERBOSITY=1;;
4149*) AM_DEFAULT_VERBOSITY=0;;
4150esac
cristyc3fb77b2012-02-06 01:49:41 +00004151am_make=${MAKE-make}
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4153$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4154if ${am_cv_make_support_nested_variables+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if $as_echo 'TRUE=$(BAR$(V))
4158BAR0=false
4159BAR1=true
4160V=1
4161am__doit:
4162 @$(TRUE)
4163.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4164 am_cv_make_support_nested_variables=yes
4165else
4166 am_cv_make_support_nested_variables=no
4167fi
4168fi
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4170$as_echo "$am_cv_make_support_nested_variables" >&6; }
4171if test $am_cv_make_support_nested_variables = yes; then
4172 AM_V='$(V)'
4173 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4174else
4175 AM_V=$AM_DEFAULT_VERBOSITY
4176 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4177fi
cristy73bd4a52010-10-05 11:24:23 +00004178AM_BACKSLASH='\'
4179
cristy3ed852e2009-09-05 21:47:34 +00004180
4181MAGICK_LIB_VERSION="0x"
4182if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4183 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4184fi
4185MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4186if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4187 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4188fi
4189MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4190if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4191 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4192fi
4193MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4194
4195
4196# Definition used to define MagickLibVersionText in version.h
4197MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4198
4199
4200# Definition used to define MagickLibVersionNumber in version.h
4201MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4202
4203
4204# Regenerate config.status if ChangeLog or version.sh is updated.
4205CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4206
4207
4208PERLMAINCC=$CC
4209
4210MAGICK_CFLAGS=''
4211MAGICK_CPPFLAGS=$CPPFLAGS_USER
4212MAGICK_PCFLAGS=$CPPFLAGS_USER
4213MAGICK_LDFLAGS=''
4214MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004215MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004216
4217#
4218# Evaluate shell variable equivalents to Makefile directory variables
4219#
4220if test "x$prefix" = xNONE; then
4221 prefix=$ac_default_prefix
4222fi
4223# Let make expand exec_prefix.
4224if test "x$exec_prefix" = xNONE; then
4225 exec_prefix='${prefix}'
4226fi
4227
4228#
4229eval "eval PREFIX_DIR=${prefix}"
4230
4231eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4232
4233eval "eval BIN_DIR=$bindir"
4234
4235eval "eval SBIN_DIR=$sbindir"
4236
4237eval "eval LIBEXEC_DIR=$libexecdir"
4238
4239eval "eval DATA_DIR=$datadir"
4240
cristyd55889c2011-03-27 00:50:24 +00004241eval "eval DOC_DIR=$docdir"
4242
cristy3ed852e2009-09-05 21:47:34 +00004243eval "eval SYSCONF_DIR=$sysconfdir"
4244
4245eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4246
4247eval "eval LOCALSTATE_DIR=$localstatedir"
4248
4249eval "eval LIB_DIR=$libdir"
4250
4251eval "eval INCLUDE_DIR=$includedir"
4252
4253eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4254
4255eval "eval INFO_DIR=$infodir"
4256
4257eval "eval MAN_DIR=$mandir"
4258
4259
4260# Get full paths to source and build directories
4261srcdirfull="`cd $srcdir && pwd`"
4262builddir="`pwd`"
4263
4264#
4265# Compute variables useful for running uninstalled software.
4266#
4267MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4268MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4269MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4270MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4271DIRSEP=':'
4272case "${build_os}" in
4273 mingw* )
4274 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4275 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4276 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4277 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4278 DIRSEP=';'
4279 ;;
4280esac
4281case "${host_os}" in
4282 mingw* )
4283 DIRSEP=';'
4284 ;;
4285esac
4286
4287
4288
4289
4290
4291
cristya0b81c32010-01-22 02:54:33 +00004292
4293#
4294# Enable OS features.
4295#
cristy73bd4a52010-10-05 11:24:23 +00004296DEPDIR="${am__leading_dot}deps"
4297
4298ac_config_commands="$ac_config_commands depfiles"
4299
4300
4301am_make=${MAKE-make}
4302cat > confinc << 'END'
4303am__doit:
4304 @echo this is the am__doit target
4305.PHONY: am__doit
4306END
4307# If we don't find an include directive, just comment out the code.
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4309$as_echo_n "checking for style of include used by $am_make... " >&6; }
4310am__include="#"
4311am__quote=
4312_am_result=none
4313# First try GNU make style include.
4314echo "include confinc" > confmf
4315# Ignore all kinds of additional output from `make'.
4316case `$am_make -s -f confmf 2> /dev/null` in #(
4317*the\ am__doit\ target*)
4318 am__include=include
4319 am__quote=
4320 _am_result=GNU
4321 ;;
4322esac
4323# Now try BSD make style include.
4324if test "$am__include" = "#"; then
4325 echo '.include "confinc"' > confmf
4326 case `$am_make -s -f confmf 2> /dev/null` in #(
4327 *the\ am__doit\ target*)
4328 am__include=.include
4329 am__quote="\""
4330 _am_result=BSD
4331 ;;
4332 esac
4333fi
4334
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4337$as_echo "$_am_result" >&6; }
4338rm -f confinc confmf
4339
4340# Check whether --enable-dependency-tracking was given.
4341if test "${enable_dependency_tracking+set}" = set; then :
4342 enableval=$enable_dependency_tracking;
4343fi
4344
4345if test "x$enable_dependency_tracking" != xno; then
4346 am_depcomp="$ac_aux_dir/depcomp"
4347 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004348 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004349fi
4350 if test "x$enable_dependency_tracking" != xno; then
4351 AMDEP_TRUE=
4352 AMDEP_FALSE='#'
4353else
4354 AMDEP_TRUE='#'
4355 AMDEP_FALSE=
4356fi
4357
4358
cristy3ed852e2009-09-05 21:47:34 +00004359ac_ext=c
4360ac_cpp='$CPP $CPPFLAGS'
4361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364if test -n "$ac_tool_prefix"; then
4365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4366set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004368$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004369if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004370 $as_echo_n "(cached) " >&6
4371else
4372 if test -n "$CC"; then
4373 ac_cv_prog_CC="$CC" # Let the user override the test.
4374else
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004380 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004384 break 2
4385 fi
4386done
cristy8b350f62009-11-15 23:12:43 +00004387 done
cristy3ed852e2009-09-05 21:47:34 +00004388IFS=$as_save_IFS
4389
4390fi
4391fi
4392CC=$ac_cv_prog_CC
4393if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004395$as_echo "$CC" >&6; }
4396else
cristy8b350f62009-11-15 23:12:43 +00004397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004398$as_echo "no" >&6; }
4399fi
4400
4401
4402fi
4403if test -z "$ac_cv_prog_CC"; then
4404 ac_ct_CC=$CC
4405 # Extract the first word of "gcc", so it can be a program name with args.
4406set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004409if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004410 $as_echo_n "(cached) " >&6
4411else
4412 if test -n "$ac_ct_CC"; then
4413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004424 break 2
4425 fi
4426done
cristy8b350f62009-11-15 23:12:43 +00004427 done
cristy3ed852e2009-09-05 21:47:34 +00004428IFS=$as_save_IFS
4429
4430fi
4431fi
4432ac_ct_CC=$ac_cv_prog_ac_ct_CC
4433if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004435$as_echo "$ac_ct_CC" >&6; }
4436else
cristy8b350f62009-11-15 23:12:43 +00004437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004438$as_echo "no" >&6; }
4439fi
4440
4441 if test "x$ac_ct_CC" = x; then
4442 CC=""
4443 else
4444 case $cross_compiling:$ac_tool_warned in
4445yes:)
cristy8b350f62009-11-15 23:12:43 +00004446{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004447$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448ac_tool_warned=yes ;;
4449esac
4450 CC=$ac_ct_CC
4451 fi
4452else
4453 CC="$ac_cv_prog_CC"
4454fi
4455
4456if test -z "$CC"; then
4457 if test -n "$ac_tool_prefix"; then
4458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4459set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004462if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004463 $as_echo_n "(cached) " >&6
4464else
4465 if test -n "$CC"; then
4466 ac_cv_prog_CC="$CC" # Let the user override the test.
4467else
4468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469for as_dir in $PATH
4470do
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004473 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004477 break 2
4478 fi
4479done
cristy8b350f62009-11-15 23:12:43 +00004480 done
cristy3ed852e2009-09-05 21:47:34 +00004481IFS=$as_save_IFS
4482
4483fi
4484fi
4485CC=$ac_cv_prog_CC
4486if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$CC" >&6; }
4489else
cristy8b350f62009-11-15 23:12:43 +00004490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004491$as_echo "no" >&6; }
4492fi
4493
4494
4495 fi
4496fi
4497if test -z "$CC"; then
4498 # Extract the first word of "cc", so it can be a program name with args.
4499set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004502if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004503 $as_echo_n "(cached) " >&6
4504else
4505 if test -n "$CC"; then
4506 ac_cv_prog_CC="$CC" # Let the user override the test.
4507else
4508 ac_prog_rejected=no
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4517 ac_prog_rejected=yes
4518 continue
4519 fi
4520 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004522 break 2
4523 fi
4524done
cristy8b350f62009-11-15 23:12:43 +00004525 done
cristy3ed852e2009-09-05 21:47:34 +00004526IFS=$as_save_IFS
4527
4528if test $ac_prog_rejected = yes; then
4529 # We found a bogon in the path, so make sure we never use it.
4530 set dummy $ac_cv_prog_CC
4531 shift
4532 if test $# != 0; then
4533 # We chose a different compiler from the bogus one.
4534 # However, it has the same basename, so the bogon will be chosen
4535 # first if we set CC to just the basename; use the full file name.
4536 shift
4537 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4538 fi
4539fi
4540fi
4541fi
4542CC=$ac_cv_prog_CC
4543if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004545$as_echo "$CC" >&6; }
4546else
cristy8b350f62009-11-15 23:12:43 +00004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548$as_echo "no" >&6; }
4549fi
4550
4551
4552fi
4553if test -z "$CC"; then
4554 if test -n "$ac_tool_prefix"; then
4555 for ac_prog in cl.exe
4556 do
4557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004561if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004562 $as_echo_n "(cached) " >&6
4563else
4564 if test -n "$CC"; then
4565 ac_cv_prog_CC="$CC" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004572 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4574 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004576 break 2
4577 fi
4578done
cristy8b350f62009-11-15 23:12:43 +00004579 done
cristy3ed852e2009-09-05 21:47:34 +00004580IFS=$as_save_IFS
4581
4582fi
4583fi
4584CC=$ac_cv_prog_CC
4585if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004587$as_echo "$CC" >&6; }
4588else
cristy8b350f62009-11-15 23:12:43 +00004589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004590$as_echo "no" >&6; }
4591fi
4592
4593
4594 test -n "$CC" && break
4595 done
4596fi
4597if test -z "$CC"; then
4598 ac_ct_CC=$CC
4599 for ac_prog in cl.exe
4600do
4601 # Extract the first word of "$ac_prog", so it can be a program name with args.
4602set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004604$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004605if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004606 $as_echo_n "(cached) " >&6
4607else
4608 if test -n "$ac_ct_CC"; then
4609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620 break 2
4621 fi
4622done
cristy8b350f62009-11-15 23:12:43 +00004623 done
cristy3ed852e2009-09-05 21:47:34 +00004624IFS=$as_save_IFS
4625
4626fi
4627fi
4628ac_ct_CC=$ac_cv_prog_ac_ct_CC
4629if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo "$ac_ct_CC" >&6; }
4632else
cristy8b350f62009-11-15 23:12:43 +00004633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004634$as_echo "no" >&6; }
4635fi
4636
4637
4638 test -n "$ac_ct_CC" && break
4639done
4640
4641 if test "x$ac_ct_CC" = x; then
4642 CC=""
4643 else
4644 case $cross_compiling:$ac_tool_warned in
4645yes:)
cristy8b350f62009-11-15 23:12:43 +00004646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4648ac_tool_warned=yes ;;
4649esac
4650 CC=$ac_ct_CC
4651 fi
4652fi
4653
4654fi
4655
4656
cristy8b350f62009-11-15 23:12:43 +00004657test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004659as_fn_error $? "no acceptable C compiler found in \$PATH
4660See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004661
4662# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004663$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004664set X $ac_compile
4665ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004666for ac_option in --version -v -V -qversion; do
4667 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004668case "(($ac_try" in
4669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670 *) ac_try_echo=$ac_try;;
4671esac
cristy8b350f62009-11-15 23:12:43 +00004672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673$as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004675 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004676 if test -s conftest.err; then
4677 sed '10a\
4678... rest of stderr output deleted ...
4679 10q' conftest.err >conftest.er1
4680 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004681 fi
cristycd4c5312009-11-22 01:19:08 +00004682 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }
4685done
cristy3ed852e2009-09-05 21:47:34 +00004686
cristy8b350f62009-11-15 23:12:43 +00004687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004688/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004689
cristy3ed852e2009-09-05 21:47:34 +00004690int
4691main ()
4692{
4693
4694 ;
4695 return 0;
4696}
4697_ACEOF
4698ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004699ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004700# Try to create an executable without -o first, disregard a.out.
4701# It will help us diagnose broken compilers, and finding out an intuition
4702# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4704$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004705ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4706
4707# The possible output files:
4708ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4709
4710ac_rmfiles=
4711for ac_file in $ac_files
4712do
4713 case $ac_file in
4714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4716 esac
4717done
4718rm -f $ac_rmfiles
4719
cristy8b350f62009-11-15 23:12:43 +00004720if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004721case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724esac
cristy8b350f62009-11-15 23:12:43 +00004725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004727 (eval "$ac_link_default") 2>&5
4728 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4732# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4733# in a Makefile. We should not override ac_cv_exeext if it was cached,
4734# so that the user can short-circuit this test for compilers unknown to
4735# Autoconf.
4736for ac_file in $ac_files ''
4737do
4738 test -f "$ac_file" || continue
4739 case $ac_file in
4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4741 ;;
4742 [ab].out )
4743 # We found the default executable, but exeext='' is most
4744 # certainly right.
4745 break;;
4746 *.* )
cristy8b350f62009-11-15 23:12:43 +00004747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004748 then :; else
4749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4750 fi
4751 # We set ac_cv_exeext here because the later test for it is not
4752 # safe: cross compilers may not add the suffix if given an `-o'
4753 # argument, so we may need to know it at that point already.
4754 # Even if this section looks crufty: it has the advantage of
4755 # actually working.
4756 break;;
4757 * )
4758 break;;
4759 esac
4760done
4761test "$ac_cv_exeext" = no && ac_cv_exeext=
4762
4763else
4764 ac_file=''
4765fi
cristy8b350f62009-11-15 23:12:43 +00004766if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004770sed 's/^/| /' conftest.$ac_ext >&5
4771
cristy8b350f62009-11-15 23:12:43 +00004772{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004774as_fn_error 77 "C compiler cannot create executables
4775See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004776else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004779fi
cristycd4c5312009-11-22 01:19:08 +00004780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4781$as_echo_n "checking for C compiler default output file name... " >&6; }
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4783$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004784ac_exeext=$ac_cv_exeext
4785
cristycd4c5312009-11-22 01:19:08 +00004786rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004787ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004789$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004790if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004791case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794esac
cristy8b350f62009-11-15 23:12:43 +00004795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004797 (eval "$ac_link") 2>&5
4798 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004801 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4802# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4803# work properly (i.e., refer to `conftest.exe'), while it won't with
4804# `rm'.
4805for ac_file in conftest.exe conftest conftest.*; do
4806 test -f "$ac_file" || continue
4807 case $ac_file in
4808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4809 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4810 break;;
4811 * ) break;;
4812 esac
4813done
4814else
cristy8b350f62009-11-15 23:12:43 +00004815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004817as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4818See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004819fi
cristycd4c5312009-11-22 01:19:08 +00004820rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004822$as_echo "$ac_cv_exeext" >&6; }
4823
4824rm -f conftest.$ac_ext
4825EXEEXT=$ac_cv_exeext
4826ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004827cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828/* end confdefs.h. */
4829#include <stdio.h>
4830int
4831main ()
4832{
4833FILE *f = fopen ("conftest.out", "w");
4834 return ferror (f) || fclose (f) != 0;
4835
4836 ;
4837 return 0;
4838}
4839_ACEOF
4840ac_clean_files="$ac_clean_files conftest.out"
4841# Check that the compiler produces executables we can run. If not, either
4842# the compiler is broken, or we cross compile.
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4844$as_echo_n "checking whether we are cross compiling... " >&6; }
4845if test "$cross_compiling" != yes; then
4846 { { ac_try="$ac_link"
4847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
4851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4852$as_echo "$ac_try_echo"; } >&5
4853 (eval "$ac_link") 2>&5
4854 ac_status=$?
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857 if { ac_try='./conftest$ac_cv_exeext'
4858 { { case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861esac
4862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863$as_echo "$ac_try_echo"; } >&5
4864 (eval "$ac_try") 2>&5
4865 ac_status=$?
4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; }; }; then
4868 cross_compiling=no
4869 else
4870 if test "$cross_compiling" = maybe; then
4871 cross_compiling=yes
4872 else
4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004875as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004876If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004877See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004878 fi
4879 fi
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4882$as_echo "$cross_compiling" >&6; }
4883
4884rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4885ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004887$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004888if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004889 $as_echo_n "(cached) " >&6
4890else
cristy8b350f62009-11-15 23:12:43 +00004891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004892/* end confdefs.h. */
4893
4894int
4895main ()
4896{
4897
4898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004903if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
cristy8b350f62009-11-15 23:12:43 +00004908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4909$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004910 (eval "$ac_compile") 2>&5
4911 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4913 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004914 for ac_file in conftest.o conftest.obj conftest.*; do
4915 test -f "$ac_file" || continue;
4916 case $ac_file in
4917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4919 break;;
4920 esac
4921done
4922else
4923 $as_echo "$as_me: failed program was:" >&5
4924sed 's/^/| /' conftest.$ac_ext >&5
4925
cristy8b350f62009-11-15 23:12:43 +00004926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004928as_fn_error $? "cannot compute suffix of object files: cannot compile
4929See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004930fi
cristy3ed852e2009-09-05 21:47:34 +00004931rm -f conftest.$ac_cv_objext conftest.$ac_ext
4932fi
cristy8b350f62009-11-15 23:12:43 +00004933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004934$as_echo "$ac_cv_objext" >&6; }
4935OBJEXT=$ac_cv_objext
4936ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004939if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004940 $as_echo_n "(cached) " >&6
4941else
cristy8b350f62009-11-15 23:12:43 +00004942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004943/* end confdefs.h. */
4944
4945int
4946main ()
4947{
4948#ifndef __GNUC__
4949 choke me
4950#endif
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004956if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004957 ac_compiler_gnu=yes
4958else
cristy8b350f62009-11-15 23:12:43 +00004959 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004960fi
cristy3ed852e2009-09-05 21:47:34 +00004961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962ac_cv_c_compiler_gnu=$ac_compiler_gnu
4963
4964fi
cristy8b350f62009-11-15 23:12:43 +00004965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004966$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4967if test $ac_compiler_gnu = yes; then
4968 GCC=yes
4969else
4970 GCC=
4971fi
4972ac_test_CFLAGS=${CFLAGS+set}
4973ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004976if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004977 $as_echo_n "(cached) " >&6
4978else
4979 ac_save_c_werror_flag=$ac_c_werror_flag
4980 ac_c_werror_flag=yes
4981 ac_cv_prog_cc_g=no
4982 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989
4990 ;
4991 return 0;
4992}
4993_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004994if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004995 ac_cv_prog_cc_g=yes
4996else
cristy8b350f62009-11-15 23:12:43 +00004997 CFLAGS=""
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004999/* end confdefs.h. */
5000
5001int
5002main ()
5003{
5004
5005 ;
5006 return 0;
5007}
5008_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005009if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005010
cristy8b350f62009-11-15 23:12:43 +00005011else
5012 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005013 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020
5021 ;
5022 return 0;
5023}
5024_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005025if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005026 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005027fi
cristy3ed852e2009-09-05 21:47:34 +00005028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029fi
cristy3ed852e2009-09-05 21:47:34 +00005030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
cristy3ed852e2009-09-05 21:47:34 +00005032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 ac_c_werror_flag=$ac_save_c_werror_flag
5034fi
cristy8b350f62009-11-15 23:12:43 +00005035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005036$as_echo "$ac_cv_prog_cc_g" >&6; }
5037if test "$ac_test_CFLAGS" = set; then
5038 CFLAGS=$ac_save_CFLAGS
5039elif test $ac_cv_prog_cc_g = yes; then
5040 if test "$GCC" = yes; then
5041 CFLAGS="-g -O2"
5042 else
5043 CFLAGS="-g"
5044 fi
5045else
5046 if test "$GCC" = yes; then
5047 CFLAGS="-O2"
5048 else
5049 CFLAGS=
5050 fi
5051fi
cristy8b350f62009-11-15 23:12:43 +00005052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005053$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005054if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005055 $as_echo_n "(cached) " >&6
5056else
5057 ac_cv_prog_cc_c89=no
5058ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005060/* end confdefs.h. */
5061#include <stdarg.h>
5062#include <stdio.h>
5063#include <sys/types.h>
5064#include <sys/stat.h>
5065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5066struct buf { int x; };
5067FILE * (*rcsopen) (struct buf *, struct stat *, int);
5068static char *e (p, i)
5069 char **p;
5070 int i;
5071{
5072 return p[i];
5073}
5074static char *f (char * (*g) (char **, int), char **p, ...)
5075{
5076 char *s;
5077 va_list v;
5078 va_start (v,p);
5079 s = g (p, va_arg (v,int));
5080 va_end (v);
5081 return s;
5082}
5083
5084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5085 function prototypes and stuff, but not '\xHH' hex character constants.
5086 These don't provoke an error unfortunately, instead are silently treated
5087 as 'x'. The following induces an error, until -std is added to get
5088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5089 array size at least. It's necessary to write '\x00'==0 to get something
5090 that's true only with -std. */
5091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5092
5093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5094 inside strings and character constants. */
5095#define FOO(x) 'x'
5096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5097
5098int test (int i, double x);
5099struct s1 {int (*f) (int a);};
5100struct s2 {int (*f) (double a);};
5101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5102int argc;
5103char **argv;
5104int
5105main ()
5106{
5107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5114do
5115 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005116 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005117 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005118fi
cristy3ed852e2009-09-05 21:47:34 +00005119rm -f core conftest.err conftest.$ac_objext
5120 test "x$ac_cv_prog_cc_c89" != "xno" && break
5121done
5122rm -f conftest.$ac_ext
5123CC=$ac_save_CC
5124
5125fi
5126# AC_CACHE_VAL
5127case "x$ac_cv_prog_cc_c89" in
5128 x)
cristy8b350f62009-11-15 23:12:43 +00005129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005130$as_echo "none needed" >&6; } ;;
5131 xno)
cristy8b350f62009-11-15 23:12:43 +00005132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005133$as_echo "unsupported" >&6; } ;;
5134 *)
5135 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5138esac
cristy8b350f62009-11-15 23:12:43 +00005139if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005140
cristy8b350f62009-11-15 23:12:43 +00005141fi
cristy3ed852e2009-09-05 21:47:34 +00005142
5143ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005148
cristy73bd4a52010-10-05 11:24:23 +00005149depcc="$CC" am_compiler_list=
5150
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5152$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005153if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005154 $as_echo_n "(cached) " >&6
5155else
5156 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5157 # We make a subdir and do the tests there. Otherwise we can end up
5158 # making bogus files that we don't know about and never remove. For
5159 # instance it was reported that on HP-UX the gcc test will end up
5160 # making a dummy file named `D' -- because `-MD' means `put the output
5161 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005162 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005163 mkdir conftest.dir
5164 # Copy depcomp to subdir because otherwise we won't find it if we're
5165 # using a relative directory.
5166 cp "$am_depcomp" conftest.dir
5167 cd conftest.dir
5168 # We will build objects and dependencies in a subdirectory because
5169 # it helps to detect inapplicable dependency modes. For instance
5170 # both Tru64's cc and ICC support -MD to output dependencies as a
5171 # side effect of compilation, but ICC will put the dependencies in
5172 # the current directory while Tru64 will put them in the object
5173 # directory.
5174 mkdir sub
5175
5176 am_cv_CC_dependencies_compiler_type=none
5177 if test "$am_compiler_list" = ""; then
5178 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5179 fi
5180 am__universal=false
5181 case " $depcc " in #(
5182 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5183 esac
5184
5185 for depmode in $am_compiler_list; do
5186 # Setup a source with many dependencies, because some compilers
5187 # like to wrap large dependency lists on column 80 (with \), and
5188 # we should not choose a depcomp mode which is confused by this.
5189 #
5190 # We need to recreate these files for each test, as the compiler may
5191 # overwrite some of them when testing with obscure command lines.
5192 # This happens at least with the AIX C compiler.
5193 : > sub/conftest.c
5194 for i in 1 2 3 4 5 6; do
5195 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5196 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5197 # Solaris 8's {/usr,}/bin/sh.
5198 touch sub/conftst$i.h
5199 done
5200 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5201
5202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle `-M -o', and we need to detect this. Also, some Intel
5205 # versions had trouble with output in subdirs
5206 am__obj=sub/conftest.${OBJEXT-o}
5207 am__minus_obj="-o $am__obj"
5208 case $depmode in
5209 gcc)
5210 # This depmode causes a compiler race in universal mode.
5211 test "$am__universal" = false || continue
5212 ;;
5213 nosideeffect)
5214 # after this tag, mechanisms are not by side-effect, so they'll
5215 # only be used when explicitly requested
5216 if test "x$enable_dependency_tracking" = xyes; then
5217 continue
5218 else
5219 break
5220 fi
5221 ;;
cristy7247bba2012-02-05 16:37:27 +00005222 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005223 # This compiler won't grok `-c -o', but also, the minuso test has
5224 # not run yet. These depmodes are late enough in the game, and
5225 # so weak that their functioning should not be impacted.
5226 am__obj=conftest.${OBJEXT-o}
5227 am__minus_obj=
5228 ;;
5229 none) break ;;
5230 esac
5231 if depmode=$depmode \
5232 source=sub/conftest.c object=$am__obj \
5233 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5234 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5235 >/dev/null 2>conftest.err &&
5236 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5237 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5238 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5239 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5240 # icc doesn't choke on unknown options, it will just issue warnings
5241 # or remarks (even with -Werror). So we grep stderr for any message
5242 # that says an option was ignored or not supported.
5243 # When given -MP, icc 7.0 and 7.1 complain thusly:
5244 # icc: Command line warning: ignoring option '-M'; no argument required
5245 # The diagnosis changed in icc 8.0:
5246 # icc: Command line remark: option '-MP' not supported
5247 if (grep 'ignoring option' conftest.err ||
5248 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5249 am_cv_CC_dependencies_compiler_type=$depmode
5250 break
5251 fi
5252 fi
5253 done
5254
5255 cd ..
5256 rm -rf conftest.dir
5257else
5258 am_cv_CC_dependencies_compiler_type=none
5259fi
5260
5261fi
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5263$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5265
5266 if
5267 test "x$enable_dependency_tracking" != xno \
5268 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269 am__fastdepCC_TRUE=
5270 am__fastdepCC_FALSE='#'
5271else
5272 am__fastdepCC_TRUE='#'
5273 am__fastdepCC_FALSE=
5274fi
5275
5276
cristy3ed852e2009-09-05 21:47:34 +00005277
cristya0b81c32010-01-22 02:54:33 +00005278ac_ext=c
5279ac_cpp='$CPP $CPPFLAGS'
5280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5284$as_echo_n "checking how to run the C preprocessor... " >&6; }
5285# On Suns, sometimes $CPP names a directory.
5286if test -n "$CPP" && test -d "$CPP"; then
5287 CPP=
5288fi
5289if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005290 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005291 $as_echo_n "(cached) " >&6
5292else
5293 # Double quotes because CPP needs to be expanded
5294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5295 do
5296 ac_preproc_ok=false
5297for ac_c_preproc_warn_flag in '' yes
5298do
5299 # Use a header file that comes with gcc, so configuring glibc
5300 # with a fresh cross-compiler works.
5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5302 # <limits.h> exists even on freestanding compilers.
5303 # On the NeXT, cc -E runs the code through the compiler's parser,
5304 # not just through cpp. "Syntax error" is here to catch this case.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#ifdef __STDC__
5308# include <limits.h>
5309#else
5310# include <assert.h>
5311#endif
5312 Syntax error
5313_ACEOF
5314if ac_fn_c_try_cpp "$LINENO"; then :
5315
5316else
5317 # Broken: fails on valid input.
5318continue
5319fi
cristyda16f162011-02-19 23:52:17 +00005320rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005321
5322 # OK, works on sane cases. Now check whether nonexistent headers
5323 # can be detected and how.
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h. */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if ac_fn_c_try_cpp "$LINENO"; then :
5329 # Broken: success on invalid input.
5330continue
5331else
5332 # Passes both tests.
5333ac_preproc_ok=:
5334break
5335fi
cristyda16f162011-02-19 23:52:17 +00005336rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005337
5338done
5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005340rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005341if $ac_preproc_ok; then :
5342 break
5343fi
5344
5345 done
5346 ac_cv_prog_CPP=$CPP
5347
5348fi
5349 CPP=$ac_cv_prog_CPP
5350else
5351 ac_cv_prog_CPP=$CPP
5352fi
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5354$as_echo "$CPP" >&6; }
5355ac_preproc_ok=false
5356for ac_c_preproc_warn_flag in '' yes
5357do
5358 # Use a header file that comes with gcc, so configuring glibc
5359 # with a fresh cross-compiler works.
5360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361 # <limits.h> exists even on freestanding compilers.
5362 # On the NeXT, cc -E runs the code through the compiler's parser,
5363 # not just through cpp. "Syntax error" is here to catch this case.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366#ifdef __STDC__
5367# include <limits.h>
5368#else
5369# include <assert.h>
5370#endif
5371 Syntax error
5372_ACEOF
5373if ac_fn_c_try_cpp "$LINENO"; then :
5374
5375else
5376 # Broken: fails on valid input.
5377continue
5378fi
cristyda16f162011-02-19 23:52:17 +00005379rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005380
5381 # OK, works on sane cases. Now check whether nonexistent headers
5382 # can be detected and how.
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if ac_fn_c_try_cpp "$LINENO"; then :
5388 # Broken: success on invalid input.
5389continue
5390else
5391 # Passes both tests.
5392ac_preproc_ok=:
5393break
5394fi
cristyda16f162011-02-19 23:52:17 +00005395rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005396
5397done
5398# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005399rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005400if $ac_preproc_ok; then :
5401
5402else
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005405as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5406See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005407fi
5408
5409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414
5415
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5417$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005418if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005419 $as_echo_n "(cached) " >&6
5420else
5421 if test -z "$GREP"; then
5422 ac_path_GREP_found=false
5423 # Loop through the user's path and test for each of PROGNAME-LIST
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_prog in grep ggrep; do
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5432 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5433# Check for GNU ac_path_GREP and select it if it is found.
5434 # Check for GNU $ac_path_GREP
5435case `"$ac_path_GREP" --version 2>&1` in
5436*GNU*)
5437 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5438*)
5439 ac_count=0
5440 $as_echo_n 0123456789 >"conftest.in"
5441 while :
5442 do
5443 cat "conftest.in" "conftest.in" >"conftest.tmp"
5444 mv "conftest.tmp" "conftest.in"
5445 cp "conftest.in" "conftest.nl"
5446 $as_echo 'GREP' >> "conftest.nl"
5447 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5449 as_fn_arith $ac_count + 1 && ac_count=$as_val
5450 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5451 # Best one so far, save it but keep looking for a better one
5452 ac_cv_path_GREP="$ac_path_GREP"
5453 ac_path_GREP_max=$ac_count
5454 fi
5455 # 10*(2^10) chars as input seems more than enough
5456 test $ac_count -gt 10 && break
5457 done
5458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5459esac
5460
5461 $ac_path_GREP_found && break 3
5462 done
5463 done
5464 done
5465IFS=$as_save_IFS
5466 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005467 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005468 fi
5469else
5470 ac_cv_path_GREP=$GREP
5471fi
5472
5473fi
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5475$as_echo "$ac_cv_path_GREP" >&6; }
5476 GREP="$ac_cv_path_GREP"
5477
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5480$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005481if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005482 $as_echo_n "(cached) " >&6
5483else
5484 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5485 then ac_cv_path_EGREP="$GREP -E"
5486 else
5487 if test -z "$EGREP"; then
5488 ac_path_EGREP_found=false
5489 # Loop through the user's path and test for each of PROGNAME-LIST
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 for ac_prog in egrep; do
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5498 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5499# Check for GNU ac_path_EGREP and select it if it is found.
5500 # Check for GNU $ac_path_EGREP
5501case `"$ac_path_EGREP" --version 2>&1` in
5502*GNU*)
5503 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5504*)
5505 ac_count=0
5506 $as_echo_n 0123456789 >"conftest.in"
5507 while :
5508 do
5509 cat "conftest.in" "conftest.in" >"conftest.tmp"
5510 mv "conftest.tmp" "conftest.in"
5511 cp "conftest.in" "conftest.nl"
5512 $as_echo 'EGREP' >> "conftest.nl"
5513 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515 as_fn_arith $ac_count + 1 && ac_count=$as_val
5516 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5517 # Best one so far, save it but keep looking for a better one
5518 ac_cv_path_EGREP="$ac_path_EGREP"
5519 ac_path_EGREP_max=$ac_count
5520 fi
5521 # 10*(2^10) chars as input seems more than enough
5522 test $ac_count -gt 10 && break
5523 done
5524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525esac
5526
5527 $ac_path_EGREP_found && break 3
5528 done
5529 done
5530 done
5531IFS=$as_save_IFS
5532 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005533 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005534 fi
5535else
5536 ac_cv_path_EGREP=$EGREP
5537fi
5538
5539 fi
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5542$as_echo "$ac_cv_path_EGREP" >&6; }
5543 EGREP="$ac_cv_path_EGREP"
5544
5545
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5547$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005548if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005549 $as_echo_n "(cached) " >&6
5550else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h. */
5553#include <stdlib.h>
5554#include <stdarg.h>
5555#include <string.h>
5556#include <float.h>
5557
5558int
5559main ()
5560{
5561
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"; then :
5567 ac_cv_header_stdc=yes
5568else
5569 ac_cv_header_stdc=no
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572
5573if test $ac_cv_header_stdc = yes; then
5574 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h. */
5577#include <string.h>
5578
5579_ACEOF
5580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "memchr" >/dev/null 2>&1; then :
5582
5583else
5584 ac_cv_header_stdc=no
5585fi
5586rm -f conftest*
5587
5588fi
5589
5590if test $ac_cv_header_stdc = yes; then
5591 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593/* end confdefs.h. */
5594#include <stdlib.h>
5595
5596_ACEOF
5597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5598 $EGREP "free" >/dev/null 2>&1; then :
5599
5600else
5601 ac_cv_header_stdc=no
5602fi
5603rm -f conftest*
5604
5605fi
5606
5607if test $ac_cv_header_stdc = yes; then
5608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5609 if test "$cross_compiling" = yes; then :
5610 :
5611else
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613/* end confdefs.h. */
5614#include <ctype.h>
5615#include <stdlib.h>
5616#if ((' ' & 0x0FF) == 0x020)
5617# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5618# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5619#else
5620# define ISLOWER(c) \
5621 (('a' <= (c) && (c) <= 'i') \
5622 || ('j' <= (c) && (c) <= 'r') \
5623 || ('s' <= (c) && (c) <= 'z'))
5624# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5625#endif
5626
5627#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5628int
5629main ()
5630{
5631 int i;
5632 for (i = 0; i < 256; i++)
5633 if (XOR (islower (i), ISLOWER (i))
5634 || toupper (i) != TOUPPER (i))
5635 return 2;
5636 return 0;
5637}
5638_ACEOF
5639if ac_fn_c_try_run "$LINENO"; then :
5640
5641else
5642 ac_cv_header_stdc=no
5643fi
5644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5645 conftest.$ac_objext conftest.beam conftest.$ac_ext
5646fi
5647
5648fi
5649fi
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5651$as_echo "$ac_cv_header_stdc" >&6; }
5652if test $ac_cv_header_stdc = yes; then
5653
5654$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5655
5656fi
5657
5658# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5659for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5660 inttypes.h stdint.h unistd.h
5661do :
5662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5664"
cristy98dddb52010-11-04 00:30:15 +00005665if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005666 cat >>confdefs.h <<_ACEOF
5667#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5668_ACEOF
5669
5670fi
5671
5672done
5673
5674
5675
5676 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 +00005677if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005678 MINIX=yes
5679else
5680 MINIX=
5681fi
5682
5683
5684 if test "$MINIX" = yes; then
5685
5686$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5687
5688
5689$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5690
5691
5692$as_echo "#define _MINIX 1" >>confdefs.h
5693
5694 fi
5695
5696
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5698$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005699if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005700 $as_echo_n "(cached) " >&6
5701else
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h. */
5704
5705# define __EXTENSIONS__ 1
5706 $ac_includes_default
5707int
5708main ()
5709{
5710
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_compile "$LINENO"; then :
5716 ac_cv_safe_to_define___extensions__=yes
5717else
5718 ac_cv_safe_to_define___extensions__=no
5719fi
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5723$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5724 test $ac_cv_safe_to_define___extensions__ = yes &&
5725 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5726
5727 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5728
5729 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5730
5731 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5732
5733 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5734
5735
5736
5737# Check for programs
5738ac_ext=c
5739ac_cpp='$CPP $CPPFLAGS'
5740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5742ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743if test -n "$ac_tool_prefix"; then
5744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5745set dummy ${ac_tool_prefix}gcc; ac_word=$2
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005748if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005749 $as_echo_n "(cached) " >&6
5750else
5751 if test -n "$CC"; then
5752 ac_cv_prog_CC="$CC" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766 done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771CC=$ac_cv_prog_CC
5772if test -n "$CC"; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5774$as_echo "$CC" >&6; }
5775else
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777$as_echo "no" >&6; }
5778fi
5779
5780
5781fi
5782if test -z "$ac_cv_prog_CC"; then
5783 ac_ct_CC=$CC
5784 # Extract the first word of "gcc", so it can be a program name with args.
5785set dummy gcc; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005788if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005789 $as_echo_n "(cached) " >&6
5790else
5791 if test -n "$ac_ct_CC"; then
5792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
5800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801 ac_cv_prog_ac_ct_CC="gcc"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806 done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811ac_ct_CC=$ac_cv_prog_ac_ct_CC
5812if test -n "$ac_ct_CC"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5814$as_echo "$ac_ct_CC" >&6; }
5815else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820 if test "x$ac_ct_CC" = x; then
5821 CC=""
5822 else
5823 case $cross_compiling:$ac_tool_warned in
5824yes:)
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5827ac_tool_warned=yes ;;
5828esac
5829 CC=$ac_ct_CC
5830 fi
5831else
5832 CC="$ac_cv_prog_CC"
5833fi
5834
5835if test -z "$CC"; then
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5838set dummy ${ac_tool_prefix}cc; ac_word=$2
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005841if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005842 $as_echo_n "(cached) " >&6
5843else
5844 if test -n "$CC"; then
5845 ac_cv_prog_CC="$CC" # Let the user override the test.
5846else
5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848for as_dir in $PATH
5849do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_CC="${ac_tool_prefix}cc"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858done
5859 done
5860IFS=$as_save_IFS
5861
5862fi
5863fi
5864CC=$ac_cv_prog_CC
5865if test -n "$CC"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5867$as_echo "$CC" >&6; }
5868else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870$as_echo "no" >&6; }
5871fi
5872
5873
5874 fi
5875fi
5876if test -z "$CC"; then
5877 # Extract the first word of "cc", so it can be a program name with args.
5878set dummy cc; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005881if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887 ac_prog_rejected=no
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891 IFS=$as_save_IFS
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5896 ac_prog_rejected=yes
5897 continue
5898 fi
5899 ac_cv_prog_CC="cc"
5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 break 2
5902 fi
5903done
5904 done
5905IFS=$as_save_IFS
5906
5907if test $ac_prog_rejected = yes; then
5908 # We found a bogon in the path, so make sure we never use it.
5909 set dummy $ac_cv_prog_CC
5910 shift
5911 if test $# != 0; then
5912 # We chose a different compiler from the bogus one.
5913 # However, it has the same basename, so the bogon will be chosen
5914 # first if we set CC to just the basename; use the full file name.
5915 shift
5916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5917 fi
5918fi
5919fi
5920fi
5921CC=$ac_cv_prog_CC
5922if test -n "$CC"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924$as_echo "$CC" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$CC"; then
5933 if test -n "$ac_tool_prefix"; then
5934 for ac_prog in cl.exe
5935 do
5936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5937set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005940if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005941 $as_echo_n "(cached) " >&6
5942else
5943 if test -n "$CC"; then
5944 ac_cv_prog_CC="$CC" # Let the user override the test.
5945else
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949 IFS=$as_save_IFS
5950 test -z "$as_dir" && as_dir=.
5951 for ac_exec_ext in '' $ac_executable_extensions; do
5952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5955 break 2
5956 fi
5957done
5958 done
5959IFS=$as_save_IFS
5960
5961fi
5962fi
5963CC=$ac_cv_prog_CC
5964if test -n "$CC"; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5966$as_echo "$CC" >&6; }
5967else
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969$as_echo "no" >&6; }
5970fi
5971
5972
5973 test -n "$CC" && break
5974 done
5975fi
5976if test -z "$CC"; then
5977 ac_ct_CC=$CC
5978 for ac_prog in cl.exe
5979do
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981set dummy $ac_prog; ac_word=$2
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005984if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005985 $as_echo_n "(cached) " >&6
5986else
5987 if test -n "$ac_ct_CC"; then
5988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5989else
5990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH
5992do
5993 IFS=$as_save_IFS
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_ac_ct_CC="$ac_prog"
5998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 break 2
6000 fi
6001done
6002 done
6003IFS=$as_save_IFS
6004
6005fi
6006fi
6007ac_ct_CC=$ac_cv_prog_ac_ct_CC
6008if test -n "$ac_ct_CC"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6010$as_echo "$ac_ct_CC" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013$as_echo "no" >&6; }
6014fi
6015
6016
6017 test -n "$ac_ct_CC" && break
6018done
6019
6020 if test "x$ac_ct_CC" = x; then
6021 CC=""
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6027ac_tool_warned=yes ;;
6028esac
6029 CC=$ac_ct_CC
6030 fi
6031fi
6032
6033fi
6034
6035
6036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006038as_fn_error $? "no acceptable C compiler found in \$PATH
6039See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006040
6041# Provide some information about the compiler.
6042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6043set X $ac_compile
6044ac_compiler=$2
6045for ac_option in --version -v -V -qversion; do
6046 { { ac_try="$ac_compiler $ac_option >&5"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6052$as_echo "$ac_try_echo"; } >&5
6053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6054 ac_status=$?
6055 if test -s conftest.err; then
6056 sed '10a\
6057... rest of stderr output deleted ...
6058 10q' conftest.err >conftest.er1
6059 cat conftest.er1 >&5
6060 fi
6061 rm -f conftest.er1 conftest.err
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }
6064done
6065
6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6067$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006068if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006069 $as_echo_n "(cached) " >&6
6070else
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077#ifndef __GNUC__
6078 choke me
6079#endif
6080
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_compile "$LINENO"; then :
6086 ac_compiler_gnu=yes
6087else
6088 ac_compiler_gnu=no
6089fi
6090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091ac_cv_c_compiler_gnu=$ac_compiler_gnu
6092
6093fi
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6095$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6096if test $ac_compiler_gnu = yes; then
6097 GCC=yes
6098else
6099 GCC=
6100fi
6101ac_test_CFLAGS=${CFLAGS+set}
6102ac_save_CFLAGS=$CFLAGS
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6104$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006105if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006106 $as_echo_n "(cached) " >&6
6107else
6108 ac_save_c_werror_flag=$ac_c_werror_flag
6109 ac_c_werror_flag=yes
6110 ac_cv_prog_cc_g=no
6111 CFLAGS="-g"
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114
6115int
6116main ()
6117{
6118
6119 ;
6120 return 0;
6121}
6122_ACEOF
6123if ac_fn_c_try_compile "$LINENO"; then :
6124 ac_cv_prog_cc_g=yes
6125else
6126 CFLAGS=""
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h. */
6129
6130int
6131main ()
6132{
6133
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139
6140else
6141 ac_c_werror_flag=$ac_save_c_werror_flag
6142 CFLAGS="-g"
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h. */
6145
6146int
6147main ()
6148{
6149
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_compile "$LINENO"; then :
6155 ac_cv_prog_cc_g=yes
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 ac_c_werror_flag=$ac_save_c_werror_flag
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6165$as_echo "$ac_cv_prog_cc_g" >&6; }
6166if test "$ac_test_CFLAGS" = set; then
6167 CFLAGS=$ac_save_CFLAGS
6168elif test $ac_cv_prog_cc_g = yes; then
6169 if test "$GCC" = yes; then
6170 CFLAGS="-g -O2"
6171 else
6172 CFLAGS="-g"
6173 fi
6174else
6175 if test "$GCC" = yes; then
6176 CFLAGS="-O2"
6177 else
6178 CFLAGS=
6179 fi
6180fi
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006183if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006184 $as_echo_n "(cached) " >&6
6185else
6186 ac_cv_prog_cc_c89=no
6187ac_save_CC=$CC
6188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h. */
6190#include <stdarg.h>
6191#include <stdio.h>
6192#include <sys/types.h>
6193#include <sys/stat.h>
6194/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6195struct buf { int x; };
6196FILE * (*rcsopen) (struct buf *, struct stat *, int);
6197static char *e (p, i)
6198 char **p;
6199 int i;
6200{
6201 return p[i];
6202}
6203static char *f (char * (*g) (char **, int), char **p, ...)
6204{
6205 char *s;
6206 va_list v;
6207 va_start (v,p);
6208 s = g (p, va_arg (v,int));
6209 va_end (v);
6210 return s;
6211}
6212
6213/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6214 function prototypes and stuff, but not '\xHH' hex character constants.
6215 These don't provoke an error unfortunately, instead are silently treated
6216 as 'x'. The following induces an error, until -std is added to get
6217 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6218 array size at least. It's necessary to write '\x00'==0 to get something
6219 that's true only with -std. */
6220int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6221
6222/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6223 inside strings and character constants. */
6224#define FOO(x) 'x'
6225int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6226
6227int test (int i, double x);
6228struct s1 {int (*f) (int a);};
6229struct s2 {int (*f) (double a);};
6230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6231int argc;
6232char **argv;
6233int
6234main ()
6235{
6236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6237 ;
6238 return 0;
6239}
6240_ACEOF
6241for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6242 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6243do
6244 CC="$ac_save_CC $ac_arg"
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_prog_cc_c89=$ac_arg
6247fi
6248rm -f core conftest.err conftest.$ac_objext
6249 test "x$ac_cv_prog_cc_c89" != "xno" && break
6250done
6251rm -f conftest.$ac_ext
6252CC=$ac_save_CC
6253
6254fi
6255# AC_CACHE_VAL
6256case "x$ac_cv_prog_cc_c89" in
6257 x)
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6259$as_echo "none needed" >&6; } ;;
6260 xno)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6262$as_echo "unsupported" >&6; } ;;
6263 *)
6264 CC="$CC $ac_cv_prog_cc_c89"
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6266$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6267esac
6268if test "x$ac_cv_prog_cc_c89" != xno; then :
6269
6270fi
6271
6272ac_ext=c
6273ac_cpp='$CPP $CPPFLAGS'
6274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276ac_compiler_gnu=$ac_cv_c_compiler_gnu
6277
cristy73bd4a52010-10-05 11:24:23 +00006278depcc="$CC" am_compiler_list=
6279
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6281$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006282if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006283 $as_echo_n "(cached) " >&6
6284else
6285 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6286 # We make a subdir and do the tests there. Otherwise we can end up
6287 # making bogus files that we don't know about and never remove. For
6288 # instance it was reported that on HP-UX the gcc test will end up
6289 # making a dummy file named `D' -- because `-MD' means `put the output
6290 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006291 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006292 mkdir conftest.dir
6293 # Copy depcomp to subdir because otherwise we won't find it if we're
6294 # using a relative directory.
6295 cp "$am_depcomp" conftest.dir
6296 cd conftest.dir
6297 # We will build objects and dependencies in a subdirectory because
6298 # it helps to detect inapplicable dependency modes. For instance
6299 # both Tru64's cc and ICC support -MD to output dependencies as a
6300 # side effect of compilation, but ICC will put the dependencies in
6301 # the current directory while Tru64 will put them in the object
6302 # directory.
6303 mkdir sub
6304
6305 am_cv_CC_dependencies_compiler_type=none
6306 if test "$am_compiler_list" = ""; then
6307 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6308 fi
6309 am__universal=false
6310 case " $depcc " in #(
6311 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6312 esac
6313
6314 for depmode in $am_compiler_list; do
6315 # Setup a source with many dependencies, because some compilers
6316 # like to wrap large dependency lists on column 80 (with \), and
6317 # we should not choose a depcomp mode which is confused by this.
6318 #
6319 # We need to recreate these files for each test, as the compiler may
6320 # overwrite some of them when testing with obscure command lines.
6321 # This happens at least with the AIX C compiler.
6322 : > sub/conftest.c
6323 for i in 1 2 3 4 5 6; do
6324 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6325 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6326 # Solaris 8's {/usr,}/bin/sh.
6327 touch sub/conftst$i.h
6328 done
6329 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6330
6331 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6332 # mode. It turns out that the SunPro C++ compiler does not properly
6333 # handle `-M -o', and we need to detect this. Also, some Intel
6334 # versions had trouble with output in subdirs
6335 am__obj=sub/conftest.${OBJEXT-o}
6336 am__minus_obj="-o $am__obj"
6337 case $depmode in
6338 gcc)
6339 # This depmode causes a compiler race in universal mode.
6340 test "$am__universal" = false || continue
6341 ;;
6342 nosideeffect)
6343 # after this tag, mechanisms are not by side-effect, so they'll
6344 # only be used when explicitly requested
6345 if test "x$enable_dependency_tracking" = xyes; then
6346 continue
6347 else
6348 break
6349 fi
6350 ;;
cristy7247bba2012-02-05 16:37:27 +00006351 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006352 # This compiler won't grok `-c -o', but also, the minuso test has
6353 # not run yet. These depmodes are late enough in the game, and
6354 # so weak that their functioning should not be impacted.
6355 am__obj=conftest.${OBJEXT-o}
6356 am__minus_obj=
6357 ;;
6358 none) break ;;
6359 esac
6360 if depmode=$depmode \
6361 source=sub/conftest.c object=$am__obj \
6362 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6363 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6364 >/dev/null 2>conftest.err &&
6365 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6366 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6367 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6368 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6369 # icc doesn't choke on unknown options, it will just issue warnings
6370 # or remarks (even with -Werror). So we grep stderr for any message
6371 # that says an option was ignored or not supported.
6372 # When given -MP, icc 7.0 and 7.1 complain thusly:
6373 # icc: Command line warning: ignoring option '-M'; no argument required
6374 # The diagnosis changed in icc 8.0:
6375 # icc: Command line remark: option '-MP' not supported
6376 if (grep 'ignoring option' conftest.err ||
6377 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6378 am_cv_CC_dependencies_compiler_type=$depmode
6379 break
6380 fi
6381 fi
6382 done
6383
6384 cd ..
6385 rm -rf conftest.dir
6386else
6387 am_cv_CC_dependencies_compiler_type=none
6388fi
6389
6390fi
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6392$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6393CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6394
6395 if
6396 test "x$enable_dependency_tracking" != xno \
6397 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6398 am__fastdepCC_TRUE=
6399 am__fastdepCC_FALSE='#'
6400else
6401 am__fastdepCC_TRUE='#'
6402 am__fastdepCC_FALSE=
6403fi
6404
6405
cristy95646052009-11-28 23:05:30 +00006406ac_ext=cpp
6407ac_cpp='$CXXCPP $CPPFLAGS'
6408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6411if test -z "$CXX"; then
6412 if test -n "$CCC"; then
6413 CXX=$CCC
6414 else
6415 if test -n "$ac_tool_prefix"; then
6416 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6417 do
6418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006422if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006423 $as_echo_n "(cached) " >&6
6424else
6425 if test -n "$CXX"; then
6426 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6427else
6428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429for as_dir in $PATH
6430do
6431 IFS=$as_save_IFS
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 break 2
6438 fi
6439done
6440 done
6441IFS=$as_save_IFS
6442
6443fi
6444fi
6445CXX=$ac_cv_prog_CXX
6446if test -n "$CXX"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6448$as_echo "$CXX" >&6; }
6449else
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451$as_echo "no" >&6; }
6452fi
6453
6454
6455 test -n "$CXX" && break
6456 done
6457fi
6458if test -z "$CXX"; then
6459 ac_ct_CXX=$CXX
6460 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6461do
6462 # Extract the first word of "$ac_prog", so it can be a program name with args.
6463set dummy $ac_prog; ac_word=$2
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006466if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006467 $as_echo_n "(cached) " >&6
6468else
6469 if test -n "$ac_ct_CXX"; then
6470 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6471else
6472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473for as_dir in $PATH
6474do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_ac_ct_CXX="$ac_prog"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483done
6484 done
6485IFS=$as_save_IFS
6486
6487fi
6488fi
6489ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6490if test -n "$ac_ct_CXX"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6492$as_echo "$ac_ct_CXX" >&6; }
6493else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495$as_echo "no" >&6; }
6496fi
6497
6498
6499 test -n "$ac_ct_CXX" && break
6500done
6501
6502 if test "x$ac_ct_CXX" = x; then
6503 CXX="g++"
6504 else
6505 case $cross_compiling:$ac_tool_warned in
6506yes:)
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509ac_tool_warned=yes ;;
6510esac
6511 CXX=$ac_ct_CXX
6512 fi
6513fi
6514
6515 fi
6516fi
6517# Provide some information about the compiler.
6518$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6519set X $ac_compile
6520ac_compiler=$2
6521for ac_option in --version -v -V -qversion; do
6522 { { ac_try="$ac_compiler $ac_option >&5"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6528$as_echo "$ac_try_echo"; } >&5
6529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6530 ac_status=$?
6531 if test -s conftest.err; then
6532 sed '10a\
6533... rest of stderr output deleted ...
6534 10q' conftest.err >conftest.er1
6535 cat conftest.er1 >&5
6536 fi
6537 rm -f conftest.er1 conftest.err
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }
6540done
6541
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6543$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006544if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006545 $as_echo_n "(cached) " >&6
6546else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549
6550int
6551main ()
6552{
6553#ifndef __GNUC__
6554 choke me
6555#endif
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561if ac_fn_cxx_try_compile "$LINENO"; then :
6562 ac_compiler_gnu=yes
6563else
6564 ac_compiler_gnu=no
6565fi
6566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6568
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6571$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6572if test $ac_compiler_gnu = yes; then
6573 GXX=yes
6574else
6575 GXX=
6576fi
6577ac_test_CXXFLAGS=${CXXFLAGS+set}
6578ac_save_CXXFLAGS=$CXXFLAGS
6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6580$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006581if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006582 $as_echo_n "(cached) " >&6
6583else
6584 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6585 ac_cxx_werror_flag=yes
6586 ac_cv_prog_cxx_g=no
6587 CXXFLAGS="-g"
6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h. */
6590
6591int
6592main ()
6593{
6594
6595 ;
6596 return 0;
6597}
6598_ACEOF
6599if ac_fn_cxx_try_compile "$LINENO"; then :
6600 ac_cv_prog_cxx_g=yes
6601else
6602 CXXFLAGS=""
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604/* end confdefs.h. */
6605
6606int
6607main ()
6608{
6609
6610 ;
6611 return 0;
6612}
6613_ACEOF
6614if ac_fn_cxx_try_compile "$LINENO"; then :
6615
6616else
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6618 CXXFLAGS="-g"
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621
6622int
6623main ()
6624{
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630if ac_fn_cxx_try_compile "$LINENO"; then :
6631 ac_cv_prog_cxx_g=yes
6632fi
6633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6641$as_echo "$ac_cv_prog_cxx_g" >&6; }
6642if test "$ac_test_CXXFLAGS" = set; then
6643 CXXFLAGS=$ac_save_CXXFLAGS
6644elif test $ac_cv_prog_cxx_g = yes; then
6645 if test "$GXX" = yes; then
6646 CXXFLAGS="-g -O2"
6647 else
6648 CXXFLAGS="-g"
6649 fi
6650else
6651 if test "$GXX" = yes; then
6652 CXXFLAGS="-O2"
6653 else
6654 CXXFLAGS=
6655 fi
6656fi
6657ac_ext=c
6658ac_cpp='$CPP $CPPFLAGS'
6659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662
cristy73bd4a52010-10-05 11:24:23 +00006663depcc="$CXX" am_compiler_list=
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6666$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006667if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006668 $as_echo_n "(cached) " >&6
6669else
6670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6671 # We make a subdir and do the tests there. Otherwise we can end up
6672 # making bogus files that we don't know about and never remove. For
6673 # instance it was reported that on HP-UX the gcc test will end up
6674 # making a dummy file named `D' -- because `-MD' means `put the output
6675 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006676 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006677 mkdir conftest.dir
6678 # Copy depcomp to subdir because otherwise we won't find it if we're
6679 # using a relative directory.
6680 cp "$am_depcomp" conftest.dir
6681 cd conftest.dir
6682 # We will build objects and dependencies in a subdirectory because
6683 # it helps to detect inapplicable dependency modes. For instance
6684 # both Tru64's cc and ICC support -MD to output dependencies as a
6685 # side effect of compilation, but ICC will put the dependencies in
6686 # the current directory while Tru64 will put them in the object
6687 # directory.
6688 mkdir sub
6689
6690 am_cv_CXX_dependencies_compiler_type=none
6691 if test "$am_compiler_list" = ""; then
6692 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6693 fi
6694 am__universal=false
6695 case " $depcc " in #(
6696 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6697 esac
6698
6699 for depmode in $am_compiler_list; do
6700 # Setup a source with many dependencies, because some compilers
6701 # like to wrap large dependency lists on column 80 (with \), and
6702 # we should not choose a depcomp mode which is confused by this.
6703 #
6704 # We need to recreate these files for each test, as the compiler may
6705 # overwrite some of them when testing with obscure command lines.
6706 # This happens at least with the AIX C compiler.
6707 : > sub/conftest.c
6708 for i in 1 2 3 4 5 6; do
6709 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6710 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6711 # Solaris 8's {/usr,}/bin/sh.
6712 touch sub/conftst$i.h
6713 done
6714 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6715
6716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6717 # mode. It turns out that the SunPro C++ compiler does not properly
6718 # handle `-M -o', and we need to detect this. Also, some Intel
6719 # versions had trouble with output in subdirs
6720 am__obj=sub/conftest.${OBJEXT-o}
6721 am__minus_obj="-o $am__obj"
6722 case $depmode in
6723 gcc)
6724 # This depmode causes a compiler race in universal mode.
6725 test "$am__universal" = false || continue
6726 ;;
6727 nosideeffect)
6728 # after this tag, mechanisms are not by side-effect, so they'll
6729 # only be used when explicitly requested
6730 if test "x$enable_dependency_tracking" = xyes; then
6731 continue
6732 else
6733 break
6734 fi
6735 ;;
cristy7247bba2012-02-05 16:37:27 +00006736 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006737 # This compiler won't grok `-c -o', but also, the minuso test has
6738 # not run yet. These depmodes are late enough in the game, and
6739 # so weak that their functioning should not be impacted.
6740 am__obj=conftest.${OBJEXT-o}
6741 am__minus_obj=
6742 ;;
6743 none) break ;;
6744 esac
6745 if depmode=$depmode \
6746 source=sub/conftest.c object=$am__obj \
6747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6748 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6749 >/dev/null 2>conftest.err &&
6750 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6751 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6752 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6753 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6754 # icc doesn't choke on unknown options, it will just issue warnings
6755 # or remarks (even with -Werror). So we grep stderr for any message
6756 # that says an option was ignored or not supported.
6757 # When given -MP, icc 7.0 and 7.1 complain thusly:
6758 # icc: Command line warning: ignoring option '-M'; no argument required
6759 # The diagnosis changed in icc 8.0:
6760 # icc: Command line remark: option '-MP' not supported
6761 if (grep 'ignoring option' conftest.err ||
6762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6763 am_cv_CXX_dependencies_compiler_type=$depmode
6764 break
6765 fi
6766 fi
6767 done
6768
6769 cd ..
6770 rm -rf conftest.dir
6771else
6772 am_cv_CXX_dependencies_compiler_type=none
6773fi
6774
6775fi
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6777$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6778CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6779
6780 if
6781 test "x$enable_dependency_tracking" != xno \
6782 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6783 am__fastdepCXX_TRUE=
6784 am__fastdepCXX_FALSE='#'
6785else
6786 am__fastdepCXX_TRUE='#'
6787 am__fastdepCXX_FALSE=
6788fi
6789
6790
cristy8b350f62009-11-15 23:12:43 +00006791 case $ac_cv_prog_cc_stdc in #(
6792 no) :
6793 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6794 *) :
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006796$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006797if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006798 $as_echo_n "(cached) " >&6
6799else
6800 ac_cv_prog_cc_c99=no
6801ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006803/* end confdefs.h. */
6804#include <stdarg.h>
6805#include <stdbool.h>
6806#include <stdlib.h>
6807#include <wchar.h>
6808#include <stdio.h>
6809
6810// Check varargs macros. These examples are taken from C99 6.10.3.5.
6811#define debug(...) fprintf (stderr, __VA_ARGS__)
6812#define showlist(...) puts (#__VA_ARGS__)
6813#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6814static void
6815test_varargs_macros (void)
6816{
6817 int x = 1234;
6818 int y = 5678;
6819 debug ("Flag");
6820 debug ("X = %d\n", x);
6821 showlist (The first, second, and third items.);
6822 report (x>y, "x is %d but y is %d", x, y);
6823}
6824
6825// Check long long types.
6826#define BIG64 18446744073709551615ull
6827#define BIG32 4294967295ul
6828#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6829#if !BIG_OK
6830 your preprocessor is broken;
6831#endif
6832#if BIG_OK
6833#else
6834 your preprocessor is broken;
6835#endif
6836static long long int bignum = -9223372036854775807LL;
6837static unsigned long long int ubignum = BIG64;
6838
6839struct incomplete_array
6840{
6841 int datasize;
6842 double data[];
6843};
6844
6845struct named_init {
6846 int number;
6847 const wchar_t *name;
6848 double average;
6849};
6850
6851typedef const char *ccp;
6852
6853static inline int
6854test_restrict (ccp restrict text)
6855{
6856 // See if C++-style comments work.
6857 // Iterate through items via the restricted pointer.
6858 // Also check for declarations in for loops.
6859 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6860 continue;
6861 return 0;
6862}
6863
6864// Check varargs and va_copy.
6865static void
6866test_varargs (const char *format, ...)
6867{
6868 va_list args;
6869 va_start (args, format);
6870 va_list args_copy;
6871 va_copy (args_copy, args);
6872
6873 const char *str;
6874 int number;
6875 float fnumber;
6876
6877 while (*format)
6878 {
6879 switch (*format++)
6880 {
6881 case 's': // string
6882 str = va_arg (args_copy, const char *);
6883 break;
6884 case 'd': // int
6885 number = va_arg (args_copy, int);
6886 break;
6887 case 'f': // float
6888 fnumber = va_arg (args_copy, double);
6889 break;
6890 default:
6891 break;
6892 }
6893 }
6894 va_end (args_copy);
6895 va_end (args);
6896}
6897
6898int
6899main ()
6900{
6901
6902 // Check bool.
6903 _Bool success = false;
6904
6905 // Check restrict.
6906 if (test_restrict ("String literal") == 0)
6907 success = true;
6908 char *restrict newvar = "Another string";
6909
6910 // Check varargs.
6911 test_varargs ("s, d' f .", "string", 65, 34.234);
6912 test_varargs_macros ();
6913
6914 // Check flexible array members.
6915 struct incomplete_array *ia =
6916 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6917 ia->datasize = 10;
6918 for (int i = 0; i < ia->datasize; ++i)
6919 ia->data[i] = i * 1.234;
6920
6921 // Check named initializers.
6922 struct named_init ni = {
6923 .number = 34,
6924 .name = L"Test wide string",
6925 .average = 543.34343,
6926 };
6927
6928 ni.number = 58;
6929
6930 int dynamic_array[ni.number];
6931 dynamic_array[ni.number - 1] = 543;
6932
6933 // work around unused variable warnings
6934 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6935 || dynamic_array[ni.number - 1] != 543);
6936
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6942do
6943 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006944 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006945 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006946fi
cristy3ed852e2009-09-05 21:47:34 +00006947rm -f core conftest.err conftest.$ac_objext
6948 test "x$ac_cv_prog_cc_c99" != "xno" && break
6949done
6950rm -f conftest.$ac_ext
6951CC=$ac_save_CC
6952
6953fi
6954# AC_CACHE_VAL
6955case "x$ac_cv_prog_cc_c99" in
6956 x)
cristy8b350f62009-11-15 23:12:43 +00006957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006958$as_echo "none needed" >&6; } ;;
6959 xno)
cristy8b350f62009-11-15 23:12:43 +00006960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006961$as_echo "unsupported" >&6; } ;;
6962 *)
6963 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006965$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6966esac
cristy8b350f62009-11-15 23:12:43 +00006967if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006968 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6969else
cristy8b350f62009-11-15 23:12:43 +00006970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006971$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006972if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006973 $as_echo_n "(cached) " >&6
6974else
6975 ac_cv_prog_cc_c89=no
6976ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006978/* end confdefs.h. */
6979#include <stdarg.h>
6980#include <stdio.h>
6981#include <sys/types.h>
6982#include <sys/stat.h>
6983/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6984struct buf { int x; };
6985FILE * (*rcsopen) (struct buf *, struct stat *, int);
6986static char *e (p, i)
6987 char **p;
6988 int i;
6989{
6990 return p[i];
6991}
6992static char *f (char * (*g) (char **, int), char **p, ...)
6993{
6994 char *s;
6995 va_list v;
6996 va_start (v,p);
6997 s = g (p, va_arg (v,int));
6998 va_end (v);
6999 return s;
7000}
7001
7002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7003 function prototypes and stuff, but not '\xHH' hex character constants.
7004 These don't provoke an error unfortunately, instead are silently treated
7005 as 'x'. The following induces an error, until -std is added to get
7006 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7007 array size at least. It's necessary to write '\x00'==0 to get something
7008 that's true only with -std. */
7009int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7010
7011/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7012 inside strings and character constants. */
7013#define FOO(x) 'x'
7014int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7015
7016int test (int i, double x);
7017struct s1 {int (*f) (int a);};
7018struct s2 {int (*f) (double a);};
7019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7020int argc;
7021char **argv;
7022int
7023main ()
7024{
7025return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7026 ;
7027 return 0;
7028}
7029_ACEOF
7030for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7031 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7032do
7033 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007034 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007035 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007036fi
cristy3ed852e2009-09-05 21:47:34 +00007037rm -f core conftest.err conftest.$ac_objext
7038 test "x$ac_cv_prog_cc_c89" != "xno" && break
7039done
7040rm -f conftest.$ac_ext
7041CC=$ac_save_CC
7042
7043fi
7044# AC_CACHE_VAL
7045case "x$ac_cv_prog_cc_c89" in
7046 x)
cristy8b350f62009-11-15 23:12:43 +00007047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007048$as_echo "none needed" >&6; } ;;
7049 xno)
cristy8b350f62009-11-15 23:12:43 +00007050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007051$as_echo "unsupported" >&6; } ;;
7052 *)
7053 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007055$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7056esac
cristy8b350f62009-11-15 23:12:43 +00007057if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007058 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7059else
7060 ac_cv_prog_cc_stdc=no
7061fi
7062
cristy3ed852e2009-09-05 21:47:34 +00007063fi
cristy3ed852e2009-09-05 21:47:34 +00007064 ;;
7065esac
cristy8b350f62009-11-15 23:12:43 +00007066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007067$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007068 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007069 $as_echo_n "(cached) " >&6
7070fi
7071
cristy8b350f62009-11-15 23:12:43 +00007072 case $ac_cv_prog_cc_stdc in #(
7073 no) :
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7075$as_echo "unsupported" >&6; } ;; #(
7076 '') :
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7078$as_echo "none needed" >&6; } ;; #(
7079 *) :
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007081$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7082esac
7083
cristy3ed852e2009-09-05 21:47:34 +00007084ac_ext=c
7085ac_cpp='$CPP $CPPFLAGS'
7086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7088ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007090$as_echo_n "checking how to run the C preprocessor... " >&6; }
7091# On Suns, sometimes $CPP names a directory.
7092if test -n "$CPP" && test -d "$CPP"; then
7093 CPP=
7094fi
7095if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007096 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007097 $as_echo_n "(cached) " >&6
7098else
7099 # Double quotes because CPP needs to be expanded
7100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7101 do
7102 ac_preproc_ok=false
7103for ac_c_preproc_warn_flag in '' yes
7104do
7105 # Use a header file that comes with gcc, so configuring glibc
7106 # with a fresh cross-compiler works.
7107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108 # <limits.h> exists even on freestanding compilers.
7109 # On the NeXT, cc -E runs the code through the compiler's parser,
7110 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007112/* end confdefs.h. */
7113#ifdef __STDC__
7114# include <limits.h>
7115#else
7116# include <assert.h>
7117#endif
7118 Syntax error
7119_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007120if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007121
cristy8b350f62009-11-15 23:12:43 +00007122else
cristy3ed852e2009-09-05 21:47:34 +00007123 # Broken: fails on valid input.
7124continue
7125fi
cristyda16f162011-02-19 23:52:17 +00007126rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007127
7128 # OK, works on sane cases. Now check whether nonexistent headers
7129 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007131/* end confdefs.h. */
7132#include <ac_nonexistent.h>
7133_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007134if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007135 # Broken: success on invalid input.
7136continue
7137else
cristy3ed852e2009-09-05 21:47:34 +00007138 # Passes both tests.
7139ac_preproc_ok=:
7140break
7141fi
cristyda16f162011-02-19 23:52:17 +00007142rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007143
7144done
7145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007146rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007147if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007148 break
7149fi
7150
7151 done
7152 ac_cv_prog_CPP=$CPP
7153
7154fi
7155 CPP=$ac_cv_prog_CPP
7156else
7157 ac_cv_prog_CPP=$CPP
7158fi
cristy8b350f62009-11-15 23:12:43 +00007159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007160$as_echo "$CPP" >&6; }
7161ac_preproc_ok=false
7162for ac_c_preproc_warn_flag in '' yes
7163do
7164 # Use a header file that comes with gcc, so configuring glibc
7165 # with a fresh cross-compiler works.
7166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167 # <limits.h> exists even on freestanding compilers.
7168 # On the NeXT, cc -E runs the code through the compiler's parser,
7169 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007171/* end confdefs.h. */
7172#ifdef __STDC__
7173# include <limits.h>
7174#else
7175# include <assert.h>
7176#endif
7177 Syntax error
7178_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007179if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007180
cristy8b350f62009-11-15 23:12:43 +00007181else
cristy3ed852e2009-09-05 21:47:34 +00007182 # Broken: fails on valid input.
7183continue
7184fi
cristyda16f162011-02-19 23:52:17 +00007185rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007186
7187 # OK, works on sane cases. Now check whether nonexistent headers
7188 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007190/* end confdefs.h. */
7191#include <ac_nonexistent.h>
7192_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007193if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007194 # Broken: success on invalid input.
7195continue
7196else
cristy3ed852e2009-09-05 21:47:34 +00007197 # Passes both tests.
7198ac_preproc_ok=:
7199break
7200fi
cristyda16f162011-02-19 23:52:17 +00007201rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007202
7203done
7204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007205rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007206if $ac_preproc_ok; then :
7207
cristy3ed852e2009-09-05 21:47:34 +00007208else
cristy8b350f62009-11-15 23:12:43 +00007209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007211as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7212See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007213fi
7214
7215ac_ext=c
7216ac_cpp='$CPP $CPPFLAGS'
7217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219ac_compiler_gnu=$ac_cv_c_compiler_gnu
7220
cristy73bd4a52010-10-05 11:24:23 +00007221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7222$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007223if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007224 $as_echo_n "(cached) " >&6
7225else
7226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7227 for ac_i in 1 2 3 4 5 6 7; do
7228 ac_script="$ac_script$as_nl$ac_script"
7229 done
7230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7231 { ac_script=; unset ac_script;}
7232 if test -z "$SED"; then
7233 ac_path_SED_found=false
7234 # Loop through the user's path and test for each of PROGNAME-LIST
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236for as_dir in $PATH
7237do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_prog in sed gsed; do
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7243 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7244# Check for GNU ac_path_SED and select it if it is found.
7245 # Check for GNU $ac_path_SED
7246case `"$ac_path_SED" --version 2>&1` in
7247*GNU*)
7248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7249*)
7250 ac_count=0
7251 $as_echo_n 0123456789 >"conftest.in"
7252 while :
7253 do
7254 cat "conftest.in" "conftest.in" >"conftest.tmp"
7255 mv "conftest.tmp" "conftest.in"
7256 cp "conftest.in" "conftest.nl"
7257 $as_echo '' >> "conftest.nl"
7258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7260 as_fn_arith $ac_count + 1 && ac_count=$as_val
7261 if test $ac_count -gt ${ac_path_SED_max-0}; then
7262 # Best one so far, save it but keep looking for a better one
7263 ac_cv_path_SED="$ac_path_SED"
7264 ac_path_SED_max=$ac_count
7265 fi
7266 # 10*(2^10) chars as input seems more than enough
7267 test $ac_count -gt 10 && break
7268 done
7269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7270esac
7271
7272 $ac_path_SED_found && break 3
7273 done
7274 done
7275 done
7276IFS=$as_save_IFS
7277 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007279 fi
7280else
7281 ac_cv_path_SED=$SED
7282fi
7283
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7286$as_echo "$ac_cv_path_SED" >&6; }
7287 SED="$ac_cv_path_SED"
7288 rm -f conftest.sed
7289
7290test -z "$SED" && SED=sed
7291Xsed="$SED -e 1s/^X//"
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7304$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007305if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007306 $as_echo_n "(cached) " >&6
7307else
7308 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7309 then ac_cv_path_FGREP="$GREP -F"
7310 else
7311 if test -z "$FGREP"; then
7312 ac_path_FGREP_found=false
7313 # Loop through the user's path and test for each of PROGNAME-LIST
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_prog in fgrep; do
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7322 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7323# Check for GNU ac_path_FGREP and select it if it is found.
7324 # Check for GNU $ac_path_FGREP
7325case `"$ac_path_FGREP" --version 2>&1` in
7326*GNU*)
7327 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7328*)
7329 ac_count=0
7330 $as_echo_n 0123456789 >"conftest.in"
7331 while :
7332 do
7333 cat "conftest.in" "conftest.in" >"conftest.tmp"
7334 mv "conftest.tmp" "conftest.in"
7335 cp "conftest.in" "conftest.nl"
7336 $as_echo 'FGREP' >> "conftest.nl"
7337 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7339 as_fn_arith $ac_count + 1 && ac_count=$as_val
7340 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7341 # Best one so far, save it but keep looking for a better one
7342 ac_cv_path_FGREP="$ac_path_FGREP"
7343 ac_path_FGREP_max=$ac_count
7344 fi
7345 # 10*(2^10) chars as input seems more than enough
7346 test $ac_count -gt 10 && break
7347 done
7348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7349esac
7350
7351 $ac_path_FGREP_found && break 3
7352 done
7353 done
7354 done
7355IFS=$as_save_IFS
7356 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007357 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007358 fi
7359else
7360 ac_cv_path_FGREP=$FGREP
7361fi
7362
7363 fi
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7366$as_echo "$ac_cv_path_FGREP" >&6; }
7367 FGREP="$ac_cv_path_FGREP"
7368
7369
7370test -z "$GREP" && GREP=grep
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
cristy0c60a692010-11-04 01:09:47 +00007388ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7389ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7390ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7391
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7393$as_echo_n "checking how to print strings... " >&6; }
7394# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007395if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007396 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7397 ECHO='print -r --'
7398elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7399 ECHO='printf %s\n'
7400else
7401 # Use this function as a fallback that always works.
7402 func_fallback_echo ()
7403 {
7404 eval 'cat <<_LTECHO_EOF
7405$1
7406_LTECHO_EOF'
7407 }
7408 ECHO='func_fallback_echo'
7409fi
7410
7411# func_echo_all arg...
7412# Invoke $ECHO with all args, space-separated.
7413func_echo_all ()
7414{
7415 $ECHO ""
7416}
7417
7418case "$ECHO" in
7419 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7420$as_echo "printf" >&6; } ;;
7421 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7422$as_echo "print -r" >&6; } ;;
7423 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7424$as_echo "cat" >&6; } ;;
7425esac
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
cristy73bd4a52010-10-05 11:24:23 +00007440
7441
7442# Check whether --with-gnu-ld was given.
7443if test "${with_gnu_ld+set}" = set; then :
7444 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7445else
7446 with_gnu_ld=no
7447fi
7448
7449ac_prog=ld
7450if test "$GCC" = yes; then
7451 # Check if gcc -print-prog-name=ld gives a path.
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7453$as_echo_n "checking for ld used by $CC... " >&6; }
7454 case $host in
7455 *-*-mingw*)
7456 # gcc leaves a trailing carriage return which upsets mingw
7457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7458 *)
7459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7460 esac
7461 case $ac_prog in
7462 # Accept absolute paths.
7463 [\\/]* | ?:[\\/]*)
7464 re_direlt='/[^/][^/]*/\.\./'
7465 # Canonicalize the pathname of ld
7466 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7467 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7468 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7469 done
7470 test -z "$LD" && LD="$ac_prog"
7471 ;;
7472 "")
7473 # If it fails, then pretend we aren't using GCC.
7474 ac_prog=ld
7475 ;;
7476 *)
7477 # If it is relative, then search for the first ld in PATH.
7478 with_gnu_ld=unknown
7479 ;;
7480 esac
7481elif test "$with_gnu_ld" = yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7483$as_echo_n "checking for GNU ld... " >&6; }
7484else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7486$as_echo_n "checking for non-GNU ld... " >&6; }
7487fi
cristyda16f162011-02-19 23:52:17 +00007488if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007489 $as_echo_n "(cached) " >&6
7490else
7491 if test -z "$LD"; then
7492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7493 for ac_dir in $PATH; do
7494 IFS="$lt_save_ifs"
7495 test -z "$ac_dir" && ac_dir=.
7496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7497 lt_cv_path_LD="$ac_dir/$ac_prog"
7498 # Check to see if the program is GNU ld. I'd rather use --version,
7499 # but apparently some variants of GNU ld only accept -v.
7500 # Break only if it was the GNU/non-GNU ld that we prefer.
7501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7502 *GNU* | *'with BFD'*)
7503 test "$with_gnu_ld" != no && break
7504 ;;
7505 *)
7506 test "$with_gnu_ld" != yes && break
7507 ;;
7508 esac
7509 fi
7510 done
7511 IFS="$lt_save_ifs"
7512else
7513 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7514fi
7515fi
7516
7517LD="$lt_cv_path_LD"
7518if test -n "$LD"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7520$as_echo "$LD" >&6; }
7521else
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
7524fi
cristy98dddb52010-11-04 00:30:15 +00007525test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7527$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007528if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007529 $as_echo_n "(cached) " >&6
7530else
7531 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7532case `$LD -v 2>&1 </dev/null` in
7533*GNU* | *'with BFD'*)
7534 lt_cv_prog_gnu_ld=yes
7535 ;;
7536*)
7537 lt_cv_prog_gnu_ld=no
7538 ;;
7539esac
7540fi
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7542$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7543with_gnu_ld=$lt_cv_prog_gnu_ld
7544
7545
7546
7547
7548
7549
7550
7551
7552
cristy3ed852e2009-09-05 21:47:34 +00007553
cristy837d6dc2010-02-27 01:16:57 +00007554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7555$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007556if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007557 $as_echo_n "(cached) " >&6
7558else
7559 ac_cv_prog_cc_c99=no
7560ac_save_CC=$CC
7561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h. */
7563#include <stdarg.h>
7564#include <stdbool.h>
7565#include <stdlib.h>
7566#include <wchar.h>
7567#include <stdio.h>
7568
7569// Check varargs macros. These examples are taken from C99 6.10.3.5.
7570#define debug(...) fprintf (stderr, __VA_ARGS__)
7571#define showlist(...) puts (#__VA_ARGS__)
7572#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7573static void
7574test_varargs_macros (void)
7575{
7576 int x = 1234;
7577 int y = 5678;
7578 debug ("Flag");
7579 debug ("X = %d\n", x);
7580 showlist (The first, second, and third items.);
7581 report (x>y, "x is %d but y is %d", x, y);
7582}
7583
7584// Check long long types.
7585#define BIG64 18446744073709551615ull
7586#define BIG32 4294967295ul
7587#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7588#if !BIG_OK
7589 your preprocessor is broken;
7590#endif
7591#if BIG_OK
7592#else
7593 your preprocessor is broken;
7594#endif
7595static long long int bignum = -9223372036854775807LL;
7596static unsigned long long int ubignum = BIG64;
7597
7598struct incomplete_array
7599{
7600 int datasize;
7601 double data[];
7602};
7603
7604struct named_init {
7605 int number;
7606 const wchar_t *name;
7607 double average;
7608};
7609
7610typedef const char *ccp;
7611
7612static inline int
7613test_restrict (ccp restrict text)
7614{
7615 // See if C++-style comments work.
7616 // Iterate through items via the restricted pointer.
7617 // Also check for declarations in for loops.
7618 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7619 continue;
7620 return 0;
7621}
7622
7623// Check varargs and va_copy.
7624static void
7625test_varargs (const char *format, ...)
7626{
7627 va_list args;
7628 va_start (args, format);
7629 va_list args_copy;
7630 va_copy (args_copy, args);
7631
7632 const char *str;
7633 int number;
7634 float fnumber;
7635
7636 while (*format)
7637 {
7638 switch (*format++)
7639 {
7640 case 's': // string
7641 str = va_arg (args_copy, const char *);
7642 break;
7643 case 'd': // int
7644 number = va_arg (args_copy, int);
7645 break;
7646 case 'f': // float
7647 fnumber = va_arg (args_copy, double);
7648 break;
7649 default:
7650 break;
7651 }
7652 }
7653 va_end (args_copy);
7654 va_end (args);
7655}
7656
7657int
7658main ()
7659{
7660
7661 // Check bool.
7662 _Bool success = false;
7663
7664 // Check restrict.
7665 if (test_restrict ("String literal") == 0)
7666 success = true;
7667 char *restrict newvar = "Another string";
7668
7669 // Check varargs.
7670 test_varargs ("s, d' f .", "string", 65, 34.234);
7671 test_varargs_macros ();
7672
7673 // Check flexible array members.
7674 struct incomplete_array *ia =
7675 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7676 ia->datasize = 10;
7677 for (int i = 0; i < ia->datasize; ++i)
7678 ia->data[i] = i * 1.234;
7679
7680 // Check named initializers.
7681 struct named_init ni = {
7682 .number = 34,
7683 .name = L"Test wide string",
7684 .average = 543.34343,
7685 };
7686
7687 ni.number = 58;
7688
7689 int dynamic_array[ni.number];
7690 dynamic_array[ni.number - 1] = 543;
7691
7692 // work around unused variable warnings
7693 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7694 || dynamic_array[ni.number - 1] != 543);
7695
7696 ;
7697 return 0;
7698}
7699_ACEOF
7700for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7701do
7702 CC="$ac_save_CC $ac_arg"
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 ac_cv_prog_cc_c99=$ac_arg
7705fi
7706rm -f core conftest.err conftest.$ac_objext
7707 test "x$ac_cv_prog_cc_c99" != "xno" && break
7708done
7709rm -f conftest.$ac_ext
7710CC=$ac_save_CC
7711
7712fi
7713# AC_CACHE_VAL
7714case "x$ac_cv_prog_cc_c99" in
7715 x)
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7717$as_echo "none needed" >&6; } ;;
7718 xno)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7720$as_echo "unsupported" >&6; } ;;
7721 *)
7722 CC="$CC $ac_cv_prog_cc_c99"
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7724$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7725esac
7726if test "x$ac_cv_prog_cc_c99" != xno; then :
7727
7728fi
7729
7730
cristy73bd4a52010-10-05 11:24:23 +00007731if test "x$CC" != xcc; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7733$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7734else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7736$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7737fi
7738set dummy $CC; ac_cc=`$as_echo "$2" |
7739 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007740if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007741 $as_echo_n "(cached) " >&6
7742else
cristy73bd4a52010-10-05 11:24:23 +00007743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h. */
7745
7746int
7747main ()
7748{
7749
7750 ;
7751 return 0;
7752}
7753_ACEOF
7754# Make sure it works both with $CC and with simple cc.
7755# We do the test twice because some compilers refuse to overwrite an
7756# existing .o file with -o, though they will create one.
7757ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7758rm -f conftest2.*
7759if { { case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762esac
7763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7764$as_echo "$ac_try_echo"; } >&5
7765 (eval "$ac_try") 2>&5
7766 ac_status=$?
7767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; } &&
7769 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7772esac
7773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7774$as_echo "$ac_try_echo"; } >&5
7775 (eval "$ac_try") 2>&5
7776 ac_status=$?
7777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7778 test $ac_status = 0; };
7779then
7780 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7781 if test "x$CC" != xcc; then
7782 # Test first that cc exists at all.
7783 if { ac_try='cc -c conftest.$ac_ext >&5'
7784 { { case "(($ac_try" in
7785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786 *) ac_try_echo=$ac_try;;
7787esac
7788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7789$as_echo "$ac_try_echo"; } >&5
7790 (eval "$ac_try") 2>&5
7791 ac_status=$?
7792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; }; then
7794 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7795 rm -f conftest2.*
7796 if { { case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7799esac
7800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7801$as_echo "$ac_try_echo"; } >&5
7802 (eval "$ac_try") 2>&5
7803 ac_status=$?
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; } &&
7806 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7811$as_echo "$ac_try_echo"; } >&5
7812 (eval "$ac_try") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; };
7816 then
7817 # cc works too.
7818 :
7819 else
7820 # cc exists but doesn't like -o.
7821 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7822 fi
7823 fi
7824 fi
7825else
7826 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7827fi
7828rm -f core conftest*
7829
7830fi
7831if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833$as_echo "yes" >&6; }
7834else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
7837
7838$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7839
7840fi
7841
7842# FIXME: we rely on the cache variable name because
7843# there is no other way.
7844set dummy $CC
7845am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7846eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7847if test "$am_t" != yes; then
7848 # Losing compiler, so override with the script.
7849 # FIXME: It is wrong to rewrite CC.
7850 # But if we don't then we get into trouble of one sort or another.
7851 # A longer-term fix would be to have automake use am__CC in this case,
7852 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7853 CC="$am_aux_dir/compile $CC"
7854fi
7855
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7858$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007859if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007863 ac_ext=c
7864ac_cpp='$CPP $CPPFLAGS'
7865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7867ac_compiler_gnu=$ac_cv_c_compiler_gnu
7868
7869 ac_save_CFLAGS="$CFLAGS"
7870for 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" #
7871do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h. */
7874
7875int
7876main ()
7877{
cristy24fc1fe2010-10-23 21:13:01 +00007878
cristy73bd4a52010-10-05 11:24:23 +00007879 ;
7880 return 0;
7881}
7882_ACEOF
7883if ac_fn_c_try_compile "$LINENO"; then :
7884 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7885fi
7886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887done
7888 CFLAGS="$ac_save_CFLAGS"
7889 ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895
7896fi
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7898$as_echo "$ac_cv_cflags_warn_all" >&6; }
7899case ".$ac_cv_cflags_warn_all" in
7900 .ok|.ok,*) ;;
7901 .|.no|.no,*)
7902 ;;
7903 *)
7904 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7905 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7906 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7907 ac_status=$?
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; }
7910 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7911 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7912 ac_status=$?
7913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914 test $ac_status = 0; }
7915 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7916 fi
7917 ;;
nicolas6237c462010-10-05 06:11:49 +00007918esac
cristy3ed852e2009-09-05 21:47:34 +00007919
cristya0b81c32010-01-22 02:54:33 +00007920
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7922$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7923set x ${MAKE-make}
7924ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007925if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007926 $as_echo_n "(cached) " >&6
7927else
7928 cat >conftest.make <<\_ACEOF
7929SHELL = /bin/sh
7930all:
7931 @echo '@@@%%%=$(MAKE)=@@@%%%'
7932_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007933# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007934case `${MAKE-make} -f conftest.make 2>/dev/null` in
7935 *@@@%%%=?*=@@@%%%*)
7936 eval ac_cv_prog_make_${ac_make}_set=yes;;
7937 *)
7938 eval ac_cv_prog_make_${ac_make}_set=no;;
7939esac
7940rm -f conftest.make
7941fi
7942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944$as_echo "yes" >&6; }
7945 SET_MAKE=
7946else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948$as_echo "no" >&6; }
7949 SET_MAKE="MAKE=${MAKE-make}"
7950fi
7951
cristy8b350f62009-11-15 23:12:43 +00007952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007953$as_echo_n "checking whether ln -s works... " >&6; }
7954LN_S=$as_ln_s
7955if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007957$as_echo "yes" >&6; }
7958else
cristy8b350f62009-11-15 23:12:43 +00007959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007960$as_echo "no, using $LN_S" >&6; }
7961fi
7962
cristy73bd4a52010-10-05 11:24:23 +00007963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7964$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7965
7966# Check whether --with-dmalloc was given.
7967if test "${with_dmalloc+set}" = set; then :
7968 withval=$with_dmalloc; if test "$withval" = yes; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7970$as_echo "yes" >&6; }
7971
7972$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7973
7974 LIBS="$LIBS -ldmalloc"
7975 LDFLAGS="$LDFLAGS -g"
7976else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978$as_echo "no" >&6; }
7979fi
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984
7985
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7988$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007989if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007990 $as_echo_n "(cached) " >&6
7991else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h. */
7994#include <stdlib.h>
7995 static void foo(void) __attribute__ ((unused));
7996 static void
7997 foo(void) {
7998 exit(1);
7999 }
8000
8001int
8002main ()
8003{
8004
8005 ;
8006 return 0;
8007}
8008_ACEOF
8009if ac_fn_c_try_compile "$LINENO"; then :
8010 ax_cv___attribute__=yes
8011else
8012 ax_cv___attribute__=no
8013
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8019$as_echo "$ax_cv___attribute__" >&6; }
8020 if test "$ax_cv___attribute__" = "yes"; then
8021
8022$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8023
8024 fi
8025
8026
8027
8028if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8029 if test -n "$ac_tool_prefix"; then
8030 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8031set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008034if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008035 $as_echo_n "(cached) " >&6
8036else
8037 case $PKG_CONFIG in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054 done
8055IFS=$as_save_IFS
8056
8057 ;;
8058esac
8059fi
8060PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8061if test -n "$PKG_CONFIG"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8063$as_echo "$PKG_CONFIG" >&6; }
8064else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
8068
8069
8070fi
8071if test -z "$ac_cv_path_PKG_CONFIG"; then
8072 ac_pt_PKG_CONFIG=$PKG_CONFIG
8073 # Extract the first word of "pkg-config", so it can be a program name with args.
8074set dummy pkg-config; ac_word=$2
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008077if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008078 $as_echo_n "(cached) " >&6
8079else
8080 case $ac_pt_PKG_CONFIG in
8081 [\\/]* | ?:[\\/]*)
8082 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8083 ;;
8084 *)
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8092 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097 done
8098IFS=$as_save_IFS
8099
8100 ;;
8101esac
8102fi
8103ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8104if test -n "$ac_pt_PKG_CONFIG"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8106$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8107else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
8110fi
8111
8112 if test "x$ac_pt_PKG_CONFIG" = x; then
8113 PKG_CONFIG=""
8114 else
8115 case $cross_compiling:$ac_tool_warned in
8116yes:)
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119ac_tool_warned=yes ;;
8120esac
8121 PKG_CONFIG=$ac_pt_PKG_CONFIG
8122 fi
8123else
8124 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8125fi
8126
8127fi
8128if test -n "$PKG_CONFIG"; then
8129 _pkg_min_version=0.9.0
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8131$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8132 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8134$as_echo "yes" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137$as_echo "no" >&6; }
8138 PKG_CONFIG=""
8139 fi
8140
8141fi
cristy3ed852e2009-09-05 21:47:34 +00008142
8143#
cristy3ed852e2009-09-05 21:47:34 +00008144# Enable run-time checking.
8145#
8146# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008147if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008148 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8149else
8150 enable_bounds_checking='no'
8151fi
8152
8153
8154if test "$enable_bounds_checking" = yes; then
8155
cristy8b350f62009-11-15 23:12:43 +00008156$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008157
8158fi
8159
8160#
8161# Tests for Windows
8162#
8163
8164
cristy73bd4a52010-10-05 11:24:23 +00008165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8166$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008167if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008168 $as_echo_n "(cached) " >&6
8169else
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171/* end confdefs.h. */
8172
8173int
8174main ()
8175{
8176#ifndef _MSC_VER
8177 choke me
8178#endif
8179
8180 ;
8181 return 0;
8182}
8183_ACEOF
8184if ac_fn_c_try_compile "$LINENO"; then :
8185 ax_compiler_ms=yes
8186else
8187 ax_compiler_ms=no
8188fi
8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190ax_cv_c_compiler_ms=$ax_compiler_ms
8191
8192fi
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8194$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008195
8196GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008197native_win32_build='no'
8198cygwin_build='no'
8199case "${host_os}" in
8200 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008201 cygwin_build='yes'
8202 GDI32_LIBS='-lgdi32'
8203 ;;
8204 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008205 native_win32_build='yes'
8206 GDI32_LIBS='-lgdi32'
8207 ;;
8208esac
8209if test "${GDI32_LIBS}x" != 'x'; then
8210
cristy8b350f62009-11-15 23:12:43 +00008211$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008212
8213fi
8214
cristy73bd4a52010-10-05 11:24:23 +00008215 if test "${GDI32_LIBS}x" != 'x' ; then
8216 WINGDI32_DELEGATE_TRUE=
8217 WINGDI32_DELEGATE_FALSE='#'
8218else
8219 WINGDI32_DELEGATE_TRUE='#'
8220 WINGDI32_DELEGATE_FALSE=
8221fi
8222
8223 if test "${native_win32_build}" = 'yes' ; then
8224 WIN32_NATIVE_BUILD_TRUE=
8225 WIN32_NATIVE_BUILD_FALSE='#'
8226else
8227 WIN32_NATIVE_BUILD_TRUE='#'
8228 WIN32_NATIVE_BUILD_FALSE=
8229fi
8230
8231 if test "${cygwin_build}" = 'yes' ; then
8232 CYGWIN_BUILD_TRUE=
8233 CYGWIN_BUILD_FALSE='#'
8234else
8235 CYGWIN_BUILD_TRUE='#'
8236 CYGWIN_BUILD_FALSE=
8237fi
8238
8239 if test "x${CC}" = 'xcl.exe' ; then
8240 USING_CL_TRUE=
8241 USING_CL_FALSE='#'
8242else
8243 USING_CL_TRUE='#'
8244 USING_CL_FALSE=
8245fi
8246
cristy3ed852e2009-09-05 21:47:34 +00008247
8248WinPathScript="${srcdirfull}/winpath.sh"
8249
8250
8251#
8252# Compiler flags tweaks
8253#
8254if test "${GCC}" != "yes"; then
8255 case "${host}" in
8256 *-*-hpux* )
8257 # aCC: HP ANSI C++ B3910B A.03.34
8258 CFLAGS="${CFLAGS} -Wp,-H30000"
8259 if test -n "${CXXFLAGS}"; then
8260 CXXFLAGS='-AA'
8261 else
8262 CXXFLAGS="${CXXFLAGS} -AA"
8263 fi
8264 ;;
8265 *-dec-osf5.* )
8266 # Compaq alphaev68-dec-osf5.1 compiler
8267 if test -n "${CXXFLAGS}"; then
8268 CXXFLAGS='-std strict_ansi -noimplicit_include'
8269 else
8270 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8271 fi
8272 esac
8273fi
8274
8275# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008277$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008278if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008279 $as_echo_n "(cached) " >&6
8280else
8281
8282im_cv_ld_lazyload='none'
8283case "${host}" in
8284 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8285 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8286 im_cv_ld_lazyload='-Wl,-zlazyload'
8287 fi
8288 ;;
8289esac
8290
8291fi
cristy8b350f62009-11-15 23:12:43 +00008292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008293$as_echo "$im_cv_ld_lazyload" >&6; }
8294if test "${im_cv_ld_lazyload}" != 'none' ; then
8295 if test -z "${LDFLAGS}" ; then
8296 LDFLAGS="${im_cv_ld_lazyload}"
8297 else
8298 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8299 fi
8300fi
8301
8302case "$host" in
8303*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008304 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008305if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008306 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8307else
8308 build_osxuniversal=no
8309fi
8310
8311
8312 if test "${build_osxuniversal}" != no ; then
8313 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008314 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008315Please re-run configure with these options:
8316 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008317 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008318 fi
8319 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8320 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8321 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8322 fi
8323 ;;
8324esac
8325
cristy0151ae12011-10-28 16:32:29 +00008326#
8327# ARCH specific include directory
8328#
8329
cristy670aa3c2011-11-03 00:54:00 +00008330# Check whether --with-includearch-dir was given.
8331if test "${with_includearch_dir+set}" = set; then :
8332 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008333else
cristy670aa3c2011-11-03 00:54:00 +00008334 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008335fi
8336
8337
cristy670aa3c2011-11-03 00:54:00 +00008338eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008339
cristy0151ae12011-10-28 16:32:29 +00008340
8341#
8342# ARCH specific configuration directory
8343#
8344
cristy670aa3c2011-11-03 00:54:00 +00008345# Check whether --with-sharearch-dir was given.
8346if test "${with_sharearch_dir+set}" = set; then :
8347 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008348else
cristy408ebcd2011-11-14 01:36:57 +00008349 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008350fi
8351
8352
cristy670aa3c2011-11-03 00:54:00 +00008353eval "eval SHAREARCH_DIR=$sharearch_dir"
8354SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008355
cristy0151ae12011-10-28 16:32:29 +00008356
8357#
cristy3ed852e2009-09-05 21:47:34 +00008358# Enable support for threads
8359
8360# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008361if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008362 withval=$with_threads; with_threads=$withval
8363else
8364 with_threads='yes'
8365fi
8366
8367
8368have_threads=no
8369if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008370
8371
cristy73bd4a52010-10-05 11:24:23 +00008372ac_ext=c
8373ac_cpp='$CPP $CPPFLAGS'
8374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8376ac_compiler_gnu=$ac_cv_c_compiler_gnu
8377
8378ax_pthread_ok=no
8379
8380# We used to check for pthread.h first, but this fails if pthread.h
8381# requires special compiler flags (e.g. on True64 or Sequent).
8382# It gets checked for in the link test anyway.
8383
8384# First of all, check if the user has set any of the PTHREAD_LIBS,
8385# etcetera environment variables, and if threads linking works using
8386# them:
8387if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8388 save_CFLAGS="$CFLAGS"
8389 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8390 save_LIBS="$LIBS"
8391 LIBS="$PTHREAD_LIBS $LIBS"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8393$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h. */
8396
8397/* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400#ifdef __cplusplus
8401extern "C"
8402#endif
8403char pthread_join ();
8404int
8405main ()
8406{
8407return pthread_join ();
8408 ;
8409 return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_link "$LINENO"; then :
8413 ax_pthread_ok=yes
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8418$as_echo "$ax_pthread_ok" >&6; }
8419 if test x"$ax_pthread_ok" = xno; then
8420 PTHREAD_LIBS=""
8421 PTHREAD_CFLAGS=""
8422 fi
8423 LIBS="$save_LIBS"
8424 CFLAGS="$save_CFLAGS"
8425fi
8426
8427# We must check for the threads library under a number of different
8428# names; the ordering is very important because some systems
8429# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8430# libraries is broken (non-POSIX).
8431
8432# Create a list of thread flags to try. Items starting with a "-" are
8433# C compiler flags, and other items are library names, except for "none"
8434# which indicates that we try without any flags at all, and "pthread-config"
8435# which is a program returning the flags for the Pth emulation library.
8436
cristy18307f12011-12-30 01:20:16 +00008437ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008438
8439# The ordering *is* (sometimes) important. Some notes on the
8440# individual items follow:
8441
8442# pthreads: AIX (must check this before -lpthread)
8443# none: in case threads are in libc; should be tried before -Kthread and
8444# other compiler flags to prevent continual compiler warnings
8445# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8446# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8447# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8448# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8449# -pthreads: Solaris/gcc
8450# -mthreads: Mingw32/gcc, Lynx/gcc
8451# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8452# doesn't hurt to check since this sometimes defines pthreads too;
8453# also defines -D_REENTRANT)
8454# ... -mt is also the pthreads flag for HP/aCC
8455# pthread: Linux, etcetera
8456# --thread-safe: KAI C++
8457# pthread-config: use pthread-config program (for GNU Pth library)
8458
8459case "${host_cpu}-${host_os}" in
8460 *solaris*)
8461
8462 # On Solaris (at least, for some versions), libc contains stubbed
8463 # (non-functional) versions of the pthreads routines, so link-based
8464 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8465 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8466 # a function called by this macro, so we could check for that, but
8467 # who knows whether they'll stub that too in a future libc.) So,
8468 # we'll just look for -pthreads and -lpthread first:
8469
8470 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8471 ;;
8472
cristya316db12011-10-24 00:49:45 +00008473 *-darwin*)
8474 ax_pthread_flags="-pthread $ax_pthread_flags"
8475 ;;
cristy73bd4a52010-10-05 11:24:23 +00008476esac
8477
8478if test x"$ax_pthread_ok" = xno; then
8479for flag in $ax_pthread_flags; do
8480
8481 case $flag in
8482 none)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8484$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8485 ;;
8486
8487 -*)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8489$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8490 PTHREAD_CFLAGS="$flag"
8491 ;;
8492
cristya316db12011-10-24 00:49:45 +00008493 pthread-config)
8494 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008495set dummy pthread-config; ac_word=$2
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008498if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008499 $as_echo_n "(cached) " >&6
8500else
8501 if test -n "$ax_pthread_config"; then
8502 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511 ac_cv_prog_ax_pthread_config="yes"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515done
8516 done
8517IFS=$as_save_IFS
8518
8519 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8520fi
8521fi
8522ax_pthread_config=$ac_cv_prog_ax_pthread_config
8523if test -n "$ax_pthread_config"; then
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8525$as_echo "$ax_pthread_config" >&6; }
8526else
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8528$as_echo "no" >&6; }
8529fi
8530
8531
cristya316db12011-10-24 00:49:45 +00008532 if test x"$ax_pthread_config" = xno; then continue; fi
8533 PTHREAD_CFLAGS="`pthread-config --cflags`"
8534 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8535 ;;
cristy73bd4a52010-10-05 11:24:23 +00008536
8537 *)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8539$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8540 PTHREAD_LIBS="-l$flag"
8541 ;;
8542 esac
8543
8544 save_LIBS="$LIBS"
8545 save_CFLAGS="$CFLAGS"
8546 LIBS="$PTHREAD_LIBS $LIBS"
8547 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8548
8549 # Check for various functions. We must include pthread.h,
8550 # since some functions may be macros. (On the Sequent, we
8551 # need a special flag -Kthread to make this header compile.)
8552 # We check for pthread_join because it is in -lpthread on IRIX
8553 # while pthread_create is in libc. We check for pthread_attr_init
8554 # due to DEC craziness with -lpthreads. We check for
8555 # pthread_cleanup_push because it is one of the few pthread
8556 # functions on Solaris that doesn't have a non-functional libc stub.
8557 # We try pthread_create on general principles.
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h. */
8560#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008561 static void routine(void *a) { a = 0; }
8562 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008563int
8564main ()
8565{
8566pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008567 pthread_create(&th, 0, start_routine, 0);
8568 pthread_join(th, 0);
8569 pthread_attr_init(&attr);
8570 pthread_cleanup_push(routine, 0);
8571 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008572 ;
8573 return 0;
8574}
8575_ACEOF
8576if ac_fn_c_try_link "$LINENO"; then :
8577 ax_pthread_ok=yes
8578fi
8579rm -f core conftest.err conftest.$ac_objext \
8580 conftest$ac_exeext conftest.$ac_ext
8581
8582 LIBS="$save_LIBS"
8583 CFLAGS="$save_CFLAGS"
8584
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8586$as_echo "$ax_pthread_ok" >&6; }
8587 if test "x$ax_pthread_ok" = xyes; then
8588 break;
8589 fi
8590
8591 PTHREAD_LIBS=""
8592 PTHREAD_CFLAGS=""
8593done
8594fi
8595
8596# Various other checks:
8597if test "x$ax_pthread_ok" = xyes; then
8598 save_LIBS="$LIBS"
8599 LIBS="$PTHREAD_LIBS $LIBS"
8600 save_CFLAGS="$CFLAGS"
8601 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8602
8603 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00008604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00008605$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00008606 attr_name=unknown
8607 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00008609/* end confdefs.h. */
8610#include <pthread.h>
8611int
8612main ()
8613{
cristya316db12011-10-24 00:49:45 +00008614int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008615 ;
8616 return 0;
8617}
8618_ACEOF
8619if ac_fn_c_try_link "$LINENO"; then :
8620 attr_name=$attr; break
8621fi
8622rm -f core conftest.err conftest.$ac_objext \
8623 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00008624 done
cristy73bd4a52010-10-05 11:24:23 +00008625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8626$as_echo "$attr_name" >&6; }
8627 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8628
8629cat >>confdefs.h <<_ACEOF
8630#define PTHREAD_CREATE_JOINABLE $attr_name
8631_ACEOF
8632
8633 fi
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8636$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8637 flag=no
8638 case "${host_cpu}-${host_os}" in
8639 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8640 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8641 esac
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8643$as_echo "${flag}" >&6; }
8644 if test "x$flag" != xno; then
8645 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8646 fi
8647
cristya316db12011-10-24 00:49:45 +00008648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8649$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8650if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652else
8653
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h. */
8656
8657 #include <pthread.h>
8658int
8659main ()
8660{
8661int i = PTHREAD_PRIO_INHERIT;
8662 ;
8663 return 0;
8664}
8665_ACEOF
8666if ac_fn_c_try_link "$LINENO"; then :
8667 ax_cv_PTHREAD_PRIO_INHERIT=yes
8668else
8669 ax_cv_PTHREAD_PRIO_INHERIT=no
8670fi
8671rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8673
8674fi
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8676$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8677 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8678
8679$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8680
8681fi
8682
cristy73bd4a52010-10-05 11:24:23 +00008683 LIBS="$save_LIBS"
8684 CFLAGS="$save_CFLAGS"
8685
8686 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00008687 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00008688 for ac_prog in xlc_r cc_r
8689do
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691set dummy $ac_prog; ac_word=$2
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008694if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008695 $as_echo_n "(cached) " >&6
8696else
8697 if test -n "$PTHREAD_CC"; then
8698 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_prog_PTHREAD_CC="$ac_prog"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8710 fi
8711done
8712 done
8713IFS=$as_save_IFS
8714
8715fi
8716fi
8717PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8718if test -n "$PTHREAD_CC"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8720$as_echo "$PTHREAD_CC" >&6; }
8721else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
8724fi
8725
8726
8727 test -n "$PTHREAD_CC" && break
8728done
8729test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8730
8731 else
8732 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00008733 fi
cristy73bd4a52010-10-05 11:24:23 +00008734else
8735 PTHREAD_CC="$CC"
8736fi
8737
8738
8739
8740
8741
8742# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8743if test x"$ax_pthread_ok" = xyes; then
8744
8745$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8746
8747 :
8748else
8749 ax_pthread_ok=no
8750
8751fi
8752ac_ext=c
8753ac_cpp='$CPP $CPPFLAGS'
8754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8756ac_compiler_gnu=$ac_cv_c_compiler_gnu
8757
8758
cristy7acf8fb2010-09-23 19:58:53 +00008759 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00008760 have_threads=yes
8761 DEF_THREAD="$PTHREAD_CFLAGS"
8762 CFLAGS="$CFLAGS $DEF_THREAD"
8763 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8764 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00008765 { $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 +00008766$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8767 CC="$PTHREAD_CC"
8768 fi
cristy55bf91c2010-09-24 00:29:41 +00008769
8770$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8771
cristy3ed852e2009-09-05 21:47:34 +00008772 fi
8773fi
8774
8775# Enable support for OpenMP
8776if test "$have_threads" != 'yes'; then
8777 ac_cv_prog_c_openmp=unsupported
8778fi
8779
8780 OPENMP_CFLAGS=
8781 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00008782if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008783 enableval=$enable_openmp;
8784fi
8785
8786 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00008787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00008788$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008789if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008790 $as_echo_n "(cached) " >&6
8791else
cristy8b350f62009-11-15 23:12:43 +00008792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008794
8795#ifndef _OPENMP
8796 choke me
8797#endif
8798#include <omp.h>
8799int main () { return omp_get_num_threads (); }
8800
8801_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008802if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008803 ac_cv_prog_c_openmp='none needed'
8804else
cristy8b350f62009-11-15 23:12:43 +00008805 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00008806 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8807 ac_save_CFLAGS=$CFLAGS
8808 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00008809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00008811
8812#ifndef _OPENMP
8813 choke me
8814#endif
8815#include <omp.h>
8816int main () { return omp_get_num_threads (); }
8817
8818_ACEOF
cristy8b350f62009-11-15 23:12:43 +00008819if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00008820 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00008821fi
cristy8b350f62009-11-15 23:12:43 +00008822rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008824 CFLAGS=$ac_save_CFLAGS
8825 if test "$ac_cv_prog_c_openmp" != unsupported; then
8826 break
8827 fi
8828 done
8829fi
cristy8b350f62009-11-15 23:12:43 +00008830rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00008832fi
cristy8b350f62009-11-15 23:12:43 +00008833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00008834$as_echo "$ac_cv_prog_c_openmp" >&6; }
8835 case $ac_cv_prog_c_openmp in #(
8836 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00008837 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00008838 *)
cristy8b350f62009-11-15 23:12:43 +00008839 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00008840 esac
8841 fi
8842
8843
8844CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8845MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8846
cristy391f1ce2010-09-09 17:23:28 +00008847if test "$enable_openmp" != no; then
8848 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8849 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8850 fi
8851fi
cristy3ed852e2009-09-05 21:47:34 +00008852
cristy736173a2009-09-20 21:18:22 +00008853# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00008854
8855
cristy73bd4a52010-10-05 11:24:23 +00008856ac_ext=c
8857ac_cpp='$CPP $CPPFLAGS'
8858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860ac_compiler_gnu=$ac_cv_c_compiler_gnu
8861
8862ax_pthread_ok=no
8863
8864# We used to check for pthread.h first, but this fails if pthread.h
8865# requires special compiler flags (e.g. on True64 or Sequent).
8866# It gets checked for in the link test anyway.
8867
8868# First of all, check if the user has set any of the PTHREAD_LIBS,
8869# etcetera environment variables, and if threads linking works using
8870# them:
8871if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8872 save_CFLAGS="$CFLAGS"
8873 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8874 save_LIBS="$LIBS"
8875 LIBS="$PTHREAD_LIBS $LIBS"
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8877$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h. */
8880
8881/* Override any GCC internal prototype to avoid an error.
8882 Use char because int might match the return type of a GCC
8883 builtin and then its argument prototype would still apply. */
8884#ifdef __cplusplus
8885extern "C"
8886#endif
8887char pthread_join ();
8888int
8889main ()
8890{
8891return pthread_join ();
8892 ;
8893 return 0;
8894}
8895_ACEOF
8896if ac_fn_c_try_link "$LINENO"; then :
8897 ax_pthread_ok=yes
8898fi
8899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8902$as_echo "$ax_pthread_ok" >&6; }
8903 if test x"$ax_pthread_ok" = xno; then
8904 PTHREAD_LIBS=""
8905 PTHREAD_CFLAGS=""
8906 fi
8907 LIBS="$save_LIBS"
8908 CFLAGS="$save_CFLAGS"
8909fi
8910
8911# We must check for the threads library under a number of different
8912# names; the ordering is very important because some systems
8913# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8914# libraries is broken (non-POSIX).
8915
8916# Create a list of thread flags to try. Items starting with a "-" are
8917# C compiler flags, and other items are library names, except for "none"
8918# which indicates that we try without any flags at all, and "pthread-config"
8919# which is a program returning the flags for the Pth emulation library.
8920
cristy18307f12011-12-30 01:20:16 +00008921ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008922
8923# The ordering *is* (sometimes) important. Some notes on the
8924# individual items follow:
8925
8926# pthreads: AIX (must check this before -lpthread)
8927# none: in case threads are in libc; should be tried before -Kthread and
8928# other compiler flags to prevent continual compiler warnings
8929# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8930# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8931# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8932# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8933# -pthreads: Solaris/gcc
8934# -mthreads: Mingw32/gcc, Lynx/gcc
8935# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8936# doesn't hurt to check since this sometimes defines pthreads too;
8937# also defines -D_REENTRANT)
8938# ... -mt is also the pthreads flag for HP/aCC
8939# pthread: Linux, etcetera
8940# --thread-safe: KAI C++
8941# pthread-config: use pthread-config program (for GNU Pth library)
8942
8943case "${host_cpu}-${host_os}" in
8944 *solaris*)
8945
8946 # On Solaris (at least, for some versions), libc contains stubbed
8947 # (non-functional) versions of the pthreads routines, so link-based
8948 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8949 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8950 # a function called by this macro, so we could check for that, but
8951 # who knows whether they'll stub that too in a future libc.) So,
8952 # we'll just look for -pthreads and -lpthread first:
8953
8954 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8955 ;;
8956
cristya316db12011-10-24 00:49:45 +00008957 *-darwin*)
8958 ax_pthread_flags="-pthread $ax_pthread_flags"
8959 ;;
cristy73bd4a52010-10-05 11:24:23 +00008960esac
8961
8962if test x"$ax_pthread_ok" = xno; then
8963for flag in $ax_pthread_flags; do
8964
8965 case $flag in
8966 none)
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8968$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8969 ;;
8970
8971 -*)
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8973$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8974 PTHREAD_CFLAGS="$flag"
8975 ;;
8976
cristya316db12011-10-24 00:49:45 +00008977 pthread-config)
8978 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008979set dummy pthread-config; ac_word=$2
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008982if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008983 $as_echo_n "(cached) " >&6
8984else
8985 if test -n "$ax_pthread_config"; then
8986 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8987else
8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991 IFS=$as_save_IFS
8992 test -z "$as_dir" && as_dir=.
8993 for ac_exec_ext in '' $ac_executable_extensions; do
8994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995 ac_cv_prog_ax_pthread_config="yes"
8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997 break 2
8998 fi
8999done
9000 done
9001IFS=$as_save_IFS
9002
9003 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9004fi
9005fi
9006ax_pthread_config=$ac_cv_prog_ax_pthread_config
9007if test -n "$ax_pthread_config"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9009$as_echo "$ax_pthread_config" >&6; }
9010else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9012$as_echo "no" >&6; }
9013fi
9014
9015
cristya316db12011-10-24 00:49:45 +00009016 if test x"$ax_pthread_config" = xno; then continue; fi
9017 PTHREAD_CFLAGS="`pthread-config --cflags`"
9018 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9019 ;;
cristy73bd4a52010-10-05 11:24:23 +00009020
9021 *)
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9023$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9024 PTHREAD_LIBS="-l$flag"
9025 ;;
9026 esac
9027
9028 save_LIBS="$LIBS"
9029 save_CFLAGS="$CFLAGS"
9030 LIBS="$PTHREAD_LIBS $LIBS"
9031 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9032
9033 # Check for various functions. We must include pthread.h,
9034 # since some functions may be macros. (On the Sequent, we
9035 # need a special flag -Kthread to make this header compile.)
9036 # We check for pthread_join because it is in -lpthread on IRIX
9037 # while pthread_create is in libc. We check for pthread_attr_init
9038 # due to DEC craziness with -lpthreads. We check for
9039 # pthread_cleanup_push because it is one of the few pthread
9040 # functions on Solaris that doesn't have a non-functional libc stub.
9041 # We try pthread_create on general principles.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h. */
9044#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009045 static void routine(void *a) { a = 0; }
9046 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009047int
9048main ()
9049{
9050pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009051 pthread_create(&th, 0, start_routine, 0);
9052 pthread_join(th, 0);
9053 pthread_attr_init(&attr);
9054 pthread_cleanup_push(routine, 0);
9055 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009056 ;
9057 return 0;
9058}
9059_ACEOF
9060if ac_fn_c_try_link "$LINENO"; then :
9061 ax_pthread_ok=yes
9062fi
9063rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065
9066 LIBS="$save_LIBS"
9067 CFLAGS="$save_CFLAGS"
9068
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9070$as_echo "$ax_pthread_ok" >&6; }
9071 if test "x$ax_pthread_ok" = xyes; then
9072 break;
9073 fi
9074
9075 PTHREAD_LIBS=""
9076 PTHREAD_CFLAGS=""
9077done
9078fi
9079
9080# Various other checks:
9081if test "x$ax_pthread_ok" = xyes; then
9082 save_LIBS="$LIBS"
9083 LIBS="$PTHREAD_LIBS $LIBS"
9084 save_CFLAGS="$CFLAGS"
9085 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9086
9087 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009089$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009090 attr_name=unknown
9091 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009093/* end confdefs.h. */
9094#include <pthread.h>
9095int
9096main ()
9097{
cristya316db12011-10-24 00:49:45 +00009098int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009099 ;
9100 return 0;
9101}
9102_ACEOF
9103if ac_fn_c_try_link "$LINENO"; then :
9104 attr_name=$attr; break
9105fi
9106rm -f core conftest.err conftest.$ac_objext \
9107 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009108 done
cristy73bd4a52010-10-05 11:24:23 +00009109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9110$as_echo "$attr_name" >&6; }
9111 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9112
9113cat >>confdefs.h <<_ACEOF
9114#define PTHREAD_CREATE_JOINABLE $attr_name
9115_ACEOF
9116
9117 fi
9118
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9120$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9121 flag=no
9122 case "${host_cpu}-${host_os}" in
9123 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9124 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9125 esac
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9127$as_echo "${flag}" >&6; }
9128 if test "x$flag" != xno; then
9129 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9130 fi
9131
cristya316db12011-10-24 00:49:45 +00009132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9133$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9134if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139/* end confdefs.h. */
9140
9141 #include <pthread.h>
9142int
9143main ()
9144{
9145int i = PTHREAD_PRIO_INHERIT;
9146 ;
9147 return 0;
9148}
9149_ACEOF
9150if ac_fn_c_try_link "$LINENO"; then :
9151 ax_cv_PTHREAD_PRIO_INHERIT=yes
9152else
9153 ax_cv_PTHREAD_PRIO_INHERIT=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157
9158fi
9159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9160$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9161 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9162
9163$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9164
9165fi
9166
cristy73bd4a52010-10-05 11:24:23 +00009167 LIBS="$save_LIBS"
9168 CFLAGS="$save_CFLAGS"
9169
9170 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009171 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009172 for ac_prog in xlc_r cc_r
9173do
9174 # Extract the first word of "$ac_prog", so it can be a program name with args.
9175set dummy $ac_prog; ac_word=$2
9176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009178if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009179 $as_echo_n "(cached) " >&6
9180else
9181 if test -n "$PTHREAD_CC"; then
9182 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_PTHREAD_CC="$ac_prog"
9192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195done
9196 done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9202if test -n "$PTHREAD_CC"; then
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9204$as_echo "$PTHREAD_CC" >&6; }
9205else
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211 test -n "$PTHREAD_CC" && break
9212done
9213test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9214
9215 else
9216 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009217 fi
cristy73bd4a52010-10-05 11:24:23 +00009218else
9219 PTHREAD_CC="$CC"
9220fi
9221
9222
9223
9224
9225
9226# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9227if test x"$ax_pthread_ok" = xyes; then
9228
9229$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9230
9231 :
9232else
9233 ax_pthread_ok=no
9234
9235fi
9236ac_ext=c
9237ac_cpp='$CPP $CPPFLAGS'
9238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9240ac_compiler_gnu=$ac_cv_c_compiler_gnu
9241
9242
9243
9244# Check whether --enable-opencl was given.
9245if test "${enable_opencl+set}" = set; then :
9246 enableval=$enable_opencl; disable_opencl=$enableval
9247else
9248 disable_opencl='yes'
9249fi
9250
9251
9252if test "$disable_opencl" = 'yes'; then
9253 ac_ext=c
9254ac_cpp='$CPP $CPPFLAGS'
9255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_c_compiler_gnu
9258
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9260$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009261if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009262 $as_echo_n "(cached) " >&6
9263else
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h. */
9266
9267int
9268main ()
9269{
9270#ifndef _MSC_VER
9271 choke me
9272#endif
9273
9274 ;
9275 return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_compile "$LINENO"; then :
9279 ax_compiler_ms=yes
9280else
9281 ax_compiler_ms=no
9282fi
9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284ax_cv_c_compiler_ms=$ax_compiler_ms
9285
9286fi
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9288$as_echo "$ax_cv_c_compiler_ms" >&6; }
9289 if test X$ax_compiler_ms = Xno; then :
9290 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9291fi
9292
9293 ax_save_CPPFLAGS=$CPPFLAGS
9294 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9295 for ac_header in CL/cl.h OpenCL/cl.h
9296do :
9297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9298ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009299if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009300 cat >>confdefs.h <<_ACEOF
9301#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9302_ACEOF
9303
9304fi
9305
9306done
9307
9308 CPPFLAGS=$ax_save_CPPFLAGS
9309
9310 for ac_header in windows.h
9311do :
9312 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009313if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009314 cat >>confdefs.h <<_ACEOF
9315#define HAVE_WINDOWS_H 1
9316_ACEOF
9317
9318fi
9319
9320done
9321
9322
9323
9324
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9326$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009327if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009328 $as_echo_n "(cached) " >&6
9329else
9330 ax_cv_check_cl_libcl=no
9331 case $host_cpu in
9332 x86_64) ax_check_cl_libdir=lib64 ;;
9333 *) ax_check_cl_libdir=lib ;;
9334 esac
9335 ax_save_CPPFLAGS=$CPPFLAGS
9336 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9337 ax_save_LIBS=$LIBS
9338 LIBS=""
9339 ax_check_libs="-lOpenCL -lCL -lclparser"
9340 for ax_lib in $ax_check_libs; do
9341 if test X$ax_compiler_ms = Xyes; then :
9342 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9343else
9344 ax_try_lib=$ax_lib
9345fi
9346 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348/* end confdefs.h. */
9349
9350 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9351 # include <windows.h>
9352 # endif
9353 # ifdef HAVE_CL_CL_H
9354 # include <CL/cl.h>
9355 # elif defined(HAVE_OPENCL_CL_H)
9356 # include <OpenCL/cl.h>
9357 # else
9358 # error no CL.h
9359 # endif
9360int
9361main ()
9362{
9363clCreateContextFromType(0,0,0,0,0)
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368if ac_fn_c_try_link "$LINENO"; then :
9369 ax_cv_check_cl_libcl=$ax_try_lib; break
9370else
9371 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"
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373/* end confdefs.h. */
9374
9375 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9376 # include <windows.h>
9377 # endif
9378 # ifdef HAVE_CL_CL_H
9379 # include <CL/cl.h>
9380 # elif defined(HAVE_OPENCL_CL_H)
9381 # include <OpenCL/cl.h>
9382 # else
9383 # error no CL.h
9384 # endif
9385int
9386main ()
9387{
9388clCreateContextFromType(0,0,0,0,0)
9389 ;
9390 return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9395else
cristy78c5a0c2010-12-04 20:00:59 +00009396 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 +00009397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398/* end confdefs.h. */
9399
9400 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9401 # include <windows.h>
9402 # endif
9403 # ifdef HAVE_CL_CL_H
9404 # include <CL/cl.h>
9405 # elif defined(HAVE_OPENCL_CL_H)
9406 # include <OpenCL/cl.h>
9407 # else
9408 # error no CL.h
9409 # endif
9410int
9411main ()
9412{
9413clCreateContextFromType(0,0,0,0,0)
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9420fi
9421rm -f core conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423fi
9424rm -f core conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9426fi
9427rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 done
9430
cristyc3f8b8e2011-12-22 14:55:16 +00009431 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009432 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434/* end confdefs.h. */
9435
9436 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9437 # include <windows.h>
9438 # endif
9439 # ifdef HAVE_CL_CL_H
9440 # include <CL/cl.h>
9441 # elif defined(HAVE_OPENCL_CL_H)
9442 # include <OpenCL/cl.h>
9443 # else
9444 # error no CL.h
9445 # endif
9446int
9447main ()
9448{
9449clCreateContextFromType(0,0,0,0,0)
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454if ac_fn_c_try_link "$LINENO"; then :
9455 ax_cv_check_cl_libcl=$LIBS
9456fi
9457rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459fi
9460
9461 LIBS=$ax_save_LIBS
9462 CPPFLAGS=$ax_save_CPPFLAGS
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9465$as_echo "$ax_cv_check_cl_libcl" >&6; }
9466
9467 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9468 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9469else
9470 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9471$as_echo "#define _OPENCL 1" >>confdefs.h
9472
9473fi
9474 ac_ext=c
9475ac_cpp='$CPP $CPPFLAGS'
9476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9478ac_compiler_gnu=$ac_cv_c_compiler_gnu
9479
9480fi
9481
9482
9483
9484
cristyc7083c12009-10-14 03:16:55 +00009485CFLAGS="$CL_CFLAGS $CFLAGS"
9486LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009487
cristy391f1ce2010-09-09 17:23:28 +00009488if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009489 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009490 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9491 fi
cristyfd9dcd42010-08-08 18:07:02 +00009492fi
cristy2e8b51d2009-10-17 18:26:15 +00009493
cristy3ed852e2009-09-05 21:47:34 +00009494########
9495#
9496# Check for large file support
9497#
9498########
9499# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009500if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009501 enableval=$enable_largefile;
9502fi
9503
9504if test "$enable_largefile" != no; then
9505
cristy8b350f62009-11-15 23:12:43 +00009506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009507$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009508if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009509 $as_echo_n "(cached) " >&6
9510else
9511 ac_cv_sys_largefile_CC=no
9512 if test "$GCC" != yes; then
9513 ac_save_CC=$CC
9514 while :; do
9515 # IRIX 6.2 and later do not support large files by default,
9516 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009518/* end confdefs.h. */
9519#include <sys/types.h>
9520 /* Check that off_t can represent 2**63 - 1 correctly.
9521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9522 since some C++ compilers masquerading as C compilers
9523 incorrectly reject 9223372036854775807. */
9524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9526 && LARGE_OFF_T % 2147483647 == 1)
9527 ? 1 : -1];
9528int
9529main ()
9530{
9531
9532 ;
9533 return 0;
9534}
9535_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009536 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009537 break
cristy3ed852e2009-09-05 21:47:34 +00009538fi
cristy3ed852e2009-09-05 21:47:34 +00009539rm -f core conftest.err conftest.$ac_objext
9540 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009541 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009542 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009543fi
cristy3ed852e2009-09-05 21:47:34 +00009544rm -f core conftest.err conftest.$ac_objext
9545 break
9546 done
9547 CC=$ac_save_CC
9548 rm -f conftest.$ac_ext
9549 fi
9550fi
cristy8b350f62009-11-15 23:12:43 +00009551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009552$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9553 if test "$ac_cv_sys_largefile_CC" != no; then
9554 CC=$CC$ac_cv_sys_largefile_CC
9555 fi
9556
cristy8b350f62009-11-15 23:12:43 +00009557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009558$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009559if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009560 $as_echo_n "(cached) " >&6
9561else
9562 while :; do
cristy8b350f62009-11-15 23:12:43 +00009563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009564/* end confdefs.h. */
9565#include <sys/types.h>
9566 /* Check that off_t can represent 2**63 - 1 correctly.
9567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9568 since some C++ compilers masquerading as C compilers
9569 incorrectly reject 9223372036854775807. */
9570#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9572 && LARGE_OFF_T % 2147483647 == 1)
9573 ? 1 : -1];
9574int
9575main ()
9576{
9577
9578 ;
9579 return 0;
9580}
9581_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009582if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009583 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009584fi
cristy3ed852e2009-09-05 21:47:34 +00009585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009587/* end confdefs.h. */
9588#define _FILE_OFFSET_BITS 64
9589#include <sys/types.h>
9590 /* Check that off_t can represent 2**63 - 1 correctly.
9591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9592 since some C++ compilers masquerading as C compilers
9593 incorrectly reject 9223372036854775807. */
9594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9596 && LARGE_OFF_T % 2147483647 == 1)
9597 ? 1 : -1];
9598int
9599main ()
9600{
9601
9602 ;
9603 return 0;
9604}
9605_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009606if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009607 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +00009608fi
cristy3ed852e2009-09-05 21:47:34 +00009609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610 ac_cv_sys_file_offset_bits=unknown
9611 break
9612done
9613fi
cristy8b350f62009-11-15 23:12:43 +00009614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +00009615$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9616case $ac_cv_sys_file_offset_bits in #(
9617 no | unknown) ;;
9618 *)
9619cat >>confdefs.h <<_ACEOF
9620#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9621_ACEOF
9622;;
9623esac
9624rm -rf conftest*
9625 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +00009626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009627$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009628if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009629 $as_echo_n "(cached) " >&6
9630else
9631 while :; do
cristy8b350f62009-11-15 23:12:43 +00009632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009633/* end confdefs.h. */
9634#include <sys/types.h>
9635 /* Check that off_t can represent 2**63 - 1 correctly.
9636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9637 since some C++ compilers masquerading as C compilers
9638 incorrectly reject 9223372036854775807. */
9639#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9641 && LARGE_OFF_T % 2147483647 == 1)
9642 ? 1 : -1];
9643int
9644main ()
9645{
9646
9647 ;
9648 return 0;
9649}
9650_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009651if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009652 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +00009653fi
cristy3ed852e2009-09-05 21:47:34 +00009654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009656/* end confdefs.h. */
9657#define _LARGE_FILES 1
9658#include <sys/types.h>
9659 /* Check that off_t can represent 2**63 - 1 correctly.
9660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9661 since some C++ compilers masquerading as C compilers
9662 incorrectly reject 9223372036854775807. */
9663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9665 && LARGE_OFF_T % 2147483647 == 1)
9666 ? 1 : -1];
9667int
9668main ()
9669{
9670
9671 ;
9672 return 0;
9673}
9674_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009675if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009676 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +00009677fi
cristy3ed852e2009-09-05 21:47:34 +00009678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9679 ac_cv_sys_large_files=unknown
9680 break
9681done
9682fi
cristy8b350f62009-11-15 23:12:43 +00009683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009684$as_echo "$ac_cv_sys_large_files" >&6; }
9685case $ac_cv_sys_large_files in #(
9686 no | unknown) ;;
9687 *)
9688cat >>confdefs.h <<_ACEOF
9689#define _LARGE_FILES $ac_cv_sys_large_files
9690_ACEOF
9691;;
9692esac
9693rm -rf conftest*
9694 fi
9695fi
9696
cristy8b350f62009-11-15 23:12:43 +00009697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009698$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009699if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009700 $as_echo_n "(cached) " >&6
9701else
9702 while :; do
cristy8b350f62009-11-15 23:12:43 +00009703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009704/* end confdefs.h. */
9705#include <sys/types.h> /* for off_t */
9706 #include <stdio.h>
9707int
9708main ()
9709{
9710int (*fp) (FILE *, off_t, int) = fseeko;
9711 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9712 ;
9713 return 0;
9714}
9715_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009716if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009717 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +00009718fi
cristy8b350f62009-11-15 23:12:43 +00009719rm -f core conftest.err conftest.$ac_objext \
9720 conftest$ac_exeext conftest.$ac_ext
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009722/* end confdefs.h. */
9723#define _LARGEFILE_SOURCE 1
9724#include <sys/types.h> /* for off_t */
9725 #include <stdio.h>
9726int
9727main ()
9728{
9729int (*fp) (FILE *, off_t, int) = fseeko;
9730 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9731 ;
9732 return 0;
9733}
9734_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009736 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +00009737fi
cristy8b350f62009-11-15 23:12:43 +00009738rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009740 ac_cv_sys_largefile_source=unknown
9741 break
9742done
9743fi
cristy8b350f62009-11-15 23:12:43 +00009744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +00009745$as_echo "$ac_cv_sys_largefile_source" >&6; }
9746case $ac_cv_sys_largefile_source in #(
9747 no | unknown) ;;
9748 *)
9749cat >>confdefs.h <<_ACEOF
9750#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9751_ACEOF
9752;;
9753esac
9754rm -rf conftest*
9755
9756# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9757# in glibc 2.1.3, but that breaks too many other things.
9758# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9759if test $ac_cv_sys_largefile_source != unknown; then
9760
cristy8b350f62009-11-15 23:12:43 +00009761$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009762
9763fi
9764
9765LFS_CPPFLAGS=''
9766if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +00009767 case $ac_cv_sys_file_offset_bits in
9768 no)
9769 # nothing to do here as the host supports LFS fine
9770 ;;
9771 unknown)
cristy8b350f62009-11-15 23:12:43 +00009772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +00009773$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00009774 if test "$cross_compiling" = yes; then :
9775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00009776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00009777as_fn_error $? "cannot run test program while cross compiling
9778See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00009779else
cristy8b350f62009-11-15 23:12:43 +00009780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009782#include <unistd.h>
9783 main () {
9784 exit(!(sizeof(off_t) == 8));
9785 }
cristyda16f162011-02-19 23:52:17 +00009786int
9787main ()
9788{
9789
9790 ;
9791 return 0;
9792}
cristy3ed852e2009-09-05 21:47:34 +00009793_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009794if ac_fn_c_try_run "$LINENO"; then :
9795 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009796
cristy09b53e12011-10-14 12:47:22 +00009797 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9798$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009799else
cristy09b53e12011-10-14 12:47:22 +00009800 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9801$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +00009802fi
cristy8b350f62009-11-15 23:12:43 +00009803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9804 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009805fi
9806
cristyc1e0cc12011-09-21 16:41:16 +00009807 ;;
9808 *)
9809 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9810 ;;
9811 esac
cristy3ed852e2009-09-05 21:47:34 +00009812 if test "$ac_cv_sys_large_files" != 'no'; then
9813 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9814 fi
9815 if test "$ac_cv_sys_largefile_source" != 'no'; then
9816 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9817 fi
9818fi
9819
9820
cristy3ed852e2009-09-05 21:47:34 +00009821# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +00009822enable_dlopen=yes
9823
9824
9825
9826case `pwd` in
9827 *\ * | *\ *)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9829$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9830esac
9831
9832
9833
cristy99bd5232011-12-07 14:38:20 +00009834macro_version='2.4.2'
9835macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +00009836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849ltmain="$ac_aux_dir/ltmain.sh"
9850
cristy0c60a692010-11-04 01:09:47 +00009851# Backslashify metacharacters that are still active within
9852# double-quoted strings.
9853sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9854
9855# Same as above, but do not quote variable references.
9856double_quote_subst='s/\(["`\\]\)/\\\1/g'
9857
9858# Sed substitution to delay expansion of an escaped shell variable in a
9859# double_quote_subst'ed string.
9860delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9861
9862# Sed substitution to delay expansion of an escaped single quote.
9863delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9864
9865# Sed substitution to avoid accidental globbing in evaled expressions
9866no_glob_subst='s/\*/\\\*/g'
9867
cristy73bd4a52010-10-05 11:24:23 +00009868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9869$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009870if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$NM"; then
9874 # Let the user override the test.
9875 lt_cv_path_NM="$NM"
9876else
9877 lt_nm_to_check="${ac_tool_prefix}nm"
9878 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9879 lt_nm_to_check="$lt_nm_to_check nm"
9880 fi
9881 for lt_tmp_nm in $lt_nm_to_check; do
9882 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9883 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9884 IFS="$lt_save_ifs"
9885 test -z "$ac_dir" && ac_dir=.
9886 tmp_nm="$ac_dir/$lt_tmp_nm"
9887 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9888 # Check to see if the nm accepts a BSD-compat flag.
9889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9890 # nm: unknown option "B" ignored
9891 # Tru64's nm complains that /dev/null is an invalid object file
9892 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9893 */dev/null* | *'Invalid file or object type'*)
9894 lt_cv_path_NM="$tmp_nm -B"
9895 break
9896 ;;
9897 *)
9898 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9899 */dev/null*)
9900 lt_cv_path_NM="$tmp_nm -p"
9901 break
9902 ;;
9903 *)
9904 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9905 continue # so that we can try to find one that supports BSD flags
9906 ;;
9907 esac
9908 ;;
9909 esac
9910 fi
9911 done
9912 IFS="$lt_save_ifs"
9913 done
9914 : ${lt_cv_path_NM=no}
9915fi
9916fi
9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9918$as_echo "$lt_cv_path_NM" >&6; }
9919if test "$lt_cv_path_NM" != "no"; then
9920 NM="$lt_cv_path_NM"
9921else
9922 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +00009923 if test -n "$DUMPBIN"; then :
9924 # Let the user override the test.
9925 else
9926 if test -n "$ac_tool_prefix"; then
9927 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009928 do
9929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009933if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009934 $as_echo_n "(cached) " >&6
9935else
9936 if test -n "$DUMPBIN"; then
9937 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9938else
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9948 break 2
9949 fi
9950done
9951 done
9952IFS=$as_save_IFS
9953
9954fi
9955fi
9956DUMPBIN=$ac_cv_prog_DUMPBIN
9957if test -n "$DUMPBIN"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9959$as_echo "$DUMPBIN" >&6; }
9960else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9963fi
9964
9965
9966 test -n "$DUMPBIN" && break
9967 done
9968fi
9969if test -z "$DUMPBIN"; then
9970 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +00009971 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +00009972do
9973 # Extract the first word of "$ac_prog", so it can be a program name with args.
9974set dummy $ac_prog; ac_word=$2
9975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9976$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009977if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009978 $as_echo_n "(cached) " >&6
9979else
9980 if test -n "$ac_ct_DUMPBIN"; then
9981 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9982else
9983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in $PATH
9985do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9993 fi
9994done
9995 done
9996IFS=$as_save_IFS
9997
9998fi
9999fi
10000ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10001if test -n "$ac_ct_DUMPBIN"; then
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10003$as_echo "$ac_ct_DUMPBIN" >&6; }
10004else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006$as_echo "no" >&6; }
10007fi
10008
10009
10010 test -n "$ac_ct_DUMPBIN" && break
10011done
10012
10013 if test "x$ac_ct_DUMPBIN" = x; then
10014 DUMPBIN=":"
10015 else
10016 case $cross_compiling:$ac_tool_warned in
10017yes:)
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10020ac_tool_warned=yes ;;
10021esac
10022 DUMPBIN=$ac_ct_DUMPBIN
10023 fi
10024fi
10025
cristy0c60a692010-11-04 01:09:47 +000010026 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10027 *COFF*)
10028 DUMPBIN="$DUMPBIN -symbols"
10029 ;;
10030 *)
10031 DUMPBIN=:
10032 ;;
10033 esac
10034 fi
cristy73bd4a52010-10-05 11:24:23 +000010035
10036 if test "$DUMPBIN" != ":"; then
10037 NM="$DUMPBIN"
10038 fi
10039fi
10040test -z "$NM" && NM=nm
10041
10042
10043
10044
10045
10046
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10048$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010049if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010050 $as_echo_n "(cached) " >&6
10051else
10052 lt_cv_nm_interface="BSD nm"
10053 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010054 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010055 (eval "$ac_compile" 2>conftest.err)
10056 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010057 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010058 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10059 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010060 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010061 cat conftest.out >&5
10062 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10063 lt_cv_nm_interface="MS dumpbin"
10064 fi
10065 rm -f conftest*
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10068$as_echo "$lt_cv_nm_interface" >&6; }
10069
10070# find the maximum length of command line arguments
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10072$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010073if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010074 $as_echo_n "(cached) " >&6
10075else
10076 i=0
10077 teststring="ABCD"
10078
10079 case $build_os in
10080 msdosdjgpp*)
10081 # On DJGPP, this test can blow up pretty badly due to problems in libc
10082 # (any single argument exceeding 2000 bytes causes a buffer overrun
10083 # during glob expansion). Even if it were fixed, the result of this
10084 # check would be larger than it should be.
10085 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10086 ;;
10087
10088 gnu*)
10089 # Under GNU Hurd, this test is not required because there is
10090 # no limit to the length of command line arguments.
10091 # Libtool will interpret -1 as no limit whatsoever
10092 lt_cv_sys_max_cmd_len=-1;
10093 ;;
10094
10095 cygwin* | mingw* | cegcc*)
10096 # On Win9x/ME, this test blows up -- it succeeds, but takes
10097 # about 5 minutes as the teststring grows exponentially.
10098 # Worse, since 9x/ME are not pre-emptively multitasking,
10099 # you end up with a "frozen" computer, even though with patience
10100 # the test eventually succeeds (with a max line length of 256k).
10101 # Instead, let's just punt: use the minimum linelength reported by
10102 # all of the supported platforms: 8192 (on NT/2K/XP).
10103 lt_cv_sys_max_cmd_len=8192;
10104 ;;
10105
cristy0c60a692010-11-04 01:09:47 +000010106 mint*)
10107 # On MiNT this can take a long time and run out of memory.
10108 lt_cv_sys_max_cmd_len=8192;
10109 ;;
10110
cristy73bd4a52010-10-05 11:24:23 +000010111 amigaos*)
10112 # On AmigaOS with pdksh, this test takes hours, literally.
10113 # So we just punt and use a minimum line length of 8192.
10114 lt_cv_sys_max_cmd_len=8192;
10115 ;;
10116
10117 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10118 # This has been around since 386BSD, at least. Likely further.
10119 if test -x /sbin/sysctl; then
10120 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10121 elif test -x /usr/sbin/sysctl; then
10122 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10123 else
10124 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10125 fi
10126 # And add a safety zone
10127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10129 ;;
10130
10131 interix*)
10132 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10133 lt_cv_sys_max_cmd_len=196608
10134 ;;
10135
cristy99bd5232011-12-07 14:38:20 +000010136 os2*)
10137 # The test takes a long time on OS/2.
10138 lt_cv_sys_max_cmd_len=8192
10139 ;;
10140
cristy73bd4a52010-10-05 11:24:23 +000010141 osf*)
10142 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10143 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10144 # nice to cause kernel panics so lets avoid the loop below.
10145 # First set a reasonable default.
10146 lt_cv_sys_max_cmd_len=16384
10147 #
10148 if test -x /sbin/sysconfig; then
10149 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10150 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10151 esac
10152 fi
10153 ;;
10154 sco3.2v5*)
10155 lt_cv_sys_max_cmd_len=102400
10156 ;;
10157 sysv5* | sco5v6* | sysv4.2uw2*)
10158 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10159 if test -n "$kargmax"; then
10160 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10161 else
10162 lt_cv_sys_max_cmd_len=32768
10163 fi
10164 ;;
10165 *)
10166 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10167 if test -n "$lt_cv_sys_max_cmd_len"; then
10168 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10170 else
10171 # Make teststring a little bigger before we do anything with it.
10172 # a 1K string should be a reasonable start.
10173 for i in 1 2 3 4 5 6 7 8 ; do
10174 teststring=$teststring$teststring
10175 done
10176 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10177 # If test is not a shell built-in, we'll probably end up computing a
10178 # maximum length that is only half of the actual maximum length, but
10179 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010180 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010181 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010182 test $i != 17 # 1/2 MB should be enough
10183 do
10184 i=`expr $i + 1`
10185 teststring=$teststring$teststring
10186 done
10187 # Only check the string length outside the loop.
10188 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10189 teststring=
10190 # Add a significant safety factor because C++ compilers can tack on
10191 # massive amounts of additional arguments before passing them to the
10192 # linker. It appears as though 1/2 is a usable value.
10193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10194 fi
10195 ;;
10196 esac
10197
10198fi
10199
10200if test -n $lt_cv_sys_max_cmd_len ; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10202$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10203else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10205$as_echo "none" >&6; }
10206fi
10207max_cmd_len=$lt_cv_sys_max_cmd_len
10208
10209
10210
10211
10212
10213
10214: ${CP="cp -f"}
10215: ${MV="mv -f"}
10216: ${RM="rm -f"}
10217
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10219$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10220# Try some XSI features
10221xsi_shell=no
10222( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010223 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10224 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010225 && eval 'test $(( 1 + 1 )) -eq 2 \
10226 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10227 && xsi_shell=yes
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10229$as_echo "$xsi_shell" >&6; }
10230
10231
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10233$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10234lt_shell_append=no
10235( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10236 >/dev/null 2>&1 \
10237 && lt_shell_append=yes
10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10239$as_echo "$lt_shell_append" >&6; }
10240
10241
10242if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10243 lt_unset=unset
10244else
10245 lt_unset=false
10246fi
10247
10248
10249
10250
10251
10252# test EBCDIC or ASCII
10253case `echo X|tr X '\101'` in
10254 A) # ASCII based system
10255 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10256 lt_SP2NL='tr \040 \012'
10257 lt_NL2SP='tr \015\012 \040\040'
10258 ;;
10259 *) # EBCDIC based system
10260 lt_SP2NL='tr \100 \n'
10261 lt_NL2SP='tr \r\n \100\100'
10262 ;;
10263esac
10264
10265
10266
10267
10268
10269
10270
10271
10272
cristyda16f162011-02-19 23:52:17 +000010273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10274$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10275if ${lt_cv_to_host_file_cmd+:} false; then :
10276 $as_echo_n "(cached) " >&6
10277else
10278 case $host in
10279 *-*-mingw* )
10280 case $build in
10281 *-*-mingw* ) # actually msys
10282 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10283 ;;
10284 *-*-cygwin* )
10285 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10286 ;;
10287 * ) # otherwise, assume *nix
10288 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10289 ;;
10290 esac
10291 ;;
10292 *-*-cygwin* )
10293 case $build in
10294 *-*-mingw* ) # actually msys
10295 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10296 ;;
10297 *-*-cygwin* )
10298 lt_cv_to_host_file_cmd=func_convert_file_noop
10299 ;;
10300 * ) # otherwise, assume *nix
10301 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10302 ;;
10303 esac
10304 ;;
10305 * ) # unhandled hosts (and "normal" native builds)
10306 lt_cv_to_host_file_cmd=func_convert_file_noop
10307 ;;
10308esac
10309
10310fi
10311
10312to_host_file_cmd=$lt_cv_to_host_file_cmd
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10314$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10315
10316
10317
10318
10319
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10321$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10322if ${lt_cv_to_tool_file_cmd+:} false; then :
10323 $as_echo_n "(cached) " >&6
10324else
10325 #assume ordinary cross tools, or native build.
10326lt_cv_to_tool_file_cmd=func_convert_file_noop
10327case $host in
10328 *-*-mingw* )
10329 case $build in
10330 *-*-mingw* ) # actually msys
10331 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10332 ;;
10333 esac
10334 ;;
10335esac
10336
10337fi
10338
10339to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10341$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10342
10343
10344
10345
10346
cristy73bd4a52010-10-05 11:24:23 +000010347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10348$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010349if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010350 $as_echo_n "(cached) " >&6
10351else
10352 lt_cv_ld_reload_flag='-r'
10353fi
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10355$as_echo "$lt_cv_ld_reload_flag" >&6; }
10356reload_flag=$lt_cv_ld_reload_flag
10357case $reload_flag in
10358"" | " "*) ;;
10359*) reload_flag=" $reload_flag" ;;
10360esac
10361reload_cmds='$LD$reload_flag -o $output$reload_objs'
10362case $host_os in
cristyda16f162011-02-19 23:52:17 +000010363 cygwin* | mingw* | pw32* | cegcc*)
10364 if test "$GCC" != yes; then
10365 reload_cmds=false
10366 fi
10367 ;;
cristy73bd4a52010-10-05 11:24:23 +000010368 darwin*)
10369 if test "$GCC" = yes; then
10370 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10371 else
10372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10373 fi
10374 ;;
10375esac
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385if test -n "$ac_tool_prefix"; then
10386 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10387set dummy ${ac_tool_prefix}objdump; ac_word=$2
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010390if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$OBJDUMP"; then
10394 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10395else
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10406 fi
10407done
10408 done
10409IFS=$as_save_IFS
10410
10411fi
10412fi
10413OBJDUMP=$ac_cv_prog_OBJDUMP
10414if test -n "$OBJDUMP"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10416$as_echo "$OBJDUMP" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422
10423fi
10424if test -z "$ac_cv_prog_OBJDUMP"; then
10425 ac_ct_OBJDUMP=$OBJDUMP
10426 # Extract the first word of "objdump", so it can be a program name with args.
10427set dummy objdump; ac_word=$2
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010430if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010431 $as_echo_n "(cached) " >&6
10432else
10433 if test -n "$ac_ct_OBJDUMP"; then
10434 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10435else
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
10441 for ac_exec_ext in '' $ac_executable_extensions; do
10442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10443 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10445 break 2
10446 fi
10447done
10448 done
10449IFS=$as_save_IFS
10450
10451fi
10452fi
10453ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10454if test -n "$ac_ct_OBJDUMP"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10456$as_echo "$ac_ct_OBJDUMP" >&6; }
10457else
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
10460fi
10461
10462 if test "x$ac_ct_OBJDUMP" = x; then
10463 OBJDUMP="false"
10464 else
10465 case $cross_compiling:$ac_tool_warned in
10466yes:)
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10469ac_tool_warned=yes ;;
10470esac
10471 OBJDUMP=$ac_ct_OBJDUMP
10472 fi
10473else
10474 OBJDUMP="$ac_cv_prog_OBJDUMP"
10475fi
10476
10477test -z "$OBJDUMP" && OBJDUMP=objdump
10478
10479
10480
10481
10482
10483
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10485$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010486if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010487 $as_echo_n "(cached) " >&6
10488else
10489 lt_cv_file_magic_cmd='$MAGIC_CMD'
10490lt_cv_file_magic_test_file=
10491lt_cv_deplibs_check_method='unknown'
10492# Need to set the preceding variable on all platforms that support
10493# interlibrary dependencies.
10494# 'none' -- dependencies not supported.
10495# `unknown' -- same as none, but documents that we really don't know.
10496# 'pass_all' -- all dependencies passed with no checks.
10497# 'test_compile' -- check by making test program.
10498# 'file_magic [[regex]]' -- check by looking for files in library path
10499# which responds to the $file_magic_cmd with a given extended regex.
10500# If you have `file' or equivalent on your system and you're not sure
10501# whether `pass_all' will *always* work, you probably want this one.
10502
10503case $host_os in
10504aix[4-9]*)
10505 lt_cv_deplibs_check_method=pass_all
10506 ;;
10507
10508beos*)
10509 lt_cv_deplibs_check_method=pass_all
10510 ;;
10511
10512bsdi[45]*)
10513 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10514 lt_cv_file_magic_cmd='/usr/bin/file -L'
10515 lt_cv_file_magic_test_file=/shlib/libc.so
10516 ;;
10517
10518cygwin*)
10519 # func_win32_libid is a shell function defined in ltmain.sh
10520 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10521 lt_cv_file_magic_cmd='func_win32_libid'
10522 ;;
10523
10524mingw* | pw32*)
10525 # Base MSYS/MinGW do not provide the 'file' command needed by
10526 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10527 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010528 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10529 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10531 lt_cv_file_magic_cmd='func_win32_libid'
10532 else
cristy0c60a692010-11-04 01:09:47 +000010533 # Keep this pattern in sync with the one in func_win32_libid.
10534 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 +000010535 lt_cv_file_magic_cmd='$OBJDUMP -f'
10536 fi
10537 ;;
10538
cristy0c60a692010-11-04 01:09:47 +000010539cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010540 # use the weaker test based on 'objdump'. See mingw*.
10541 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10542 lt_cv_file_magic_cmd='$OBJDUMP -f'
10543 ;;
10544
10545darwin* | rhapsody*)
10546 lt_cv_deplibs_check_method=pass_all
10547 ;;
10548
10549freebsd* | dragonfly*)
10550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10551 case $host_cpu in
10552 i*86 )
10553 # Not sure whether the presence of OpenBSD here was a mistake.
10554 # Let's accept both of them until this is cleared up.
10555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10556 lt_cv_file_magic_cmd=/usr/bin/file
10557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10558 ;;
10559 esac
10560 else
10561 lt_cv_deplibs_check_method=pass_all
10562 fi
10563 ;;
10564
10565gnu*)
10566 lt_cv_deplibs_check_method=pass_all
10567 ;;
10568
cristy0c60a692010-11-04 01:09:47 +000010569haiku*)
10570 lt_cv_deplibs_check_method=pass_all
10571 ;;
10572
cristy73bd4a52010-10-05 11:24:23 +000010573hpux10.20* | hpux11*)
10574 lt_cv_file_magic_cmd=/usr/bin/file
10575 case $host_cpu in
10576 ia64*)
10577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10578 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10579 ;;
10580 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010581 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 +000010582 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10583 ;;
10584 *)
cristy0c60a692010-11-04 01:09:47 +000010585 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 +000010586 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10587 ;;
10588 esac
10589 ;;
10590
10591interix[3-9]*)
10592 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10594 ;;
10595
10596irix5* | irix6* | nonstopux*)
10597 case $LD in
10598 *-32|*"-32 ") libmagic=32-bit;;
10599 *-n32|*"-n32 ") libmagic=N32;;
10600 *-64|*"-64 ") libmagic=64-bit;;
10601 *) libmagic=never-match;;
10602 esac
10603 lt_cv_deplibs_check_method=pass_all
10604 ;;
10605
cristy99bd5232011-12-07 14:38:20 +000010606# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000010607linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000010608 lt_cv_deplibs_check_method=pass_all
10609 ;;
10610
10611netbsd*)
10612 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10614 else
10615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10616 fi
10617 ;;
10618
10619newos6*)
10620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10621 lt_cv_file_magic_cmd=/usr/bin/file
10622 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10623 ;;
10624
10625*nto* | *qnx*)
10626 lt_cv_deplibs_check_method=pass_all
10627 ;;
10628
10629openbsd*)
10630 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10632 else
10633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10634 fi
10635 ;;
10636
10637osf3* | osf4* | osf5*)
10638 lt_cv_deplibs_check_method=pass_all
10639 ;;
10640
10641rdos*)
10642 lt_cv_deplibs_check_method=pass_all
10643 ;;
10644
10645solaris*)
10646 lt_cv_deplibs_check_method=pass_all
10647 ;;
10648
10649sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10650 lt_cv_deplibs_check_method=pass_all
10651 ;;
10652
10653sysv4 | sysv4.3*)
10654 case $host_vendor in
10655 motorola)
10656 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]'
10657 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10658 ;;
10659 ncr)
10660 lt_cv_deplibs_check_method=pass_all
10661 ;;
10662 sequent)
10663 lt_cv_file_magic_cmd='/bin/file'
10664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10665 ;;
10666 sni)
10667 lt_cv_file_magic_cmd='/bin/file'
10668 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10669 lt_cv_file_magic_test_file=/lib/libc.so
10670 ;;
10671 siemens)
10672 lt_cv_deplibs_check_method=pass_all
10673 ;;
10674 pc)
10675 lt_cv_deplibs_check_method=pass_all
10676 ;;
10677 esac
10678 ;;
10679
10680tpf*)
10681 lt_cv_deplibs_check_method=pass_all
10682 ;;
10683esac
10684
10685fi
10686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10687$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000010688
10689file_magic_glob=
10690want_nocaseglob=no
10691if test "$build" = "$host"; then
10692 case $host_os in
10693 mingw* | pw32*)
10694 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10695 want_nocaseglob=yes
10696 else
10697 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10698 fi
10699 ;;
10700 esac
10701fi
10702
cristy73bd4a52010-10-05 11:24:23 +000010703file_magic_cmd=$lt_cv_file_magic_cmd
10704deplibs_check_method=$lt_cv_deplibs_check_method
10705test -z "$deplibs_check_method" && deplibs_check_method=unknown
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
cristyda16f162011-02-19 23:52:17 +000010718
10719
10720
10721
10722
10723
10724
10725
10726
10727
cristy73bd4a52010-10-05 11:24:23 +000010728if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000010729 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10730set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010733if ${ac_cv_prog_DLLTOOL+:} false; then :
10734 $as_echo_n "(cached) " >&6
10735else
10736 if test -n "$DLLTOOL"; then
10737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10738else
10739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740for as_dir in $PATH
10741do
10742 IFS=$as_save_IFS
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10746 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 break 2
10749 fi
10750done
10751 done
10752IFS=$as_save_IFS
10753
10754fi
10755fi
10756DLLTOOL=$ac_cv_prog_DLLTOOL
10757if test -n "$DLLTOOL"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10759$as_echo "$DLLTOOL" >&6; }
10760else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762$as_echo "no" >&6; }
10763fi
10764
10765
10766fi
10767if test -z "$ac_cv_prog_DLLTOOL"; then
10768 ac_ct_DLLTOOL=$DLLTOOL
10769 # Extract the first word of "dlltool", so it can be a program name with args.
10770set dummy dlltool; ac_word=$2
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10772$as_echo_n "checking for $ac_word... " >&6; }
10773if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775else
10776 if test -n "$ac_ct_DLLTOOL"; then
10777 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10778else
10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780for as_dir in $PATH
10781do
10782 IFS=$as_save_IFS
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10786 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10788 break 2
10789 fi
10790done
10791 done
10792IFS=$as_save_IFS
10793
10794fi
10795fi
10796ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10797if test -n "$ac_ct_DLLTOOL"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10799$as_echo "$ac_ct_DLLTOOL" >&6; }
10800else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10802$as_echo "no" >&6; }
10803fi
10804
10805 if test "x$ac_ct_DLLTOOL" = x; then
10806 DLLTOOL="false"
10807 else
10808 case $cross_compiling:$ac_tool_warned in
10809yes:)
10810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10812ac_tool_warned=yes ;;
10813esac
10814 DLLTOOL=$ac_ct_DLLTOOL
10815 fi
10816else
10817 DLLTOOL="$ac_cv_prog_DLLTOOL"
10818fi
10819
10820test -z "$DLLTOOL" && DLLTOOL=dlltool
10821
10822
10823
10824
10825
10826
10827
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10829$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10830if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10831 $as_echo_n "(cached) " >&6
10832else
10833 lt_cv_sharedlib_from_linklib_cmd='unknown'
10834
10835case $host_os in
10836cygwin* | mingw* | pw32* | cegcc*)
10837 # two different shell functions defined in ltmain.sh
10838 # decide which to use based on capabilities of $DLLTOOL
10839 case `$DLLTOOL --help 2>&1` in
10840 *--identify-strict*)
10841 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10842 ;;
10843 *)
10844 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10845 ;;
10846 esac
10847 ;;
10848*)
10849 # fallback: assume linklib IS sharedlib
10850 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10851 ;;
10852esac
10853
10854fi
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10856$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10857sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10858test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10859
10860
10861
10862
10863
10864
10865
10866if test -n "$ac_tool_prefix"; then
10867 for ac_prog in ar
10868 do
10869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10870set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872$as_echo_n "checking for $ac_word... " >&6; }
10873if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010874 $as_echo_n "(cached) " >&6
10875else
10876 if test -n "$AR"; then
10877 ac_cv_prog_AR="$AR" # Let the user override the test.
10878else
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 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 +000010886 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890done
10891 done
10892IFS=$as_save_IFS
10893
10894fi
10895fi
10896AR=$ac_cv_prog_AR
10897if test -n "$AR"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10899$as_echo "$AR" >&6; }
10900else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903fi
10904
10905
cristyda16f162011-02-19 23:52:17 +000010906 test -n "$AR" && break
10907 done
cristy73bd4a52010-10-05 11:24:23 +000010908fi
cristyda16f162011-02-19 23:52:17 +000010909if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000010910 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000010911 for ac_prog in ar
10912do
10913 # Extract the first word of "$ac_prog", so it can be a program name with args.
10914set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000010915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010917if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$ac_ct_AR"; then
10921 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 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 +000010930 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000010931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940ac_ct_AR=$ac_cv_prog_ac_ct_AR
10941if test -n "$ac_ct_AR"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10943$as_echo "$ac_ct_AR" >&6; }
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
cristyda16f162011-02-19 23:52:17 +000010949
10950 test -n "$ac_ct_AR" && break
10951done
10952
cristy73bd4a52010-10-05 11:24:23 +000010953 if test "x$ac_ct_AR" = x; then
10954 AR="false"
10955 else
10956 case $cross_compiling:$ac_tool_warned in
10957yes:)
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10960ac_tool_warned=yes ;;
10961esac
10962 AR=$ac_ct_AR
10963 fi
cristy73bd4a52010-10-05 11:24:23 +000010964fi
10965
cristyda16f162011-02-19 23:52:17 +000010966: ${AR=ar}
10967: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000010968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
cristyda16f162011-02-19 23:52:17 +000010979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10980$as_echo_n "checking for archiver @FILE support... " >&6; }
10981if ${lt_cv_ar_at_file+:} false; then :
10982 $as_echo_n "(cached) " >&6
10983else
10984 lt_cv_ar_at_file=no
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986/* end confdefs.h. */
10987
10988int
10989main ()
10990{
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996if ac_fn_c_try_compile "$LINENO"; then :
10997 echo conftest.$ac_objext > conftest.lst
10998 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11000 (eval $lt_ar_try) 2>&5
11001 ac_status=$?
11002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003 test $ac_status = 0; }
11004 if test "$ac_status" -eq 0; then
11005 # Ensure the archiver fails upon bogus file names.
11006 rm -f conftest.$ac_objext libconftest.a
11007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11008 (eval $lt_ar_try) 2>&5
11009 ac_status=$?
11010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11011 test $ac_status = 0; }
11012 if test "$ac_status" -ne 0; then
11013 lt_cv_ar_at_file=@
11014 fi
11015 fi
11016 rm -f conftest.* libconftest.a
11017
11018fi
11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11020
11021fi
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11023$as_echo "$lt_cv_ar_at_file" >&6; }
11024
11025if test "x$lt_cv_ar_at_file" = xno; then
11026 archiver_list_spec=
11027else
11028 archiver_list_spec=$lt_cv_ar_at_file
11029fi
11030
11031
11032
11033
11034
11035
11036
cristy73bd4a52010-10-05 11:24:23 +000011037if test -n "$ac_tool_prefix"; then
11038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11039set dummy ${ac_tool_prefix}strip; ac_word=$2
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011042if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011043 $as_echo_n "(cached) " >&6
11044else
11045 if test -n "$STRIP"; then
11046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11047else
11048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049for as_dir in $PATH
11050do
11051 IFS=$as_save_IFS
11052 test -z "$as_dir" && as_dir=.
11053 for ac_exec_ext in '' $ac_executable_extensions; do
11054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11057 break 2
11058 fi
11059done
11060 done
11061IFS=$as_save_IFS
11062
11063fi
11064fi
11065STRIP=$ac_cv_prog_STRIP
11066if test -n "$STRIP"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11068$as_echo "$STRIP" >&6; }
11069else
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
11072fi
11073
11074
11075fi
11076if test -z "$ac_cv_prog_STRIP"; then
11077 ac_ct_STRIP=$STRIP
11078 # Extract the first word of "strip", so it can be a program name with args.
11079set dummy strip; ac_word=$2
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011082if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011083 $as_echo_n "(cached) " >&6
11084else
11085 if test -n "$ac_ct_STRIP"; then
11086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11087else
11088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH
11090do
11091 IFS=$as_save_IFS
11092 test -z "$as_dir" && as_dir=.
11093 for ac_exec_ext in '' $ac_executable_extensions; do
11094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11095 ac_cv_prog_ac_ct_STRIP="strip"
11096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 break 2
11098 fi
11099done
11100 done
11101IFS=$as_save_IFS
11102
11103fi
11104fi
11105ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11106if test -n "$ac_ct_STRIP"; then
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11108$as_echo "$ac_ct_STRIP" >&6; }
11109else
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111$as_echo "no" >&6; }
11112fi
11113
11114 if test "x$ac_ct_STRIP" = x; then
11115 STRIP=":"
11116 else
11117 case $cross_compiling:$ac_tool_warned in
11118yes:)
11119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11121ac_tool_warned=yes ;;
11122esac
11123 STRIP=$ac_ct_STRIP
11124 fi
11125else
11126 STRIP="$ac_cv_prog_STRIP"
11127fi
11128
11129test -z "$STRIP" && STRIP=:
11130
11131
11132
11133
11134
11135
11136if test -n "$ac_tool_prefix"; then
11137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11138set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011141if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011142 $as_echo_n "(cached) " >&6
11143else
11144 if test -n "$RANLIB"; then
11145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11146else
11147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11148for as_dir in $PATH
11149do
11150 IFS=$as_save_IFS
11151 test -z "$as_dir" && as_dir=.
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 break 2
11157 fi
11158done
11159 done
11160IFS=$as_save_IFS
11161
11162fi
11163fi
11164RANLIB=$ac_cv_prog_RANLIB
11165if test -n "$RANLIB"; then
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11167$as_echo "$RANLIB" >&6; }
11168else
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170$as_echo "no" >&6; }
11171fi
11172
11173
11174fi
11175if test -z "$ac_cv_prog_RANLIB"; then
11176 ac_ct_RANLIB=$RANLIB
11177 # Extract the first word of "ranlib", so it can be a program name with args.
11178set dummy ranlib; ac_word=$2
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011181if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011182 $as_echo_n "(cached) " >&6
11183else
11184 if test -n "$ac_ct_RANLIB"; then
11185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 for ac_exec_ext in '' $ac_executable_extensions; do
11193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194 ac_cv_prog_ac_ct_RANLIB="ranlib"
11195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196 break 2
11197 fi
11198done
11199 done
11200IFS=$as_save_IFS
11201
11202fi
11203fi
11204ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11205if test -n "$ac_ct_RANLIB"; then
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11207$as_echo "$ac_ct_RANLIB" >&6; }
11208else
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210$as_echo "no" >&6; }
11211fi
11212
11213 if test "x$ac_ct_RANLIB" = x; then
11214 RANLIB=":"
11215 else
11216 case $cross_compiling:$ac_tool_warned in
11217yes:)
11218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11220ac_tool_warned=yes ;;
11221esac
11222 RANLIB=$ac_ct_RANLIB
11223 fi
11224else
11225 RANLIB="$ac_cv_prog_RANLIB"
11226fi
11227
11228test -z "$RANLIB" && RANLIB=:
11229
11230
11231
11232
11233
11234
11235# Determine commands to create old-style static archives.
11236old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11237old_postinstall_cmds='chmod 644 $oldlib'
11238old_postuninstall_cmds=
11239
11240if test -n "$RANLIB"; then
11241 case $host_os in
11242 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011243 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011244 ;;
11245 *)
cristy99bd5232011-12-07 14:38:20 +000011246 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011247 ;;
11248 esac
cristy99bd5232011-12-07 14:38:20 +000011249 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011250fi
11251
cristy0c60a692010-11-04 01:09:47 +000011252case $host_os in
11253 darwin*)
11254 lock_old_archive_extraction=yes ;;
11255 *)
11256 lock_old_archive_extraction=no ;;
11257esac
11258
11259
11260
11261
11262
11263
cristy73bd4a52010-10-05 11:24:23 +000011264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297# If no C compiler was specified, use CC.
11298LTCC=${LTCC-"$CC"}
11299
11300# If no C compiler flags were specified, use CFLAGS.
11301LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11302
11303# Allow CC to be a program name with arguments.
11304compiler=$CC
11305
11306
11307# Check for command to grab the raw symbol name followed by C symbol from nm.
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11309$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011310if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011311 $as_echo_n "(cached) " >&6
11312else
11313
11314# These are sane defaults that work on at least a few old systems.
11315# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11316
11317# Character class describing NM global symbol codes.
11318symcode='[BCDEGRST]'
11319
11320# Regexp to match symbols that can be accessed directly from C.
11321sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11322
11323# Define system-specific variables.
11324case $host_os in
11325aix*)
11326 symcode='[BCDT]'
11327 ;;
11328cygwin* | mingw* | pw32* | cegcc*)
11329 symcode='[ABCDGISTW]'
11330 ;;
11331hpux*)
11332 if test "$host_cpu" = ia64; then
11333 symcode='[ABCDEGRST]'
11334 fi
11335 ;;
11336irix* | nonstopux*)
11337 symcode='[BCDEGRST]'
11338 ;;
11339osf*)
11340 symcode='[BCDEGQRST]'
11341 ;;
11342solaris*)
11343 symcode='[BDRT]'
11344 ;;
11345sco3.2v5*)
11346 symcode='[DT]'
11347 ;;
11348sysv4.2uw2*)
11349 symcode='[DT]'
11350 ;;
11351sysv5* | sco5v6* | unixware* | OpenUNIX*)
11352 symcode='[ABDT]'
11353 ;;
11354sysv4)
11355 symcode='[DFNSTU]'
11356 ;;
11357esac
11358
11359# If we're using GNU nm, then use its standard symbol codes.
11360case `$NM -V 2>&1` in
11361*GNU* | *'with BFD'*)
11362 symcode='[ABCDGIRSTW]' ;;
11363esac
11364
11365# Transform an extracted symbol line into a proper C declaration.
11366# Some systems (esp. on ia64) link data and code symbols differently,
11367# so use this general approach.
11368lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11369
11370# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011371lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11372lt_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 +000011373
11374# Handle CRLF in mingw tool chain
11375opt_cr=
11376case $build_os in
11377mingw*)
11378 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11379 ;;
11380esac
11381
11382# Try without a prefix underscore, then with it.
11383for ac_symprfx in "" "_"; do
11384
11385 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11386 symxfrm="\\1 $ac_symprfx\\2 \\2"
11387
11388 # Write the raw and C identifiers.
11389 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11390 # Fake it for dumpbin and say T for any non-static function
11391 # and D for any global variable.
11392 # Also find C++ and __fastcall symbols from MSVC++,
11393 # which start with @ or ?.
11394 lt_cv_sys_global_symbol_pipe="$AWK '"\
11395" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011396" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011397" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11398" \$ 0!~/External *\|/{next};"\
11399" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11400" {if(hide[section]) next};"\
11401" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11402" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11403" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11404" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11405" ' prfx=^$ac_symprfx"
11406 else
11407 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11408 fi
cristyda16f162011-02-19 23:52:17 +000011409 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011410
11411 # Check to see that the pipe works correctly.
11412 pipe_works=no
11413
11414 rm -f conftest*
11415 cat > conftest.$ac_ext <<_LT_EOF
11416#ifdef __cplusplus
11417extern "C" {
11418#endif
11419char nm_test_var;
11420void nm_test_func(void);
11421void nm_test_func(void){}
11422#ifdef __cplusplus
11423}
11424#endif
11425int main(){nm_test_var='a';nm_test_func();return(0);}
11426_LT_EOF
11427
11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11429 (eval $ac_compile) 2>&5
11430 ac_status=$?
11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432 test $ac_status = 0; }; then
11433 # Now try to grab the symbols.
11434 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11436 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011437 ac_status=$?
11438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; } && test -s "$nlist"; then
11440 # Try sorting and uniquifying the output.
11441 if sort "$nlist" | uniq > "$nlist"T; then
11442 mv -f "$nlist"T "$nlist"
11443 else
11444 rm -f "$nlist"T
11445 fi
11446
11447 # Make sure that we snagged all the symbols we need.
11448 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11449 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11450 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011451/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11452#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11453/* DATA imports from DLLs on WIN32 con't be const, because runtime
11454 relocations are performed -- see ld's documentation on pseudo-relocs. */
11455# define LT_DLSYM_CONST
11456#elif defined(__osf__)
11457/* This system does not cope well with relocations in const data. */
11458# define LT_DLSYM_CONST
11459#else
11460# define LT_DLSYM_CONST const
11461#endif
11462
cristy73bd4a52010-10-05 11:24:23 +000011463#ifdef __cplusplus
11464extern "C" {
11465#endif
11466
11467_LT_EOF
11468 # Now generate the symbol file.
11469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11470
11471 cat <<_LT_EOF >> conftest.$ac_ext
11472
11473/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011474LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011475 const char *name;
11476 void *address;
11477}
11478lt__PROGRAM__LTX_preloaded_symbols[] =
11479{
11480 { "@PROGRAM@", (void *) 0 },
11481_LT_EOF
11482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11483 cat <<\_LT_EOF >> conftest.$ac_ext
11484 {0, (void *) 0}
11485};
11486
11487/* This works around a problem in FreeBSD linker */
11488#ifdef FREEBSD_WORKAROUND
11489static const void *lt_preloaded_setup() {
11490 return lt__PROGRAM__LTX_preloaded_symbols;
11491}
11492#endif
11493
11494#ifdef __cplusplus
11495}
11496#endif
11497_LT_EOF
11498 # Now try linking the two files.
11499 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011500 lt_globsym_save_LIBS=$LIBS
11501 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011502 LIBS="conftstm.$ac_objext"
11503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11509 pipe_works=yes
11510 fi
cristyda16f162011-02-19 23:52:17 +000011511 LIBS=$lt_globsym_save_LIBS
11512 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011513 else
11514 echo "cannot find nm_test_func in $nlist" >&5
11515 fi
11516 else
11517 echo "cannot find nm_test_var in $nlist" >&5
11518 fi
11519 else
11520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11521 fi
11522 else
11523 echo "$progname: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 fi
11526 rm -rf conftest* conftst*
11527
11528 # Do not use the global_symbol_pipe unless it works.
11529 if test "$pipe_works" = yes; then
11530 break
11531 else
11532 lt_cv_sys_global_symbol_pipe=
11533 fi
11534done
11535
11536fi
11537
11538if test -z "$lt_cv_sys_global_symbol_pipe"; then
11539 lt_cv_sys_global_symbol_to_cdecl=
11540fi
11541if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11543$as_echo "failed" >&6; }
11544else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11546$as_echo "ok" >&6; }
11547fi
11548
cristyda16f162011-02-19 23:52:17 +000011549# Response file support.
11550if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11551 nm_file_list_spec='@'
11552elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11553 nm_file_list_spec='@'
11554fi
cristy73bd4a52010-10-05 11:24:23 +000011555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
cristyda16f162011-02-19 23:52:17 +000011576
11577
11578
11579
11580
11581
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11583$as_echo_n "checking for sysroot... " >&6; }
11584
11585# Check whether --with-sysroot was given.
11586if test "${with_sysroot+set}" = set; then :
11587 withval=$with_sysroot;
11588else
11589 with_sysroot=no
11590fi
11591
11592
11593lt_sysroot=
11594case ${with_sysroot} in #(
11595 yes)
11596 if test "$GCC" = yes; then
11597 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11598 fi
11599 ;; #(
11600 /*)
11601 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11602 ;; #(
11603 no|'')
11604 ;; #(
11605 *)
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11607$as_echo "${with_sysroot}" >&6; }
11608 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11609 ;;
11610esac
11611
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11613$as_echo "${lt_sysroot:-no}" >&6; }
11614
11615
11616
11617
11618
cristy73bd4a52010-10-05 11:24:23 +000011619# Check whether --enable-libtool-lock was given.
11620if test "${enable_libtool_lock+set}" = set; then :
11621 enableval=$enable_libtool_lock;
11622fi
11623
11624test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11625
11626# Some flags need to be propagated to the compiler or linker for good
11627# libtool support.
11628case $host in
11629ia64-*-hpux*)
11630 # Find out which ABI we are using.
11631 echo 'int i;' > conftest.$ac_ext
11632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11633 (eval $ac_compile) 2>&5
11634 ac_status=$?
11635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11636 test $ac_status = 0; }; then
11637 case `/usr/bin/file conftest.$ac_objext` in
11638 *ELF-32*)
11639 HPUX_IA64_MODE="32"
11640 ;;
11641 *ELF-64*)
11642 HPUX_IA64_MODE="64"
11643 ;;
11644 esac
11645 fi
11646 rm -rf conftest*
11647 ;;
11648*-*-irix6*)
11649 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000011650 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11652 (eval $ac_compile) 2>&5
11653 ac_status=$?
11654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; }; then
11656 if test "$lt_cv_prog_gnu_ld" = yes; then
11657 case `/usr/bin/file conftest.$ac_objext` in
11658 *32-bit*)
11659 LD="${LD-ld} -melf32bsmip"
11660 ;;
11661 *N32*)
11662 LD="${LD-ld} -melf32bmipn32"
11663 ;;
11664 *64-bit*)
11665 LD="${LD-ld} -melf64bmip"
11666 ;;
11667 esac
11668 else
11669 case `/usr/bin/file conftest.$ac_objext` in
11670 *32-bit*)
11671 LD="${LD-ld} -32"
11672 ;;
11673 *N32*)
11674 LD="${LD-ld} -n32"
11675 ;;
11676 *64-bit*)
11677 LD="${LD-ld} -64"
11678 ;;
11679 esac
11680 fi
11681 fi
11682 rm -rf conftest*
11683 ;;
11684
11685x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11686s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11687 # Find out which ABI we are using.
11688 echo 'int i;' > conftest.$ac_ext
11689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11690 (eval $ac_compile) 2>&5
11691 ac_status=$?
11692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11693 test $ac_status = 0; }; then
11694 case `/usr/bin/file conftest.o` in
11695 *32-bit*)
11696 case $host in
11697 x86_64-*kfreebsd*-gnu)
11698 LD="${LD-ld} -m elf_i386_fbsd"
11699 ;;
11700 x86_64-*linux*)
11701 LD="${LD-ld} -m elf_i386"
11702 ;;
11703 ppc64-*linux*|powerpc64-*linux*)
11704 LD="${LD-ld} -m elf32ppclinux"
11705 ;;
11706 s390x-*linux*)
11707 LD="${LD-ld} -m elf_s390"
11708 ;;
11709 sparc64-*linux*)
11710 LD="${LD-ld} -m elf32_sparc"
11711 ;;
11712 esac
11713 ;;
11714 *64-bit*)
11715 case $host in
11716 x86_64-*kfreebsd*-gnu)
11717 LD="${LD-ld} -m elf_x86_64_fbsd"
11718 ;;
11719 x86_64-*linux*)
11720 LD="${LD-ld} -m elf_x86_64"
11721 ;;
11722 ppc*-*linux*|powerpc*-*linux*)
11723 LD="${LD-ld} -m elf64ppc"
11724 ;;
11725 s390*-*linux*|s390*-*tpf*)
11726 LD="${LD-ld} -m elf64_s390"
11727 ;;
11728 sparc*-*linux*)
11729 LD="${LD-ld} -m elf64_sparc"
11730 ;;
11731 esac
11732 ;;
11733 esac
11734 fi
11735 rm -rf conftest*
11736 ;;
11737
11738*-*-sco3.2v5*)
11739 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11740 SAVE_CFLAGS="$CFLAGS"
11741 CFLAGS="$CFLAGS -belf"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11743$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011744if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011745 $as_echo_n "(cached) " >&6
11746else
11747 ac_ext=c
11748ac_cpp='$CPP $CPPFLAGS'
11749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* end confdefs.h. */
11755
11756int
11757main ()
11758{
11759
11760 ;
11761 return 0;
11762}
11763_ACEOF
11764if ac_fn_c_try_link "$LINENO"; then :
11765 lt_cv_cc_needs_belf=yes
11766else
11767 lt_cv_cc_needs_belf=no
11768fi
11769rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 ac_ext=c
11772ac_cpp='$CPP $CPPFLAGS'
11773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775ac_compiler_gnu=$ac_cv_c_compiler_gnu
11776
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11779$as_echo "$lt_cv_cc_needs_belf" >&6; }
11780 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11781 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11782 CFLAGS="$SAVE_CFLAGS"
11783 fi
11784 ;;
cristy99bd5232011-12-07 14:38:20 +000011785*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011786 # Find out which ABI we are using.
11787 echo 'int i;' > conftest.$ac_ext
11788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11789 (eval $ac_compile) 2>&5
11790 ac_status=$?
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; }; then
11793 case `/usr/bin/file conftest.o` in
11794 *64-bit*)
11795 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000011796 yes*)
11797 case $host in
11798 i?86-*-solaris*)
11799 LD="${LD-ld} -m elf_x86_64"
11800 ;;
11801 sparc*-*-solaris*)
11802 LD="${LD-ld} -m elf64_sparc"
11803 ;;
11804 esac
11805 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11806 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11807 LD="${LD-ld}_sol2"
11808 fi
11809 ;;
cristy73bd4a52010-10-05 11:24:23 +000011810 *)
11811 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11812 LD="${LD-ld} -64"
11813 fi
11814 ;;
11815 esac
11816 ;;
11817 esac
11818 fi
11819 rm -rf conftest*
11820 ;;
11821esac
11822
11823need_locks="$enable_libtool_lock"
11824
cristyda16f162011-02-19 23:52:17 +000011825if test -n "$ac_tool_prefix"; then
11826 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11827set dummy ${ac_tool_prefix}mt; ac_word=$2
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829$as_echo_n "checking for $ac_word... " >&6; }
11830if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832else
11833 if test -n "$MANIFEST_TOOL"; then
11834 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839 IFS=$as_save_IFS
11840 test -z "$as_dir" && as_dir=.
11841 for ac_exec_ext in '' $ac_executable_extensions; do
11842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11843 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845 break 2
11846 fi
11847done
11848 done
11849IFS=$as_save_IFS
11850
11851fi
11852fi
11853MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11854if test -n "$MANIFEST_TOOL"; then
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11856$as_echo "$MANIFEST_TOOL" >&6; }
11857else
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
11860fi
11861
11862
11863fi
11864if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11865 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11866 # Extract the first word of "mt", so it can be a program name with args.
11867set dummy mt; ac_word=$2
11868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11869$as_echo_n "checking for $ac_word... " >&6; }
11870if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11871 $as_echo_n "(cached) " >&6
11872else
11873 if test -n "$ac_ct_MANIFEST_TOOL"; then
11874 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11883 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888 done
11889IFS=$as_save_IFS
11890
11891fi
11892fi
11893ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11894if test -n "$ac_ct_MANIFEST_TOOL"; then
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11896$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11897else
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899$as_echo "no" >&6; }
11900fi
11901
11902 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11903 MANIFEST_TOOL=":"
11904 else
11905 case $cross_compiling:$ac_tool_warned in
11906yes:)
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11909ac_tool_warned=yes ;;
11910esac
11911 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11912 fi
11913else
11914 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11915fi
11916
11917test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11919$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11920if ${lt_cv_path_mainfest_tool+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922else
11923 lt_cv_path_mainfest_tool=no
11924 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11925 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11926 cat conftest.err >&5
11927 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11928 lt_cv_path_mainfest_tool=yes
11929 fi
11930 rm -f conftest*
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11933$as_echo "$lt_cv_path_mainfest_tool" >&6; }
11934if test "x$lt_cv_path_mainfest_tool" != xyes; then
11935 MANIFEST_TOOL=:
11936fi
11937
11938
11939
11940
11941
cristy73bd4a52010-10-05 11:24:23 +000011942
11943 case $host_os in
11944 rhapsody* | darwin*)
11945 if test -n "$ac_tool_prefix"; then
11946 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11947set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011950if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011951 $as_echo_n "(cached) " >&6
11952else
11953 if test -n "$DSYMUTIL"; then
11954 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968 done
11969IFS=$as_save_IFS
11970
11971fi
11972fi
11973DSYMUTIL=$ac_cv_prog_DSYMUTIL
11974if test -n "$DSYMUTIL"; then
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11976$as_echo "$DSYMUTIL" >&6; }
11977else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982
11983fi
11984if test -z "$ac_cv_prog_DSYMUTIL"; then
11985 ac_ct_DSYMUTIL=$DSYMUTIL
11986 # Extract the first word of "dsymutil", so it can be a program name with args.
11987set dummy dsymutil; ac_word=$2
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11989$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011990if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011991 $as_echo_n "(cached) " >&6
11992else
11993 if test -n "$ac_ct_DSYMUTIL"; then
11994 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11995else
11996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997for as_dir in $PATH
11998do
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12006 fi
12007done
12008 done
12009IFS=$as_save_IFS
12010
12011fi
12012fi
12013ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12014if test -n "$ac_ct_DSYMUTIL"; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12016$as_echo "$ac_ct_DSYMUTIL" >&6; }
12017else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019$as_echo "no" >&6; }
12020fi
12021
12022 if test "x$ac_ct_DSYMUTIL" = x; then
12023 DSYMUTIL=":"
12024 else
12025 case $cross_compiling:$ac_tool_warned in
12026yes:)
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12029ac_tool_warned=yes ;;
12030esac
12031 DSYMUTIL=$ac_ct_DSYMUTIL
12032 fi
12033else
12034 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12035fi
12036
12037 if test -n "$ac_tool_prefix"; then
12038 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12039set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012042if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012043 $as_echo_n "(cached) " >&6
12044else
12045 if test -n "$NMEDIT"; then
12046 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12047else
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12055 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12057 break 2
12058 fi
12059done
12060 done
12061IFS=$as_save_IFS
12062
12063fi
12064fi
12065NMEDIT=$ac_cv_prog_NMEDIT
12066if test -n "$NMEDIT"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12068$as_echo "$NMEDIT" >&6; }
12069else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
12072fi
12073
12074
12075fi
12076if test -z "$ac_cv_prog_NMEDIT"; then
12077 ac_ct_NMEDIT=$NMEDIT
12078 # Extract the first word of "nmedit", so it can be a program name with args.
12079set dummy nmedit; ac_word=$2
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12081$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012082if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012083 $as_echo_n "(cached) " >&6
12084else
12085 if test -n "$ac_ct_NMEDIT"; then
12086 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12087else
12088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089for as_dir in $PATH
12090do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12095 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12097 break 2
12098 fi
12099done
12100 done
12101IFS=$as_save_IFS
12102
12103fi
12104fi
12105ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12106if test -n "$ac_ct_NMEDIT"; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12108$as_echo "$ac_ct_NMEDIT" >&6; }
12109else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112fi
12113
12114 if test "x$ac_ct_NMEDIT" = x; then
12115 NMEDIT=":"
12116 else
12117 case $cross_compiling:$ac_tool_warned in
12118yes:)
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12121ac_tool_warned=yes ;;
12122esac
12123 NMEDIT=$ac_ct_NMEDIT
12124 fi
12125else
12126 NMEDIT="$ac_cv_prog_NMEDIT"
12127fi
12128
12129 if test -n "$ac_tool_prefix"; then
12130 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12131set dummy ${ac_tool_prefix}lipo; ac_word=$2
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012134if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012135 $as_echo_n "(cached) " >&6
12136else
12137 if test -n "$LIPO"; then
12138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12147 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149 break 2
12150 fi
12151done
12152 done
12153IFS=$as_save_IFS
12154
12155fi
12156fi
12157LIPO=$ac_cv_prog_LIPO
12158if test -n "$LIPO"; then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12160$as_echo "$LIPO" >&6; }
12161else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165
12166
12167fi
12168if test -z "$ac_cv_prog_LIPO"; then
12169 ac_ct_LIPO=$LIPO
12170 # Extract the first word of "lipo", so it can be a program name with args.
12171set dummy lipo; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012174if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012175 $as_echo_n "(cached) " >&6
12176else
12177 if test -n "$ac_ct_LIPO"; then
12178 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12187 ac_cv_prog_ac_ct_LIPO="lipo"
12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189 break 2
12190 fi
12191done
12192 done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12198if test -n "$ac_ct_LIPO"; then
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12200$as_echo "$ac_ct_LIPO" >&6; }
12201else
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206 if test "x$ac_ct_LIPO" = x; then
12207 LIPO=":"
12208 else
12209 case $cross_compiling:$ac_tool_warned in
12210yes:)
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213ac_tool_warned=yes ;;
12214esac
12215 LIPO=$ac_ct_LIPO
12216 fi
12217else
12218 LIPO="$ac_cv_prog_LIPO"
12219fi
12220
12221 if test -n "$ac_tool_prefix"; then
12222 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12223set dummy ${ac_tool_prefix}otool; ac_word=$2
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012226if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012227 $as_echo_n "(cached) " >&6
12228else
12229 if test -n "$OTOOL"; then
12230 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12231else
12232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243done
12244 done
12245IFS=$as_save_IFS
12246
12247fi
12248fi
12249OTOOL=$ac_cv_prog_OTOOL
12250if test -n "$OTOOL"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12252$as_echo "$OTOOL" >&6; }
12253else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
12256fi
12257
12258
12259fi
12260if test -z "$ac_cv_prog_OTOOL"; then
12261 ac_ct_OTOOL=$OTOOL
12262 # Extract the first word of "otool", so it can be a program name with args.
12263set dummy otool; ac_word=$2
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012266if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012267 $as_echo_n "(cached) " >&6
12268else
12269 if test -n "$ac_ct_OTOOL"; then
12270 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12271else
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_ac_ct_OTOOL="otool"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283done
12284 done
12285IFS=$as_save_IFS
12286
12287fi
12288fi
12289ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12290if test -n "$ac_ct_OTOOL"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12292$as_echo "$ac_ct_OTOOL" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298 if test "x$ac_ct_OTOOL" = x; then
12299 OTOOL=":"
12300 else
12301 case $cross_compiling:$ac_tool_warned in
12302yes:)
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12304$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12305ac_tool_warned=yes ;;
12306esac
12307 OTOOL=$ac_ct_OTOOL
12308 fi
12309else
12310 OTOOL="$ac_cv_prog_OTOOL"
12311fi
12312
12313 if test -n "$ac_tool_prefix"; then
12314 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12315set dummy ${ac_tool_prefix}otool64; ac_word=$2
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012318if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012319 $as_echo_n "(cached) " >&6
12320else
12321 if test -n "$OTOOL64"; then
12322 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12323else
12324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325for as_dir in $PATH
12326do
12327 IFS=$as_save_IFS
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12331 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 break 2
12334 fi
12335done
12336 done
12337IFS=$as_save_IFS
12338
12339fi
12340fi
12341OTOOL64=$ac_cv_prog_OTOOL64
12342if test -n "$OTOOL64"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12344$as_echo "$OTOOL64" >&6; }
12345else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
12348fi
12349
12350
12351fi
12352if test -z "$ac_cv_prog_OTOOL64"; then
12353 ac_ct_OTOOL64=$OTOOL64
12354 # Extract the first word of "otool64", so it can be a program name with args.
12355set dummy otool64; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012358if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$ac_ct_OTOOL64"; then
12362 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 ac_cv_prog_ac_ct_OTOOL64="otool64"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12382if test -n "$ac_ct_OTOOL64"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12384$as_echo "$ac_ct_OTOOL64" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390 if test "x$ac_ct_OTOOL64" = x; then
12391 OTOOL64=":"
12392 else
12393 case $cross_compiling:$ac_tool_warned in
12394yes:)
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12396$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12397ac_tool_warned=yes ;;
12398esac
12399 OTOOL64=$ac_ct_OTOOL64
12400 fi
12401else
12402 OTOOL64="$ac_cv_prog_OTOOL64"
12403fi
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12432$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012433if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012434 $as_echo_n "(cached) " >&6
12435else
12436 lt_cv_apple_cc_single_mod=no
12437 if test -z "${LT_MULTI_MODULE}"; then
12438 # By default we will add the -single_module flag. You can override
12439 # by either setting the environment variable LT_MULTI_MODULE
12440 # non-empty at configure time, or by adding -multi_module to the
12441 # link flags.
12442 rm -rf libconftest.dylib*
12443 echo "int foo(void){return 1;}" > conftest.c
12444 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12445-dynamiclib -Wl,-single_module conftest.c" >&5
12446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12447 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12448 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012449 # If there is a non-empty error log, and "single_module"
12450 # appears in it, assume the flag caused a linker warning
12451 if test -s conftest.err && $GREP single_module conftest.err; then
12452 cat conftest.err >&5
12453 # Otherwise, if the output was created with a 0 exit code from
12454 # the compiler, it worked.
12455 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012456 lt_cv_apple_cc_single_mod=yes
12457 else
12458 cat conftest.err >&5
12459 fi
12460 rm -rf libconftest.dylib*
12461 rm -f conftest.*
12462 fi
12463fi
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12465$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012466
cristy73bd4a52010-10-05 11:24:23 +000012467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12468$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012469if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012470 $as_echo_n "(cached) " >&6
12471else
12472 lt_cv_ld_exported_symbols_list=no
12473 save_LDFLAGS=$LDFLAGS
12474 echo "_main" > conftest.sym
12475 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477/* end confdefs.h. */
12478
12479int
12480main ()
12481{
12482
12483 ;
12484 return 0;
12485}
12486_ACEOF
12487if ac_fn_c_try_link "$LINENO"; then :
12488 lt_cv_ld_exported_symbols_list=yes
12489else
12490 lt_cv_ld_exported_symbols_list=no
12491fi
12492rm -f core conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LDFLAGS="$save_LDFLAGS"
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12498$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012499
cristy0c60a692010-11-04 01:09:47 +000012500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12501$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012502if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012503 $as_echo_n "(cached) " >&6
12504else
12505 lt_cv_ld_force_load=no
12506 cat > conftest.c << _LT_EOF
12507int forced_loaded() { return 2;}
12508_LT_EOF
12509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12511 echo "$AR cru libconftest.a conftest.o" >&5
12512 $AR cru libconftest.a conftest.o 2>&5
12513 echo "$RANLIB libconftest.a" >&5
12514 $RANLIB libconftest.a 2>&5
12515 cat > conftest.c << _LT_EOF
12516int main() { return 0;}
12517_LT_EOF
12518 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12519 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12520 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012521 if test -s conftest.err && $GREP force_load conftest.err; then
12522 cat conftest.err >&5
12523 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012524 lt_cv_ld_force_load=yes
12525 else
12526 cat conftest.err >&5
12527 fi
12528 rm -f conftest.err libconftest.a conftest conftest.c
12529 rm -rf conftest.dSYM
12530
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12533$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012534 case $host_os in
12535 rhapsody* | darwin1.[012])
12536 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12537 darwin1.*)
12538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12539 darwin*) # darwin 5.x on
12540 # if running on 10.5 or later, the deployment target defaults
12541 # to the OS version, if on x86, and 10.4, the deployment
12542 # target defaults to 10.4. Don't you love it?
12543 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12544 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12546 10.[012]*)
12547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12548 10.*)
12549 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12550 esac
12551 ;;
12552 esac
12553 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12554 _lt_dar_single_mod='$single_module'
12555 fi
12556 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12557 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12558 else
12559 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12560 fi
cristy0c60a692010-11-04 01:09:47 +000012561 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012562 _lt_dsymutil='~$DSYMUTIL $lib || :'
12563 else
12564 _lt_dsymutil=
12565 fi
12566 ;;
12567 esac
12568
12569for ac_header in dlfcn.h
12570do :
12571 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12572"
cristyda16f162011-02-19 23:52:17 +000012573if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012574 cat >>confdefs.h <<_ACEOF
12575#define HAVE_DLFCN_H 1
12576_ACEOF
12577
12578fi
12579
12580done
12581
12582
12583
cristy73bd4a52010-10-05 11:24:23 +000012584
cristyda16f162011-02-19 23:52:17 +000012585func_stripname_cnf ()
12586{
12587 case ${2} in
12588 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12589 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12590 esac
12591} # func_stripname_cnf
12592
12593
12594
cristy73bd4a52010-10-05 11:24:23 +000012595
12596
12597# Set options
12598enable_win32_dll=yes
12599
12600case $host in
cristy0c60a692010-11-04 01:09:47 +000012601*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012602 if test -n "$ac_tool_prefix"; then
12603 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12604set dummy ${ac_tool_prefix}as; ac_word=$2
12605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012607if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012608 $as_echo_n "(cached) " >&6
12609else
12610 if test -n "$AS"; then
12611 ac_cv_prog_AS="$AS" # Let the user override the test.
12612else
12613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614for as_dir in $PATH
12615do
12616 IFS=$as_save_IFS
12617 test -z "$as_dir" && as_dir=.
12618 for ac_exec_ext in '' $ac_executable_extensions; do
12619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620 ac_cv_prog_AS="${ac_tool_prefix}as"
12621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622 break 2
12623 fi
12624done
12625 done
12626IFS=$as_save_IFS
12627
12628fi
12629fi
12630AS=$ac_cv_prog_AS
12631if test -n "$AS"; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12633$as_echo "$AS" >&6; }
12634else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636$as_echo "no" >&6; }
12637fi
12638
12639
12640fi
12641if test -z "$ac_cv_prog_AS"; then
12642 ac_ct_AS=$AS
12643 # Extract the first word of "as", so it can be a program name with args.
12644set dummy as; ac_word=$2
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012647if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012648 $as_echo_n "(cached) " >&6
12649else
12650 if test -n "$ac_ct_AS"; then
12651 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12652else
12653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654for as_dir in $PATH
12655do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660 ac_cv_prog_ac_ct_AS="as"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664done
12665 done
12666IFS=$as_save_IFS
12667
12668fi
12669fi
12670ac_ct_AS=$ac_cv_prog_ac_ct_AS
12671if test -n "$ac_ct_AS"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12673$as_echo "$ac_ct_AS" >&6; }
12674else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679 if test "x$ac_ct_AS" = x; then
12680 AS="false"
12681 else
12682 case $cross_compiling:$ac_tool_warned in
12683yes:)
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686ac_tool_warned=yes ;;
12687esac
12688 AS=$ac_ct_AS
12689 fi
12690else
12691 AS="$ac_cv_prog_AS"
12692fi
12693
12694 if test -n "$ac_tool_prefix"; then
12695 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12696set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012699if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$DLLTOOL"; then
12703 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722DLLTOOL=$ac_cv_prog_DLLTOOL
12723if test -n "$DLLTOOL"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12725$as_echo "$DLLTOOL" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732fi
12733if test -z "$ac_cv_prog_DLLTOOL"; then
12734 ac_ct_DLLTOOL=$DLLTOOL
12735 # Extract the first word of "dlltool", so it can be a program name with args.
12736set dummy dlltool; ac_word=$2
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012739if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012740 $as_echo_n "(cached) " >&6
12741else
12742 if test -n "$ac_ct_DLLTOOL"; then
12743 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12744else
12745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746for as_dir in $PATH
12747do
12748 IFS=$as_save_IFS
12749 test -z "$as_dir" && as_dir=.
12750 for ac_exec_ext in '' $ac_executable_extensions; do
12751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754 break 2
12755 fi
12756done
12757 done
12758IFS=$as_save_IFS
12759
12760fi
12761fi
12762ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12763if test -n "$ac_ct_DLLTOOL"; then
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12765$as_echo "$ac_ct_DLLTOOL" >&6; }
12766else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768$as_echo "no" >&6; }
12769fi
12770
12771 if test "x$ac_ct_DLLTOOL" = x; then
12772 DLLTOOL="false"
12773 else
12774 case $cross_compiling:$ac_tool_warned in
12775yes:)
12776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778ac_tool_warned=yes ;;
12779esac
12780 DLLTOOL=$ac_ct_DLLTOOL
12781 fi
12782else
12783 DLLTOOL="$ac_cv_prog_DLLTOOL"
12784fi
12785
12786 if test -n "$ac_tool_prefix"; then
12787 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12788set dummy ${ac_tool_prefix}objdump; ac_word=$2
12789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012791if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012792 $as_echo_n "(cached) " >&6
12793else
12794 if test -n "$OBJDUMP"; then
12795 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12796else
12797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798for as_dir in $PATH
12799do
12800 IFS=$as_save_IFS
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12806 break 2
12807 fi
12808done
12809 done
12810IFS=$as_save_IFS
12811
12812fi
12813fi
12814OBJDUMP=$ac_cv_prog_OBJDUMP
12815if test -n "$OBJDUMP"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12817$as_echo "$OBJDUMP" >&6; }
12818else
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820$as_echo "no" >&6; }
12821fi
12822
12823
12824fi
12825if test -z "$ac_cv_prog_OBJDUMP"; then
12826 ac_ct_OBJDUMP=$OBJDUMP
12827 # Extract the first word of "objdump", so it can be a program name with args.
12828set dummy objdump; ac_word=$2
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012831if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012832 $as_echo_n "(cached) " >&6
12833else
12834 if test -n "$ac_ct_OBJDUMP"; then
12835 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848done
12849 done
12850IFS=$as_save_IFS
12851
12852fi
12853fi
12854ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12855if test -n "$ac_ct_OBJDUMP"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12857$as_echo "$ac_ct_OBJDUMP" >&6; }
12858else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861fi
12862
12863 if test "x$ac_ct_OBJDUMP" = x; then
12864 OBJDUMP="false"
12865 else
12866 case $cross_compiling:$ac_tool_warned in
12867yes:)
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870ac_tool_warned=yes ;;
12871esac
12872 OBJDUMP=$ac_ct_OBJDUMP
12873 fi
12874else
12875 OBJDUMP="$ac_cv_prog_OBJDUMP"
12876fi
12877
12878 ;;
12879esac
12880
12881test -z "$AS" && AS=as
12882
12883
12884
12885
12886
12887test -z "$DLLTOOL" && DLLTOOL=dlltool
12888
12889
12890
12891
12892
12893test -z "$OBJDUMP" && OBJDUMP=objdump
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903 # Check whether --enable-shared was given.
12904if test "${enable_shared+set}" = set; then :
12905 enableval=$enable_shared; p=${PACKAGE-default}
12906 case $enableval in
12907 yes) enable_shared=yes ;;
12908 no) enable_shared=no ;;
12909 *)
12910 enable_shared=no
12911 # Look at the argument we got. We use all the common list separators.
12912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12913 for pkg in $enableval; do
12914 IFS="$lt_save_ifs"
12915 if test "X$pkg" = "X$p"; then
12916 enable_shared=yes
12917 fi
12918 done
12919 IFS="$lt_save_ifs"
12920 ;;
12921 esac
12922else
12923 enable_shared=yes
12924fi
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 # Check whether --enable-static was given.
12935if test "${enable_static+set}" = set; then :
12936 enableval=$enable_static; p=${PACKAGE-default}
12937 case $enableval in
12938 yes) enable_static=yes ;;
12939 no) enable_static=no ;;
12940 *)
12941 enable_static=no
12942 # Look at the argument we got. We use all the common list separators.
12943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12944 for pkg in $enableval; do
12945 IFS="$lt_save_ifs"
12946 if test "X$pkg" = "X$p"; then
12947 enable_static=yes
12948 fi
12949 done
12950 IFS="$lt_save_ifs"
12951 ;;
12952 esac
12953else
12954 enable_static=yes
12955fi
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966# Check whether --with-pic was given.
12967if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000012968 withval=$with_pic; lt_p=${PACKAGE-default}
12969 case $withval in
12970 yes|no) pic_mode=$withval ;;
12971 *)
12972 pic_mode=default
12973 # Look at the argument we got. We use all the common list separators.
12974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12975 for lt_pkg in $withval; do
12976 IFS="$lt_save_ifs"
12977 if test "X$lt_pkg" = "X$lt_p"; then
12978 pic_mode=yes
12979 fi
12980 done
12981 IFS="$lt_save_ifs"
12982 ;;
12983 esac
cristy73bd4a52010-10-05 11:24:23 +000012984else
12985 pic_mode=default
12986fi
12987
12988
12989test -z "$pic_mode" && pic_mode=default
12990
12991
12992
12993
12994
12995
12996
12997 # Check whether --enable-fast-install was given.
12998if test "${enable_fast_install+set}" = set; then :
12999 enableval=$enable_fast_install; p=${PACKAGE-default}
13000 case $enableval in
13001 yes) enable_fast_install=yes ;;
13002 no) enable_fast_install=no ;;
13003 *)
13004 enable_fast_install=no
13005 # Look at the argument we got. We use all the common list separators.
13006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13007 for pkg in $enableval; do
13008 IFS="$lt_save_ifs"
13009 if test "X$pkg" = "X$p"; then
13010 enable_fast_install=yes
13011 fi
13012 done
13013 IFS="$lt_save_ifs"
13014 ;;
13015 esac
13016else
13017 enable_fast_install=yes
13018fi
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030# This can be used to rebuild libtool when needed
13031LIBTOOL_DEPS="$ltmain"
13032
13033# Always use our own libtool.
13034LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
cristy0c60a692010-11-04 01:09:47 +000013060
cristy99bd5232011-12-07 14:38:20 +000013061
13062
13063
13064
cristy73bd4a52010-10-05 11:24:23 +000013065test -z "$LN_S" && LN_S="ln -s"
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080if test -n "${ZSH_VERSION+set}" ; then
13081 setopt NO_GLOB_SUBST
13082fi
13083
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13085$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013086if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013087 $as_echo_n "(cached) " >&6
13088else
13089 rm -f .libs 2>/dev/null
13090mkdir .libs 2>/dev/null
13091if test -d .libs; then
13092 lt_cv_objdir=.libs
13093else
13094 # MS-DOS does not allow filenames that begin with a dot.
13095 lt_cv_objdir=_libs
13096fi
13097rmdir .libs 2>/dev/null
13098fi
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13100$as_echo "$lt_cv_objdir" >&6; }
13101objdir=$lt_cv_objdir
13102
13103
13104
13105
13106
13107cat >>confdefs.h <<_ACEOF
13108#define LT_OBJDIR "$lt_cv_objdir/"
13109_ACEOF
13110
13111
13112
13113
cristy73bd4a52010-10-05 11:24:23 +000013114case $host_os in
13115aix3*)
13116 # AIX sometimes has problems with the GCC collect2 program. For some
13117 # reason, if we set the COLLECT_NAMES environment variable, the problems
13118 # vanish in a puff of smoke.
13119 if test "X${COLLECT_NAMES+set}" != Xset; then
13120 COLLECT_NAMES=
13121 export COLLECT_NAMES
13122 fi
13123 ;;
13124esac
13125
cristy73bd4a52010-10-05 11:24:23 +000013126# Global variables:
13127ofile=libtool
13128can_build_shared=yes
13129
13130# All known linkers require a `.a' archive for static linking (except MSVC,
13131# which needs '.lib').
13132libext=a
13133
13134with_gnu_ld="$lt_cv_prog_gnu_ld"
13135
13136old_CC="$CC"
13137old_CFLAGS="$CFLAGS"
13138
13139# Set sane defaults for various variables
13140test -z "$CC" && CC=cc
13141test -z "$LTCC" && LTCC=$CC
13142test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13143test -z "$LD" && LD=ld
13144test -z "$ac_objext" && ac_objext=o
13145
13146for cc_temp in $compiler""; do
13147 case $cc_temp in
13148 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13149 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13150 \-*) ;;
13151 *) break;;
13152 esac
13153done
cristy0c60a692010-11-04 01:09:47 +000013154cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013155
13156
13157# Only perform the check for file, if the check method requires it
13158test -z "$MAGIC_CMD" && MAGIC_CMD=file
13159case $deplibs_check_method in
13160file_magic*)
13161 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13163$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013164if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013165 $as_echo_n "(cached) " >&6
13166else
13167 case $MAGIC_CMD in
13168[\\/*] | ?:[\\/]*)
13169 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13170 ;;
13171*)
13172 lt_save_MAGIC_CMD="$MAGIC_CMD"
13173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13174 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13175 for ac_dir in $ac_dummy; do
13176 IFS="$lt_save_ifs"
13177 test -z "$ac_dir" && ac_dir=.
13178 if test -f $ac_dir/${ac_tool_prefix}file; then
13179 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13180 if test -n "$file_magic_test_file"; then
13181 case $deplibs_check_method in
13182 "file_magic "*)
13183 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13185 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13186 $EGREP "$file_magic_regex" > /dev/null; then
13187 :
13188 else
13189 cat <<_LT_EOF 1>&2
13190
13191*** Warning: the command libtool uses to detect shared libraries,
13192*** $file_magic_cmd, produces output that libtool cannot recognize.
13193*** The result is that libtool may fail to recognize shared libraries
13194*** as such. This will affect the creation of libtool libraries that
13195*** depend on shared libraries, but programs linked with such libtool
13196*** libraries will work regardless of this problem. Nevertheless, you
13197*** may want to report the problem to your system manager and/or to
13198*** bug-libtool@gnu.org
13199
13200_LT_EOF
13201 fi ;;
13202 esac
13203 fi
13204 break
13205 fi
13206 done
13207 IFS="$lt_save_ifs"
13208 MAGIC_CMD="$lt_save_MAGIC_CMD"
13209 ;;
13210esac
13211fi
13212
13213MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13214if test -n "$MAGIC_CMD"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13216$as_echo "$MAGIC_CMD" >&6; }
13217else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219$as_echo "no" >&6; }
13220fi
13221
13222
13223
13224
13225
13226if test -z "$lt_cv_path_MAGIC_CMD"; then
13227 if test -n "$ac_tool_prefix"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13229$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013230if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013231 $as_echo_n "(cached) " >&6
13232else
13233 case $MAGIC_CMD in
13234[\\/*] | ?:[\\/]*)
13235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13236 ;;
13237*)
13238 lt_save_MAGIC_CMD="$MAGIC_CMD"
13239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13241 for ac_dir in $ac_dummy; do
13242 IFS="$lt_save_ifs"
13243 test -z "$ac_dir" && ac_dir=.
13244 if test -f $ac_dir/file; then
13245 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13246 if test -n "$file_magic_test_file"; then
13247 case $deplibs_check_method in
13248 "file_magic "*)
13249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13252 $EGREP "$file_magic_regex" > /dev/null; then
13253 :
13254 else
13255 cat <<_LT_EOF 1>&2
13256
13257*** Warning: the command libtool uses to detect shared libraries,
13258*** $file_magic_cmd, produces output that libtool cannot recognize.
13259*** The result is that libtool may fail to recognize shared libraries
13260*** as such. This will affect the creation of libtool libraries that
13261*** depend on shared libraries, but programs linked with such libtool
13262*** libraries will work regardless of this problem. Nevertheless, you
13263*** may want to report the problem to your system manager and/or to
13264*** bug-libtool@gnu.org
13265
13266_LT_EOF
13267 fi ;;
13268 esac
13269 fi
13270 break
13271 fi
13272 done
13273 IFS="$lt_save_ifs"
13274 MAGIC_CMD="$lt_save_MAGIC_CMD"
13275 ;;
13276esac
13277fi
13278
13279MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13280if test -n "$MAGIC_CMD"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13282$as_echo "$MAGIC_CMD" >&6; }
13283else
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285$as_echo "no" >&6; }
13286fi
13287
13288
13289 else
13290 MAGIC_CMD=:
13291 fi
13292fi
13293
13294 fi
13295 ;;
13296esac
13297
13298# Use C for the default configuration in the libtool script
13299
13300lt_save_CC="$CC"
13301ac_ext=c
13302ac_cpp='$CPP $CPPFLAGS'
13303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305ac_compiler_gnu=$ac_cv_c_compiler_gnu
13306
13307
13308# Source file extension for C test sources.
13309ac_ext=c
13310
13311# Object file extension for compiled C test sources.
13312objext=o
13313objext=$objext
13314
13315# Code to be used in simple compile tests
13316lt_simple_compile_test_code="int some_variable = 0;"
13317
13318# Code to be used in simple link tests
13319lt_simple_link_test_code='int main(){return(0);}'
13320
13321
13322
13323
13324
13325
13326
13327# If no C compiler was specified, use CC.
13328LTCC=${LTCC-"$CC"}
13329
13330# If no C compiler flags were specified, use CFLAGS.
13331LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13332
13333# Allow CC to be a program name with arguments.
13334compiler=$CC
13335
13336# Save the default compiler, since it gets overwritten when the other
13337# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13338compiler_DEFAULT=$CC
13339
13340# save warnings/boilerplate of simple test code
13341ac_outfile=conftest.$ac_objext
13342echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13343eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13344_lt_compiler_boilerplate=`cat conftest.err`
13345$RM conftest*
13346
13347ac_outfile=conftest.$ac_objext
13348echo "$lt_simple_link_test_code" >conftest.$ac_ext
13349eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13350_lt_linker_boilerplate=`cat conftest.err`
13351$RM -r conftest*
13352
13353
13354## CAVEAT EMPTOR:
13355## There is no encapsulation within the following macros, do not change
13356## the running order or otherwise move them around unless you know exactly
13357## what you are doing...
13358if test -n "$compiler"; then
13359
13360lt_prog_compiler_no_builtin_flag=
13361
13362if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013363 case $cc_basename in
13364 nvcc*)
13365 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13366 *)
13367 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13368 esac
cristy73bd4a52010-10-05 11:24:23 +000013369
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13371$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013372if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013373 $as_echo_n "(cached) " >&6
13374else
13375 lt_cv_prog_compiler_rtti_exceptions=no
13376 ac_outfile=conftest.$ac_objext
13377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13378 lt_compiler_flag="-fno-rtti -fno-exceptions"
13379 # Insert the option either (1) after the last *FLAGS variable, or
13380 # (2) before a word containing "conftest.", or (3) at the end.
13381 # Note that $ac_compile itself does not contain backslashes and begins
13382 # with a dollar sign (not a hyphen), so the echo should work correctly.
13383 # The option is referenced via a variable to avoid confusing sed.
13384 lt_compile=`echo "$ac_compile" | $SED \
13385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13387 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013389 (eval "$lt_compile" 2>conftest.err)
13390 ac_status=$?
13391 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013393 if (exit $ac_status) && test -s "$ac_outfile"; then
13394 # The compiler can only warn and ignore the option if not recognized
13395 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13399 lt_cv_prog_compiler_rtti_exceptions=yes
13400 fi
13401 fi
13402 $RM conftest*
13403
13404fi
13405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13406$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13407
13408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13409 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13410else
13411 :
13412fi
13413
13414fi
13415
13416
13417
13418
13419
13420
13421 lt_prog_compiler_wl=
13422lt_prog_compiler_pic=
13423lt_prog_compiler_static=
13424
cristy73bd4a52010-10-05 11:24:23 +000013425
13426 if test "$GCC" = yes; then
13427 lt_prog_compiler_wl='-Wl,'
13428 lt_prog_compiler_static='-static'
13429
13430 case $host_os in
13431 aix*)
13432 # All AIX code is PIC.
13433 if test "$host_cpu" = ia64; then
13434 # AIX 5 now supports IA64 processor
13435 lt_prog_compiler_static='-Bstatic'
13436 fi
13437 ;;
13438
13439 amigaos*)
13440 case $host_cpu in
13441 powerpc)
13442 # see comment about AmigaOS4 .so support
13443 lt_prog_compiler_pic='-fPIC'
13444 ;;
13445 m68k)
13446 # FIXME: we need at least 68020 code to build shared libraries, but
13447 # adding the `-m68020' flag to GCC prevents building anything better,
13448 # like `-m68040'.
13449 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13450 ;;
13451 esac
13452 ;;
13453
13454 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13455 # PIC is the default for these OSes.
13456 ;;
13457
13458 mingw* | cygwin* | pw32* | os2* | cegcc*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13462 # (--disable-auto-import) libraries
13463 lt_prog_compiler_pic='-DDLL_EXPORT'
13464 ;;
13465
13466 darwin* | rhapsody*)
13467 # PIC is the default on this platform
13468 # Common symbols not allowed in MH_DYLIB files
13469 lt_prog_compiler_pic='-fno-common'
13470 ;;
13471
cristy0c60a692010-11-04 01:09:47 +000013472 haiku*)
13473 # PIC is the default for Haiku.
13474 # The "-static" flag exists, but is broken.
13475 lt_prog_compiler_static=
13476 ;;
13477
cristy73bd4a52010-10-05 11:24:23 +000013478 hpux*)
13479 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13480 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13481 # sets the default TLS model and affects inlining.
13482 case $host_cpu in
13483 hppa*64*)
13484 # +Z the default
13485 ;;
13486 *)
13487 lt_prog_compiler_pic='-fPIC'
13488 ;;
13489 esac
13490 ;;
13491
13492 interix[3-9]*)
13493 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13494 # Instead, we relocate shared libraries at runtime.
13495 ;;
13496
13497 msdosdjgpp*)
13498 # Just because we use GCC doesn't mean we suddenly get shared libraries
13499 # on systems that don't support them.
13500 lt_prog_compiler_can_build_shared=no
13501 enable_shared=no
13502 ;;
13503
13504 *nto* | *qnx*)
13505 # QNX uses GNU C++, but need to define -shared option too, otherwise
13506 # it will coredump.
13507 lt_prog_compiler_pic='-fPIC -shared'
13508 ;;
13509
13510 sysv4*MP*)
13511 if test -d /usr/nec; then
13512 lt_prog_compiler_pic=-Kconform_pic
13513 fi
13514 ;;
13515
13516 *)
13517 lt_prog_compiler_pic='-fPIC'
13518 ;;
13519 esac
cristy0c60a692010-11-04 01:09:47 +000013520
13521 case $cc_basename in
13522 nvcc*) # Cuda Compiler Driver 2.2
13523 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013524 if test -n "$lt_prog_compiler_pic"; then
13525 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13526 fi
cristy0c60a692010-11-04 01:09:47 +000013527 ;;
13528 esac
cristy73bd4a52010-10-05 11:24:23 +000013529 else
13530 # PORTME Check for flag to pass linker flags through the system compiler.
13531 case $host_os in
13532 aix*)
13533 lt_prog_compiler_wl='-Wl,'
13534 if test "$host_cpu" = ia64; then
13535 # AIX 5 now supports IA64 processor
13536 lt_prog_compiler_static='-Bstatic'
13537 else
13538 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13539 fi
13540 ;;
13541
13542 mingw* | cygwin* | pw32* | os2* | cegcc*)
13543 # This hack is so that the source file can tell whether it is being
13544 # built for inclusion in a dll (and should export symbols for example).
13545 lt_prog_compiler_pic='-DDLL_EXPORT'
13546 ;;
13547
13548 hpux9* | hpux10* | hpux11*)
13549 lt_prog_compiler_wl='-Wl,'
13550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13551 # not for PA HP-UX.
13552 case $host_cpu in
13553 hppa*64*|ia64*)
13554 # +Z the default
13555 ;;
13556 *)
13557 lt_prog_compiler_pic='+Z'
13558 ;;
13559 esac
13560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13561 lt_prog_compiler_static='${wl}-a ${wl}archive'
13562 ;;
13563
13564 irix5* | irix6* | nonstopux*)
13565 lt_prog_compiler_wl='-Wl,'
13566 # PIC (with -KPIC) is the default.
13567 lt_prog_compiler_static='-non_shared'
13568 ;;
13569
cristy0c60a692010-11-04 01:09:47 +000013570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013571 case $cc_basename in
13572 # old Intel for x86_64 which still supported -KPIC.
13573 ecc*)
13574 lt_prog_compiler_wl='-Wl,'
13575 lt_prog_compiler_pic='-KPIC'
13576 lt_prog_compiler_static='-static'
13577 ;;
13578 # icc used to be incompatible with GCC.
13579 # ICC 10 doesn't accept -KPIC any more.
13580 icc* | ifort*)
13581 lt_prog_compiler_wl='-Wl,'
13582 lt_prog_compiler_pic='-fPIC'
13583 lt_prog_compiler_static='-static'
13584 ;;
13585 # Lahey Fortran 8.1.
13586 lf95*)
13587 lt_prog_compiler_wl='-Wl,'
13588 lt_prog_compiler_pic='--shared'
13589 lt_prog_compiler_static='--static'
13590 ;;
cristyda16f162011-02-19 23:52:17 +000013591 nagfor*)
13592 # NAG Fortran compiler
13593 lt_prog_compiler_wl='-Wl,-Wl,,'
13594 lt_prog_compiler_pic='-PIC'
13595 lt_prog_compiler_static='-Bstatic'
13596 ;;
cristy0c60a692010-11-04 01:09:47 +000013597 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000013598 # Portland Group compilers (*not* the Pentium gcc compiler,
13599 # which looks to be a dead project)
13600 lt_prog_compiler_wl='-Wl,'
13601 lt_prog_compiler_pic='-fpic'
13602 lt_prog_compiler_static='-Bstatic'
13603 ;;
13604 ccc*)
13605 lt_prog_compiler_wl='-Wl,'
13606 # All Alpha code is PIC.
13607 lt_prog_compiler_static='-non_shared'
13608 ;;
cristy0c60a692010-11-04 01:09:47 +000013609 xl* | bgxl* | bgf* | mpixl*)
13610 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000013611 lt_prog_compiler_wl='-Wl,'
13612 lt_prog_compiler_pic='-qpic'
13613 lt_prog_compiler_static='-qstaticlink'
13614 ;;
13615 *)
13616 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000013617 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000013618 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13619 lt_prog_compiler_pic='-KPIC'
13620 lt_prog_compiler_static='-Bstatic'
13621 lt_prog_compiler_wl=''
13622 ;;
cristy99bd5232011-12-07 14:38:20 +000013623 *Sun\ F* | *Sun*Fortran*)
13624 lt_prog_compiler_pic='-KPIC'
13625 lt_prog_compiler_static='-Bstatic'
13626 lt_prog_compiler_wl='-Qoption ld '
13627 ;;
cristy73bd4a52010-10-05 11:24:23 +000013628 *Sun\ C*)
13629 # Sun C 5.9
13630 lt_prog_compiler_pic='-KPIC'
13631 lt_prog_compiler_static='-Bstatic'
13632 lt_prog_compiler_wl='-Wl,'
13633 ;;
cristy99bd5232011-12-07 14:38:20 +000013634 *Intel*\ [CF]*Compiler*)
13635 lt_prog_compiler_wl='-Wl,'
13636 lt_prog_compiler_pic='-fPIC'
13637 lt_prog_compiler_static='-static'
13638 ;;
13639 *Portland\ Group*)
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_pic='-fpic'
13642 lt_prog_compiler_static='-Bstatic'
13643 ;;
cristy73bd4a52010-10-05 11:24:23 +000013644 esac
13645 ;;
13646 esac
13647 ;;
13648
13649 newsos6)
13650 lt_prog_compiler_pic='-KPIC'
13651 lt_prog_compiler_static='-Bstatic'
13652 ;;
13653
13654 *nto* | *qnx*)
13655 # QNX uses GNU C++, but need to define -shared option too, otherwise
13656 # it will coredump.
13657 lt_prog_compiler_pic='-fPIC -shared'
13658 ;;
13659
13660 osf3* | osf4* | osf5*)
13661 lt_prog_compiler_wl='-Wl,'
13662 # All OSF/1 code is PIC.
13663 lt_prog_compiler_static='-non_shared'
13664 ;;
13665
13666 rdos*)
13667 lt_prog_compiler_static='-non_shared'
13668 ;;
13669
13670 solaris*)
13671 lt_prog_compiler_pic='-KPIC'
13672 lt_prog_compiler_static='-Bstatic'
13673 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000013674 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000013675 lt_prog_compiler_wl='-Qoption ld ';;
13676 *)
13677 lt_prog_compiler_wl='-Wl,';;
13678 esac
13679 ;;
13680
13681 sunos4*)
13682 lt_prog_compiler_wl='-Qoption ld '
13683 lt_prog_compiler_pic='-PIC'
13684 lt_prog_compiler_static='-Bstatic'
13685 ;;
13686
13687 sysv4 | sysv4.2uw2* | sysv4.3*)
13688 lt_prog_compiler_wl='-Wl,'
13689 lt_prog_compiler_pic='-KPIC'
13690 lt_prog_compiler_static='-Bstatic'
13691 ;;
13692
13693 sysv4*MP*)
13694 if test -d /usr/nec ;then
13695 lt_prog_compiler_pic='-Kconform_pic'
13696 lt_prog_compiler_static='-Bstatic'
13697 fi
13698 ;;
13699
13700 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13701 lt_prog_compiler_wl='-Wl,'
13702 lt_prog_compiler_pic='-KPIC'
13703 lt_prog_compiler_static='-Bstatic'
13704 ;;
13705
13706 unicos*)
13707 lt_prog_compiler_wl='-Wl,'
13708 lt_prog_compiler_can_build_shared=no
13709 ;;
13710
13711 uts4*)
13712 lt_prog_compiler_pic='-pic'
13713 lt_prog_compiler_static='-Bstatic'
13714 ;;
13715
13716 *)
13717 lt_prog_compiler_can_build_shared=no
13718 ;;
13719 esac
13720 fi
13721
13722case $host_os in
13723 # For platforms which do not support PIC, -DPIC is meaningless:
13724 *djgpp*)
13725 lt_prog_compiler_pic=
13726 ;;
13727 *)
13728 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13729 ;;
13730esac
cristy73bd4a52010-10-05 11:24:23 +000013731
cristyda16f162011-02-19 23:52:17 +000013732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13733$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13734if ${lt_cv_prog_compiler_pic+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736else
13737 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13738fi
13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13740$as_echo "$lt_cv_prog_compiler_pic" >&6; }
13741lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000013742
13743#
13744# Check to make sure the PIC flag actually works.
13745#
13746if test -n "$lt_prog_compiler_pic"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13748$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013749if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013750 $as_echo_n "(cached) " >&6
13751else
13752 lt_cv_prog_compiler_pic_works=no
13753 ac_outfile=conftest.$ac_objext
13754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13755 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13756 # Insert the option either (1) after the last *FLAGS variable, or
13757 # (2) before a word containing "conftest.", or (3) at the end.
13758 # Note that $ac_compile itself does not contain backslashes and begins
13759 # with a dollar sign (not a hyphen), so the echo should work correctly.
13760 # The option is referenced via a variable to avoid confusing sed.
13761 lt_compile=`echo "$ac_compile" | $SED \
13762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13764 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013766 (eval "$lt_compile" 2>conftest.err)
13767 ac_status=$?
13768 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013770 if (exit $ac_status) && test -s "$ac_outfile"; then
13771 # The compiler can only warn and ignore the option if not recognized
13772 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13776 lt_cv_prog_compiler_pic_works=yes
13777 fi
13778 fi
13779 $RM conftest*
13780
13781fi
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13783$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13784
13785if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13786 case $lt_prog_compiler_pic in
13787 "" | " "*) ;;
13788 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13789 esac
13790else
13791 lt_prog_compiler_pic=
13792 lt_prog_compiler_can_build_shared=no
13793fi
13794
13795fi
13796
13797
13798
13799
13800
13801
cristyda16f162011-02-19 23:52:17 +000013802
13803
13804
13805
13806
cristy73bd4a52010-10-05 11:24:23 +000013807#
13808# Check to make sure the static flag actually works.
13809#
13810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13812$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013813if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013814 $as_echo_n "(cached) " >&6
13815else
13816 lt_cv_prog_compiler_static_works=no
13817 save_LDFLAGS="$LDFLAGS"
13818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13821 # The linker can only warn and ignore the option if not recognized
13822 # So say no if there are warnings
13823 if test -s conftest.err; then
13824 # Append any errors to the config.log.
13825 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000013826 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13828 if diff conftest.exp conftest.er2 >/dev/null; then
13829 lt_cv_prog_compiler_static_works=yes
13830 fi
13831 else
13832 lt_cv_prog_compiler_static_works=yes
13833 fi
13834 fi
13835 $RM -r conftest*
13836 LDFLAGS="$save_LDFLAGS"
13837
13838fi
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13840$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13841
13842if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13843 :
13844else
13845 lt_prog_compiler_static=
13846fi
13847
13848
13849
13850
13851
13852
13853
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13855$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013856if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013857 $as_echo_n "(cached) " >&6
13858else
13859 lt_cv_prog_compiler_c_o=no
13860 $RM -r conftest 2>/dev/null
13861 mkdir conftest
13862 cd conftest
13863 mkdir out
13864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13865
13866 lt_compiler_flag="-o out/conftest2.$ac_objext"
13867 # Insert the option either (1) after the last *FLAGS variable, or
13868 # (2) before a word containing "conftest.", or (3) at the end.
13869 # Note that $ac_compile itself does not contain backslashes and begins
13870 # with a dollar sign (not a hyphen), so the echo should work correctly.
13871 lt_compile=`echo "$ac_compile" | $SED \
13872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13874 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013875 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013876 (eval "$lt_compile" 2>out/conftest.err)
13877 ac_status=$?
13878 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13881 then
13882 # The compiler can only warn and ignore the option if not recognized
13883 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13887 lt_cv_prog_compiler_c_o=yes
13888 fi
13889 fi
13890 chmod u+w . 2>&5
13891 $RM conftest*
13892 # SGI C++ compiler will create directory out/ii_files/ for
13893 # template instantiation
13894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13895 $RM out/* && rmdir out
13896 cd ..
13897 $RM -r conftest
13898 $RM conftest*
13899
13900fi
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13902$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13903
13904
13905
13906
13907
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13910$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013911if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013912 $as_echo_n "(cached) " >&6
13913else
13914 lt_cv_prog_compiler_c_o=no
13915 $RM -r conftest 2>/dev/null
13916 mkdir conftest
13917 cd conftest
13918 mkdir out
13919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13920
13921 lt_compiler_flag="-o out/conftest2.$ac_objext"
13922 # Insert the option either (1) after the last *FLAGS variable, or
13923 # (2) before a word containing "conftest.", or (3) at the end.
13924 # Note that $ac_compile itself does not contain backslashes and begins
13925 # with a dollar sign (not a hyphen), so the echo should work correctly.
13926 lt_compile=`echo "$ac_compile" | $SED \
13927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013931 (eval "$lt_compile" 2>out/conftest.err)
13932 ac_status=$?
13933 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13936 then
13937 # The compiler can only warn and ignore the option if not recognized
13938 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000013939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13942 lt_cv_prog_compiler_c_o=yes
13943 fi
13944 fi
13945 chmod u+w . 2>&5
13946 $RM conftest*
13947 # SGI C++ compiler will create directory out/ii_files/ for
13948 # template instantiation
13949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13950 $RM out/* && rmdir out
13951 cd ..
13952 $RM -r conftest
13953 $RM conftest*
13954
13955fi
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13957$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13958
13959
13960
13961
13962hard_links="nottested"
13963if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13964 # do not overwrite the value of need_locks provided by the user
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13966$as_echo_n "checking if we can lock with hard links... " >&6; }
13967 hard_links=yes
13968 $RM conftest*
13969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13970 touch conftest.a
13971 ln conftest.a conftest.b 2>&5 || hard_links=no
13972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13974$as_echo "$hard_links" >&6; }
13975 if test "$hard_links" = no; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13977$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13978 need_locks=warn
13979 fi
13980else
13981 need_locks=no
13982fi
13983
13984
13985
13986
13987
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13990$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13991
13992 runpath_var=
13993 allow_undefined_flag=
13994 always_export_symbols=no
13995 archive_cmds=
13996 archive_expsym_cmds=
13997 compiler_needs_object=no
13998 enable_shared_with_static_runtimes=no
13999 export_dynamic_flag_spec=
14000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14001 hardcode_automatic=no
14002 hardcode_direct=no
14003 hardcode_direct_absolute=no
14004 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014005 hardcode_libdir_separator=
14006 hardcode_minus_L=no
14007 hardcode_shlibpath_var=unsupported
14008 inherit_rpath=no
14009 link_all_deplibs=unknown
14010 module_cmds=
14011 module_expsym_cmds=
14012 old_archive_from_new_cmds=
14013 old_archive_from_expsyms_cmds=
14014 thread_safe_flag_spec=
14015 whole_archive_flag_spec=
14016 # include_expsyms should be a list of space-separated symbols to be *always*
14017 # included in the symbol list
14018 include_expsyms=
14019 # exclude_expsyms can be an extended regexp of symbols to exclude
14020 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14021 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14022 # as well as any symbol that contains `d'.
14023 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14024 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14025 # platforms (ab)use it in PIC code, but their linkers get confused if
14026 # the symbol is explicitly referenced. Since portable code cannot
14027 # rely on this symbol name, it's probably fine to never include it in
14028 # preloaded symbol tables.
14029 # Exclude shared library initialization/finalization symbols.
14030 extract_expsyms_cmds=
14031
14032 case $host_os in
14033 cygwin* | mingw* | pw32* | cegcc*)
14034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14035 # When not using gcc, we currently assume that we are using
14036 # Microsoft Visual C++.
14037 if test "$GCC" != yes; then
14038 with_gnu_ld=no
14039 fi
14040 ;;
14041 interix*)
14042 # we just hope/assume this is gcc and not c89 (= MSVC++)
14043 with_gnu_ld=yes
14044 ;;
14045 openbsd*)
14046 with_gnu_ld=no
14047 ;;
14048 esac
14049
14050 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014051
14052 # On some targets, GNU ld is compatible enough with the native linker
14053 # that we're better off using the native interface for both.
14054 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014055 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014056 case $host_os in
14057 aix*)
14058 # The AIX port of GNU ld has always aspired to compatibility
14059 # with the native linker. However, as the warning in the GNU ld
14060 # block says, versions before 2.19.5* couldn't really create working
14061 # shared libraries, regardless of the interface used.
14062 case `$LD -v 2>&1` in
14063 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14064 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14065 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14066 *)
14067 lt_use_gnu_ld_interface=yes
14068 ;;
14069 esac
14070 ;;
14071 *)
14072 lt_use_gnu_ld_interface=yes
14073 ;;
14074 esac
14075 fi
14076
14077 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014078 # If archive_cmds runs LD, not CC, wlarc should be empty
14079 wlarc='${wl}'
14080
14081 # Set some defaults for GNU ld with shared library support. These
14082 # are reset later if shared libraries are not supported. Putting them
14083 # here allows them to be overridden if necessary.
14084 runpath_var=LD_RUN_PATH
14085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14086 export_dynamic_flag_spec='${wl}--export-dynamic'
14087 # ancient GNU ld didn't support --whole-archive et. al.
14088 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14089 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14090 else
14091 whole_archive_flag_spec=
14092 fi
14093 supports_anon_versioning=no
14094 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014095 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014096 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14099 *\ 2.11.*) ;; # other 2.11 versions
14100 *) supports_anon_versioning=yes ;;
14101 esac
14102
14103 # See if GNU ld supports shared libraries.
14104 case $host_os in
14105 aix[3-9]*)
14106 # On AIX/PPC, the GNU linker is very broken
14107 if test "$host_cpu" != ia64; then
14108 ld_shlibs=no
14109 cat <<_LT_EOF 1>&2
14110
cristy0c60a692010-11-04 01:09:47 +000014111*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014112*** to be unable to reliably create shared libraries on AIX.
14113*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014114*** really care for shared libraries, you may want to install binutils
14115*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14116*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014117
14118_LT_EOF
14119 fi
14120 ;;
14121
14122 amigaos*)
14123 case $host_cpu in
14124 powerpc)
14125 # see comment about AmigaOS4 .so support
14126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14127 archive_expsym_cmds=''
14128 ;;
14129 m68k)
14130 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)'
14131 hardcode_libdir_flag_spec='-L$libdir'
14132 hardcode_minus_L=yes
14133 ;;
14134 esac
14135 ;;
14136
14137 beos*)
14138 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14139 allow_undefined_flag=unsupported
14140 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14141 # support --undefined. This deserves some investigation. FIXME
14142 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14143 else
14144 ld_shlibs=no
14145 fi
14146 ;;
14147
14148 cygwin* | mingw* | pw32* | cegcc*)
14149 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14150 # as there is no search path for DLLs.
14151 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014152 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014153 allow_undefined_flag=unsupported
14154 always_export_symbols=no
14155 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014156 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'
14157 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 +000014158
14159 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14161 # If the export-symbols file already is a .def file (1st line
14162 # is EXPORTS), use it as is; otherwise, prepend...
14163 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14164 cp $export_symbols $output_objdir/$soname.def;
14165 else
14166 echo EXPORTS > $output_objdir/$soname.def;
14167 cat $export_symbols >> $output_objdir/$soname.def;
14168 fi~
14169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14170 else
14171 ld_shlibs=no
14172 fi
14173 ;;
14174
cristy0c60a692010-11-04 01:09:47 +000014175 haiku*)
14176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14177 link_all_deplibs=yes
14178 ;;
14179
cristy73bd4a52010-10-05 11:24:23 +000014180 interix[3-9]*)
14181 hardcode_direct=no
14182 hardcode_shlibpath_var=no
14183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14184 export_dynamic_flag_spec='${wl}-E'
14185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14186 # Instead, shared libraries are loaded at an image base (0x10000000 by
14187 # default) and relocated if they conflict, which is a slow very memory
14188 # consuming and fragmenting process. To avoid this, we pick a random,
14189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14192 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'
14193 ;;
14194
cristy0c60a692010-11-04 01:09:47 +000014195 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014196 tmp_diet=no
14197 if test "$host_os" = linux-dietlibc; then
14198 case $cc_basename in
14199 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14200 esac
14201 fi
14202 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14203 && test "$tmp_diet" = no
14204 then
cristyda16f162011-02-19 23:52:17 +000014205 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014206 tmp_sharedflag='-shared'
14207 case $cc_basename,$host_cpu in
14208 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014209 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 +000014210 tmp_addflag=' $pic_flag'
14211 ;;
cristy0c60a692010-11-04 01:09:47 +000014212 pgf77* | pgf90* | pgf95* | pgfortran*)
14213 # Portland Group f77 and f90 compilers
14214 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 +000014215 tmp_addflag=' $pic_flag -Mnomain' ;;
14216 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14217 tmp_addflag=' -i_dynamic' ;;
14218 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14219 tmp_addflag=' -i_dynamic -nofor_main' ;;
14220 ifc* | ifort*) # Intel Fortran compiler
14221 tmp_addflag=' -nofor_main' ;;
14222 lf95*) # Lahey Fortran 8.1
14223 whole_archive_flag_spec=
14224 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014225 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014226 tmp_sharedflag='-qmkshrobj'
14227 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014228 nvcc*) # Cuda Compiler Driver 2.2
14229 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'
14230 compiler_needs_object=yes
14231 ;;
cristy73bd4a52010-10-05 11:24:23 +000014232 esac
14233 case `$CC -V 2>&1 | sed 5q` in
14234 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014235 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 +000014236 compiler_needs_object=yes
14237 tmp_sharedflag='-G' ;;
14238 *Sun\ F*) # Sun Fortran 8.3
14239 tmp_sharedflag='-G' ;;
14240 esac
14241 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242
14243 if test "x$supports_anon_versioning" = xyes; then
14244 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246 echo "local: *; };" >> $output_objdir/$libname.ver~
14247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14248 fi
14249
14250 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014251 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014252 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14253 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014255 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014256 if test "x$supports_anon_versioning" = xyes; then
14257 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14258 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14259 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014260 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014261 fi
14262 ;;
14263 esac
14264 else
14265 ld_shlibs=no
14266 fi
14267 ;;
14268
14269 netbsd*)
14270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14271 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14272 wlarc=
14273 else
cristyda16f162011-02-19 23:52:17 +000014274 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14275 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 +000014276 fi
14277 ;;
14278
14279 solaris*)
14280 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14281 ld_shlibs=no
14282 cat <<_LT_EOF 1>&2
14283
14284*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14285*** create shared libraries on Solaris systems. Therefore, libtool
14286*** is disabling shared libraries support. We urge you to upgrade GNU
14287*** binutils to release 2.9.1 or newer. Another option is to modify
14288*** your PATH or compiler configuration so that the native linker is
14289*** used, and then restart.
14290
14291_LT_EOF
14292 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294 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 +000014295 else
14296 ld_shlibs=no
14297 fi
14298 ;;
14299
14300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14301 case `$LD -v 2>&1` in
14302 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14303 ld_shlibs=no
14304 cat <<_LT_EOF 1>&2
14305
14306*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14307*** reliably create shared libraries on SCO systems. Therefore, libtool
14308*** is disabling shared libraries support. We urge you to upgrade GNU
14309*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14310*** your PATH or compiler configuration so that the native linker is
14311*** used, and then restart.
14312
14313_LT_EOF
14314 ;;
14315 *)
14316 # For security reasons, it is highly recommended that you always
14317 # use absolute paths for naming shared libraries, and exclude the
14318 # DT_RUNPATH tag from executables and libraries. But doing so
14319 # requires that you compile everything twice, which is a pain.
14320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14324 else
14325 ld_shlibs=no
14326 fi
14327 ;;
14328 esac
14329 ;;
14330
14331 sunos4*)
14332 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14333 wlarc=
14334 hardcode_direct=yes
14335 hardcode_shlibpath_var=no
14336 ;;
14337
14338 *)
14339 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14341 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 +000014342 else
14343 ld_shlibs=no
14344 fi
14345 ;;
14346 esac
14347
14348 if test "$ld_shlibs" = no; then
14349 runpath_var=
14350 hardcode_libdir_flag_spec=
14351 export_dynamic_flag_spec=
14352 whole_archive_flag_spec=
14353 fi
14354 else
14355 # PORTME fill in a description of your system's linker (not GNU ld)
14356 case $host_os in
14357 aix3*)
14358 allow_undefined_flag=unsupported
14359 always_export_symbols=yes
14360 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'
14361 # Note: this linker hardcodes the directories in LIBPATH if there
14362 # are no directories specified by -L.
14363 hardcode_minus_L=yes
14364 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14365 # Neither direct hardcoding nor static linking is supported with a
14366 # broken collect2.
14367 hardcode_direct=unsupported
14368 fi
14369 ;;
14370
14371 aix[4-9]*)
14372 if test "$host_cpu" = ia64; then
14373 # On IA64, the linker does run time linking by default, so we don't
14374 # have to do anything special.
14375 aix_use_runtimelinking=no
14376 exp_sym_flag='-Bexport'
14377 no_entry_flag=""
14378 else
14379 # If we're using GNU nm, then we don't want the "-C" option.
14380 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014381 # Also, AIX nm treats weak defined symbols like other global
14382 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014383 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014384 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 +000014385 else
14386 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'
14387 fi
14388 aix_use_runtimelinking=no
14389
14390 # Test if we are trying to use run time linking or normal
14391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14392 # need to do runtime linking.
14393 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14394 for ld_flag in $LDFLAGS; do
14395 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14396 aix_use_runtimelinking=yes
14397 break
14398 fi
14399 done
14400 ;;
14401 esac
14402
14403 exp_sym_flag='-bexport'
14404 no_entry_flag='-bnoentry'
14405 fi
14406
14407 # When large executables or shared objects are built, AIX ld can
14408 # have problems creating the table of contents. If linking a library
14409 # or program results in "error TOC overflow" add -mminimal-toc to
14410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14412
14413 archive_cmds=''
14414 hardcode_direct=yes
14415 hardcode_direct_absolute=yes
14416 hardcode_libdir_separator=':'
14417 link_all_deplibs=yes
14418 file_list_spec='${wl}-f,'
14419
14420 if test "$GCC" = yes; then
14421 case $host_os in aix4.[012]|aix4.[012].*)
14422 # We only want to do this on AIX 4.2 and lower, the check
14423 # below for broken collect2 doesn't work under 4.3+
14424 collect2name=`${CC} -print-prog-name=collect2`
14425 if test -f "$collect2name" &&
14426 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14427 then
14428 # We have reworked collect2
14429 :
14430 else
14431 # We have old collect2
14432 hardcode_direct=unsupported
14433 # It fails to find uninstalled libraries when the uninstalled
14434 # path is not listed in the libpath. Setting hardcode_minus_L
14435 # to unsupported forces relinking
14436 hardcode_minus_L=yes
14437 hardcode_libdir_flag_spec='-L$libdir'
14438 hardcode_libdir_separator=
14439 fi
14440 ;;
14441 esac
14442 shared_flag='-shared'
14443 if test "$aix_use_runtimelinking" = yes; then
14444 shared_flag="$shared_flag "'${wl}-G'
14445 fi
14446 else
14447 # not using gcc
14448 if test "$host_cpu" = ia64; then
14449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14450 # chokes on -Wl,-G. The following line is correct:
14451 shared_flag='-G'
14452 else
14453 if test "$aix_use_runtimelinking" = yes; then
14454 shared_flag='${wl}-G'
14455 else
14456 shared_flag='${wl}-bM:SRE'
14457 fi
14458 fi
14459 fi
14460
14461 export_dynamic_flag_spec='${wl}-bexpall'
14462 # It seems that -bexpall does not export symbols beginning with
14463 # underscore (_), so it is better to generate a list of symbols to export.
14464 always_export_symbols=yes
14465 if test "$aix_use_runtimelinking" = yes; then
14466 # Warning - without using the other runtime loading flags (-brtl),
14467 # -berok will link without error, but may produce a broken library.
14468 allow_undefined_flag='-berok'
14469 # Determine the default libpath from the value encoded in an
14470 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014471 if test "${lt_cv_aix_libpath+set}" = set; then
14472 aix_libpath=$lt_cv_aix_libpath
14473else
14474 if ${lt_cv_aix_libpath_+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476else
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014478/* end confdefs.h. */
14479
14480int
14481main ()
14482{
14483
14484 ;
14485 return 0;
14486}
14487_ACEOF
14488if ac_fn_c_try_link "$LINENO"; then :
14489
cristyda16f162011-02-19 23:52:17 +000014490 lt_aix_libpath_sed='
14491 /Import File Strings/,/^$/ {
14492 /^0/ {
14493 s/^0 *\([^ ]*\) *$/\1/
14494 p
14495 }
14496 }'
14497 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14498 # Check for a 64-bit object if we didn't find anything.
14499 if test -z "$lt_cv_aix_libpath_"; then
14500 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14501 fi
cristy73bd4a52010-10-05 11:24:23 +000014502fi
14503rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014505 if test -z "$lt_cv_aix_libpath_"; then
14506 lt_cv_aix_libpath_="/usr/lib:/lib"
14507 fi
14508
14509fi
14510
14511 aix_libpath=$lt_cv_aix_libpath_
14512fi
cristy73bd4a52010-10-05 11:24:23 +000014513
14514 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014515 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 +000014516 else
14517 if test "$host_cpu" = ia64; then
14518 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14519 allow_undefined_flag="-z nodefs"
14520 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"
14521 else
14522 # Determine the default libpath from the value encoded in an
14523 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014524 if test "${lt_cv_aix_libpath+set}" = set; then
14525 aix_libpath=$lt_cv_aix_libpath
14526else
14527 if ${lt_cv_aix_libpath_+:} false; then :
14528 $as_echo_n "(cached) " >&6
14529else
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014531/* end confdefs.h. */
14532
14533int
14534main ()
14535{
14536
14537 ;
14538 return 0;
14539}
14540_ACEOF
14541if ac_fn_c_try_link "$LINENO"; then :
14542
cristyda16f162011-02-19 23:52:17 +000014543 lt_aix_libpath_sed='
14544 /Import File Strings/,/^$/ {
14545 /^0/ {
14546 s/^0 *\([^ ]*\) *$/\1/
14547 p
14548 }
14549 }'
14550 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14551 # Check for a 64-bit object if we didn't find anything.
14552 if test -z "$lt_cv_aix_libpath_"; then
14553 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14554 fi
cristy73bd4a52010-10-05 11:24:23 +000014555fi
14556rm -f core conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014558 if test -z "$lt_cv_aix_libpath_"; then
14559 lt_cv_aix_libpath_="/usr/lib:/lib"
14560 fi
14561
14562fi
14563
14564 aix_libpath=$lt_cv_aix_libpath_
14565fi
cristy73bd4a52010-10-05 11:24:23 +000014566
14567 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14568 # Warning - without using the other run time loading flags,
14569 # -berok will link without error, but may produce a broken library.
14570 no_undefined_flag=' ${wl}-bernotok'
14571 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014572 if test "$with_gnu_ld" = yes; then
14573 # We only use this code for GNU lds that support --whole-archive.
14574 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14575 else
14576 # Exported symbols can be pulled into shared objects from archives
14577 whole_archive_flag_spec='$convenience'
14578 fi
cristy73bd4a52010-10-05 11:24:23 +000014579 archive_cmds_need_lc=yes
14580 # This is similar to how AIX traditionally builds its shared libraries.
14581 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'
14582 fi
14583 fi
14584 ;;
14585
14586 amigaos*)
14587 case $host_cpu in
14588 powerpc)
14589 # see comment about AmigaOS4 .so support
14590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14591 archive_expsym_cmds=''
14592 ;;
14593 m68k)
14594 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)'
14595 hardcode_libdir_flag_spec='-L$libdir'
14596 hardcode_minus_L=yes
14597 ;;
14598 esac
14599 ;;
14600
14601 bsdi[45]*)
14602 export_dynamic_flag_spec=-rdynamic
14603 ;;
14604
14605 cygwin* | mingw* | pw32* | cegcc*)
14606 # When not using gcc, we currently assume that we are using
14607 # Microsoft Visual C++.
14608 # hardcode_libdir_flag_spec is actually meaningless, as there is
14609 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000014610 case $cc_basename in
14611 cl*)
14612 # Native MSVC
14613 hardcode_libdir_flag_spec=' '
14614 allow_undefined_flag=unsupported
14615 always_export_symbols=yes
14616 file_list_spec='@'
14617 # Tell ltmain to make .lib files, not .a files.
14618 libext=lib
14619 # Tell ltmain to make .dll files, not .so files.
14620 shrext_cmds=".dll"
14621 # FIXME: Setting linknames here is a bad hack.
14622 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14623 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14624 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14625 else
14626 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14627 fi~
14628 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14629 linknames='
14630 # The linker will not automatically build a static lib if we build a DLL.
14631 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14632 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000014633 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000014634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14635 # Don't use ranlib
14636 old_postinstall_cmds='chmod 644 $oldlib'
14637 postlink_cmds='lt_outputfile="@OUTPUT@"~
14638 lt_tool_outputfile="@TOOL_OUTPUT@"~
14639 case $lt_outputfile in
14640 *.exe|*.EXE) ;;
14641 *)
14642 lt_outputfile="$lt_outputfile.exe"
14643 lt_tool_outputfile="$lt_tool_outputfile.exe"
14644 ;;
14645 esac~
14646 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14647 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14648 $RM "$lt_outputfile.manifest";
14649 fi'
14650 ;;
14651 *)
14652 # Assume MSVC wrapper
14653 hardcode_libdir_flag_spec=' '
14654 allow_undefined_flag=unsupported
14655 # Tell ltmain to make .lib files, not .a files.
14656 libext=lib
14657 # Tell ltmain to make .dll files, not .so files.
14658 shrext_cmds=".dll"
14659 # FIXME: Setting linknames here is a bad hack.
14660 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14661 # The linker will automatically build a .lib file if we build a DLL.
14662 old_archive_from_new_cmds='true'
14663 # FIXME: Should let the user specify the lib program.
14664 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14665 enable_shared_with_static_runtimes=yes
14666 ;;
14667 esac
cristy73bd4a52010-10-05 11:24:23 +000014668 ;;
14669
14670 darwin* | rhapsody*)
14671
14672
14673 archive_cmds_need_lc=no
14674 hardcode_direct=no
14675 hardcode_automatic=yes
14676 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000014677 if test "$lt_cv_ld_force_load" = "yes"; then
14678 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\"`'
cristy99bd5232011-12-07 14:38:20 +000014679
cristy0c60a692010-11-04 01:09:47 +000014680 else
14681 whole_archive_flag_spec=''
14682 fi
cristy73bd4a52010-10-05 11:24:23 +000014683 link_all_deplibs=yes
14684 allow_undefined_flag="$_lt_dar_allow_undefined"
14685 case $cc_basename in
14686 ifort*) _lt_dar_can_shared=yes ;;
14687 *) _lt_dar_can_shared=$GCC ;;
14688 esac
14689 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000014690 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000014691 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14692 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14693 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}"
14694 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}"
14695
14696 else
14697 ld_shlibs=no
14698 fi
14699
14700 ;;
14701
14702 dgux*)
14703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14704 hardcode_libdir_flag_spec='-L$libdir'
14705 hardcode_shlibpath_var=no
14706 ;;
14707
cristy73bd4a52010-10-05 11:24:23 +000014708 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14709 # support. Future versions do this automatically, but an explicit c++rt0.o
14710 # does not break anything, and helps significantly (at the cost of a little
14711 # extra space).
14712 freebsd2.2*)
14713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14714 hardcode_libdir_flag_spec='-R$libdir'
14715 hardcode_direct=yes
14716 hardcode_shlibpath_var=no
14717 ;;
14718
14719 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000014720 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000014721 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14722 hardcode_direct=yes
14723 hardcode_minus_L=yes
14724 hardcode_shlibpath_var=no
14725 ;;
14726
14727 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14728 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000014729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014730 hardcode_libdir_flag_spec='-R$libdir'
14731 hardcode_direct=yes
14732 hardcode_shlibpath_var=no
14733 ;;
14734
14735 hpux9*)
14736 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014737 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 +000014738 else
14739 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'
14740 fi
14741 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14742 hardcode_libdir_separator=:
14743 hardcode_direct=yes
14744
14745 # hardcode_minus_L: Not really in the search PATH,
14746 # but as the default location of the library.
14747 hardcode_minus_L=yes
14748 export_dynamic_flag_spec='${wl}-E'
14749 ;;
14750
14751 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000014752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000014753 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 +000014754 else
14755 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14756 fi
14757 if test "$with_gnu_ld" = no; then
14758 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000014759 hardcode_libdir_separator=:
14760 hardcode_direct=yes
14761 hardcode_direct_absolute=yes
14762 export_dynamic_flag_spec='${wl}-E'
14763 # hardcode_minus_L: Not really in the search PATH,
14764 # but as the default location of the library.
14765 hardcode_minus_L=yes
14766 fi
14767 ;;
14768
14769 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000014770 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000014771 case $host_cpu in
14772 hppa*64*)
14773 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14774 ;;
14775 ia64*)
cristyda16f162011-02-19 23:52:17 +000014776 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000014777 ;;
14778 *)
cristyda16f162011-02-19 23:52:17 +000014779 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 +000014780 ;;
14781 esac
14782 else
14783 case $host_cpu in
14784 hppa*64*)
14785 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14786 ;;
14787 ia64*)
14788 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14789 ;;
14790 *)
cristy0c60a692010-11-04 01:09:47 +000014791
14792 # Older versions of the 11.00 compiler do not understand -b yet
14793 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14795$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014796if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014797 $as_echo_n "(cached) " >&6
14798else
14799 lt_cv_prog_compiler__b=no
14800 save_LDFLAGS="$LDFLAGS"
14801 LDFLAGS="$LDFLAGS -b"
14802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14804 # The linker can only warn and ignore the option if not recognized
14805 # So say no if there are warnings
14806 if test -s conftest.err; then
14807 # Append any errors to the config.log.
14808 cat conftest.err 1>&5
14809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14811 if diff conftest.exp conftest.er2 >/dev/null; then
14812 lt_cv_prog_compiler__b=yes
14813 fi
14814 else
14815 lt_cv_prog_compiler__b=yes
14816 fi
14817 fi
14818 $RM -r conftest*
14819 LDFLAGS="$save_LDFLAGS"
14820
14821fi
14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14823$as_echo "$lt_cv_prog_compiler__b" >&6; }
14824
14825if test x"$lt_cv_prog_compiler__b" = xyes; then
14826 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14827else
14828 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14829fi
14830
cristy73bd4a52010-10-05 11:24:23 +000014831 ;;
14832 esac
14833 fi
14834 if test "$with_gnu_ld" = no; then
14835 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14836 hardcode_libdir_separator=:
14837
14838 case $host_cpu in
14839 hppa*64*|ia64*)
14840 hardcode_direct=no
14841 hardcode_shlibpath_var=no
14842 ;;
14843 *)
14844 hardcode_direct=yes
14845 hardcode_direct_absolute=yes
14846 export_dynamic_flag_spec='${wl}-E'
14847
14848 # hardcode_minus_L: Not really in the search PATH,
14849 # but as the default location of the library.
14850 hardcode_minus_L=yes
14851 ;;
14852 esac
14853 fi
14854 ;;
14855
14856 irix5* | irix6* | nonstopux*)
14857 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000014858 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 +000014859 # Try to use the -exported_symbol ld option, if it does not
14860 # work, assume that -exports_file does not work either and
14861 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000014862 # This should be the same for all languages, so no per-tag cache variable.
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14864$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14865if ${lt_cv_irix_exported_symbol+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 save_LDFLAGS="$LDFLAGS"
14869 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014871/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000014872int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000014873_ACEOF
14874if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000014875 lt_cv_irix_exported_symbol=yes
14876else
14877 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000014878fi
14879rm -f core conftest.err conftest.$ac_objext \
14880 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014881 LDFLAGS="$save_LDFLAGS"
14882fi
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14884$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14885 if test "$lt_cv_irix_exported_symbol" = yes; then
14886 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'
14887 fi
cristy73bd4a52010-10-05 11:24:23 +000014888 else
cristy0c60a692010-11-04 01:09:47 +000014889 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'
14890 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 +000014891 fi
14892 archive_cmds_need_lc='no'
14893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14894 hardcode_libdir_separator=:
14895 inherit_rpath=yes
14896 link_all_deplibs=yes
14897 ;;
14898
14899 netbsd*)
14900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14902 else
14903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14904 fi
14905 hardcode_libdir_flag_spec='-R$libdir'
14906 hardcode_direct=yes
14907 hardcode_shlibpath_var=no
14908 ;;
14909
14910 newsos6)
14911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14912 hardcode_direct=yes
14913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14914 hardcode_libdir_separator=:
14915 hardcode_shlibpath_var=no
14916 ;;
14917
14918 *nto* | *qnx*)
14919 ;;
14920
14921 openbsd*)
14922 if test -f /usr/libexec/ld.so; then
14923 hardcode_direct=yes
14924 hardcode_shlibpath_var=no
14925 hardcode_direct_absolute=yes
14926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14930 export_dynamic_flag_spec='${wl}-E'
14931 else
14932 case $host_os in
14933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14935 hardcode_libdir_flag_spec='-R$libdir'
14936 ;;
14937 *)
14938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14940 ;;
14941 esac
14942 fi
14943 else
14944 ld_shlibs=no
14945 fi
14946 ;;
14947
14948 os2*)
14949 hardcode_libdir_flag_spec='-L$libdir'
14950 hardcode_minus_L=yes
14951 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000014952 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 +000014953 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14954 ;;
14955
14956 osf3*)
14957 if test "$GCC" = yes; then
14958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000014959 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 +000014960 else
14961 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014962 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 +000014963 fi
14964 archive_cmds_need_lc='no'
14965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14966 hardcode_libdir_separator=:
14967 ;;
14968
14969 osf4* | osf5*) # as osf3* with the addition of -msym flag
14970 if test "$GCC" = yes; then
14971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000014972 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 +000014973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14974 else
14975 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000014976 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 +000014977 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 +000014978 $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 +000014979
14980 # Both c and cxx compiler support -rpath directly
14981 hardcode_libdir_flag_spec='-rpath $libdir'
14982 fi
14983 archive_cmds_need_lc='no'
14984 hardcode_libdir_separator=:
14985 ;;
14986
14987 solaris*)
14988 no_undefined_flag=' -z defs'
14989 if test "$GCC" = yes; then
14990 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000014991 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 +000014992 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 +000014993 $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 +000014994 else
14995 case `$CC -V 2>&1` in
14996 *"Compilers 5.0"*)
14997 wlarc=''
14998 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15001 ;;
15002 *)
15003 wlarc='${wl}'
15004 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15006 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15007 ;;
15008 esac
15009 fi
15010 hardcode_libdir_flag_spec='-R$libdir'
15011 hardcode_shlibpath_var=no
15012 case $host_os in
15013 solaris2.[0-5] | solaris2.[0-5].*) ;;
15014 *)
15015 # The compiler driver will combine and reorder linker options,
15016 # but understands `-z linker_flag'. GCC discards it without `$wl',
15017 # but is careful enough not to reorder.
15018 # Supported since Solaris 2.6 (maybe 2.5.1?)
15019 if test "$GCC" = yes; then
15020 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15021 else
15022 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15023 fi
15024 ;;
15025 esac
15026 link_all_deplibs=yes
15027 ;;
15028
15029 sunos4*)
15030 if test "x$host_vendor" = xsequent; then
15031 # Use $CC to link under sequent, because it throws in some extra .o
15032 # files that make .init and .fini sections work.
15033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15034 else
15035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15036 fi
15037 hardcode_libdir_flag_spec='-L$libdir'
15038 hardcode_direct=yes
15039 hardcode_minus_L=yes
15040 hardcode_shlibpath_var=no
15041 ;;
15042
15043 sysv4)
15044 case $host_vendor in
15045 sni)
15046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_direct=yes # is this really true???
15048 ;;
15049 siemens)
15050 ## LD is ld it makes a PLAMLIB
15051 ## CC just makes a GrossModule.
15052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15053 reload_cmds='$CC -r -o $output$reload_objs'
15054 hardcode_direct=no
15055 ;;
15056 motorola)
15057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15059 ;;
15060 esac
15061 runpath_var='LD_RUN_PATH'
15062 hardcode_shlibpath_var=no
15063 ;;
15064
15065 sysv4.3*)
15066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15067 hardcode_shlibpath_var=no
15068 export_dynamic_flag_spec='-Bexport'
15069 ;;
15070
15071 sysv4*MP*)
15072 if test -d /usr/nec; then
15073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15074 hardcode_shlibpath_var=no
15075 runpath_var=LD_RUN_PATH
15076 hardcode_runpath_var=yes
15077 ld_shlibs=yes
15078 fi
15079 ;;
15080
15081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15082 no_undefined_flag='${wl}-z,text'
15083 archive_cmds_need_lc=no
15084 hardcode_shlibpath_var=no
15085 runpath_var='LD_RUN_PATH'
15086
15087 if test "$GCC" = yes; then
15088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15090 else
15091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15093 fi
15094 ;;
15095
15096 sysv5* | sco3.2v5* | sco5v6*)
15097 # Note: We can NOT use -z defs as we might desire, because we do not
15098 # link with -lc, and that would cause any symbols used from libc to
15099 # always be unresolved, which means just about no library would
15100 # ever link correctly. If we're not using GNU ld we use -z text
15101 # though, which does catch some bad symbols but isn't as heavy-handed
15102 # as -z defs.
15103 no_undefined_flag='${wl}-z,text'
15104 allow_undefined_flag='${wl}-z,nodefs'
15105 archive_cmds_need_lc=no
15106 hardcode_shlibpath_var=no
15107 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15108 hardcode_libdir_separator=':'
15109 link_all_deplibs=yes
15110 export_dynamic_flag_spec='${wl}-Bexport'
15111 runpath_var='LD_RUN_PATH'
15112
15113 if test "$GCC" = yes; then
15114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15116 else
15117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119 fi
15120 ;;
15121
15122 uts4*)
15123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15124 hardcode_libdir_flag_spec='-L$libdir'
15125 hardcode_shlibpath_var=no
15126 ;;
15127
15128 *)
15129 ld_shlibs=no
15130 ;;
15131 esac
15132
15133 if test x$host_vendor = xsni; then
15134 case $host in
15135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15136 export_dynamic_flag_spec='${wl}-Blargedynsym'
15137 ;;
15138 esac
15139 fi
15140 fi
15141
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15143$as_echo "$ld_shlibs" >&6; }
15144test "$ld_shlibs" = no && can_build_shared=no
15145
15146with_gnu_ld=$with_gnu_ld
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162#
15163# Do we need to explicitly link libc?
15164#
15165case "x$archive_cmds_need_lc" in
15166x|xyes)
15167 # Assume -lc should be added
15168 archive_cmds_need_lc=yes
15169
15170 if test "$enable_shared" = yes && test "$GCC" = yes; then
15171 case $archive_cmds in
15172 *'~'*)
15173 # FIXME: we may have to deal with multi-command sequences.
15174 ;;
15175 '$CC '*)
15176 # Test whether the compiler implicitly links with -lc since on some
15177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15178 # to ld, don't add -lc before -lgcc.
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015181if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015182 $as_echo_n "(cached) " >&6
15183else
15184 $RM conftest*
15185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015186
cristy0c60a692010-11-04 01:09:47 +000015187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015188 (eval $ac_compile) 2>&5
15189 ac_status=$?
15190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015192 soname=conftest
15193 lib=conftest
15194 libobjs=conftest.$ac_objext
15195 deplibs=
15196 wl=$lt_prog_compiler_wl
15197 pic_flag=$lt_prog_compiler_pic
15198 compiler_flags=-v
15199 linker_flags=-v
15200 verstring=
15201 output_objdir=.
15202 libname=conftest
15203 lt_save_allow_undefined_flag=$allow_undefined_flag
15204 allow_undefined_flag=
15205 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 +000015206 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15207 ac_status=$?
15208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15209 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015210 then
15211 lt_cv_archive_cmds_need_lc=no
15212 else
15213 lt_cv_archive_cmds_need_lc=yes
15214 fi
15215 allow_undefined_flag=$lt_save_allow_undefined_flag
15216 else
15217 cat conftest.err 1>&5
15218 fi
15219 $RM conftest*
15220
15221fi
15222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15223$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15224 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015225 ;;
15226 esac
15227 fi
15228 ;;
15229esac
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
cristy73bd4a52010-10-05 11:24:23 +000015382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15383$as_echo_n "checking dynamic linker characteristics... " >&6; }
15384
15385if test "$GCC" = yes; then
15386 case $host_os in
15387 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15388 *) lt_awk_arg="/^libraries:/" ;;
15389 esac
cristy0c60a692010-11-04 01:09:47 +000015390 case $host_os in
15391 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15392 *) lt_sed_strip_eq="s,=/,/,g" ;;
15393 esac
15394 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15395 case $lt_search_path_spec in
15396 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015397 # if the path contains ";" then we assume it to be the separator
15398 # otherwise default to the standard path separator (i.e. ":") - it is
15399 # assumed that no part of a normal pathname contains ";" but that should
15400 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15402 ;;
15403 *)
15404 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15405 ;;
15406 esac
cristy73bd4a52010-10-05 11:24:23 +000015407 # Ok, now we have the path, separated by spaces, we can step through it
15408 # and add multilib dir if necessary.
15409 lt_tmp_lt_search_path_spec=
15410 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15411 for lt_sys_path in $lt_search_path_spec; do
15412 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15414 else
15415 test -d "$lt_sys_path" && \
15416 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15417 fi
15418 done
cristy0c60a692010-11-04 01:09:47 +000015419 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015420BEGIN {RS=" "; FS="/|\n";} {
15421 lt_foo="";
15422 lt_count=0;
15423 for (lt_i = NF; lt_i > 0; lt_i--) {
15424 if ($lt_i != "" && $lt_i != ".") {
15425 if ($lt_i == "..") {
15426 lt_count++;
15427 } else {
15428 if (lt_count == 0) {
15429 lt_foo="/" $lt_i lt_foo;
15430 } else {
15431 lt_count--;
15432 }
15433 }
15434 }
15435 }
15436 if (lt_foo != "") { lt_freq[lt_foo]++; }
15437 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15438}'`
cristy0c60a692010-11-04 01:09:47 +000015439 # AWK program above erroneously prepends '/' to C:/dos/paths
15440 # for these hosts.
15441 case $host_os in
15442 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15443 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15444 esac
15445 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015446else
15447 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15448fi
15449library_names_spec=
15450libname_spec='lib$name'
15451soname_spec=
15452shrext_cmds=".so"
15453postinstall_cmds=
15454postuninstall_cmds=
15455finish_cmds=
15456finish_eval=
15457shlibpath_var=
15458shlibpath_overrides_runpath=unknown
15459version_type=none
15460dynamic_linker="$host_os ld.so"
15461sys_lib_dlsearch_path_spec="/lib /usr/lib"
15462need_lib_prefix=unknown
15463hardcode_into_libs=no
15464
15465# when you set need_version to no, make sure it does not cause -set_version
15466# flags to be left without arguments
15467need_version=unknown
15468
15469case $host_os in
15470aix3*)
cristy99bd5232011-12-07 14:38:20 +000015471 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15473 shlibpath_var=LIBPATH
15474
15475 # AIX 3 has no versioning support, so we append a major version to the name.
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 ;;
15478
15479aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015480 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015481 need_lib_prefix=no
15482 need_version=no
15483 hardcode_into_libs=yes
15484 if test "$host_cpu" = ia64; then
15485 # AIX 5 supports IA64
15486 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 else
15489 # With GCC up to 2.95.x, collect2 would create an import file
15490 # for dependence libraries. The import file would start with
15491 # the line `#! .'. This would cause the generated library to
15492 # depend on `.', always an invalid library. This was fixed in
15493 # development snapshots of GCC prior to 3.0.
15494 case $host_os in
15495 aix4 | aix4.[01] | aix4.[01].*)
15496 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15497 echo ' yes '
15498 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15499 :
15500 else
15501 can_build_shared=no
15502 fi
15503 ;;
15504 esac
15505 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15506 # soname into executable. Probably we can add versioning support to
15507 # collect2, so additional links can be useful in future.
15508 if test "$aix_use_runtimelinking" = yes; then
15509 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15510 # instead of lib<name>.a to let people know that these are not
15511 # typical AIX shared libraries.
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 else
15514 # We preserve .a as extension for shared libraries through AIX4.2
15515 # and later when we are not doing run time linking.
15516 library_names_spec='${libname}${release}.a $libname.a'
15517 soname_spec='${libname}${release}${shared_ext}$major'
15518 fi
15519 shlibpath_var=LIBPATH
15520 fi
15521 ;;
15522
15523amigaos*)
15524 case $host_cpu in
15525 powerpc)
15526 # Since July 2007 AmigaOS4 officially supports .so libraries.
15527 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 ;;
15530 m68k)
15531 library_names_spec='$libname.ixlibrary $libname.a'
15532 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015533 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 +000015534 ;;
15535 esac
15536 ;;
15537
15538beos*)
15539 library_names_spec='${libname}${shared_ext}'
15540 dynamic_linker="$host_os ld.so"
15541 shlibpath_var=LIBRARY_PATH
15542 ;;
15543
15544bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015545 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015546 need_version=no
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15552 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15553 # the default ld.so.conf also contains /usr/contrib/lib and
15554 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15555 # libtool to hard-code these into programs
15556 ;;
15557
15558cygwin* | mingw* | pw32* | cegcc*)
15559 version_type=windows
15560 shrext_cmds=".dll"
15561 need_version=no
15562 need_lib_prefix=no
15563
cristyda16f162011-02-19 23:52:17 +000015564 case $GCC,$cc_basename in
15565 yes,*)
15566 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015567 library_names_spec='$libname.dll.a'
15568 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15569 postinstall_cmds='base_file=`basename \${file}`~
15570 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15571 dldir=$destdir/`dirname \$dlpath`~
15572 test -d \$dldir || mkdir -p \$dldir~
15573 $install_prog $dir/$dlname \$dldir/$dlname~
15574 chmod a+x \$dldir/$dlname~
15575 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15576 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15577 fi'
15578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15579 dlpath=$dir/\$dldll~
15580 $RM \$dlpath'
15581 shlibpath_overrides_runpath=yes
15582
15583 case $host_os in
15584 cygwin*)
15585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000015587
15588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000015589 ;;
15590 mingw* | cegcc*)
15591 # MinGW DLLs use traditional 'lib' prefix
15592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000015593 ;;
15594 pw32*)
15595 # pw32 DLLs use 'pw' prefix rather than 'lib'
15596 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15597 ;;
15598 esac
cristyda16f162011-02-19 23:52:17 +000015599 dynamic_linker='Win32 ld.exe'
15600 ;;
15601
15602 *,cl*)
15603 # Native MSVC
15604 libname_spec='$name'
15605 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15606 library_names_spec='${libname}.dll.lib'
15607
15608 case $build_os in
15609 mingw*)
15610 sys_lib_search_path_spec=
15611 lt_save_ifs=$IFS
15612 IFS=';'
15613 for lt_path in $LIB
15614 do
15615 IFS=$lt_save_ifs
15616 # Let DOS variable expansion print the short 8.3 style file name.
15617 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15618 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15619 done
15620 IFS=$lt_save_ifs
15621 # Convert to MSYS style.
15622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15623 ;;
15624 cygwin*)
15625 # Convert to unix form, then to dos form, then back to unix form
15626 # but this time dos style (no spaces!) so that the unix form looks
15627 # like /cygdrive/c/PROGRA~1:/cygdr...
15628 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15629 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15630 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15631 ;;
15632 *)
15633 sys_lib_search_path_spec="$LIB"
15634 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15635 # It is most probably a Windows format PATH.
15636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15637 else
15638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15639 fi
15640 # FIXME: find the short name or the path components, as spaces are
15641 # common. (e.g. "Program Files" -> "PROGRA~1")
15642 ;;
15643 esac
15644
15645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15646 postinstall_cmds='base_file=`basename \${file}`~
15647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15648 dldir=$destdir/`dirname \$dlpath`~
15649 test -d \$dldir || mkdir -p \$dldir~
15650 $install_prog $dir/$dlname \$dldir/$dlname'
15651 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15652 dlpath=$dir/\$dldll~
15653 $RM \$dlpath'
15654 shlibpath_overrides_runpath=yes
15655 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000015656 ;;
15657
15658 *)
cristyda16f162011-02-19 23:52:17 +000015659 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000015660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000015661 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000015662 ;;
15663 esac
cristy73bd4a52010-10-05 11:24:23 +000015664 # FIXME: first we should search . and the directory the executable is in
15665 shlibpath_var=PATH
15666 ;;
15667
15668darwin* | rhapsody*)
15669 dynamic_linker="$host_os dyld"
15670 version_type=darwin
15671 need_lib_prefix=no
15672 need_version=no
15673 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15674 soname_spec='${libname}${release}${major}$shared_ext'
15675 shlibpath_overrides_runpath=yes
15676 shlibpath_var=DYLD_LIBRARY_PATH
15677 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15678
15679 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15681 ;;
15682
15683dgux*)
cristy99bd5232011-12-07 14:38:20 +000015684 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015685 need_lib_prefix=no
15686 need_version=no
15687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 ;;
15691
cristy73bd4a52010-10-05 11:24:23 +000015692freebsd* | dragonfly*)
15693 # DragonFly does not have aout. When/if they implement a new
15694 # versioning mechanism, adjust this.
15695 if test -x /usr/bin/objformat; then
15696 objformat=`/usr/bin/objformat`
15697 else
15698 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015699 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000015700 *) objformat=elf ;;
15701 esac
15702 fi
15703 version_type=freebsd-$objformat
15704 case $version_type in
15705 freebsd-elf*)
15706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15707 need_version=no
15708 need_lib_prefix=no
15709 ;;
15710 freebsd-*)
15711 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15712 need_version=yes
15713 ;;
15714 esac
15715 shlibpath_var=LD_LIBRARY_PATH
15716 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000015717 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015718 shlibpath_overrides_runpath=yes
15719 ;;
15720 freebsd3.[01]* | freebsdelf3.[01]*)
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15723 ;;
15724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15726 shlibpath_overrides_runpath=no
15727 hardcode_into_libs=yes
15728 ;;
15729 *) # from 4.6 on, and DragonFly
15730 shlibpath_overrides_runpath=yes
15731 hardcode_into_libs=yes
15732 ;;
15733 esac
15734 ;;
15735
15736gnu*)
cristy99bd5232011-12-07 14:38:20 +000015737 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015738 need_lib_prefix=no
15739 need_version=no
15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15741 soname_spec='${libname}${release}${shared_ext}$major'
15742 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000015743 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000015744 hardcode_into_libs=yes
15745 ;;
15746
cristy0c60a692010-11-04 01:09:47 +000015747haiku*)
cristy99bd5232011-12-07 14:38:20 +000015748 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000015749 need_lib_prefix=no
15750 need_version=no
15751 dynamic_linker="$host_os runtime_loader"
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 shlibpath_var=LIBRARY_PATH
15755 shlibpath_overrides_runpath=yes
15756 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15757 hardcode_into_libs=yes
15758 ;;
15759
cristy73bd4a52010-10-05 11:24:23 +000015760hpux9* | hpux10* | hpux11*)
15761 # Give a soname corresponding to the major version so that dld.sl refuses to
15762 # link against other versions.
15763 version_type=sunos
15764 need_lib_prefix=no
15765 need_version=no
15766 case $host_cpu in
15767 ia64*)
15768 shrext_cmds='.so'
15769 hardcode_into_libs=yes
15770 dynamic_linker="$host_os dld.so"
15771 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15774 soname_spec='${libname}${release}${shared_ext}$major'
15775 if test "X$HPUX_IA64_MODE" = X32; then
15776 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15777 else
15778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15779 fi
15780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15781 ;;
15782 hppa*64*)
15783 shrext_cmds='.sl'
15784 hardcode_into_libs=yes
15785 dynamic_linker="$host_os dld.sl"
15786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15792 ;;
15793 *)
15794 shrext_cmds='.sl'
15795 dynamic_linker="$host_os dld.sl"
15796 shlibpath_var=SHLIB_PATH
15797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 ;;
15801 esac
cristy0c60a692010-11-04 01:09:47 +000015802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000015803 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000015804 # or fails outright, so override atomically:
15805 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000015806 ;;
15807
15808interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000015809 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015810 need_lib_prefix=no
15811 need_version=no
15812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15813 soname_spec='${libname}${release}${shared_ext}$major'
15814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 shlibpath_overrides_runpath=no
15817 hardcode_into_libs=yes
15818 ;;
15819
15820irix5* | irix6* | nonstopux*)
15821 case $host_os in
15822 nonstopux*) version_type=nonstopux ;;
15823 *)
15824 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000015825 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015826 else
15827 version_type=irix
15828 fi ;;
15829 esac
15830 need_lib_prefix=no
15831 need_version=no
15832 soname_spec='${libname}${release}${shared_ext}$major'
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15834 case $host_os in
15835 irix5* | nonstopux*)
15836 libsuff= shlibsuff=
15837 ;;
15838 *)
15839 case $LD in # libtool.m4 will add one of these switches to LD
15840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15841 libsuff= shlibsuff= libmagic=32-bit;;
15842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15843 libsuff=32 shlibsuff=N32 libmagic=N32;;
15844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15845 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15846 *) libsuff= shlibsuff= libmagic=never-match;;
15847 esac
15848 ;;
15849 esac
15850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15851 shlibpath_overrides_runpath=no
15852 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15853 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15854 hardcode_into_libs=yes
15855 ;;
15856
15857# No shared lib support for Linux oldld, aout, or coff.
15858linux*oldld* | linux*aout* | linux*coff*)
15859 dynamic_linker=no
15860 ;;
15861
cristy99bd5232011-12-07 14:38:20 +000015862# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000015863linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000015864 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000015872
cristy73bd4a52010-10-05 11:24:23 +000015873 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000015874 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015875 $as_echo_n "(cached) " >&6
15876else
15877 lt_cv_shlibpath_overrides_runpath=no
15878 save_LDFLAGS=$LDFLAGS
15879 save_libdir=$libdir
15880 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15881 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015883/* end confdefs.h. */
15884
15885int
15886main ()
15887{
15888
15889 ;
15890 return 0;
15891}
15892_ACEOF
15893if ac_fn_c_try_link "$LINENO"; then :
15894 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000015895 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000015896fi
15897fi
15898rm -f core conftest.err conftest.$ac_objext \
15899 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000015900 LDFLAGS=$save_LDFLAGS
15901 libdir=$save_libdir
15902
15903fi
15904
15905 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000015906
15907 # This implies no fast_install, which is unacceptable.
15908 # Some rework will be needed to allow for fast_install
15909 # before this can be enabled.
15910 hardcode_into_libs=yes
15911
15912 # Add ABI-specific directories to the system library path.
15913 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15914
15915 # Append ld.so.conf contents to the search path
15916 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000015917 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 +000015918 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000015919
cristy73bd4a52010-10-05 11:24:23 +000015920 fi
15921
15922 # We used to test for /lib/ld.so.1 and disable shared libraries on
15923 # powerpc, because MkLinux only supported shared libraries with the
15924 # GNU dynamic linker. Since this was broken with cross compilers,
15925 # most powerpc-linux boxes support dynamic linking these days and
15926 # people can always --disable-shared, the test was removed, and we
15927 # assume the GNU/Linux dynamic linker is in use.
15928 dynamic_linker='GNU/Linux ld.so'
15929 ;;
15930
15931netbsd*)
15932 version_type=sunos
15933 need_lib_prefix=no
15934 need_version=no
15935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15938 dynamic_linker='NetBSD (a.out) ld.so'
15939 else
15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15941 soname_spec='${libname}${release}${shared_ext}$major'
15942 dynamic_linker='NetBSD ld.elf_so'
15943 fi
15944 shlibpath_var=LD_LIBRARY_PATH
15945 shlibpath_overrides_runpath=yes
15946 hardcode_into_libs=yes
15947 ;;
15948
15949newsos6)
cristy99bd5232011-12-07 14:38:20 +000015950 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 shlibpath_var=LD_LIBRARY_PATH
15953 shlibpath_overrides_runpath=yes
15954 ;;
15955
15956*nto* | *qnx*)
15957 version_type=qnx
15958 need_lib_prefix=no
15959 need_version=no
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 shlibpath_overrides_runpath=no
15964 hardcode_into_libs=yes
15965 dynamic_linker='ldqnx.so'
15966 ;;
15967
15968openbsd*)
15969 version_type=sunos
15970 sys_lib_dlsearch_path_spec="/usr/lib"
15971 need_lib_prefix=no
15972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15973 case $host_os in
15974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15975 *) need_version=no ;;
15976 esac
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15979 shlibpath_var=LD_LIBRARY_PATH
15980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15981 case $host_os in
15982 openbsd2.[89] | openbsd2.[89].*)
15983 shlibpath_overrides_runpath=no
15984 ;;
15985 *)
15986 shlibpath_overrides_runpath=yes
15987 ;;
15988 esac
15989 else
15990 shlibpath_overrides_runpath=yes
15991 fi
15992 ;;
15993
15994os2*)
15995 libname_spec='$name'
15996 shrext_cmds=".dll"
15997 need_lib_prefix=no
15998 library_names_spec='$libname${shared_ext} $libname.a'
15999 dynamic_linker='OS/2 ld.exe'
16000 shlibpath_var=LIBPATH
16001 ;;
16002
16003osf3* | osf4* | osf5*)
16004 version_type=osf
16005 need_lib_prefix=no
16006 need_version=no
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16012 ;;
16013
16014rdos*)
16015 dynamic_linker=no
16016 ;;
16017
16018solaris*)
cristy99bd5232011-12-07 14:38:20 +000016019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016020 need_lib_prefix=no
16021 need_version=no
16022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 shlibpath_overrides_runpath=yes
16026 hardcode_into_libs=yes
16027 # ldd complains unless libraries are executable
16028 postinstall_cmds='chmod +x $lib'
16029 ;;
16030
16031sunos4*)
16032 version_type=sunos
16033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 shlibpath_overrides_runpath=yes
16037 if test "$with_gnu_ld" = yes; then
16038 need_lib_prefix=no
16039 fi
16040 need_version=yes
16041 ;;
16042
16043sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016044 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 soname_spec='${libname}${release}${shared_ext}$major'
16047 shlibpath_var=LD_LIBRARY_PATH
16048 case $host_vendor in
16049 sni)
16050 shlibpath_overrides_runpath=no
16051 need_lib_prefix=no
16052 runpath_var=LD_RUN_PATH
16053 ;;
16054 siemens)
16055 need_lib_prefix=no
16056 ;;
16057 motorola)
16058 need_lib_prefix=no
16059 need_version=no
16060 shlibpath_overrides_runpath=no
16061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16062 ;;
16063 esac
16064 ;;
16065
16066sysv4*MP*)
16067 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016068 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16070 soname_spec='$libname${shared_ext}.$major'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 fi
16073 ;;
16074
16075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16076 version_type=freebsd-elf
16077 need_lib_prefix=no
16078 need_version=no
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16083 hardcode_into_libs=yes
16084 if test "$with_gnu_ld" = yes; then
16085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16086 else
16087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16088 case $host_os in
16089 sco3.2v5*)
16090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16091 ;;
16092 esac
16093 fi
16094 sys_lib_dlsearch_path_spec='/usr/lib'
16095 ;;
16096
16097tpf*)
16098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016099 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016100 need_lib_prefix=no
16101 need_version=no
16102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103 shlibpath_var=LD_LIBRARY_PATH
16104 shlibpath_overrides_runpath=no
16105 hardcode_into_libs=yes
16106 ;;
16107
16108uts4*)
cristy99bd5232011-12-07 14:38:20 +000016109 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LD_LIBRARY_PATH
16113 ;;
16114
16115*)
16116 dynamic_linker=no
16117 ;;
16118esac
16119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16120$as_echo "$dynamic_linker" >&6; }
16121test "$dynamic_linker" = no && can_build_shared=no
16122
16123variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16124if test "$GCC" = yes; then
16125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16126fi
16127
16128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16130fi
16131if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16133fi
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
cristy0c60a692010-11-04 01:09:47 +000016221
16222
16223
16224
16225
cristy73bd4a52010-10-05 11:24:23 +000016226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16227$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16228hardcode_action=
16229if test -n "$hardcode_libdir_flag_spec" ||
16230 test -n "$runpath_var" ||
16231 test "X$hardcode_automatic" = "Xyes" ; then
16232
16233 # We can hardcode non-existent directories.
16234 if test "$hardcode_direct" != no &&
16235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16236 # have to relink, otherwise we might link with an installed library
16237 # when we should be linking with a yet-to-be-installed one
16238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16239 test "$hardcode_minus_L" != no; then
16240 # Linking always hardcodes the temporary library directory.
16241 hardcode_action=relink
16242 else
16243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16244 hardcode_action=immediate
16245 fi
16246else
16247 # We cannot hardcode anything, or else we can only hardcode existing
16248 # directories.
16249 hardcode_action=unsupported
16250fi
16251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16252$as_echo "$hardcode_action" >&6; }
16253
16254if test "$hardcode_action" = relink ||
16255 test "$inherit_rpath" = yes; then
16256 # Fast installation is not supported
16257 enable_fast_install=no
16258elif test "$shlibpath_overrides_runpath" = yes ||
16259 test "$enable_shared" = no; then
16260 # Fast installation is not necessary
16261 enable_fast_install=needless
16262fi
16263
16264
16265
16266
16267
16268
16269 if test "x$enable_dlopen" != xyes; then
16270 enable_dlopen=unknown
16271 enable_dlopen_self=unknown
16272 enable_dlopen_self_static=unknown
16273else
16274 lt_cv_dlopen=no
16275 lt_cv_dlopen_libs=
16276
16277 case $host_os in
16278 beos*)
16279 lt_cv_dlopen="load_add_on"
16280 lt_cv_dlopen_libs=
16281 lt_cv_dlopen_self=yes
16282 ;;
16283
16284 mingw* | pw32* | cegcc*)
16285 lt_cv_dlopen="LoadLibrary"
16286 lt_cv_dlopen_libs=
16287 ;;
16288
16289 cygwin*)
16290 lt_cv_dlopen="dlopen"
16291 lt_cv_dlopen_libs=
16292 ;;
16293
16294 darwin*)
16295 # if libdl is installed we need to link against it
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16297$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016298if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016299 $as_echo_n "(cached) " >&6
16300else
16301 ac_check_lib_save_LIBS=$LIBS
16302LIBS="-ldl $LIBS"
16303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304/* end confdefs.h. */
16305
16306/* Override any GCC internal prototype to avoid an error.
16307 Use char because int might match the return type of a GCC
16308 builtin and then its argument prototype would still apply. */
16309#ifdef __cplusplus
16310extern "C"
16311#endif
16312char dlopen ();
16313int
16314main ()
16315{
16316return dlopen ();
16317 ;
16318 return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
16322 ac_cv_lib_dl_dlopen=yes
16323else
16324 ac_cv_lib_dl_dlopen=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328LIBS=$ac_check_lib_save_LIBS
16329fi
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16331$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016332if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16334else
16335
16336 lt_cv_dlopen="dyld"
16337 lt_cv_dlopen_libs=
16338 lt_cv_dlopen_self=yes
16339
16340fi
16341
16342 ;;
16343
16344 *)
16345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016346if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016347 lt_cv_dlopen="shl_load"
16348else
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16350$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016351if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016352 $as_echo_n "(cached) " >&6
16353else
16354 ac_check_lib_save_LIBS=$LIBS
16355LIBS="-ldld $LIBS"
16356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h. */
16358
16359/* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16362#ifdef __cplusplus
16363extern "C"
16364#endif
16365char shl_load ();
16366int
16367main ()
16368{
16369return shl_load ();
16370 ;
16371 return 0;
16372}
16373_ACEOF
16374if ac_fn_c_try_link "$LINENO"; then :
16375 ac_cv_lib_dld_shl_load=yes
16376else
16377 ac_cv_lib_dld_shl_load=no
16378fi
16379rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381LIBS=$ac_check_lib_save_LIBS
16382fi
16383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16384$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016385if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16387else
16388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016389if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016390 lt_cv_dlopen="dlopen"
16391else
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16393$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016394if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016395 $as_echo_n "(cached) " >&6
16396else
16397 ac_check_lib_save_LIBS=$LIBS
16398LIBS="-ldl $LIBS"
16399cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h. */
16401
16402/* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405#ifdef __cplusplus
16406extern "C"
16407#endif
16408char dlopen ();
16409int
16410main ()
16411{
16412return dlopen ();
16413 ;
16414 return 0;
16415}
16416_ACEOF
16417if ac_fn_c_try_link "$LINENO"; then :
16418 ac_cv_lib_dl_dlopen=yes
16419else
16420 ac_cv_lib_dl_dlopen=no
16421fi
16422rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424LIBS=$ac_check_lib_save_LIBS
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16427$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016428if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16430else
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16432$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016433if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016434 $as_echo_n "(cached) " >&6
16435else
16436 ac_check_lib_save_LIBS=$LIBS
16437LIBS="-lsvld $LIBS"
16438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439/* end confdefs.h. */
16440
16441/* Override any GCC internal prototype to avoid an error.
16442 Use char because int might match the return type of a GCC
16443 builtin and then its argument prototype would still apply. */
16444#ifdef __cplusplus
16445extern "C"
16446#endif
16447char dlopen ();
16448int
16449main ()
16450{
16451return dlopen ();
16452 ;
16453 return 0;
16454}
16455_ACEOF
16456if ac_fn_c_try_link "$LINENO"; then :
16457 ac_cv_lib_svld_dlopen=yes
16458else
16459 ac_cv_lib_svld_dlopen=no
16460fi
16461rm -f core conftest.err conftest.$ac_objext \
16462 conftest$ac_exeext conftest.$ac_ext
16463LIBS=$ac_check_lib_save_LIBS
16464fi
16465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16466$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016467if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16469else
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16471$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016472if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016473 $as_echo_n "(cached) " >&6
16474else
16475 ac_check_lib_save_LIBS=$LIBS
16476LIBS="-ldld $LIBS"
16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h. */
16479
16480/* Override any GCC internal prototype to avoid an error.
16481 Use char because int might match the return type of a GCC
16482 builtin and then its argument prototype would still apply. */
16483#ifdef __cplusplus
16484extern "C"
16485#endif
16486char dld_link ();
16487int
16488main ()
16489{
16490return dld_link ();
16491 ;
16492 return 0;
16493}
16494_ACEOF
16495if ac_fn_c_try_link "$LINENO"; then :
16496 ac_cv_lib_dld_dld_link=yes
16497else
16498 ac_cv_lib_dld_dld_link=no
16499fi
16500rm -f core conftest.err conftest.$ac_objext \
16501 conftest$ac_exeext conftest.$ac_ext
16502LIBS=$ac_check_lib_save_LIBS
16503fi
16504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16505$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016506if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16508fi
16509
16510
16511fi
16512
16513
16514fi
16515
16516
16517fi
16518
16519
16520fi
16521
16522
16523fi
16524
16525 ;;
16526 esac
16527
16528 if test "x$lt_cv_dlopen" != xno; then
16529 enable_dlopen=yes
16530 else
16531 enable_dlopen=no
16532 fi
16533
16534 case $lt_cv_dlopen in
16535 dlopen)
16536 save_CPPFLAGS="$CPPFLAGS"
16537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16538
16539 save_LDFLAGS="$LDFLAGS"
16540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16541
16542 save_LIBS="$LIBS"
16543 LIBS="$lt_cv_dlopen_libs $LIBS"
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16546$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016547if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016548 $as_echo_n "(cached) " >&6
16549else
16550 if test "$cross_compiling" = yes; then :
16551 lt_cv_dlopen_self=cross
16552else
16553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16554 lt_status=$lt_dlunknown
16555 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016556#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016557#include "confdefs.h"
16558
16559#if HAVE_DLFCN_H
16560#include <dlfcn.h>
16561#endif
16562
16563#include <stdio.h>
16564
16565#ifdef RTLD_GLOBAL
16566# define LT_DLGLOBAL RTLD_GLOBAL
16567#else
16568# ifdef DL_GLOBAL
16569# define LT_DLGLOBAL DL_GLOBAL
16570# else
16571# define LT_DLGLOBAL 0
16572# endif
16573#endif
16574
16575/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16576 find out it does not work in some platform. */
16577#ifndef LT_DLLAZY_OR_NOW
16578# ifdef RTLD_LAZY
16579# define LT_DLLAZY_OR_NOW RTLD_LAZY
16580# else
16581# ifdef DL_LAZY
16582# define LT_DLLAZY_OR_NOW DL_LAZY
16583# else
16584# ifdef RTLD_NOW
16585# define LT_DLLAZY_OR_NOW RTLD_NOW
16586# else
16587# ifdef DL_NOW
16588# define LT_DLLAZY_OR_NOW DL_NOW
16589# else
16590# define LT_DLLAZY_OR_NOW 0
16591# endif
16592# endif
16593# endif
16594# endif
16595#endif
16596
cristy0c60a692010-11-04 01:09:47 +000016597/* When -fvisbility=hidden is used, assume the code has been annotated
16598 correspondingly for the symbols needed. */
16599#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016600int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016601#endif
16602
cristyda16f162011-02-19 23:52:17 +000016603int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016604int main ()
16605{
16606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16607 int status = $lt_dlunknown;
16608
16609 if (self)
16610 {
16611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016612 else
16613 {
16614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16615 else puts (dlerror ());
16616 }
cristy73bd4a52010-10-05 11:24:23 +000016617 /* dlclose (self); */
16618 }
16619 else
16620 puts (dlerror ());
16621
16622 return status;
16623}
16624_LT_EOF
16625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16626 (eval $ac_link) 2>&5
16627 ac_status=$?
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16630 (./conftest; exit; ) >&5 2>/dev/null
16631 lt_status=$?
16632 case x$lt_status in
16633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16635 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16636 esac
16637 else :
16638 # compilation failed
16639 lt_cv_dlopen_self=no
16640 fi
16641fi
16642rm -fr conftest*
16643
16644
16645fi
16646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16647$as_echo "$lt_cv_dlopen_self" >&6; }
16648
16649 if test "x$lt_cv_dlopen_self" = xyes; then
16650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16652$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016653if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016654 $as_echo_n "(cached) " >&6
16655else
16656 if test "$cross_compiling" = yes; then :
16657 lt_cv_dlopen_self_static=cross
16658else
16659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16660 lt_status=$lt_dlunknown
16661 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016662#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016663#include "confdefs.h"
16664
16665#if HAVE_DLFCN_H
16666#include <dlfcn.h>
16667#endif
16668
16669#include <stdio.h>
16670
16671#ifdef RTLD_GLOBAL
16672# define LT_DLGLOBAL RTLD_GLOBAL
16673#else
16674# ifdef DL_GLOBAL
16675# define LT_DLGLOBAL DL_GLOBAL
16676# else
16677# define LT_DLGLOBAL 0
16678# endif
16679#endif
16680
16681/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16682 find out it does not work in some platform. */
16683#ifndef LT_DLLAZY_OR_NOW
16684# ifdef RTLD_LAZY
16685# define LT_DLLAZY_OR_NOW RTLD_LAZY
16686# else
16687# ifdef DL_LAZY
16688# define LT_DLLAZY_OR_NOW DL_LAZY
16689# else
16690# ifdef RTLD_NOW
16691# define LT_DLLAZY_OR_NOW RTLD_NOW
16692# else
16693# ifdef DL_NOW
16694# define LT_DLLAZY_OR_NOW DL_NOW
16695# else
16696# define LT_DLLAZY_OR_NOW 0
16697# endif
16698# endif
16699# endif
16700# endif
16701#endif
16702
cristy0c60a692010-11-04 01:09:47 +000016703/* When -fvisbility=hidden is used, assume the code has been annotated
16704 correspondingly for the symbols needed. */
16705#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000016706int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000016707#endif
16708
cristyda16f162011-02-19 23:52:17 +000016709int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000016710int main ()
16711{
16712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16713 int status = $lt_dlunknown;
16714
16715 if (self)
16716 {
16717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000016718 else
16719 {
16720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16721 else puts (dlerror ());
16722 }
cristy73bd4a52010-10-05 11:24:23 +000016723 /* dlclose (self); */
16724 }
16725 else
16726 puts (dlerror ());
16727
16728 return status;
16729}
16730_LT_EOF
16731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16732 (eval $ac_link) 2>&5
16733 ac_status=$?
16734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16736 (./conftest; exit; ) >&5 2>/dev/null
16737 lt_status=$?
16738 case x$lt_status in
16739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16741 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16742 esac
16743 else :
16744 # compilation failed
16745 lt_cv_dlopen_self_static=no
16746 fi
16747fi
16748rm -fr conftest*
16749
16750
16751fi
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16753$as_echo "$lt_cv_dlopen_self_static" >&6; }
16754 fi
16755
16756 CPPFLAGS="$save_CPPFLAGS"
16757 LDFLAGS="$save_LDFLAGS"
16758 LIBS="$save_LIBS"
16759 ;;
16760 esac
16761
16762 case $lt_cv_dlopen_self in
16763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16764 *) enable_dlopen_self=unknown ;;
16765 esac
16766
16767 case $lt_cv_dlopen_self_static in
16768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16769 *) enable_dlopen_self_static=unknown ;;
16770 esac
16771fi
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789striplib=
16790old_striplib=
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16792$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16793if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16797$as_echo "yes" >&6; }
16798else
16799# FIXME - insert some real tests, host_os isn't really good enough
16800 case $host_os in
16801 darwin*)
16802 if test -n "$STRIP" ; then
16803 striplib="$STRIP -x"
16804 old_striplib="$STRIP -S"
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16806$as_echo "yes" >&6; }
16807 else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809$as_echo "no" >&6; }
16810 fi
16811 ;;
16812 *)
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16814$as_echo "no" >&6; }
16815 ;;
16816 esac
16817fi
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830 # Report which library types will actually be built
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16832$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16834$as_echo "$can_build_shared" >&6; }
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16837$as_echo_n "checking whether to build shared libraries... " >&6; }
16838 test "$can_build_shared" = "no" && enable_shared=no
16839
16840 # On AIX, shared libraries and static libraries use the same namespace, and
16841 # are all built from PIC.
16842 case $host_os in
16843 aix3*)
16844 test "$enable_shared" = yes && enable_static=no
16845 if test -n "$RANLIB"; then
16846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16847 postinstall_cmds='$RANLIB $lib'
16848 fi
16849 ;;
16850
16851 aix[4-9]*)
16852 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16853 test "$enable_shared" = yes && enable_static=no
16854 fi
16855 ;;
16856 esac
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16858$as_echo "$enable_shared" >&6; }
16859
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16861$as_echo_n "checking whether to build static libraries... " >&6; }
16862 # Make sure either enable_shared or enable_static is yes.
16863 test "$enable_shared" = yes || enable_static=yes
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16865$as_echo "$enable_static" >&6; }
16866
16867
16868
16869
16870fi
16871ac_ext=c
16872ac_cpp='$CPP $CPPFLAGS'
16873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875ac_compiler_gnu=$ac_cv_c_compiler_gnu
16876
16877CC="$lt_save_CC"
16878
cristy0c60a692010-11-04 01:09:47 +000016879 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16881 (test "X$CXX" != "Xg++"))) ; then
16882 ac_ext=cpp
16883ac_cpp='$CXXCPP $CPPFLAGS'
16884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16888$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16889if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000016890 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016891 $as_echo_n "(cached) " >&6
16892else
16893 # Double quotes because CXXCPP needs to be expanded
16894 for CXXCPP in "$CXX -E" "/lib/cpp"
16895 do
16896 ac_preproc_ok=false
16897for ac_cxx_preproc_warn_flag in '' yes
16898do
16899 # Use a header file that comes with gcc, so configuring glibc
16900 # with a fresh cross-compiler works.
16901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16902 # <limits.h> exists even on freestanding compilers.
16903 # On the NeXT, cc -E runs the code through the compiler's parser,
16904 # not just through cpp. "Syntax error" is here to catch this case.
16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h. */
16907#ifdef __STDC__
16908# include <limits.h>
16909#else
16910# include <assert.h>
16911#endif
16912 Syntax error
16913_ACEOF
16914if ac_fn_cxx_try_cpp "$LINENO"; then :
16915
16916else
16917 # Broken: fails on valid input.
16918continue
16919fi
cristyda16f162011-02-19 23:52:17 +000016920rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016921
16922 # OK, works on sane cases. Now check whether nonexistent headers
16923 # can be detected and how.
16924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16925/* end confdefs.h. */
16926#include <ac_nonexistent.h>
16927_ACEOF
16928if ac_fn_cxx_try_cpp "$LINENO"; then :
16929 # Broken: success on invalid input.
16930continue
16931else
16932 # Passes both tests.
16933ac_preproc_ok=:
16934break
16935fi
cristyda16f162011-02-19 23:52:17 +000016936rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016937
16938done
16939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016940rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016941if $ac_preproc_ok; then :
16942 break
16943fi
16944
16945 done
16946 ac_cv_prog_CXXCPP=$CXXCPP
16947
16948fi
16949 CXXCPP=$ac_cv_prog_CXXCPP
16950else
16951 ac_cv_prog_CXXCPP=$CXXCPP
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16954$as_echo "$CXXCPP" >&6; }
16955ac_preproc_ok=false
16956for ac_cxx_preproc_warn_flag in '' yes
16957do
16958 # Use a header file that comes with gcc, so configuring glibc
16959 # with a fresh cross-compiler works.
16960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961 # <limits.h> exists even on freestanding compilers.
16962 # On the NeXT, cc -E runs the code through the compiler's parser,
16963 # not just through cpp. "Syntax error" is here to catch this case.
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965/* end confdefs.h. */
16966#ifdef __STDC__
16967# include <limits.h>
16968#else
16969# include <assert.h>
16970#endif
16971 Syntax error
16972_ACEOF
16973if ac_fn_cxx_try_cpp "$LINENO"; then :
16974
16975else
16976 # Broken: fails on valid input.
16977continue
16978fi
cristyda16f162011-02-19 23:52:17 +000016979rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016980
16981 # OK, works on sane cases. Now check whether nonexistent headers
16982 # can be detected and how.
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h. */
16985#include <ac_nonexistent.h>
16986_ACEOF
16987if ac_fn_cxx_try_cpp "$LINENO"; then :
16988 # Broken: success on invalid input.
16989continue
16990else
16991 # Passes both tests.
16992ac_preproc_ok=:
16993break
16994fi
cristyda16f162011-02-19 23:52:17 +000016995rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016996
16997done
16998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000016999rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017000if $ac_preproc_ok; then :
17001
17002else
17003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17005as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17006See \`config.log' for more details" "$LINENO" 5; }
17007fi
17008
17009ac_ext=c
17010ac_cpp='$CPP $CPPFLAGS'
17011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17013ac_compiler_gnu=$ac_cv_c_compiler_gnu
17014
17015else
17016 _lt_caught_CXX_error=yes
17017fi
cristy73bd4a52010-10-05 11:24:23 +000017018
17019ac_ext=cpp
17020ac_cpp='$CXXCPP $CPPFLAGS'
17021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17024
17025archive_cmds_need_lc_CXX=no
17026allow_undefined_flag_CXX=
17027always_export_symbols_CXX=no
17028archive_expsym_cmds_CXX=
17029compiler_needs_object_CXX=no
17030export_dynamic_flag_spec_CXX=
17031hardcode_direct_CXX=no
17032hardcode_direct_absolute_CXX=no
17033hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017034hardcode_libdir_separator_CXX=
17035hardcode_minus_L_CXX=no
17036hardcode_shlibpath_var_CXX=unsupported
17037hardcode_automatic_CXX=no
17038inherit_rpath_CXX=no
17039module_cmds_CXX=
17040module_expsym_cmds_CXX=
17041link_all_deplibs_CXX=unknown
17042old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017043reload_flag_CXX=$reload_flag
17044reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017045no_undefined_flag_CXX=
17046whole_archive_flag_spec_CXX=
17047enable_shared_with_static_runtimes_CXX=no
17048
17049# Source file extension for C++ test sources.
17050ac_ext=cpp
17051
17052# Object file extension for compiled C++ test sources.
17053objext=o
17054objext_CXX=$objext
17055
17056# No sense in running all these tests if we already determined that
17057# the CXX compiler isn't working. Some variables (like enable_shared)
17058# are currently assumed to apply to all compilers on this platform,
17059# and will be corrupted by setting them based on a non-working compiler.
17060if test "$_lt_caught_CXX_error" != yes; then
17061 # Code to be used in simple compile tests
17062 lt_simple_compile_test_code="int some_variable = 0;"
17063
17064 # Code to be used in simple link tests
17065 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17066
17067 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17068
17069
17070
17071
17072
17073
17074# If no C compiler was specified, use CC.
17075LTCC=${LTCC-"$CC"}
17076
17077# If no C compiler flags were specified, use CFLAGS.
17078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17079
17080# Allow CC to be a program name with arguments.
17081compiler=$CC
17082
17083
17084 # save warnings/boilerplate of simple test code
17085 ac_outfile=conftest.$ac_objext
17086echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17087eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17088_lt_compiler_boilerplate=`cat conftest.err`
17089$RM conftest*
17090
17091 ac_outfile=conftest.$ac_objext
17092echo "$lt_simple_link_test_code" >conftest.$ac_ext
17093eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17094_lt_linker_boilerplate=`cat conftest.err`
17095$RM -r conftest*
17096
17097
17098 # Allow CC to be a program name with arguments.
17099 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017100 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017101 lt_save_LD=$LD
17102 lt_save_GCC=$GCC
17103 GCC=$GXX
17104 lt_save_with_gnu_ld=$with_gnu_ld
17105 lt_save_path_LD=$lt_cv_path_LD
17106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17108 else
17109 $as_unset lt_cv_prog_gnu_ld
17110 fi
17111 if test -n "${lt_cv_path_LDCXX+set}"; then
17112 lt_cv_path_LD=$lt_cv_path_LDCXX
17113 else
17114 $as_unset lt_cv_path_LD
17115 fi
17116 test -z "${LDCXX+set}" || LD=$LDCXX
17117 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017118 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017119 compiler=$CC
17120 compiler_CXX=$CC
17121 for cc_temp in $compiler""; do
17122 case $cc_temp in
17123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17125 \-*) ;;
17126 *) break;;
17127 esac
17128done
cristy0c60a692010-11-04 01:09:47 +000017129cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017130
17131
17132 if test -n "$compiler"; then
17133 # We don't want -fno-exception when compiling C++ code, so set the
17134 # no_builtin_flag separately
17135 if test "$GXX" = yes; then
17136 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17137 else
17138 lt_prog_compiler_no_builtin_flag_CXX=
17139 fi
17140
17141 if test "$GXX" = yes; then
17142 # Set up default GNU C++ configuration
17143
17144
17145
17146# Check whether --with-gnu-ld was given.
17147if test "${with_gnu_ld+set}" = set; then :
17148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17149else
17150 with_gnu_ld=no
17151fi
17152
17153ac_prog=ld
17154if test "$GCC" = yes; then
17155 # Check if gcc -print-prog-name=ld gives a path.
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17157$as_echo_n "checking for ld used by $CC... " >&6; }
17158 case $host in
17159 *-*-mingw*)
17160 # gcc leaves a trailing carriage return which upsets mingw
17161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17162 *)
17163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17164 esac
17165 case $ac_prog in
17166 # Accept absolute paths.
17167 [\\/]* | ?:[\\/]*)
17168 re_direlt='/[^/][^/]*/\.\./'
17169 # Canonicalize the pathname of ld
17170 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17171 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17172 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17173 done
17174 test -z "$LD" && LD="$ac_prog"
17175 ;;
17176 "")
17177 # If it fails, then pretend we aren't using GCC.
17178 ac_prog=ld
17179 ;;
17180 *)
17181 # If it is relative, then search for the first ld in PATH.
17182 with_gnu_ld=unknown
17183 ;;
17184 esac
17185elif test "$with_gnu_ld" = yes; then
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17187$as_echo_n "checking for GNU ld... " >&6; }
17188else
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17190$as_echo_n "checking for non-GNU ld... " >&6; }
17191fi
cristyda16f162011-02-19 23:52:17 +000017192if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017193 $as_echo_n "(cached) " >&6
17194else
17195 if test -z "$LD"; then
17196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17197 for ac_dir in $PATH; do
17198 IFS="$lt_save_ifs"
17199 test -z "$ac_dir" && ac_dir=.
17200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17201 lt_cv_path_LD="$ac_dir/$ac_prog"
17202 # Check to see if the program is GNU ld. I'd rather use --version,
17203 # but apparently some variants of GNU ld only accept -v.
17204 # Break only if it was the GNU/non-GNU ld that we prefer.
17205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17206 *GNU* | *'with BFD'*)
17207 test "$with_gnu_ld" != no && break
17208 ;;
17209 *)
17210 test "$with_gnu_ld" != yes && break
17211 ;;
17212 esac
17213 fi
17214 done
17215 IFS="$lt_save_ifs"
17216else
17217 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17218fi
17219fi
17220
17221LD="$lt_cv_path_LD"
17222if test -n "$LD"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17224$as_echo "$LD" >&6; }
17225else
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228fi
cristy98dddb52010-11-04 00:30:15 +000017229test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17231$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017232if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017233 $as_echo_n "(cached) " >&6
17234else
17235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17236case `$LD -v 2>&1 </dev/null` in
17237*GNU* | *'with BFD'*)
17238 lt_cv_prog_gnu_ld=yes
17239 ;;
17240*)
17241 lt_cv_prog_gnu_ld=no
17242 ;;
17243esac
17244fi
17245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17246$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17247with_gnu_ld=$lt_cv_prog_gnu_ld
17248
17249
17250
17251
17252
17253
17254
17255 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17256 # archiving commands below assume that GNU ld is being used.
17257 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017258 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17259 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 +000017260
17261 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17262 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17263
17264 # If archive_cmds runs LD, not CC, wlarc should be empty
17265 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17266 # investigate it a little bit more. (MM)
17267 wlarc='${wl}'
17268
17269 # ancient GNU ld didn't support --whole-archive et. al.
17270 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17271 $GREP 'no-whole-archive' > /dev/null; then
17272 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17273 else
17274 whole_archive_flag_spec_CXX=
17275 fi
17276 else
17277 with_gnu_ld=no
17278 wlarc=
17279
17280 # A generic and very simple default shared library creation
17281 # command for GNU C++ for the case where it uses the native
17282 # linker, instead of GNU ld. If possible, this setting should
17283 # overridden to take advantage of the native linker features on
17284 # the platform it is being used on.
17285 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17286 fi
17287
17288 # Commands to make compiler produce verbose output that lists
17289 # what "hidden" libraries, object files and flags are used when
17290 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017291 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017292
17293 else
17294 GXX=no
17295 with_gnu_ld=no
17296 wlarc=
17297 fi
17298
17299 # PORTME: fill in a description of your system's C++ link characteristics
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17301$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17302 ld_shlibs_CXX=yes
17303 case $host_os in
17304 aix3*)
17305 # FIXME: insert proper C++ library support
17306 ld_shlibs_CXX=no
17307 ;;
17308 aix[4-9]*)
17309 if test "$host_cpu" = ia64; then
17310 # On IA64, the linker does run time linking by default, so we don't
17311 # have to do anything special.
17312 aix_use_runtimelinking=no
17313 exp_sym_flag='-Bexport'
17314 no_entry_flag=""
17315 else
17316 aix_use_runtimelinking=no
17317
17318 # Test if we are trying to use run time linking or normal
17319 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17320 # need to do runtime linking.
17321 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17322 for ld_flag in $LDFLAGS; do
17323 case $ld_flag in
17324 *-brtl*)
17325 aix_use_runtimelinking=yes
17326 break
17327 ;;
17328 esac
17329 done
17330 ;;
17331 esac
17332
17333 exp_sym_flag='-bexport'
17334 no_entry_flag='-bnoentry'
17335 fi
17336
17337 # When large executables or shared objects are built, AIX ld can
17338 # have problems creating the table of contents. If linking a library
17339 # or program results in "error TOC overflow" add -mminimal-toc to
17340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17342
17343 archive_cmds_CXX=''
17344 hardcode_direct_CXX=yes
17345 hardcode_direct_absolute_CXX=yes
17346 hardcode_libdir_separator_CXX=':'
17347 link_all_deplibs_CXX=yes
17348 file_list_spec_CXX='${wl}-f,'
17349
17350 if test "$GXX" = yes; then
17351 case $host_os in aix4.[012]|aix4.[012].*)
17352 # We only want to do this on AIX 4.2 and lower, the check
17353 # below for broken collect2 doesn't work under 4.3+
17354 collect2name=`${CC} -print-prog-name=collect2`
17355 if test -f "$collect2name" &&
17356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17357 then
17358 # We have reworked collect2
17359 :
17360 else
17361 # We have old collect2
17362 hardcode_direct_CXX=unsupported
17363 # It fails to find uninstalled libraries when the uninstalled
17364 # path is not listed in the libpath. Setting hardcode_minus_L
17365 # to unsupported forces relinking
17366 hardcode_minus_L_CXX=yes
17367 hardcode_libdir_flag_spec_CXX='-L$libdir'
17368 hardcode_libdir_separator_CXX=
17369 fi
17370 esac
17371 shared_flag='-shared'
17372 if test "$aix_use_runtimelinking" = yes; then
17373 shared_flag="$shared_flag "'${wl}-G'
17374 fi
17375 else
17376 # not using gcc
17377 if test "$host_cpu" = ia64; then
17378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17379 # chokes on -Wl,-G. The following line is correct:
17380 shared_flag='-G'
17381 else
17382 if test "$aix_use_runtimelinking" = yes; then
17383 shared_flag='${wl}-G'
17384 else
17385 shared_flag='${wl}-bM:SRE'
17386 fi
17387 fi
17388 fi
17389
17390 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17391 # It seems that -bexpall does not export symbols beginning with
17392 # underscore (_), so it is better to generate a list of symbols to
17393 # export.
17394 always_export_symbols_CXX=yes
17395 if test "$aix_use_runtimelinking" = yes; then
17396 # Warning - without using the other runtime loading flags (-brtl),
17397 # -berok will link without error, but may produce a broken library.
17398 allow_undefined_flag_CXX='-berok'
17399 # Determine the default libpath from the value encoded in an empty
17400 # executable.
cristyda16f162011-02-19 23:52:17 +000017401 if test "${lt_cv_aix_libpath+set}" = set; then
17402 aix_libpath=$lt_cv_aix_libpath
17403else
17404 if ${lt_cv_aix_libpath__CXX+:} false; then :
17405 $as_echo_n "(cached) " >&6
17406else
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017408/* end confdefs.h. */
17409
17410int
17411main ()
17412{
17413
17414 ;
17415 return 0;
17416}
17417_ACEOF
17418if ac_fn_cxx_try_link "$LINENO"; then :
17419
cristyda16f162011-02-19 23:52:17 +000017420 lt_aix_libpath_sed='
17421 /Import File Strings/,/^$/ {
17422 /^0/ {
17423 s/^0 *\([^ ]*\) *$/\1/
17424 p
17425 }
17426 }'
17427 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17428 # Check for a 64-bit object if we didn't find anything.
17429 if test -z "$lt_cv_aix_libpath__CXX"; then
17430 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17431 fi
cristy73bd4a52010-10-05 11:24:23 +000017432fi
17433rm -f core conftest.err conftest.$ac_objext \
17434 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017435 if test -z "$lt_cv_aix_libpath__CXX"; then
17436 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17437 fi
17438
17439fi
17440
17441 aix_libpath=$lt_cv_aix_libpath__CXX
17442fi
cristy73bd4a52010-10-05 11:24:23 +000017443
17444 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17445
cristy0c60a692010-11-04 01:09:47 +000017446 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 +000017447 else
17448 if test "$host_cpu" = ia64; then
17449 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17450 allow_undefined_flag_CXX="-z nodefs"
17451 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"
17452 else
17453 # Determine the default libpath from the value encoded in an
17454 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017455 if test "${lt_cv_aix_libpath+set}" = set; then
17456 aix_libpath=$lt_cv_aix_libpath
17457else
17458 if ${lt_cv_aix_libpath__CXX+:} false; then :
17459 $as_echo_n "(cached) " >&6
17460else
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017462/* end confdefs.h. */
17463
17464int
17465main ()
17466{
17467
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472if ac_fn_cxx_try_link "$LINENO"; then :
17473
cristyda16f162011-02-19 23:52:17 +000017474 lt_aix_libpath_sed='
17475 /Import File Strings/,/^$/ {
17476 /^0/ {
17477 s/^0 *\([^ ]*\) *$/\1/
17478 p
17479 }
17480 }'
17481 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17482 # Check for a 64-bit object if we didn't find anything.
17483 if test -z "$lt_cv_aix_libpath__CXX"; then
17484 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17485 fi
cristy73bd4a52010-10-05 11:24:23 +000017486fi
17487rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017489 if test -z "$lt_cv_aix_libpath__CXX"; then
17490 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17491 fi
17492
17493fi
17494
17495 aix_libpath=$lt_cv_aix_libpath__CXX
17496fi
cristy73bd4a52010-10-05 11:24:23 +000017497
17498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17499 # Warning - without using the other run time loading flags,
17500 # -berok will link without error, but may produce a broken library.
17501 no_undefined_flag_CXX=' ${wl}-bernotok'
17502 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017503 if test "$with_gnu_ld" = yes; then
17504 # We only use this code for GNU lds that support --whole-archive.
17505 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17506 else
17507 # Exported symbols can be pulled into shared objects from archives
17508 whole_archive_flag_spec_CXX='$convenience'
17509 fi
cristy73bd4a52010-10-05 11:24:23 +000017510 archive_cmds_need_lc_CXX=yes
17511 # This is similar to how AIX traditionally builds its shared
17512 # libraries.
17513 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'
17514 fi
17515 fi
17516 ;;
17517
17518 beos*)
17519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17520 allow_undefined_flag_CXX=unsupported
17521 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17522 # support --undefined. This deserves some investigation. FIXME
17523 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17524 else
17525 ld_shlibs_CXX=no
17526 fi
17527 ;;
17528
17529 chorus*)
17530 case $cc_basename in
17531 *)
17532 # FIXME: insert proper C++ library support
17533 ld_shlibs_CXX=no
17534 ;;
17535 esac
17536 ;;
17537
17538 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017539 case $GXX,$cc_basename in
17540 ,cl* | no,cl*)
17541 # Native MSVC
17542 # hardcode_libdir_flag_spec is actually meaningless, as there is
17543 # no search path for DLLs.
17544 hardcode_libdir_flag_spec_CXX=' '
17545 allow_undefined_flag_CXX=unsupported
17546 always_export_symbols_CXX=yes
17547 file_list_spec_CXX='@'
17548 # Tell ltmain to make .lib files, not .a files.
17549 libext=lib
17550 # Tell ltmain to make .dll files, not .so files.
17551 shrext_cmds=".dll"
17552 # FIXME: Setting linknames here is a bad hack.
17553 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17554 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17555 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17556 else
17557 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17558 fi~
17559 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17560 linknames='
17561 # The linker will not automatically build a static lib if we build a DLL.
17562 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17563 enable_shared_with_static_runtimes_CXX=yes
17564 # Don't use ranlib
17565 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17566 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17567 lt_tool_outputfile="@TOOL_OUTPUT@"~
17568 case $lt_outputfile in
17569 *.exe|*.EXE) ;;
17570 *)
17571 lt_outputfile="$lt_outputfile.exe"
17572 lt_tool_outputfile="$lt_tool_outputfile.exe"
17573 ;;
17574 esac~
17575 func_to_tool_file "$lt_outputfile"~
17576 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17577 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17578 $RM "$lt_outputfile.manifest";
17579 fi'
17580 ;;
17581 *)
17582 # g++
17583 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17584 # as there is no search path for DLLs.
17585 hardcode_libdir_flag_spec_CXX='-L$libdir'
17586 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17587 allow_undefined_flag_CXX=unsupported
17588 always_export_symbols_CXX=no
17589 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000017590
cristyda16f162011-02-19 23:52:17 +000017591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17592 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'
17593 # If the export-symbols file already is a .def file (1st line
17594 # is EXPORTS), use it as is; otherwise, prepend...
17595 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17596 cp $export_symbols $output_objdir/$soname.def;
17597 else
17598 echo EXPORTS > $output_objdir/$soname.def;
17599 cat $export_symbols >> $output_objdir/$soname.def;
17600 fi~
17601 $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'
17602 else
17603 ld_shlibs_CXX=no
17604 fi
17605 ;;
17606 esac
17607 ;;
cristy73bd4a52010-10-05 11:24:23 +000017608 darwin* | rhapsody*)
17609
17610
17611 archive_cmds_need_lc_CXX=no
17612 hardcode_direct_CXX=no
17613 hardcode_automatic_CXX=yes
17614 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000017615 if test "$lt_cv_ld_force_load" = "yes"; then
17616 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\"`'
cristy99bd5232011-12-07 14:38:20 +000017617
cristy0c60a692010-11-04 01:09:47 +000017618 else
17619 whole_archive_flag_spec_CXX=''
17620 fi
cristy73bd4a52010-10-05 11:24:23 +000017621 link_all_deplibs_CXX=yes
17622 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17623 case $cc_basename in
17624 ifort*) _lt_dar_can_shared=yes ;;
17625 *) _lt_dar_can_shared=$GCC ;;
17626 esac
17627 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000017628 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000017629 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}"
17630 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17631 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}"
17632 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}"
17633 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17634 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}"
17635 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}"
17636 fi
17637
17638 else
17639 ld_shlibs_CXX=no
17640 fi
17641
17642 ;;
17643
17644 dgux*)
17645 case $cc_basename in
17646 ec++*)
17647 # FIXME: insert proper C++ library support
17648 ld_shlibs_CXX=no
17649 ;;
17650 ghcx*)
17651 # Green Hills C++ Compiler
17652 # FIXME: insert proper C++ library support
17653 ld_shlibs_CXX=no
17654 ;;
17655 *)
17656 # FIXME: insert proper C++ library support
17657 ld_shlibs_CXX=no
17658 ;;
17659 esac
17660 ;;
17661
cristy99bd5232011-12-07 14:38:20 +000017662 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017663 # C++ shared libraries reported to be fairly broken before
17664 # switch to ELF
17665 ld_shlibs_CXX=no
17666 ;;
17667
17668 freebsd-elf*)
17669 archive_cmds_need_lc_CXX=no
17670 ;;
17671
17672 freebsd* | dragonfly*)
17673 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17674 # conventions
17675 ld_shlibs_CXX=yes
17676 ;;
17677
17678 gnu*)
17679 ;;
17680
cristy0c60a692010-11-04 01:09:47 +000017681 haiku*)
17682 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17683 link_all_deplibs_CXX=yes
17684 ;;
17685
cristy73bd4a52010-10-05 11:24:23 +000017686 hpux9*)
17687 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17688 hardcode_libdir_separator_CXX=:
17689 export_dynamic_flag_spec_CXX='${wl}-E'
17690 hardcode_direct_CXX=yes
17691 hardcode_minus_L_CXX=yes # Not in the search PATH,
17692 # but as the default
17693 # location of the library.
17694
17695 case $cc_basename in
17696 CC*)
17697 # FIXME: insert proper C++ library support
17698 ld_shlibs_CXX=no
17699 ;;
17700 aCC*)
17701 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'
17702 # Commands to make compiler produce verbose output that lists
17703 # what "hidden" libraries, object files and flags are used when
17704 # linking a shared library.
17705 #
17706 # There doesn't appear to be a way to prevent this compiler from
17707 # explicitly linking system object files so we need to strip them
17708 # from the output so that they don't get included in the library
17709 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017710 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 +000017711 ;;
17712 *)
17713 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000017714 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 +000017715 else
17716 # FIXME: insert proper C++ library support
17717 ld_shlibs_CXX=no
17718 fi
17719 ;;
17720 esac
17721 ;;
17722
17723 hpux10*|hpux11*)
17724 if test $with_gnu_ld = no; then
17725 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17726 hardcode_libdir_separator_CXX=:
17727
17728 case $host_cpu in
17729 hppa*64*|ia64*)
17730 ;;
17731 *)
17732 export_dynamic_flag_spec_CXX='${wl}-E'
17733 ;;
17734 esac
17735 fi
17736 case $host_cpu in
17737 hppa*64*|ia64*)
17738 hardcode_direct_CXX=no
17739 hardcode_shlibpath_var_CXX=no
17740 ;;
17741 *)
17742 hardcode_direct_CXX=yes
17743 hardcode_direct_absolute_CXX=yes
17744 hardcode_minus_L_CXX=yes # Not in the search PATH,
17745 # but as the default
17746 # location of the library.
17747 ;;
17748 esac
17749
17750 case $cc_basename in
17751 CC*)
17752 # FIXME: insert proper C++ library support
17753 ld_shlibs_CXX=no
17754 ;;
17755 aCC*)
17756 case $host_cpu in
17757 hppa*64*)
17758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17759 ;;
17760 ia64*)
17761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17762 ;;
17763 *)
17764 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 ;;
17766 esac
17767 # Commands to make compiler produce verbose output that lists
17768 # what "hidden" libraries, object files and flags are used when
17769 # linking a shared library.
17770 #
17771 # There doesn't appear to be a way to prevent this compiler from
17772 # explicitly linking system object files so we need to strip them
17773 # from the output so that they don't get included in the library
17774 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017775 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 +000017776 ;;
17777 *)
17778 if test "$GXX" = yes; then
17779 if test $with_gnu_ld = no; then
17780 case $host_cpu in
17781 hppa*64*)
17782 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17783 ;;
17784 ia64*)
cristyda16f162011-02-19 23:52:17 +000017785 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 +000017786 ;;
17787 *)
cristyda16f162011-02-19 23:52:17 +000017788 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 +000017789 ;;
17790 esac
17791 fi
17792 else
17793 # FIXME: insert proper C++ library support
17794 ld_shlibs_CXX=no
17795 fi
17796 ;;
17797 esac
17798 ;;
17799
17800 interix[3-9]*)
17801 hardcode_direct_CXX=no
17802 hardcode_shlibpath_var_CXX=no
17803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17804 export_dynamic_flag_spec_CXX='${wl}-E'
17805 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17806 # Instead, shared libraries are loaded at an image base (0x10000000 by
17807 # default) and relocated if they conflict, which is a slow very memory
17808 # consuming and fragmenting process. To avoid this, we pick a random,
17809 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17810 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17811 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'
17812 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'
17813 ;;
17814 irix5* | irix6*)
17815 case $cc_basename in
17816 CC*)
17817 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000017818 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 +000017819
17820 # Archives containing C++ object files must be created using
17821 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17822 # necessary to make sure instantiated templates are included
17823 # in the archive.
17824 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17825 ;;
17826 *)
17827 if test "$GXX" = yes; then
17828 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000017829 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 +000017830 else
cristyda16f162011-02-19 23:52:17 +000017831 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 +000017832 fi
17833 fi
17834 link_all_deplibs_CXX=yes
17835 ;;
17836 esac
17837 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17838 hardcode_libdir_separator_CXX=:
17839 inherit_rpath_CXX=yes
17840 ;;
17841
cristy0c60a692010-11-04 01:09:47 +000017842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017843 case $cc_basename in
17844 KCC*)
17845 # Kuck and Associates, Inc. (KAI) C++ Compiler
17846
17847 # KCC will only create a shared library if the output file
17848 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17849 # to its proper name (with version) after linking.
17850 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'
17851 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'
17852 # Commands to make compiler produce verbose output that lists
17853 # what "hidden" libraries, object files and flags are used when
17854 # linking a shared library.
17855 #
17856 # There doesn't appear to be a way to prevent this compiler from
17857 # explicitly linking system object files so we need to strip them
17858 # from the output so that they don't get included in the library
17859 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017860 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 +000017861
17862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17863 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17864
17865 # Archives containing C++ object files must be created using
17866 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17867 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17868 ;;
17869 icpc* | ecpc* )
17870 # Intel C++
17871 with_gnu_ld=yes
17872 # version 8.0 and above of icpc choke on multiply defined symbols
17873 # if we add $predep_objects and $postdep_objects, however 7.1 and
17874 # earlier do not add the objects themselves.
17875 case `$CC -V 2>&1` in
17876 *"Version 7."*)
17877 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17878 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'
17879 ;;
17880 *) # Version 8.0 or newer
17881 tmp_idyn=
17882 case $host_cpu in
17883 ia64*) tmp_idyn=' -i_dynamic';;
17884 esac
17885 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17886 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'
17887 ;;
17888 esac
17889 archive_cmds_need_lc_CXX=no
17890 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17892 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17893 ;;
17894 pgCC* | pgcpp*)
17895 # Portland Group C++ compiler
17896 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000017897 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000017898 prelink_cmds_CXX='tpldir=Template.dir~
17899 rm -rf $tpldir~
17900 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017901 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000017902 old_archive_cmds_CXX='tpldir=Template.dir~
17903 rm -rf $tpldir~
17904 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000017905 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000017906 $RANLIB $oldlib'
17907 archive_cmds_CXX='tpldir=Template.dir~
17908 rm -rf $tpldir~
17909 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017910 $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 +000017911 archive_expsym_cmds_CXX='tpldir=Template.dir~
17912 rm -rf $tpldir~
17913 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000017914 $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 +000017915 ;;
cristy0c60a692010-11-04 01:09:47 +000017916 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000017917 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17918 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'
17919 ;;
17920 esac
17921
17922 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000017924 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 +000017925 ;;
17926 cxx*)
17927 # Compaq C++
17928 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17929 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'
17930
17931 runpath_var=LD_RUN_PATH
17932 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17933 hardcode_libdir_separator_CXX=:
17934
17935 # Commands to make compiler produce verbose output that lists
17936 # what "hidden" libraries, object files and flags are used when
17937 # linking a shared library.
17938 #
17939 # There doesn't appear to be a way to prevent this compiler from
17940 # explicitly linking system object files so we need to strip them
17941 # from the output so that they don't get included in the library
17942 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000017943 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 +000017944 ;;
cristy0c60a692010-11-04 01:09:47 +000017945 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000017946 # IBM XL 8.0 on PPC, with GNU ld
17947 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17949 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17950 if test "x$supports_anon_versioning" = xyes; then
17951 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17953 echo "local: *; };" >> $output_objdir/$libname.ver~
17954 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17955 fi
17956 ;;
17957 *)
17958 case `$CC -V 2>&1 | sed 5q` in
17959 *Sun\ C*)
17960 # Sun C++ 5.9
17961 no_undefined_flag_CXX=' -zdefs'
17962 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17963 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'
17964 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000017965 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 +000017966 compiler_needs_object_CXX=yes
17967
17968 # Not sure whether something based on
17969 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17970 # would be better.
cristy0c60a692010-11-04 01:09:47 +000017971 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000017972
17973 # Archives containing C++ object files must be created using
17974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17975 # necessary to make sure instantiated templates are included
17976 # in the archive.
17977 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17978 ;;
17979 esac
17980 ;;
17981 esac
17982 ;;
17983
17984 lynxos*)
17985 # FIXME: insert proper C++ library support
17986 ld_shlibs_CXX=no
17987 ;;
17988
17989 m88k*)
17990 # FIXME: insert proper C++ library support
17991 ld_shlibs_CXX=no
17992 ;;
17993
17994 mvs*)
17995 case $cc_basename in
17996 cxx*)
17997 # FIXME: insert proper C++ library support
17998 ld_shlibs_CXX=no
17999 ;;
18000 *)
18001 # FIXME: insert proper C++ library support
18002 ld_shlibs_CXX=no
18003 ;;
18004 esac
18005 ;;
18006
18007 netbsd*)
18008 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18009 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18010 wlarc=
18011 hardcode_libdir_flag_spec_CXX='-R$libdir'
18012 hardcode_direct_CXX=yes
18013 hardcode_shlibpath_var_CXX=no
18014 fi
18015 # Workaround some broken pre-1.5 toolchains
18016 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18017 ;;
18018
18019 *nto* | *qnx*)
18020 ld_shlibs_CXX=yes
18021 ;;
18022
18023 openbsd2*)
18024 # C++ shared libraries are fairly broken
18025 ld_shlibs_CXX=no
18026 ;;
18027
18028 openbsd*)
18029 if test -f /usr/libexec/ld.so; then
18030 hardcode_direct_CXX=yes
18031 hardcode_shlibpath_var_CXX=no
18032 hardcode_direct_absolute_CXX=yes
18033 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18034 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18036 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18037 export_dynamic_flag_spec_CXX='${wl}-E'
18038 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18039 fi
cristy0c60a692010-11-04 01:09:47 +000018040 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018041 else
18042 ld_shlibs_CXX=no
18043 fi
18044 ;;
18045
18046 osf3* | osf4* | osf5*)
18047 case $cc_basename in
18048 KCC*)
18049 # Kuck and Associates, Inc. (KAI) C++ Compiler
18050
18051 # KCC will only create a shared library if the output file
18052 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18053 # to its proper name (with version) after linking.
18054 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'
18055
18056 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18057 hardcode_libdir_separator_CXX=:
18058
18059 # Archives containing C++ object files must be created using
18060 # the KAI C++ compiler.
18061 case $host in
18062 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18063 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18064 esac
18065 ;;
18066 RCC*)
18067 # Rational C++ 2.4.1
18068 # FIXME: insert proper C++ library support
18069 ld_shlibs_CXX=no
18070 ;;
18071 cxx*)
18072 case $host in
18073 osf3*)
18074 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018075 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 +000018076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18077 ;;
18078 *)
18079 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018080 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 +000018081 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18082 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018083 $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 +000018084 $RM $lib.exp'
18085 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18086 ;;
18087 esac
18088
18089 hardcode_libdir_separator_CXX=:
18090
18091 # Commands to make compiler produce verbose output that lists
18092 # what "hidden" libraries, object files and flags are used when
18093 # linking a shared library.
18094 #
18095 # There doesn't appear to be a way to prevent this compiler from
18096 # explicitly linking system object files so we need to strip them
18097 # from the output so that they don't get included in the library
18098 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018099 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 +000018100 ;;
18101 *)
18102 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18103 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18104 case $host in
18105 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018106 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 +000018107 ;;
18108 *)
cristyda16f162011-02-19 23:52:17 +000018109 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 +000018110 ;;
18111 esac
18112
18113 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18114 hardcode_libdir_separator_CXX=:
18115
18116 # Commands to make compiler produce verbose output that lists
18117 # what "hidden" libraries, object files and flags are used when
18118 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018119 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018120
18121 else
18122 # FIXME: insert proper C++ library support
18123 ld_shlibs_CXX=no
18124 fi
18125 ;;
18126 esac
18127 ;;
18128
18129 psos*)
18130 # FIXME: insert proper C++ library support
18131 ld_shlibs_CXX=no
18132 ;;
18133
18134 sunos4*)
18135 case $cc_basename in
18136 CC*)
18137 # Sun C++ 4.x
18138 # FIXME: insert proper C++ library support
18139 ld_shlibs_CXX=no
18140 ;;
18141 lcc*)
18142 # Lucid
18143 # FIXME: insert proper C++ library support
18144 ld_shlibs_CXX=no
18145 ;;
18146 *)
18147 # FIXME: insert proper C++ library support
18148 ld_shlibs_CXX=no
18149 ;;
18150 esac
18151 ;;
18152
18153 solaris*)
18154 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018155 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018156 # Sun C++ 4.2, 5.x and Centerline C++
18157 archive_cmds_need_lc_CXX=yes
18158 no_undefined_flag_CXX=' -zdefs'
18159 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18160 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18161 $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'
18162
18163 hardcode_libdir_flag_spec_CXX='-R$libdir'
18164 hardcode_shlibpath_var_CXX=no
18165 case $host_os in
18166 solaris2.[0-5] | solaris2.[0-5].*) ;;
18167 *)
18168 # The compiler driver will combine and reorder linker options,
18169 # but understands `-z linker_flag'.
18170 # Supported since Solaris 2.6 (maybe 2.5.1?)
18171 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18172 ;;
18173 esac
18174 link_all_deplibs_CXX=yes
18175
cristy0c60a692010-11-04 01:09:47 +000018176 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018177
18178 # Archives containing C++ object files must be created using
18179 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18180 # necessary to make sure instantiated templates are included
18181 # in the archive.
18182 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18183 ;;
18184 gcx*)
18185 # Green Hills C++ Compiler
18186 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18187
18188 # The C++ compiler must be used to create the archive.
18189 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18190 ;;
18191 *)
18192 # GNU C++ compiler with Solaris linker
18193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18194 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18195 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018196 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 +000018197 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 +000018198 $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 +000018199
18200 # Commands to make compiler produce verbose output that lists
18201 # what "hidden" libraries, object files and flags are used when
18202 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018204 else
18205 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18206 # platform.
18207 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18208 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18209 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18210
18211 # Commands to make compiler produce verbose output that lists
18212 # what "hidden" libraries, object files and flags are used when
18213 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018214 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018215 fi
18216
18217 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18218 case $host_os in
18219 solaris2.[0-5] | solaris2.[0-5].*) ;;
18220 *)
18221 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18222 ;;
18223 esac
18224 fi
18225 ;;
18226 esac
18227 ;;
18228
18229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18230 no_undefined_flag_CXX='${wl}-z,text'
18231 archive_cmds_need_lc_CXX=no
18232 hardcode_shlibpath_var_CXX=no
18233 runpath_var='LD_RUN_PATH'
18234
18235 case $cc_basename in
18236 CC*)
18237 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18238 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18239 ;;
18240 *)
18241 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18243 ;;
18244 esac
18245 ;;
18246
18247 sysv5* | sco3.2v5* | sco5v6*)
18248 # Note: We can NOT use -z defs as we might desire, because we do not
18249 # link with -lc, and that would cause any symbols used from libc to
18250 # always be unresolved, which means just about no library would
18251 # ever link correctly. If we're not using GNU ld we use -z text
18252 # though, which does catch some bad symbols but isn't as heavy-handed
18253 # as -z defs.
18254 no_undefined_flag_CXX='${wl}-z,text'
18255 allow_undefined_flag_CXX='${wl}-z,nodefs'
18256 archive_cmds_need_lc_CXX=no
18257 hardcode_shlibpath_var_CXX=no
18258 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18259 hardcode_libdir_separator_CXX=':'
18260 link_all_deplibs_CXX=yes
18261 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18262 runpath_var='LD_RUN_PATH'
18263
18264 case $cc_basename in
18265 CC*)
18266 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18267 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 +000018268 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18269 '"$old_archive_cmds_CXX"
18270 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18271 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018272 ;;
18273 *)
18274 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18276 ;;
18277 esac
18278 ;;
18279
18280 tandem*)
18281 case $cc_basename in
18282 NCC*)
18283 # NonStop-UX NCC 3.20
18284 # FIXME: insert proper C++ library support
18285 ld_shlibs_CXX=no
18286 ;;
18287 *)
18288 # FIXME: insert proper C++ library support
18289 ld_shlibs_CXX=no
18290 ;;
18291 esac
18292 ;;
18293
18294 vxworks*)
18295 # FIXME: insert proper C++ library support
18296 ld_shlibs_CXX=no
18297 ;;
18298
18299 *)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18302 ;;
18303 esac
18304
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18306$as_echo "$ld_shlibs_CXX" >&6; }
18307 test "$ld_shlibs_CXX" = no && can_build_shared=no
18308
18309 GCC_CXX="$GXX"
18310 LD_CXX="$LD"
18311
18312 ## CAVEAT EMPTOR:
18313 ## There is no encapsulation within the following macros, do not change
18314 ## the running order or otherwise move them around unless you know exactly
18315 ## what you are doing...
18316 # Dependencies to place before and after the object being linked:
18317predep_objects_CXX=
18318postdep_objects_CXX=
18319predeps_CXX=
18320postdeps_CXX=
18321compiler_lib_search_path_CXX=
18322
18323cat > conftest.$ac_ext <<_LT_EOF
18324class Foo
18325{
18326public:
18327 Foo (void) { a = 0; }
18328private:
18329 int a;
18330};
18331_LT_EOF
18332
cristyda16f162011-02-19 23:52:17 +000018333
18334_lt_libdeps_save_CFLAGS=$CFLAGS
18335case "$CC $CFLAGS " in #(
18336*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18337*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018338*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018339esac
18340
cristy73bd4a52010-10-05 11:24:23 +000018341if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18342 (eval $ac_compile) 2>&5
18343 ac_status=$?
18344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18345 test $ac_status = 0; }; then
18346 # Parse the compiler output and extract the necessary
18347 # objects, libraries and library flags.
18348
18349 # Sentinel used to keep track of whether or not we are before
18350 # the conftest object file.
18351 pre_test_object_deps_done=no
18352
18353 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018354 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018355
18356 -L* | -R* | -l*)
18357 # Some compilers place space between "-{L,R}" and the path.
18358 # Remove the space.
18359 if test $p = "-L" ||
18360 test $p = "-R"; then
18361 prev=$p
18362 continue
cristy73bd4a52010-10-05 11:24:23 +000018363 fi
18364
cristyda16f162011-02-19 23:52:17 +000018365 # Expand the sysroot to ease extracting the directories later.
18366 if test -z "$prev"; then
18367 case $p in
18368 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18369 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18370 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18371 esac
18372 fi
18373 case $p in
18374 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18375 esac
cristy73bd4a52010-10-05 11:24:23 +000018376 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018377 case ${prev} in
18378 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018379 # Internal compiler library paths should come after those
18380 # provided the user. The postdeps already come after the
18381 # user supplied libs so there is no need to process them.
18382 if test -z "$compiler_lib_search_path_CXX"; then
18383 compiler_lib_search_path_CXX="${prev}${p}"
18384 else
18385 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18386 fi
18387 ;;
18388 # The "-l" case would never come before the object being
18389 # linked, so don't bother handling this case.
18390 esac
18391 else
18392 if test -z "$postdeps_CXX"; then
18393 postdeps_CXX="${prev}${p}"
18394 else
18395 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18396 fi
18397 fi
cristyda16f162011-02-19 23:52:17 +000018398 prev=
cristy73bd4a52010-10-05 11:24:23 +000018399 ;;
18400
cristyda16f162011-02-19 23:52:17 +000018401 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018402 *.$objext)
18403 # This assumes that the test object file only shows up
18404 # once in the compiler output.
18405 if test "$p" = "conftest.$objext"; then
18406 pre_test_object_deps_done=yes
18407 continue
18408 fi
18409
18410 if test "$pre_test_object_deps_done" = no; then
18411 if test -z "$predep_objects_CXX"; then
18412 predep_objects_CXX="$p"
18413 else
18414 predep_objects_CXX="$predep_objects_CXX $p"
18415 fi
18416 else
18417 if test -z "$postdep_objects_CXX"; then
18418 postdep_objects_CXX="$p"
18419 else
18420 postdep_objects_CXX="$postdep_objects_CXX $p"
18421 fi
18422 fi
18423 ;;
18424
18425 *) ;; # Ignore the rest.
18426
18427 esac
18428 done
18429
18430 # Clean up.
18431 rm -f a.out a.exe
18432else
18433 echo "libtool.m4: error: problem compiling CXX test program"
18434fi
18435
18436$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018437CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018438
18439# PORTME: override above test on systems where it is broken
18440case $host_os in
18441interix[3-9]*)
18442 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18443 # hack all around it, let's just trust "g++" to DTRT.
18444 predep_objects_CXX=
18445 postdep_objects_CXX=
18446 postdeps_CXX=
18447 ;;
18448
18449linux*)
18450 case `$CC -V 2>&1 | sed 5q` in
18451 *Sun\ C*)
18452 # Sun C++ 5.9
18453
18454 # The more standards-conforming stlport4 library is
18455 # incompatible with the Cstd library. Avoid specifying
18456 # it if it's in CXXFLAGS. Ignore libCrun as
18457 # -library=stlport4 depends on it.
18458 case " $CXX $CXXFLAGS " in
18459 *" -library=stlport4 "*)
18460 solaris_use_stlport4=yes
18461 ;;
18462 esac
18463
18464 if test "$solaris_use_stlport4" != yes; then
18465 postdeps_CXX='-library=Cstd -library=Crun'
18466 fi
18467 ;;
18468 esac
18469 ;;
18470
18471solaris*)
18472 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018473 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018474 # The more standards-conforming stlport4 library is
18475 # incompatible with the Cstd library. Avoid specifying
18476 # it if it's in CXXFLAGS. Ignore libCrun as
18477 # -library=stlport4 depends on it.
18478 case " $CXX $CXXFLAGS " in
18479 *" -library=stlport4 "*)
18480 solaris_use_stlport4=yes
18481 ;;
18482 esac
18483
18484 # Adding this requires a known-good setup of shared libraries for
18485 # Sun compiler versions before 5.6, else PIC objects from an old
18486 # archive will be linked into the output, leading to subtle bugs.
18487 if test "$solaris_use_stlport4" != yes; then
18488 postdeps_CXX='-library=Cstd -library=Crun'
18489 fi
18490 ;;
18491 esac
18492 ;;
18493esac
18494
18495
18496case " $postdeps_CXX " in
18497*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18498esac
18499 compiler_lib_search_dirs_CXX=
18500if test -n "${compiler_lib_search_path_CXX}"; then
18501 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18502fi
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534 lt_prog_compiler_wl_CXX=
18535lt_prog_compiler_pic_CXX=
18536lt_prog_compiler_static_CXX=
18537
cristy73bd4a52010-10-05 11:24:23 +000018538
18539 # C++ specific cases for pic, static, wl, etc.
18540 if test "$GXX" = yes; then
18541 lt_prog_compiler_wl_CXX='-Wl,'
18542 lt_prog_compiler_static_CXX='-static'
18543
18544 case $host_os in
18545 aix*)
18546 # All AIX code is PIC.
18547 if test "$host_cpu" = ia64; then
18548 # AIX 5 now supports IA64 processor
18549 lt_prog_compiler_static_CXX='-Bstatic'
18550 fi
18551 ;;
18552
18553 amigaos*)
18554 case $host_cpu in
18555 powerpc)
18556 # see comment about AmigaOS4 .so support
18557 lt_prog_compiler_pic_CXX='-fPIC'
18558 ;;
18559 m68k)
18560 # FIXME: we need at least 68020 code to build shared libraries, but
18561 # adding the `-m68020' flag to GCC prevents building anything better,
18562 # like `-m68040'.
18563 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18564 ;;
18565 esac
18566 ;;
18567
18568 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18569 # PIC is the default for these OSes.
18570 ;;
18571 mingw* | cygwin* | os2* | pw32* | cegcc*)
18572 # This hack is so that the source file can tell whether it is being
18573 # built for inclusion in a dll (and should export symbols for example).
18574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18575 # (--disable-auto-import) libraries
18576 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18577 ;;
18578 darwin* | rhapsody*)
18579 # PIC is the default on this platform
18580 # Common symbols not allowed in MH_DYLIB files
18581 lt_prog_compiler_pic_CXX='-fno-common'
18582 ;;
18583 *djgpp*)
18584 # DJGPP does not support shared libraries at all
18585 lt_prog_compiler_pic_CXX=
18586 ;;
cristy0c60a692010-11-04 01:09:47 +000018587 haiku*)
18588 # PIC is the default for Haiku.
18589 # The "-static" flag exists, but is broken.
18590 lt_prog_compiler_static_CXX=
18591 ;;
cristy73bd4a52010-10-05 11:24:23 +000018592 interix[3-9]*)
18593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18594 # Instead, we relocate shared libraries at runtime.
18595 ;;
18596 sysv4*MP*)
18597 if test -d /usr/nec; then
18598 lt_prog_compiler_pic_CXX=-Kconform_pic
18599 fi
18600 ;;
18601 hpux*)
18602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18604 # sets the default TLS model and affects inlining.
18605 case $host_cpu in
18606 hppa*64*)
18607 ;;
18608 *)
18609 lt_prog_compiler_pic_CXX='-fPIC'
18610 ;;
18611 esac
18612 ;;
18613 *qnx* | *nto*)
18614 # QNX uses GNU C++, but need to define -shared option too, otherwise
18615 # it will coredump.
18616 lt_prog_compiler_pic_CXX='-fPIC -shared'
18617 ;;
18618 *)
18619 lt_prog_compiler_pic_CXX='-fPIC'
18620 ;;
18621 esac
18622 else
18623 case $host_os in
18624 aix[4-9]*)
18625 # All AIX code is PIC.
18626 if test "$host_cpu" = ia64; then
18627 # AIX 5 now supports IA64 processor
18628 lt_prog_compiler_static_CXX='-Bstatic'
18629 else
18630 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18631 fi
18632 ;;
18633 chorus*)
18634 case $cc_basename in
18635 cxch68*)
18636 # Green Hills C++ Compiler
18637 # _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"
18638 ;;
18639 esac
18640 ;;
cristyda16f162011-02-19 23:52:17 +000018641 mingw* | cygwin* | os2* | pw32* | cegcc*)
18642 # This hack is so that the source file can tell whether it is being
18643 # built for inclusion in a dll (and should export symbols for example).
18644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18645 ;;
cristy73bd4a52010-10-05 11:24:23 +000018646 dgux*)
18647 case $cc_basename in
18648 ec++*)
18649 lt_prog_compiler_pic_CXX='-KPIC'
18650 ;;
18651 ghcx*)
18652 # Green Hills C++ Compiler
18653 lt_prog_compiler_pic_CXX='-pic'
18654 ;;
18655 *)
18656 ;;
18657 esac
18658 ;;
18659 freebsd* | dragonfly*)
18660 # FreeBSD uses GNU C++
18661 ;;
18662 hpux9* | hpux10* | hpux11*)
18663 case $cc_basename in
18664 CC*)
18665 lt_prog_compiler_wl_CXX='-Wl,'
18666 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18667 if test "$host_cpu" != ia64; then
18668 lt_prog_compiler_pic_CXX='+Z'
18669 fi
18670 ;;
18671 aCC*)
18672 lt_prog_compiler_wl_CXX='-Wl,'
18673 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18674 case $host_cpu in
18675 hppa*64*|ia64*)
18676 # +Z the default
18677 ;;
18678 *)
18679 lt_prog_compiler_pic_CXX='+Z'
18680 ;;
18681 esac
18682 ;;
18683 *)
18684 ;;
18685 esac
18686 ;;
18687 interix*)
18688 # This is c89, which is MS Visual C++ (no shared libs)
18689 # Anyone wants to do a port?
18690 ;;
18691 irix5* | irix6* | nonstopux*)
18692 case $cc_basename in
18693 CC*)
18694 lt_prog_compiler_wl_CXX='-Wl,'
18695 lt_prog_compiler_static_CXX='-non_shared'
18696 # CC pic flag -KPIC is the default.
18697 ;;
18698 *)
18699 ;;
18700 esac
18701 ;;
cristy0c60a692010-11-04 01:09:47 +000018702 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018703 case $cc_basename in
18704 KCC*)
18705 # KAI C++ Compiler
18706 lt_prog_compiler_wl_CXX='--backend -Wl,'
18707 lt_prog_compiler_pic_CXX='-fPIC'
18708 ;;
18709 ecpc* )
18710 # old Intel C++ for x86_64 which still supported -KPIC.
18711 lt_prog_compiler_wl_CXX='-Wl,'
18712 lt_prog_compiler_pic_CXX='-KPIC'
18713 lt_prog_compiler_static_CXX='-static'
18714 ;;
18715 icpc* )
18716 # Intel C++, used to be incompatible with GCC.
18717 # ICC 10 doesn't accept -KPIC any more.
18718 lt_prog_compiler_wl_CXX='-Wl,'
18719 lt_prog_compiler_pic_CXX='-fPIC'
18720 lt_prog_compiler_static_CXX='-static'
18721 ;;
18722 pgCC* | pgcpp*)
18723 # Portland Group C++ compiler
18724 lt_prog_compiler_wl_CXX='-Wl,'
18725 lt_prog_compiler_pic_CXX='-fpic'
18726 lt_prog_compiler_static_CXX='-Bstatic'
18727 ;;
18728 cxx*)
18729 # Compaq C++
18730 # Make sure the PIC flag is empty. It appears that all Alpha
18731 # Linux and Compaq Tru64 Unix objects are PIC.
18732 lt_prog_compiler_pic_CXX=
18733 lt_prog_compiler_static_CXX='-non_shared'
18734 ;;
cristy0c60a692010-11-04 01:09:47 +000018735 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18736 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000018737 lt_prog_compiler_wl_CXX='-Wl,'
18738 lt_prog_compiler_pic_CXX='-qpic'
18739 lt_prog_compiler_static_CXX='-qstaticlink'
18740 ;;
18741 *)
18742 case `$CC -V 2>&1 | sed 5q` in
18743 *Sun\ C*)
18744 # Sun C++ 5.9
18745 lt_prog_compiler_pic_CXX='-KPIC'
18746 lt_prog_compiler_static_CXX='-Bstatic'
18747 lt_prog_compiler_wl_CXX='-Qoption ld '
18748 ;;
18749 esac
18750 ;;
18751 esac
18752 ;;
18753 lynxos*)
18754 ;;
18755 m88k*)
18756 ;;
18757 mvs*)
18758 case $cc_basename in
18759 cxx*)
18760 lt_prog_compiler_pic_CXX='-W c,exportall'
18761 ;;
18762 *)
18763 ;;
18764 esac
18765 ;;
18766 netbsd*)
18767 ;;
18768 *qnx* | *nto*)
18769 # QNX uses GNU C++, but need to define -shared option too, otherwise
18770 # it will coredump.
18771 lt_prog_compiler_pic_CXX='-fPIC -shared'
18772 ;;
18773 osf3* | osf4* | osf5*)
18774 case $cc_basename in
18775 KCC*)
18776 lt_prog_compiler_wl_CXX='--backend -Wl,'
18777 ;;
18778 RCC*)
18779 # Rational C++ 2.4.1
18780 lt_prog_compiler_pic_CXX='-pic'
18781 ;;
18782 cxx*)
18783 # Digital/Compaq C++
18784 lt_prog_compiler_wl_CXX='-Wl,'
18785 # Make sure the PIC flag is empty. It appears that all Alpha
18786 # Linux and Compaq Tru64 Unix objects are PIC.
18787 lt_prog_compiler_pic_CXX=
18788 lt_prog_compiler_static_CXX='-non_shared'
18789 ;;
18790 *)
18791 ;;
18792 esac
18793 ;;
18794 psos*)
18795 ;;
18796 solaris*)
18797 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018798 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018799 # Sun C++ 4.2, 5.x and Centerline C++
18800 lt_prog_compiler_pic_CXX='-KPIC'
18801 lt_prog_compiler_static_CXX='-Bstatic'
18802 lt_prog_compiler_wl_CXX='-Qoption ld '
18803 ;;
18804 gcx*)
18805 # Green Hills C++ Compiler
18806 lt_prog_compiler_pic_CXX='-PIC'
18807 ;;
18808 *)
18809 ;;
18810 esac
18811 ;;
18812 sunos4*)
18813 case $cc_basename in
18814 CC*)
18815 # Sun C++ 4.x
18816 lt_prog_compiler_pic_CXX='-pic'
18817 lt_prog_compiler_static_CXX='-Bstatic'
18818 ;;
18819 lcc*)
18820 # Lucid
18821 lt_prog_compiler_pic_CXX='-pic'
18822 ;;
18823 *)
18824 ;;
18825 esac
18826 ;;
18827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18828 case $cc_basename in
18829 CC*)
18830 lt_prog_compiler_wl_CXX='-Wl,'
18831 lt_prog_compiler_pic_CXX='-KPIC'
18832 lt_prog_compiler_static_CXX='-Bstatic'
18833 ;;
18834 esac
18835 ;;
18836 tandem*)
18837 case $cc_basename in
18838 NCC*)
18839 # NonStop-UX NCC 3.20
18840 lt_prog_compiler_pic_CXX='-KPIC'
18841 ;;
18842 *)
18843 ;;
18844 esac
18845 ;;
18846 vxworks*)
18847 ;;
18848 *)
18849 lt_prog_compiler_can_build_shared_CXX=no
18850 ;;
18851 esac
18852 fi
18853
18854case $host_os in
18855 # For platforms which do not support PIC, -DPIC is meaningless:
18856 *djgpp*)
18857 lt_prog_compiler_pic_CXX=
18858 ;;
18859 *)
18860 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18861 ;;
18862esac
cristy73bd4a52010-10-05 11:24:23 +000018863
cristyda16f162011-02-19 23:52:17 +000018864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18865$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18866if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18867 $as_echo_n "(cached) " >&6
18868else
18869 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18870fi
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18872$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18873lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000018874
18875#
18876# Check to make sure the PIC flag actually works.
18877#
18878if test -n "$lt_prog_compiler_pic_CXX"; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18880$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018881if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018882 $as_echo_n "(cached) " >&6
18883else
18884 lt_cv_prog_compiler_pic_works_CXX=no
18885 ac_outfile=conftest.$ac_objext
18886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18887 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18888 # Insert the option either (1) after the last *FLAGS variable, or
18889 # (2) before a word containing "conftest.", or (3) at the end.
18890 # Note that $ac_compile itself does not contain backslashes and begins
18891 # with a dollar sign (not a hyphen), so the echo should work correctly.
18892 # The option is referenced via a variable to avoid confusing sed.
18893 lt_compile=`echo "$ac_compile" | $SED \
18894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18896 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018898 (eval "$lt_compile" 2>conftest.err)
18899 ac_status=$?
18900 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000018901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000018902 if (exit $ac_status) && test -s "$ac_outfile"; then
18903 # The compiler can only warn and ignore the option if not recognized
18904 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000018905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18908 lt_cv_prog_compiler_pic_works_CXX=yes
18909 fi
18910 fi
18911 $RM conftest*
18912
18913fi
18914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18915$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18916
18917if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18918 case $lt_prog_compiler_pic_CXX in
18919 "" | " "*) ;;
18920 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18921 esac
18922else
18923 lt_prog_compiler_pic_CXX=
18924 lt_prog_compiler_can_build_shared_CXX=no
18925fi
18926
18927fi
18928
18929
18930
cristyda16f162011-02-19 23:52:17 +000018931
18932
cristy73bd4a52010-10-05 11:24:23 +000018933#
18934# Check to make sure the static flag actually works.
18935#
18936wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18938$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018939if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018940 $as_echo_n "(cached) " >&6
18941else
18942 lt_cv_prog_compiler_static_works_CXX=no
18943 save_LDFLAGS="$LDFLAGS"
18944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18947 # The linker can only warn and ignore the option if not recognized
18948 # So say no if there are warnings
18949 if test -s conftest.err; then
18950 # Append any errors to the config.log.
18951 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000018952 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000018953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18954 if diff conftest.exp conftest.er2 >/dev/null; then
18955 lt_cv_prog_compiler_static_works_CXX=yes
18956 fi
18957 else
18958 lt_cv_prog_compiler_static_works_CXX=yes
18959 fi
18960 fi
18961 $RM -r conftest*
18962 LDFLAGS="$save_LDFLAGS"
18963
18964fi
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18966$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18967
18968if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18969 :
18970else
18971 lt_prog_compiler_static_CXX=
18972fi
18973
18974
18975
18976
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18978$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018979if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018980 $as_echo_n "(cached) " >&6
18981else
18982 lt_cv_prog_compiler_c_o_CXX=no
18983 $RM -r conftest 2>/dev/null
18984 mkdir conftest
18985 cd conftest
18986 mkdir out
18987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18988
18989 lt_compiler_flag="-o out/conftest2.$ac_objext"
18990 # Insert the option either (1) after the last *FLAGS variable, or
18991 # (2) before a word containing "conftest.", or (3) at the end.
18992 # Note that $ac_compile itself does not contain backslashes and begins
18993 # with a dollar sign (not a hyphen), so the echo should work correctly.
18994 lt_compile=`echo "$ac_compile" | $SED \
18995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18997 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000018998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000018999 (eval "$lt_compile" 2>out/conftest.err)
19000 ac_status=$?
19001 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019003 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19004 then
19005 # The compiler can only warn and ignore the option if not recognized
19006 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19010 lt_cv_prog_compiler_c_o_CXX=yes
19011 fi
19012 fi
19013 chmod u+w . 2>&5
19014 $RM conftest*
19015 # SGI C++ compiler will create directory out/ii_files/ for
19016 # template instantiation
19017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19018 $RM out/* && rmdir out
19019 cd ..
19020 $RM -r conftest
19021 $RM conftest*
19022
19023fi
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19025$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19026
19027
19028
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19030$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019031if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019032 $as_echo_n "(cached) " >&6
19033else
19034 lt_cv_prog_compiler_c_o_CXX=no
19035 $RM -r conftest 2>/dev/null
19036 mkdir conftest
19037 cd conftest
19038 mkdir out
19039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19040
19041 lt_compiler_flag="-o out/conftest2.$ac_objext"
19042 # Insert the option either (1) after the last *FLAGS variable, or
19043 # (2) before a word containing "conftest.", or (3) at the end.
19044 # Note that $ac_compile itself does not contain backslashes and begins
19045 # with a dollar sign (not a hyphen), so the echo should work correctly.
19046 lt_compile=`echo "$ac_compile" | $SED \
19047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19049 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019051 (eval "$lt_compile" 2>out/conftest.err)
19052 ac_status=$?
19053 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019055 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19056 then
19057 # The compiler can only warn and ignore the option if not recognized
19058 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019060 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19061 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19062 lt_cv_prog_compiler_c_o_CXX=yes
19063 fi
19064 fi
19065 chmod u+w . 2>&5
19066 $RM conftest*
19067 # SGI C++ compiler will create directory out/ii_files/ for
19068 # template instantiation
19069 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19070 $RM out/* && rmdir out
19071 cd ..
19072 $RM -r conftest
19073 $RM conftest*
19074
19075fi
19076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19077$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19078
19079
19080
19081
19082hard_links="nottested"
19083if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19084 # do not overwrite the value of need_locks provided by the user
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19086$as_echo_n "checking if we can lock with hard links... " >&6; }
19087 hard_links=yes
19088 $RM conftest*
19089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19090 touch conftest.a
19091 ln conftest.a conftest.b 2>&5 || hard_links=no
19092 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19094$as_echo "$hard_links" >&6; }
19095 if test "$hard_links" = no; then
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19097$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19098 need_locks=warn
19099 fi
19100else
19101 need_locks=no
19102fi
19103
19104
19105
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19107$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19108
19109 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019110 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019111 case $host_os in
19112 aix[4-9]*)
19113 # If we're using GNU nm, then we don't want the "-C" option.
19114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019115 # Also, AIX nm treats weak defined symbols like other global defined
19116 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019118 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 +000019119 else
19120 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'
19121 fi
19122 ;;
19123 pw32*)
19124 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019125 ;;
cristy73bd4a52010-10-05 11:24:23 +000019126 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019127 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019128 cl*)
19129 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19130 ;;
cristyda16f162011-02-19 23:52:17 +000019131 *)
19132 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'
19133 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19134 ;;
19135 esac
19136 ;;
cristy73bd4a52010-10-05 11:24:23 +000019137 *)
19138 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019139 ;;
cristy73bd4a52010-10-05 11:24:23 +000019140 esac
cristy73bd4a52010-10-05 11:24:23 +000019141
19142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19143$as_echo "$ld_shlibs_CXX" >&6; }
19144test "$ld_shlibs_CXX" = no && can_build_shared=no
19145
19146with_gnu_ld_CXX=$with_gnu_ld
19147
19148
19149
19150
19151
19152
19153#
19154# Do we need to explicitly link libc?
19155#
19156case "x$archive_cmds_need_lc_CXX" in
19157x|xyes)
19158 # Assume -lc should be added
19159 archive_cmds_need_lc_CXX=yes
19160
19161 if test "$enable_shared" = yes && test "$GCC" = yes; then
19162 case $archive_cmds_CXX in
19163 *'~'*)
19164 # FIXME: we may have to deal with multi-command sequences.
19165 ;;
19166 '$CC '*)
19167 # Test whether the compiler implicitly links with -lc since on some
19168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19169 # to ld, don't add -lc before -lgcc.
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19171$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019172if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019173 $as_echo_n "(cached) " >&6
19174else
19175 $RM conftest*
19176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019177
cristy0c60a692010-11-04 01:09:47 +000019178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019179 (eval $ac_compile) 2>&5
19180 ac_status=$?
19181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19182 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019183 soname=conftest
19184 lib=conftest
19185 libobjs=conftest.$ac_objext
19186 deplibs=
19187 wl=$lt_prog_compiler_wl_CXX
19188 pic_flag=$lt_prog_compiler_pic_CXX
19189 compiler_flags=-v
19190 linker_flags=-v
19191 verstring=
19192 output_objdir=.
19193 libname=conftest
19194 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19195 allow_undefined_flag_CXX=
19196 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 +000019197 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019201 then
19202 lt_cv_archive_cmds_need_lc_CXX=no
19203 else
19204 lt_cv_archive_cmds_need_lc_CXX=yes
19205 fi
19206 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19207 else
19208 cat conftest.err 1>&5
19209 fi
19210 $RM conftest*
19211
19212fi
19213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19214$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19215 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019216 ;;
19217 esac
19218 fi
19219 ;;
19220esac
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
cristy73bd4a52010-10-05 11:24:23 +000019283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19284$as_echo_n "checking dynamic linker characteristics... " >&6; }
19285
19286library_names_spec=
19287libname_spec='lib$name'
19288soname_spec=
19289shrext_cmds=".so"
19290postinstall_cmds=
19291postuninstall_cmds=
19292finish_cmds=
19293finish_eval=
19294shlibpath_var=
19295shlibpath_overrides_runpath=unknown
19296version_type=none
19297dynamic_linker="$host_os ld.so"
19298sys_lib_dlsearch_path_spec="/lib /usr/lib"
19299need_lib_prefix=unknown
19300hardcode_into_libs=no
19301
19302# when you set need_version to no, make sure it does not cause -set_version
19303# flags to be left without arguments
19304need_version=unknown
19305
19306case $host_os in
19307aix3*)
cristy99bd5232011-12-07 14:38:20 +000019308 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19310 shlibpath_var=LIBPATH
19311
19312 # AIX 3 has no versioning support, so we append a major version to the name.
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 ;;
19315
19316aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019317 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019318 need_lib_prefix=no
19319 need_version=no
19320 hardcode_into_libs=yes
19321 if test "$host_cpu" = ia64; then
19322 # AIX 5 supports IA64
19323 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 else
19326 # With GCC up to 2.95.x, collect2 would create an import file
19327 # for dependence libraries. The import file would start with
19328 # the line `#! .'. This would cause the generated library to
19329 # depend on `.', always an invalid library. This was fixed in
19330 # development snapshots of GCC prior to 3.0.
19331 case $host_os in
19332 aix4 | aix4.[01] | aix4.[01].*)
19333 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19334 echo ' yes '
19335 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19336 :
19337 else
19338 can_build_shared=no
19339 fi
19340 ;;
19341 esac
19342 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19343 # soname into executable. Probably we can add versioning support to
19344 # collect2, so additional links can be useful in future.
19345 if test "$aix_use_runtimelinking" = yes; then
19346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19347 # instead of lib<name>.a to let people know that these are not
19348 # typical AIX shared libraries.
19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19350 else
19351 # We preserve .a as extension for shared libraries through AIX4.2
19352 # and later when we are not doing run time linking.
19353 library_names_spec='${libname}${release}.a $libname.a'
19354 soname_spec='${libname}${release}${shared_ext}$major'
19355 fi
19356 shlibpath_var=LIBPATH
19357 fi
19358 ;;
19359
19360amigaos*)
19361 case $host_cpu in
19362 powerpc)
19363 # Since July 2007 AmigaOS4 officially supports .so libraries.
19364 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19366 ;;
19367 m68k)
19368 library_names_spec='$libname.ixlibrary $libname.a'
19369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019370 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 +000019371 ;;
19372 esac
19373 ;;
19374
19375beos*)
19376 library_names_spec='${libname}${shared_ext}'
19377 dynamic_linker="$host_os ld.so"
19378 shlibpath_var=LIBRARY_PATH
19379 ;;
19380
19381bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019383 need_version=no
19384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19385 soname_spec='${libname}${release}${shared_ext}$major'
19386 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19387 shlibpath_var=LD_LIBRARY_PATH
19388 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19389 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19390 # the default ld.so.conf also contains /usr/contrib/lib and
19391 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19392 # libtool to hard-code these into programs
19393 ;;
19394
19395cygwin* | mingw* | pw32* | cegcc*)
19396 version_type=windows
19397 shrext_cmds=".dll"
19398 need_version=no
19399 need_lib_prefix=no
19400
cristyda16f162011-02-19 23:52:17 +000019401 case $GCC,$cc_basename in
19402 yes,*)
19403 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019404 library_names_spec='$libname.dll.a'
19405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19406 postinstall_cmds='base_file=`basename \${file}`~
19407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19408 dldir=$destdir/`dirname \$dlpath`~
19409 test -d \$dldir || mkdir -p \$dldir~
19410 $install_prog $dir/$dlname \$dldir/$dlname~
19411 chmod a+x \$dldir/$dlname~
19412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19414 fi'
19415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19416 dlpath=$dir/\$dldll~
19417 $RM \$dlpath'
19418 shlibpath_overrides_runpath=yes
19419
19420 case $host_os in
19421 cygwin*)
19422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019424
cristy73bd4a52010-10-05 11:24:23 +000019425 ;;
19426 mingw* | cegcc*)
19427 # MinGW DLLs use traditional 'lib' prefix
19428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019429 ;;
19430 pw32*)
19431 # pw32 DLLs use 'pw' prefix rather than 'lib'
19432 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19433 ;;
19434 esac
cristyda16f162011-02-19 23:52:17 +000019435 dynamic_linker='Win32 ld.exe'
19436 ;;
19437
19438 *,cl*)
19439 # Native MSVC
19440 libname_spec='$name'
19441 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19442 library_names_spec='${libname}.dll.lib'
19443
19444 case $build_os in
19445 mingw*)
19446 sys_lib_search_path_spec=
19447 lt_save_ifs=$IFS
19448 IFS=';'
19449 for lt_path in $LIB
19450 do
19451 IFS=$lt_save_ifs
19452 # Let DOS variable expansion print the short 8.3 style file name.
19453 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19454 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19455 done
19456 IFS=$lt_save_ifs
19457 # Convert to MSYS style.
19458 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19459 ;;
19460 cygwin*)
19461 # Convert to unix form, then to dos form, then back to unix form
19462 # but this time dos style (no spaces!) so that the unix form looks
19463 # like /cygdrive/c/PROGRA~1:/cygdr...
19464 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19465 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19466 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19467 ;;
19468 *)
19469 sys_lib_search_path_spec="$LIB"
19470 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19471 # It is most probably a Windows format PATH.
19472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19473 else
19474 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19475 fi
19476 # FIXME: find the short name or the path components, as spaces are
19477 # common. (e.g. "Program Files" -> "PROGRA~1")
19478 ;;
19479 esac
19480
19481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19482 postinstall_cmds='base_file=`basename \${file}`~
19483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19484 dldir=$destdir/`dirname \$dlpath`~
19485 test -d \$dldir || mkdir -p \$dldir~
19486 $install_prog $dir/$dlname \$dldir/$dlname'
19487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19488 dlpath=$dir/\$dldll~
19489 $RM \$dlpath'
19490 shlibpath_overrides_runpath=yes
19491 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019492 ;;
19493
19494 *)
cristyda16f162011-02-19 23:52:17 +000019495 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019497 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019498 ;;
19499 esac
cristy73bd4a52010-10-05 11:24:23 +000019500 # FIXME: first we should search . and the directory the executable is in
19501 shlibpath_var=PATH
19502 ;;
19503
19504darwin* | rhapsody*)
19505 dynamic_linker="$host_os dyld"
19506 version_type=darwin
19507 need_lib_prefix=no
19508 need_version=no
19509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19510 soname_spec='${libname}${release}${major}$shared_ext'
19511 shlibpath_overrides_runpath=yes
19512 shlibpath_var=DYLD_LIBRARY_PATH
19513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19514
19515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19516 ;;
19517
19518dgux*)
cristy99bd5232011-12-07 14:38:20 +000019519 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019520 need_lib_prefix=no
19521 need_version=no
19522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19523 soname_spec='${libname}${release}${shared_ext}$major'
19524 shlibpath_var=LD_LIBRARY_PATH
19525 ;;
19526
cristy73bd4a52010-10-05 11:24:23 +000019527freebsd* | dragonfly*)
19528 # DragonFly does not have aout. When/if they implement a new
19529 # versioning mechanism, adjust this.
19530 if test -x /usr/bin/objformat; then
19531 objformat=`/usr/bin/objformat`
19532 else
19533 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019534 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019535 *) objformat=elf ;;
19536 esac
19537 fi
19538 version_type=freebsd-$objformat
19539 case $version_type in
19540 freebsd-elf*)
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19542 need_version=no
19543 need_lib_prefix=no
19544 ;;
19545 freebsd-*)
19546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19547 need_version=yes
19548 ;;
19549 esac
19550 shlibpath_var=LD_LIBRARY_PATH
19551 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019552 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019553 shlibpath_overrides_runpath=yes
19554 ;;
19555 freebsd3.[01]* | freebsdelf3.[01]*)
19556 shlibpath_overrides_runpath=yes
19557 hardcode_into_libs=yes
19558 ;;
19559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19561 shlibpath_overrides_runpath=no
19562 hardcode_into_libs=yes
19563 ;;
19564 *) # from 4.6 on, and DragonFly
19565 shlibpath_overrides_runpath=yes
19566 hardcode_into_libs=yes
19567 ;;
19568 esac
19569 ;;
19570
19571gnu*)
cristy99bd5232011-12-07 14:38:20 +000019572 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019573 need_lib_prefix=no
19574 need_version=no
19575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19576 soname_spec='${libname}${release}${shared_ext}$major'
19577 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019578 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019579 hardcode_into_libs=yes
19580 ;;
19581
cristy0c60a692010-11-04 01:09:47 +000019582haiku*)
cristy99bd5232011-12-07 14:38:20 +000019583 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019584 need_lib_prefix=no
19585 need_version=no
19586 dynamic_linker="$host_os runtime_loader"
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 shlibpath_var=LIBRARY_PATH
19590 shlibpath_overrides_runpath=yes
19591 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19592 hardcode_into_libs=yes
19593 ;;
19594
cristy73bd4a52010-10-05 11:24:23 +000019595hpux9* | hpux10* | hpux11*)
19596 # Give a soname corresponding to the major version so that dld.sl refuses to
19597 # link against other versions.
19598 version_type=sunos
19599 need_lib_prefix=no
19600 need_version=no
19601 case $host_cpu in
19602 ia64*)
19603 shrext_cmds='.so'
19604 hardcode_into_libs=yes
19605 dynamic_linker="$host_os dld.so"
19606 shlibpath_var=LD_LIBRARY_PATH
19607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19609 soname_spec='${libname}${release}${shared_ext}$major'
19610 if test "X$HPUX_IA64_MODE" = X32; then
19611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19612 else
19613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19614 fi
19615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19616 ;;
19617 hppa*64*)
19618 shrext_cmds='.sl'
19619 hardcode_into_libs=yes
19620 dynamic_linker="$host_os dld.sl"
19621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19627 ;;
19628 *)
19629 shrext_cmds='.sl'
19630 dynamic_linker="$host_os dld.sl"
19631 shlibpath_var=SHLIB_PATH
19632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19634 soname_spec='${libname}${release}${shared_ext}$major'
19635 ;;
19636 esac
cristy0c60a692010-11-04 01:09:47 +000019637 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019638 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019639 # or fails outright, so override atomically:
19640 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019641 ;;
19642
19643interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019644 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019645 need_lib_prefix=no
19646 need_version=no
19647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19648 soname_spec='${libname}${release}${shared_ext}$major'
19649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19650 shlibpath_var=LD_LIBRARY_PATH
19651 shlibpath_overrides_runpath=no
19652 hardcode_into_libs=yes
19653 ;;
19654
19655irix5* | irix6* | nonstopux*)
19656 case $host_os in
19657 nonstopux*) version_type=nonstopux ;;
19658 *)
19659 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000019660 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019661 else
19662 version_type=irix
19663 fi ;;
19664 esac
19665 need_lib_prefix=no
19666 need_version=no
19667 soname_spec='${libname}${release}${shared_ext}$major'
19668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19669 case $host_os in
19670 irix5* | nonstopux*)
19671 libsuff= shlibsuff=
19672 ;;
19673 *)
19674 case $LD in # libtool.m4 will add one of these switches to LD
19675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19676 libsuff= shlibsuff= libmagic=32-bit;;
19677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19678 libsuff=32 shlibsuff=N32 libmagic=N32;;
19679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19681 *) libsuff= shlibsuff= libmagic=never-match;;
19682 esac
19683 ;;
19684 esac
19685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19686 shlibpath_overrides_runpath=no
19687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19689 hardcode_into_libs=yes
19690 ;;
19691
19692# No shared lib support for Linux oldld, aout, or coff.
19693linux*oldld* | linux*aout* | linux*coff*)
19694 dynamic_linker=no
19695 ;;
19696
cristy99bd5232011-12-07 14:38:20 +000019697# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000019698linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000019699 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019700 need_lib_prefix=no
19701 need_version=no
19702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19703 soname_spec='${libname}${release}${shared_ext}$major'
19704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19705 shlibpath_var=LD_LIBRARY_PATH
19706 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019707
cristy73bd4a52010-10-05 11:24:23 +000019708 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019709 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019710 $as_echo_n "(cached) " >&6
19711else
19712 lt_cv_shlibpath_overrides_runpath=no
19713 save_LDFLAGS=$LDFLAGS
19714 save_libdir=$libdir
19715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019718/* end confdefs.h. */
19719
19720int
19721main ()
19722{
19723
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728if ac_fn_cxx_try_link "$LINENO"; then :
19729 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019730 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019731fi
19732fi
19733rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019735 LDFLAGS=$save_LDFLAGS
19736 libdir=$save_libdir
19737
19738fi
19739
19740 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019741
19742 # This implies no fast_install, which is unacceptable.
19743 # Some rework will be needed to allow for fast_install
19744 # before this can be enabled.
19745 hardcode_into_libs=yes
19746
19747 # Add ABI-specific directories to the system library path.
19748 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19749
19750 # Append ld.so.conf contents to the search path
19751 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019752 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 +000019753 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000019754
cristy73bd4a52010-10-05 11:24:23 +000019755 fi
19756
19757 # We used to test for /lib/ld.so.1 and disable shared libraries on
19758 # powerpc, because MkLinux only supported shared libraries with the
19759 # GNU dynamic linker. Since this was broken with cross compilers,
19760 # most powerpc-linux boxes support dynamic linking these days and
19761 # people can always --disable-shared, the test was removed, and we
19762 # assume the GNU/Linux dynamic linker is in use.
19763 dynamic_linker='GNU/Linux ld.so'
19764 ;;
19765
19766netbsd*)
19767 version_type=sunos
19768 need_lib_prefix=no
19769 need_version=no
19770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19773 dynamic_linker='NetBSD (a.out) ld.so'
19774 else
19775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19776 soname_spec='${libname}${release}${shared_ext}$major'
19777 dynamic_linker='NetBSD ld.elf_so'
19778 fi
19779 shlibpath_var=LD_LIBRARY_PATH
19780 shlibpath_overrides_runpath=yes
19781 hardcode_into_libs=yes
19782 ;;
19783
19784newsos6)
cristy99bd5232011-12-07 14:38:20 +000019785 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19787 shlibpath_var=LD_LIBRARY_PATH
19788 shlibpath_overrides_runpath=yes
19789 ;;
19790
19791*nto* | *qnx*)
19792 version_type=qnx
19793 need_lib_prefix=no
19794 need_version=no
19795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19797 shlibpath_var=LD_LIBRARY_PATH
19798 shlibpath_overrides_runpath=no
19799 hardcode_into_libs=yes
19800 dynamic_linker='ldqnx.so'
19801 ;;
19802
19803openbsd*)
19804 version_type=sunos
19805 sys_lib_dlsearch_path_spec="/usr/lib"
19806 need_lib_prefix=no
19807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19808 case $host_os in
19809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19810 *) need_version=no ;;
19811 esac
19812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19814 shlibpath_var=LD_LIBRARY_PATH
19815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19816 case $host_os in
19817 openbsd2.[89] | openbsd2.[89].*)
19818 shlibpath_overrides_runpath=no
19819 ;;
19820 *)
19821 shlibpath_overrides_runpath=yes
19822 ;;
19823 esac
19824 else
19825 shlibpath_overrides_runpath=yes
19826 fi
19827 ;;
19828
19829os2*)
19830 libname_spec='$name'
19831 shrext_cmds=".dll"
19832 need_lib_prefix=no
19833 library_names_spec='$libname${shared_ext} $libname.a'
19834 dynamic_linker='OS/2 ld.exe'
19835 shlibpath_var=LIBPATH
19836 ;;
19837
19838osf3* | osf4* | osf5*)
19839 version_type=osf
19840 need_lib_prefix=no
19841 need_version=no
19842 soname_spec='${libname}${release}${shared_ext}$major'
19843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19844 shlibpath_var=LD_LIBRARY_PATH
19845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19847 ;;
19848
19849rdos*)
19850 dynamic_linker=no
19851 ;;
19852
19853solaris*)
cristy99bd5232011-12-07 14:38:20 +000019854 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019855 need_lib_prefix=no
19856 need_version=no
19857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19858 soname_spec='${libname}${release}${shared_ext}$major'
19859 shlibpath_var=LD_LIBRARY_PATH
19860 shlibpath_overrides_runpath=yes
19861 hardcode_into_libs=yes
19862 # ldd complains unless libraries are executable
19863 postinstall_cmds='chmod +x $lib'
19864 ;;
19865
19866sunos4*)
19867 version_type=sunos
19868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19870 shlibpath_var=LD_LIBRARY_PATH
19871 shlibpath_overrides_runpath=yes
19872 if test "$with_gnu_ld" = yes; then
19873 need_lib_prefix=no
19874 fi
19875 need_version=yes
19876 ;;
19877
19878sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019879 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19881 soname_spec='${libname}${release}${shared_ext}$major'
19882 shlibpath_var=LD_LIBRARY_PATH
19883 case $host_vendor in
19884 sni)
19885 shlibpath_overrides_runpath=no
19886 need_lib_prefix=no
19887 runpath_var=LD_RUN_PATH
19888 ;;
19889 siemens)
19890 need_lib_prefix=no
19891 ;;
19892 motorola)
19893 need_lib_prefix=no
19894 need_version=no
19895 shlibpath_overrides_runpath=no
19896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19897 ;;
19898 esac
19899 ;;
19900
19901sysv4*MP*)
19902 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000019903 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19905 soname_spec='$libname${shared_ext}.$major'
19906 shlibpath_var=LD_LIBRARY_PATH
19907 fi
19908 ;;
19909
19910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19911 version_type=freebsd-elf
19912 need_lib_prefix=no
19913 need_version=no
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=yes
19918 hardcode_into_libs=yes
19919 if test "$with_gnu_ld" = yes; then
19920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19921 else
19922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19923 case $host_os in
19924 sco3.2v5*)
19925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19926 ;;
19927 esac
19928 fi
19929 sys_lib_dlsearch_path_spec='/usr/lib'
19930 ;;
19931
19932tpf*)
19933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019935 need_lib_prefix=no
19936 need_version=no
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19938 shlibpath_var=LD_LIBRARY_PATH
19939 shlibpath_overrides_runpath=no
19940 hardcode_into_libs=yes
19941 ;;
19942
19943uts4*)
cristy99bd5232011-12-07 14:38:20 +000019944 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 shlibpath_var=LD_LIBRARY_PATH
19948 ;;
19949
19950*)
19951 dynamic_linker=no
19952 ;;
19953esac
19954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19955$as_echo "$dynamic_linker" >&6; }
19956test "$dynamic_linker" = no && can_build_shared=no
19957
19958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19959if test "$GCC" = yes; then
19960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19961fi
19962
19963if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19965fi
19966if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19968fi
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
cristy0c60a692010-11-04 01:09:47 +000020005
20006
cristy73bd4a52010-10-05 11:24:23 +000020007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20008$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20009hardcode_action_CXX=
20010if test -n "$hardcode_libdir_flag_spec_CXX" ||
20011 test -n "$runpath_var_CXX" ||
20012 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20013
20014 # We can hardcode non-existent directories.
20015 if test "$hardcode_direct_CXX" != no &&
20016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20017 # have to relink, otherwise we might link with an installed library
20018 # when we should be linking with a yet-to-be-installed one
20019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20020 test "$hardcode_minus_L_CXX" != no; then
20021 # Linking always hardcodes the temporary library directory.
20022 hardcode_action_CXX=relink
20023 else
20024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20025 hardcode_action_CXX=immediate
20026 fi
20027else
20028 # We cannot hardcode anything, or else we can only hardcode existing
20029 # directories.
20030 hardcode_action_CXX=unsupported
20031fi
20032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20033$as_echo "$hardcode_action_CXX" >&6; }
20034
20035if test "$hardcode_action_CXX" = relink ||
20036 test "$inherit_rpath_CXX" = yes; then
20037 # Fast installation is not supported
20038 enable_fast_install=no
20039elif test "$shlibpath_overrides_runpath" = yes ||
20040 test "$enable_shared" = no; then
20041 # Fast installation is not necessary
20042 enable_fast_install=needless
20043fi
20044
20045
20046
20047
20048
20049
20050
20051 fi # test -n "$compiler"
20052
20053 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020054 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020055 LDCXX=$LD
20056 LD=$lt_save_LD
20057 GCC=$lt_save_GCC
20058 with_gnu_ld=$lt_save_with_gnu_ld
20059 lt_cv_path_LDCXX=$lt_cv_path_LD
20060 lt_cv_path_LD=$lt_save_path_LD
20061 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20062 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20063fi # test "$_lt_caught_CXX_error" != yes
20064
20065ac_ext=c
20066ac_cpp='$CPP $CPPFLAGS'
20067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20069ac_compiler_gnu=$ac_cv_c_compiler_gnu
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
cristy99bd5232011-12-07 14:38:20 +000020083
20084
cristy73bd4a52010-10-05 11:24:23 +000020085 ac_config_commands="$ac_config_commands libtool"
20086
20087
20088
20089
20090# Only expand once:
20091
20092
20093
cristy3ed852e2009-09-05 21:47:34 +000020094
20095
20096# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020097
20098
20099
20100
20101
20102
20103
cristy73bd4a52010-10-05 11:24:23 +000020104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20105$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020106if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020107 $as_echo_n "(cached) " >&6
20108else
20109
20110module=yes
20111eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020112module=no
20113eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020114
20115fi
20116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20117$as_echo "$libltdl_cv_shlibext" >&6; }
20118if test -n "$libltdl_cv_shlibext"; then
20119
20120cat >>confdefs.h <<_ACEOF
20121#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20122_ACEOF
20123
20124fi
cristy99bd5232011-12-07 14:38:20 +000020125if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20126
20127cat >>confdefs.h <<_ACEOF
20128#define LT_SHARED_EXT "$libltdl_cv_shrext"
20129_ACEOF
20130
20131fi
cristy73bd4a52010-10-05 11:24:23 +000020132
20133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20134$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020135if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020136 $as_echo_n "(cached) " >&6
20137else
20138 lt_cv_module_path_var="$shlibpath_var"
20139fi
20140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20141$as_echo "$lt_cv_module_path_var" >&6; }
20142if test -n "$lt_cv_module_path_var"; then
20143
20144cat >>confdefs.h <<_ACEOF
20145#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20146_ACEOF
20147
20148fi
20149
20150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20151$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020152if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020153 $as_echo_n "(cached) " >&6
20154else
20155 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20156fi
20157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20158$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20159if test -n "$lt_cv_sys_dlsearch_path"; then
20160 sys_dlsearch_path=
20161 for dir in $lt_cv_sys_dlsearch_path; do
20162 if test -z "$sys_dlsearch_path"; then
20163 sys_dlsearch_path="$dir"
20164 else
20165 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20166 fi
20167 done
20168
20169cat >>confdefs.h <<_ACEOF
20170#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20171_ACEOF
20172
20173fi
20174
20175
20176LT_DLLOADERS=
20177
20178
20179ac_ext=c
20180ac_cpp='$CPP $CPPFLAGS'
20181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20183ac_compiler_gnu=$ac_cv_c_compiler_gnu
20184
20185
20186LIBADD_DLOPEN=
20187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20188$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020189if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020190 $as_echo_n "(cached) " >&6
20191else
20192 ac_func_search_save_LIBS=$LIBS
20193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20194/* end confdefs.h. */
20195
20196/* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20199#ifdef __cplusplus
20200extern "C"
20201#endif
20202char dlopen ();
20203int
20204main ()
20205{
20206return dlopen ();
20207 ;
20208 return 0;
20209}
20210_ACEOF
20211for ac_lib in '' dl; do
20212 if test -z "$ac_lib"; then
20213 ac_res="none required"
20214 else
20215 ac_res=-l$ac_lib
20216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20217 fi
20218 if ac_fn_c_try_link "$LINENO"; then :
20219 ac_cv_search_dlopen=$ac_res
20220fi
20221rm -f core conftest.err conftest.$ac_objext \
20222 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020223 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020224 break
20225fi
20226done
cristyda16f162011-02-19 23:52:17 +000020227if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020228
20229else
20230 ac_cv_search_dlopen=no
20231fi
20232rm conftest.$ac_ext
20233LIBS=$ac_func_search_save_LIBS
20234fi
20235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20236$as_echo "$ac_cv_search_dlopen" >&6; }
20237ac_res=$ac_cv_search_dlopen
20238if test "$ac_res" != no; then :
20239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20240
20241$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20242
20243 if test "$ac_cv_search_dlopen" != "none required" ; then
20244 LIBADD_DLOPEN="-ldl"
20245 fi
20246 libltdl_cv_lib_dl_dlopen="yes"
20247 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20248else
20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250/* end confdefs.h. */
20251#if HAVE_DLFCN_H
20252# include <dlfcn.h>
20253#endif
20254
20255int
20256main ()
20257{
20258dlopen(0, 0);
20259 ;
20260 return 0;
20261}
20262_ACEOF
20263if ac_fn_c_try_link "$LINENO"; then :
20264
20265$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20266
20267 libltdl_cv_func_dlopen="yes"
20268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20269else
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20271$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020272if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020273 $as_echo_n "(cached) " >&6
20274else
20275 ac_check_lib_save_LIBS=$LIBS
20276LIBS="-lsvld $LIBS"
20277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278/* end confdefs.h. */
20279
20280/* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20283#ifdef __cplusplus
20284extern "C"
20285#endif
20286char dlopen ();
20287int
20288main ()
20289{
20290return dlopen ();
20291 ;
20292 return 0;
20293}
20294_ACEOF
20295if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_lib_svld_dlopen=yes
20297else
20298 ac_cv_lib_svld_dlopen=no
20299fi
20300rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302LIBS=$ac_check_lib_save_LIBS
20303fi
20304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20305$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020306if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020307
20308$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20309
20310 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20311 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20312fi
20313
20314fi
20315rm -f core conftest.err conftest.$ac_objext \
20316 conftest$ac_exeext conftest.$ac_ext
20317fi
20318
20319if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20320then
20321 lt_save_LIBS="$LIBS"
20322 LIBS="$LIBS $LIBADD_DLOPEN"
20323 for ac_func in dlerror
20324do :
20325 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020326if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020327 cat >>confdefs.h <<_ACEOF
20328#define HAVE_DLERROR 1
20329_ACEOF
20330
20331fi
20332done
20333
20334 LIBS="$lt_save_LIBS"
20335fi
20336
20337
20338LIBADD_SHL_LOAD=
20339ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020340if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020341
20342$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20343
20344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20345else
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20347$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020348if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020349 $as_echo_n "(cached) " >&6
20350else
20351 ac_check_lib_save_LIBS=$LIBS
20352LIBS="-ldld $LIBS"
20353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20354/* end confdefs.h. */
20355
20356/* Override any GCC internal prototype to avoid an error.
20357 Use char because int might match the return type of a GCC
20358 builtin and then its argument prototype would still apply. */
20359#ifdef __cplusplus
20360extern "C"
20361#endif
20362char shl_load ();
20363int
20364main ()
20365{
20366return shl_load ();
20367 ;
20368 return 0;
20369}
20370_ACEOF
20371if ac_fn_c_try_link "$LINENO"; then :
20372 ac_cv_lib_dld_shl_load=yes
20373else
20374 ac_cv_lib_dld_shl_load=no
20375fi
20376rm -f core conftest.err conftest.$ac_objext \
20377 conftest$ac_exeext conftest.$ac_ext
20378LIBS=$ac_check_lib_save_LIBS
20379fi
20380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20381$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020382if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020383
20384$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20385
20386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20387 LIBADD_SHL_LOAD="-ldld"
20388fi
20389
20390fi
20391
20392
20393
20394case $host_os in
20395darwin[1567].*)
20396# We only want this for pre-Mac OS X 10.4.
20397 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020398if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020399
20400$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20401
20402 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20403fi
20404
20405 ;;
20406beos*)
20407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20408 ;;
20409cygwin* | mingw* | os2* | pw32*)
20410 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20411"
cristyda16f162011-02-19 23:52:17 +000020412if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020413 ac_have_decl=1
20414else
20415 ac_have_decl=0
20416fi
20417
20418cat >>confdefs.h <<_ACEOF
20419#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20420_ACEOF
20421
20422 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20423 ;;
20424esac
20425
20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20427$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020428if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020429 $as_echo_n "(cached) " >&6
20430else
20431 ac_check_lib_save_LIBS=$LIBS
20432LIBS="-ldld $LIBS"
20433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434/* end confdefs.h. */
20435
20436/* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439#ifdef __cplusplus
20440extern "C"
20441#endif
20442char dld_link ();
20443int
20444main ()
20445{
20446return dld_link ();
20447 ;
20448 return 0;
20449}
20450_ACEOF
20451if ac_fn_c_try_link "$LINENO"; then :
20452 ac_cv_lib_dld_dld_link=yes
20453else
20454 ac_cv_lib_dld_dld_link=no
20455fi
20456rm -f core conftest.err conftest.$ac_objext \
20457 conftest$ac_exeext conftest.$ac_ext
20458LIBS=$ac_check_lib_save_LIBS
20459fi
20460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20461$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020462if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020463
20464$as_echo "#define HAVE_DLD 1" >>confdefs.h
20465
20466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20467fi
20468
20469
20470
20471
20472LT_DLPREOPEN=
20473if test -n "$LT_DLLOADERS"
20474then
20475 for lt_loader in $LT_DLLOADERS; do
20476 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20477 done
20478
20479$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20480
20481fi
20482
20483
20484LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20485
20486
20487ac_ext=c
20488ac_cpp='$CPP $CPPFLAGS'
20489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20491ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492
20493
20494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20495$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020496if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020497 $as_echo_n "(cached) " >&6
20498else
20499 lt_cv_sys_symbol_underscore=no
20500 cat > conftest.$ac_ext <<_LT_EOF
20501void nm_test_func(){}
20502int main(){nm_test_func;return 0;}
20503_LT_EOF
20504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20505 (eval $ac_compile) 2>&5
20506 ac_status=$?
20507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508 test $ac_status = 0; }; then
20509 # Now try to grab the symbols.
20510 ac_nlist=conftest.nm
20511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20513 ac_status=$?
20514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20515 test $ac_status = 0; } && test -s "$ac_nlist"; then
20516 # See whether the symbols have a leading underscore.
20517 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20518 lt_cv_sys_symbol_underscore=yes
20519 else
20520 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20521 :
20522 else
20523 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20524 fi
20525 fi
20526 else
20527 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20528 fi
20529 else
20530 echo "configure: failed program was:" >&5
20531 cat conftest.c >&5
20532 fi
20533 rm -rf conftest*
20534
20535fi
20536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20537$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20538 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20539
20540
20541if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20542 if test x"$libltdl_cv_func_dlopen" = xyes ||
20543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20545$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020546if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020547 $as_echo_n "(cached) " >&6
20548else
20549 libltdl_cv_need_uscore=unknown
20550 save_LIBS="$LIBS"
20551 LIBS="$LIBS $LIBADD_DLOPEN"
20552 if test "$cross_compiling" = yes; then :
20553 libltdl_cv_need_uscore=cross
20554else
20555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20556 lt_status=$lt_dlunknown
20557 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020558#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020559#include "confdefs.h"
20560
20561#if HAVE_DLFCN_H
20562#include <dlfcn.h>
20563#endif
20564
20565#include <stdio.h>
20566
20567#ifdef RTLD_GLOBAL
20568# define LT_DLGLOBAL RTLD_GLOBAL
20569#else
20570# ifdef DL_GLOBAL
20571# define LT_DLGLOBAL DL_GLOBAL
20572# else
20573# define LT_DLGLOBAL 0
20574# endif
20575#endif
20576
20577/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20578 find out it does not work in some platform. */
20579#ifndef LT_DLLAZY_OR_NOW
20580# ifdef RTLD_LAZY
20581# define LT_DLLAZY_OR_NOW RTLD_LAZY
20582# else
20583# ifdef DL_LAZY
20584# define LT_DLLAZY_OR_NOW DL_LAZY
20585# else
20586# ifdef RTLD_NOW
20587# define LT_DLLAZY_OR_NOW RTLD_NOW
20588# else
20589# ifdef DL_NOW
20590# define LT_DLLAZY_OR_NOW DL_NOW
20591# else
20592# define LT_DLLAZY_OR_NOW 0
20593# endif
20594# endif
20595# endif
20596# endif
20597#endif
20598
cristy0c60a692010-11-04 01:09:47 +000020599/* When -fvisbility=hidden is used, assume the code has been annotated
20600 correspondingly for the symbols needed. */
20601#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020602int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020603#endif
20604
cristyda16f162011-02-19 23:52:17 +000020605int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020606int main ()
20607{
20608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20609 int status = $lt_dlunknown;
20610
20611 if (self)
20612 {
20613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020614 else
20615 {
20616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20617 else puts (dlerror ());
20618 }
cristy73bd4a52010-10-05 11:24:23 +000020619 /* dlclose (self); */
20620 }
20621 else
20622 puts (dlerror ());
20623
20624 return status;
20625}
20626_LT_EOF
20627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20628 (eval $ac_link) 2>&5
20629 ac_status=$?
20630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20632 (./conftest; exit; ) >&5 2>/dev/null
20633 lt_status=$?
20634 case x$lt_status in
20635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20637 x$lt_dlunknown|x*) ;;
20638 esac
20639 else :
20640 # compilation failed
20641
20642 fi
20643fi
20644rm -fr conftest*
20645
20646 LIBS="$save_LIBS"
20647
20648fi
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20650$as_echo "$libltdl_cv_need_uscore" >&6; }
20651 fi
20652fi
20653
20654if test x"$libltdl_cv_need_uscore" = xyes; then
20655
20656$as_echo "#define NEED_USCORE 1" >>confdefs.h
20657
20658fi
20659
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20661$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020662if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020663 $as_echo_n "(cached) " >&6
20664else
20665 # PORTME does your system automatically load deplibs for dlopen?
20666 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20667 # For now, we just catch OSes we know something about -- in the
20668 # future, we'll try test this programmatically.
20669 lt_cv_sys_dlopen_deplibs=unknown
20670 case $host_os in
20671 aix3*|aix4.1.*|aix4.2.*)
20672 # Unknown whether this is true for these versions of AIX, but
20673 # we want this `case' here to explicitly catch those versions.
20674 lt_cv_sys_dlopen_deplibs=unknown
20675 ;;
20676 aix[4-9]*)
20677 lt_cv_sys_dlopen_deplibs=yes
20678 ;;
20679 amigaos*)
20680 case $host_cpu in
20681 powerpc)
20682 lt_cv_sys_dlopen_deplibs=no
20683 ;;
20684 esac
20685 ;;
20686 darwin*)
20687 # Assuming the user has installed a libdl from somewhere, this is true
20688 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20689 lt_cv_sys_dlopen_deplibs=yes
20690 ;;
20691 freebsd* | dragonfly*)
20692 lt_cv_sys_dlopen_deplibs=yes
20693 ;;
cristy0c60a692010-11-04 01:09:47 +000020694 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000020695 # GNU and its variants, using gnu ld.so (Glibc)
20696 lt_cv_sys_dlopen_deplibs=yes
20697 ;;
20698 hpux10*|hpux11*)
20699 lt_cv_sys_dlopen_deplibs=yes
20700 ;;
20701 interix*)
20702 lt_cv_sys_dlopen_deplibs=yes
20703 ;;
20704 irix[12345]*|irix6.[01]*)
20705 # Catch all versions of IRIX before 6.2, and indicate that we don't
20706 # know how it worked for any of those versions.
20707 lt_cv_sys_dlopen_deplibs=unknown
20708 ;;
20709 irix*)
20710 # The case above catches anything before 6.2, and it's known that
20711 # at 6.2 and later dlopen does load deplibs.
20712 lt_cv_sys_dlopen_deplibs=yes
20713 ;;
20714 netbsd*)
20715 lt_cv_sys_dlopen_deplibs=yes
20716 ;;
20717 openbsd*)
20718 lt_cv_sys_dlopen_deplibs=yes
20719 ;;
20720 osf[1234]*)
20721 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20722 # it did *not* use an RPATH in a shared library to find objects the
20723 # library depends on, so we explicitly say `no'.
20724 lt_cv_sys_dlopen_deplibs=no
20725 ;;
20726 osf5.0|osf5.0a|osf5.1)
20727 # dlopen *does* load deplibs and with the right loader patch applied
20728 # it even uses RPATH in a shared library to search for shared objects
20729 # that the library depends on, but there's no easy way to know if that
20730 # patch is installed. Since this is the case, all we can really
20731 # say is unknown -- it depends on the patch being installed. If
20732 # it is, this changes to `yes'. Without it, it would be `no'.
20733 lt_cv_sys_dlopen_deplibs=unknown
20734 ;;
20735 osf*)
20736 # the two cases above should catch all versions of osf <= 5.1. Read
20737 # the comments above for what we know about them.
20738 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20739 # is used to find them so we can finally say `yes'.
20740 lt_cv_sys_dlopen_deplibs=yes
20741 ;;
20742 qnx*)
20743 lt_cv_sys_dlopen_deplibs=yes
20744 ;;
20745 solaris*)
20746 lt_cv_sys_dlopen_deplibs=yes
20747 ;;
20748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20749 libltdl_cv_sys_dlopen_deplibs=yes
20750 ;;
20751 esac
20752
20753fi
20754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20755$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20756if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20757
20758$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20759
20760fi
20761
20762:
20763
20764for ac_header in argz.h
20765do :
20766 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20767"
cristyda16f162011-02-19 23:52:17 +000020768if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020769 cat >>confdefs.h <<_ACEOF
20770#define HAVE_ARGZ_H 1
20771_ACEOF
20772
20773fi
20774
20775done
20776
20777
20778ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20779# include <argz.h>
20780#endif
20781"
cristyda16f162011-02-19 23:52:17 +000020782if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020783
20784cat >>confdefs.h <<_ACEOF
20785#define HAVE_ERROR_T 1
20786_ACEOF
20787
20788
20789else
20790
20791$as_echo "#define error_t int" >>confdefs.h
20792
20793
20794$as_echo "#define __error_t_defined 1" >>confdefs.h
20795
20796fi
20797
20798
20799ARGZ_H=
20800for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20801 argz_next argz_stringify
20802do :
20803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20804ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000020805if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000020806 cat >>confdefs.h <<_ACEOF
20807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20808_ACEOF
20809
20810else
20811 ARGZ_H=argz.h;
20812
20813 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20814
20815fi
20816done
20817
20818
20819if test -z "$ARGZ_H"; then :
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20821$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020822if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020823 $as_echo_n "(cached) " >&6
20824else
20825 case $host_os in #(
20826 *cygwin*)
20827 lt_cv_sys_argz_works=no
20828 if test "$cross_compiling" != no; then
20829 lt_cv_sys_argz_works="guessing no"
20830 else
20831 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20832 save_IFS=$IFS
20833 IFS=-.
20834 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20835 IFS=$save_IFS
20836 lt_os_major=${2-0}
20837 lt_os_minor=${3-0}
20838 lt_os_micro=${4-0}
20839 if test "$lt_os_major" -gt 1 \
20840 || { test "$lt_os_major" -eq 1 \
20841 && { test "$lt_os_minor" -gt 5 \
20842 || { test "$lt_os_minor" -eq 5 \
20843 && test "$lt_os_micro" -gt 24; }; }; }; then
20844 lt_cv_sys_argz_works=yes
20845 fi
20846 fi
20847 ;; #(
20848 *) lt_cv_sys_argz_works=yes ;;
20849 esac
20850fi
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20852$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000020853 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000020854
20855$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20856
20857else
20858 ARGZ_H=argz.h
20859
20860
20861 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20862
20863fi
20864fi
20865
20866
20867
20868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20869$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020870if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020871 $as_echo_n "(cached) " >&6
20872else
20873 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20874 libltdl_cv_preloaded_symbols=yes
20875 else
20876 libltdl_cv_preloaded_symbols=no
20877 fi
20878
20879fi
20880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20881$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20882if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20883
20884$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20885
20886fi
20887
20888# Set options
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900# Check whether --with-included_ltdl was given.
20901if test "${with_included_ltdl+set}" = set; then :
20902 withval=$with_included_ltdl;
20903fi
20904
20905
20906if test "x$with_included_ltdl" != xyes; then
20907 # We are not being forced to use the included libltdl sources, so
20908 # decide whether there is a useful installed version we can use.
20909 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20910
20911"
cristyda16f162011-02-19 23:52:17 +000020912if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020913 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20914 #include <ltdl.h>
20915"
cristyda16f162011-02-19 23:52:17 +000020916if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20918$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020919if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020920 $as_echo_n "(cached) " >&6
20921else
20922 ac_check_lib_save_LIBS=$LIBS
20923LIBS="-lltdl $LIBS"
20924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925/* end confdefs.h. */
20926
20927/* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20930#ifdef __cplusplus
20931extern "C"
20932#endif
20933char lt_dladvise_preload ();
20934int
20935main ()
20936{
20937return lt_dladvise_preload ();
20938 ;
20939 return 0;
20940}
20941_ACEOF
20942if ac_fn_c_try_link "$LINENO"; then :
20943 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20944else
20945 ac_cv_lib_ltdl_lt_dladvise_preload=no
20946fi
20947rm -f core conftest.err conftest.$ac_objext \
20948 conftest$ac_exeext conftest.$ac_ext
20949LIBS=$ac_check_lib_save_LIBS
20950fi
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20952$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000020953if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020954 with_included_ltdl=no
20955else
20956 with_included_ltdl=yes
20957fi
20958
20959else
20960 with_included_ltdl=yes
20961fi
20962
20963else
20964 with_included_ltdl=yes
20965fi
20966
20967
20968fi
20969
20970
20971
20972
20973# Check whether --with-ltdl_include was given.
20974if test "${with_ltdl_include+set}" = set; then :
20975 withval=$with_ltdl_include;
20976fi
20977
20978
20979if test -n "$with_ltdl_include"; then
20980 if test -f "$with_ltdl_include/ltdl.h"; then :
20981 else
cristy98dddb52010-11-04 00:30:15 +000020982 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020983 fi
20984else
20985 with_ltdl_include=no
20986fi
20987
20988
20989# Check whether --with-ltdl_lib was given.
20990if test "${with_ltdl_lib+set}" = set; then :
20991 withval=$with_ltdl_lib;
20992fi
20993
20994
20995if test -n "$with_ltdl_lib"; then
20996 if test -f "$with_ltdl_lib/libltdl.la"; then :
20997 else
cristy98dddb52010-11-04 00:30:15 +000020998 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020999 fi
21000else
21001 with_ltdl_lib=no
21002fi
21003
21004case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21005 ,yes,no,no,)
21006 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021007 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021008 "") enable_ltdl_convenience=yes
21009 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21010esac
21011LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21012LTDLDEPS=$LIBLTDL
21013LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21014
21015
21016
21017
21018
21019# For backwards non-gettext consistent compatibility...
21020INCLTDL="$LTDLINCL"
21021
21022
21023 ;;
21024 ,no,no,no,)
21025 # If the included ltdl is not to be used, then use the
21026 # preinstalled libltdl we found.
21027
21028$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21029
21030 LIBLTDL=-lltdl
21031 LTDLDEPS=
21032 LTDLINCL=
21033 ;;
21034 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021035 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021036 ;;
21037 *) with_included_ltdl=no
21038 LIBLTDL="-L$with_ltdl_lib -lltdl"
21039 LTDLDEPS=
21040 LTDLINCL="-I$with_ltdl_include"
21041 ;;
21042esac
21043INCLTDL="$LTDLINCL"
21044
21045# Report our decision...
21046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21047$as_echo_n "checking where to find libltdl headers... " >&6; }
21048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21049$as_echo "$LTDLINCL" >&6; }
21050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21051$as_echo_n "checking where to find libltdl library... " >&6; }
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21053$as_echo "$LIBLTDL" >&6; }
21054
21055
21056
21057# Check whether --enable-ltdl-install was given.
21058if test "${enable_ltdl_install+set}" = set; then :
21059 enableval=$enable_ltdl_install;
21060fi
21061
21062
21063case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21064 *yes*) ;;
21065 *) enable_ltdl_convenience=yes ;;
21066esac
21067
21068 if test x"${enable_ltdl_install-no}" != xno; then
21069 INSTALL_LTDL_TRUE=
21070 INSTALL_LTDL_FALSE='#'
21071else
21072 INSTALL_LTDL_TRUE='#'
21073 INSTALL_LTDL_FALSE=
21074fi
21075
21076 if test x"${enable_ltdl_convenience-no}" != xno; then
21077 CONVENIENCE_LTDL_TRUE=
21078 CONVENIENCE_LTDL_FALSE='#'
21079else
21080 CONVENIENCE_LTDL_TRUE='#'
21081 CONVENIENCE_LTDL_FALSE=
21082fi
21083
21084
21085
21086
21087
21088
cristy73bd4a52010-10-05 11:24:23 +000021089# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21090# the user used. This is so that ltdl.h can pick up the parent projects
21091# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21092# definitions required by ltdl.c.
21093# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21094
21095
21096
21097for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21098do :
21099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21100ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21101"
cristy98dddb52010-11-04 00:30:15 +000021102if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021103 cat >>confdefs.h <<_ACEOF
21104#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105_ACEOF
21106
21107fi
21108
21109done
21110
21111
21112for ac_func in closedir opendir readdir
21113do :
21114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21115ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021116if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021117 cat >>confdefs.h <<_ACEOF
21118#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21119_ACEOF
21120
21121else
21122
21123
21124 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21125
21126fi
21127done
21128
21129for ac_func in strlcat strlcpy
21130do :
21131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21132ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021133if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021134 cat >>confdefs.h <<_ACEOF
21135#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21136_ACEOF
21137
21138else
21139
21140
21141 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21142
21143fi
21144done
21145
21146
21147
21148cat >>confdefs.h <<_ACEOF
21149#define LT_LIBEXT "$libext"
21150_ACEOF
21151
21152
cristyda16f162011-02-19 23:52:17 +000021153name=
21154eval "lt_libprefix=\"$libname_spec\""
21155
21156cat >>confdefs.h <<_ACEOF
21157#define LT_LIBPREFIX "$lt_libprefix"
21158_ACEOF
21159
21160
cristy73bd4a52010-10-05 11:24:23 +000021161name=ltdl
cristyda16f162011-02-19 23:52:17 +000021162eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021163
21164
21165
21166
21167
21168
21169
21170
21171# Only expand once:
21172
21173
cristy3ed852e2009-09-05 21:47:34 +000021174
21175# Check to see if building shared libraries
21176libtool_build_shared_libs='no'
21177if test "$enable_shared" = 'yes'; then
21178 libtool_build_shared_libs='yes'
21179fi
21180
21181# Check to see if building static libraries
21182libtool_build_static_libs='no'
21183if test "$enable_static" = 'yes'; then
21184 libtool_build_static_libs='yes'
21185fi
21186
cristy73bd4a52010-10-05 11:24:23 +000021187 if test "${libtool_build_shared_libs}" = 'yes'; then
21188 WITH_SHARED_LIBS_TRUE=
21189 WITH_SHARED_LIBS_FALSE='#'
21190else
21191 WITH_SHARED_LIBS_TRUE='#'
21192 WITH_SHARED_LIBS_FALSE=
21193fi
21194
cristy3ed852e2009-09-05 21:47:34 +000021195#
21196# Enable support for building loadable modules
21197#
21198
21199# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021200if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 withval=$with_modules; with_modules=$withval
21202else
cristy5a1cefd2010-01-06 20:42:35 +000021203 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021204fi
21205
21206
21207# Only allow building loadable modules if we are building shared libraries
21208if test "$with_modules" != 'no' ; then
21209 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021210 { $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 +000021211$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21212 with_modules='no'
21213 fi
21214fi
21215if test "$with_modules" != 'no'; then
21216
cristy8b350f62009-11-15 23:12:43 +000021217$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021218
21219fi
cristy73bd4a52010-10-05 11:24:23 +000021220 if test "$with_modules" != 'no'; then
21221 WITH_MODULES_TRUE=
21222 WITH_MODULES_FALSE='#'
21223else
21224 WITH_MODULES_TRUE='#'
21225 WITH_MODULES_FALSE=
21226fi
21227
cristy3ed852e2009-09-05 21:47:34 +000021228
21229# Enable building/use of libltdl if we are building shared libraries regardless
21230# of whether modules are built or not.
21231with_ltdl='no'
21232if test "$libtool_build_shared_libs" != 'no'; then
21233 with_ltdl='yes'
21234fi
21235
cristy73bd4a52010-10-05 11:24:23 +000021236 if test "$with_ltdl" != 'no'; then
21237 WITH_LTDL_TRUE=
21238 WITH_LTDL_FALSE='#'
21239else
21240 WITH_LTDL_TRUE='#'
21241 WITH_LTDL_FALSE=
21242fi
21243
cristy3ed852e2009-09-05 21:47:34 +000021244if test "$with_ltdl" != 'no'; then
21245
cristy8b350f62009-11-15 23:12:43 +000021246$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021247
21248
21249 # Set DLLDFLAGS
21250 if test X"$enable_shared" = Xyes; then
21251 DLLDFLAGS=-export-dynamic
21252
21253 fi
21254fi
21255
21256# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021257# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021258# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021259if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021260 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21261else
21262 enable_delegate_build='no'
21263fi
21264
21265
21266# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021267if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021268 enableval=$enable_deprecated; enable_deprecated=$enableval
21269else
21270 enable_deprecated='no'
21271fi
21272
21273
21274if test "$enable_deprecated" = 'yes'; then
21275
cristy8b350f62009-11-15 23:12:43 +000021276$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021277
21278else
21279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21280fi
21281
21282# Build a version of ImageMagick which operates uninstalled.
21283# Used to build distributions located via MAGICK_HOME / executable path
21284# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021285if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021286 enableval=$enable_installed; enable_installed=$enableval
21287else
21288 enable_installed='yes'
21289fi
21290
21291
21292if test "$enable_installed" = 'yes'; then
21293
cristy8b350f62009-11-15 23:12:43 +000021294$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021295
21296else
21297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21298fi
21299
21300# Permit enciphering and deciphering image pixels.
21301# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021302if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021303 enableval=$enable_cipher; enable_cipher=$enableval
21304else
21305 enable_cipher='yes'
21306fi
21307
21308
21309if test "$enable_cipher" = 'yes'; then
21310
cristy8b350f62009-11-15 23:12:43 +000021311$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021312
21313fi
21314
cristy6e3607c2011-09-13 13:59:17 +000021315# Build a zero-configuration version of ImageMagick.
21316# Check whether --enable-zero-configuration was given.
21317if test "${enable_zero_configuration+set}" = set; then :
21318 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021319else
cristy6e3607c2011-09-13 13:59:17 +000021320 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021321fi
21322
21323
cristy6e3607c2011-09-13 13:59:17 +000021324if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021325
cristy6e3607c2011-09-13 13:59:17 +000021326$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021327
cristy81af5702011-09-13 14:20:58 +000021328 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021329fi
21330
21331# Build a high dynamic range version of ImageMagick.
21332# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021333if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021334 enableval=$enable_hdri; enable_hdri=$enableval
21335else
21336 enable_hdri='no'
21337fi
21338
21339
21340MAGICK_HDRI=""
21341if test "$enable_hdri" = 'yes'; then
21342 MAGICK_HDRI="HDRI"
21343
cristy8b350f62009-11-15 23:12:43 +000021344$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021345
cristyfd9dcd42010-08-08 18:07:02 +000021346 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021347fi
21348
cristy3ed852e2009-09-05 21:47:34 +000021349# Build a version of ImageMagick with assert statements.
21350# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021351if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021352 enableval=$enable_assert; enable_assert=$enableval
21353else
21354 enable_assert='yes'
21355fi
21356
21357
21358if test "$enable_assert" = 'no'; then
21359
cristy8b350f62009-11-15 23:12:43 +000021360$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021361
21362fi
21363
cristya448bd22011-10-14 12:38:13 +000021364# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021365
21366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21367$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21368 # Check whether --enable-maintainer-mode was given.
21369if test "${enable_maintainer_mode+set}" = set; then :
21370 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21371else
21372 USE_MAINTAINER_MODE=no
21373fi
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21376$as_echo "$USE_MAINTAINER_MODE" >&6; }
21377 if test $USE_MAINTAINER_MODE = yes; then
21378 MAINTAINER_MODE_TRUE=
21379 MAINTAINER_MODE_FALSE='#'
21380else
21381 MAINTAINER_MODE_TRUE='#'
21382 MAINTAINER_MODE_FALSE=
21383fi
21384
21385 MAINT=$MAINTAINER_MODE_TRUE
21386
21387
cristy3ed852e2009-09-05 21:47:34 +000021388
cristy3ed852e2009-09-05 21:47:34 +000021389# Enable ccmalloc memory debugging support
21390# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021391if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021392 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21393else
21394 enable_ccmalloc='no'
21395fi
21396
21397
21398# Enable Electric Fence memory debugging support
21399# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021400if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021401 enableval=$enable_efence; enable_efence=$enableval
21402else
21403 enable_efence='no'
21404fi
21405
21406
21407# Enable prof-based profiling support
21408# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021409if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021410 enableval=$enable_prof; enable_prof=$enableval
21411else
21412 enable_prof='no'
21413fi
21414
21415
21416# Enable gprof-based profiling support
21417# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021418if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021419 enableval=$enable_gprof; enable_gprof=$enableval
21420else
21421 enable_gprof='no'
21422fi
21423
21424
21425# Enable gcov-based profiling support
21426# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021427if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021428 enableval=$enable_gcov; enable_gcov=$enableval
21429else
21430 enable_gcov='no'
21431fi
21432
21433
21434enable_profiling='no'
21435if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21436 enable_profiling='yes'
21437 if test "$libtool_build_shared_libs" = 'yes'; then
21438 echo "Warning: Can not profile code using shared libraries"
21439 fi
21440fi
21441
21442# Magick API method prefix
21443
21444# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021445if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021446 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021447else
cristyfc3d0222012-02-07 15:05:57 +000021448 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021449fi
21450
21451
cristyfc3d0222012-02-07 15:05:57 +000021452if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021453
21454cat >>confdefs.h <<_ACEOF
21455#define NAMESPACE_PREFIX $with_method_prefix
21456_ACEOF
21457
cristyfc3d0222012-02-07 15:05:57 +000021458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021459fi
21460
21461# Number of bits in a Quantum
21462
21463# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021464if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021465 withval=$with_quantum_depth; with_quantum_depth=$withval
21466else
21467 with_quantum_depth=16
21468fi
21469
21470
21471if test "$with_quantum_depth" != '8'; then
21472 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21473fi
21474
21475case "${with_quantum_depth}" in
21476 8 ) ;;
21477 16 ) ;;
21478 32 ) ;;
21479 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021480 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021481esac
21482QUANTUM_DEPTH="$with_quantum_depth"
21483
21484cat >>confdefs.h <<_ACEOF
21485#define QUANTUM_DEPTH $QUANTUM_DEPTH
21486_ACEOF
21487
21488
21489# Set pixel cache threshold
21490
21491# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021492if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021493 withval=$with_cache; with_cache=$withval
21494else
21495 with_cache=''
21496fi
21497
21498
21499if test "$with_cache" != ''; then
21500
21501cat >>confdefs.h <<_ACEOF
21502#define PixelCacheThreshold $with_cache
21503_ACEOF
21504
21505 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21506fi
21507
21508# Disable/Enable support for full delegate paths
21509
21510# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021511if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021512 withval=$with_frozenpaths; with_frozenpaths=$withval
21513else
21514 with_frozenpaths='no'
21515fi
21516
21517
21518# Enable build/install of Magick++
21519
21520# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021521if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021522 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21523else
21524 with_magick_plus_plus='yes'
21525fi
21526
21527
21528# Disable build/install of PerlMagick.
21529
21530# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021531if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021532 withval=$with_perl; with_perl=$withval
21533else
cristyb5f4e2f2010-04-25 00:49:11 +000021534 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021535fi
21536
21537
21538# Options to pass when configuring PerlMagick
21539
21540# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021541if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021542 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021543fi
21544
21545
cristy3ed852e2009-09-05 21:47:34 +000021546
21547# Enable umem, object-caching memory allocation library.
21548
21549# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021550if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021551 withval=$with_umem; with_umem=$withval
21552else
21553 with_umem='no'
21554fi
21555
21556if test "$with_umem" != 'yes' ; then
21557 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21558fi
21559
21560#
21561# Specify path to shared libstdc++ if not in normal location
21562#
21563
21564# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021565if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021566 withval=$with_libstdc; with_libstdc=$withval
21567else
21568 with_libstdc=''
21569fi
21570
21571
21572if test "$with_libstdc" != ''; then
21573 if test -d "$with_libstdc"; then
21574 LIBSTDCLDFLAGS="-L$with_libstdc"
21575 fi
21576fi
21577
21578
21579# Does gcc required -traditional?
21580if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021582$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021583if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021584 $as_echo_n "(cached) " >&6
21585else
21586 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021588/* end confdefs.h. */
21589#include <sgtty.h>
21590Autoconf TIOCGETP
21591_ACEOF
21592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021593 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021594 ac_cv_prog_gcc_traditional=yes
21595else
21596 ac_cv_prog_gcc_traditional=no
21597fi
21598rm -f conftest*
21599
21600
21601 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021603/* end confdefs.h. */
21604#include <termio.h>
21605Autoconf TCGETA
21606_ACEOF
21607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021608 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021609 ac_cv_prog_gcc_traditional=yes
21610fi
21611rm -f conftest*
21612
21613 fi
21614fi
cristy8b350f62009-11-15 23:12:43 +000021615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021616$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21617 if test $ac_cv_prog_gcc_traditional = yes; then
21618 CC="$CC -traditional"
21619 fi
21620fi
21621
21622
21623########
21624#
21625# Set defines required to build DLLs and modules using MinGW
21626#
21627########
21628# These options are set for multi-thread DLL module build
21629# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21630# module: _DLL
21631# executable/Magick++: _DLL _MAGICKMOD_
21632MODULE_EXTRA_CPPFLAGS=''
21633LIBRARY_EXTRA_CPPFLAGS=''
21634if test "${native_win32_build}" = 'yes'; then
21635 if test "${libtool_build_shared_libs}" = 'yes'; then
21636 CPPFLAGS="$CPPFLAGS -D_DLL"
21637 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21638 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21639 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21640 if test "$with_modules" = 'yes'; then
21641 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21642 else
21643 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21644 fi
21645 else
21646 CPPFLAGS="$CPPFLAGS -D_LIB"
21647 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21648 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21649 fi
21650 if test "$with_threads" = 'yes'; then
21651 CPPFLAGS="$CPPFLAGS -D_MT"
21652 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21653 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21654 fi
21655fi
21656
21657
21658
21659# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021661$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021662if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021663 $as_echo_n "(cached) " >&6
21664else
cristy8b350f62009-11-15 23:12:43 +000021665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021666/* end confdefs.h. */
21667#include <stdlib.h>
21668#include <stdarg.h>
21669#include <string.h>
21670#include <float.h>
21671
21672int
21673main ()
21674{
21675
21676 ;
21677 return 0;
21678}
21679_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021680if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 ac_cv_header_stdc=yes
21682else
cristy8b350f62009-11-15 23:12:43 +000021683 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021684fi
cristy3ed852e2009-09-05 21:47:34 +000021685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686
21687if test $ac_cv_header_stdc = yes; then
21688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021690/* end confdefs.h. */
21691#include <string.h>
21692
21693_ACEOF
21694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021695 $EGREP "memchr" >/dev/null 2>&1; then :
21696
cristy3ed852e2009-09-05 21:47:34 +000021697else
21698 ac_cv_header_stdc=no
21699fi
21700rm -f conftest*
21701
21702fi
21703
21704if test $ac_cv_header_stdc = yes; then
21705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021707/* end confdefs.h. */
21708#include <stdlib.h>
21709
21710_ACEOF
21711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021712 $EGREP "free" >/dev/null 2>&1; then :
21713
cristy3ed852e2009-09-05 21:47:34 +000021714else
21715 ac_cv_header_stdc=no
21716fi
21717rm -f conftest*
21718
21719fi
21720
21721if test $ac_cv_header_stdc = yes; then
21722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021723 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021724 :
21725else
cristy8b350f62009-11-15 23:12:43 +000021726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021727/* end confdefs.h. */
21728#include <ctype.h>
21729#include <stdlib.h>
21730#if ((' ' & 0x0FF) == 0x020)
21731# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21732# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21733#else
21734# define ISLOWER(c) \
21735 (('a' <= (c) && (c) <= 'i') \
21736 || ('j' <= (c) && (c) <= 'r') \
21737 || ('s' <= (c) && (c) <= 'z'))
21738# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21739#endif
21740
21741#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21742int
21743main ()
21744{
21745 int i;
21746 for (i = 0; i < 256; i++)
21747 if (XOR (islower (i), ISLOWER (i))
21748 || toupper (i) != TOUPPER (i))
21749 return 2;
21750 return 0;
21751}
21752_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021753if ac_fn_c_try_run "$LINENO"; then :
21754
cristy3ed852e2009-09-05 21:47:34 +000021755else
cristy8b350f62009-11-15 23:12:43 +000021756 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021757fi
cristy8b350f62009-11-15 23:12:43 +000021758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21759 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021760fi
21761
cristy3ed852e2009-09-05 21:47:34 +000021762fi
21763fi
cristy8b350f62009-11-15 23:12:43 +000021764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021765$as_echo "$ac_cv_header_stdc" >&6; }
21766if test $ac_cv_header_stdc = yes; then
21767
cristy8b350f62009-11-15 23:12:43 +000021768$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021769
21770fi
21771
21772if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021773 { $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 +000021774 header files. Compilation cannot proceed. Please install the ANSI C
21775 headers and rerun this script." >&5
21776$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21777 header files. Compilation cannot proceed. Please install the ANSI C
21778 headers and rerun this script." >&2;};
21779fi
cristya0b81c32010-01-22 02:54:33 +000021780
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21782$as_echo_n "checking whether to enable assertions... " >&6; }
21783 # Check whether --enable-assert was given.
21784if test "${enable_assert+set}" = set; then :
21785 enableval=$enable_assert; ac_enable_assert=$enableval
21786 if test "x$enableval" = xno; then :
21787
21788$as_echo "#define NDEBUG 1" >>confdefs.h
21789
21790elif test "x$enableval" != xyes; then :
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21792$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21793 ac_enable_assert=yes
21794fi
21795else
21796 ac_enable_assert=yes
21797fi
21798
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21800$as_echo "$ac_enable_assert" >&6; }
21801
cristy3ed852e2009-09-05 21:47:34 +000021802ac_header_dirent=no
21803for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21804 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021806$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021807if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021808 $as_echo_n "(cached) " >&6
21809else
cristy8b350f62009-11-15 23:12:43 +000021810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021811/* end confdefs.h. */
21812#include <sys/types.h>
21813#include <$ac_hdr>
21814
21815int
21816main ()
21817{
21818if ((DIR *) 0)
21819return 0;
21820 ;
21821 return 0;
21822}
21823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021825 eval "$as_ac_Header=yes"
21826else
cristy8b350f62009-11-15 23:12:43 +000021827 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021828fi
cristy3ed852e2009-09-05 21:47:34 +000021829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830fi
cristy8b350f62009-11-15 23:12:43 +000021831eval ac_res=\$$as_ac_Header
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021833$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021835 cat >>confdefs.h <<_ACEOF
21836#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21837_ACEOF
21838
21839ac_header_dirent=$ac_hdr; break
21840fi
21841
21842done
21843# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21844if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021846$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021847if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021848 $as_echo_n "(cached) " >&6
21849else
21850 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021852/* end confdefs.h. */
21853
21854/* Override any GCC internal prototype to avoid an error.
21855 Use char because int might match the return type of a GCC
21856 builtin and then its argument prototype would still apply. */
21857#ifdef __cplusplus
21858extern "C"
21859#endif
21860char opendir ();
21861int
21862main ()
21863{
21864return opendir ();
21865 ;
21866 return 0;
21867}
21868_ACEOF
21869for ac_lib in '' dir; do
21870 if test -z "$ac_lib"; then
21871 ac_res="none required"
21872 else
21873 ac_res=-l$ac_lib
21874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21875 fi
cristy8b350f62009-11-15 23:12:43 +000021876 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021877 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021878fi
cristy8b350f62009-11-15 23:12:43 +000021879rm -f core conftest.err conftest.$ac_objext \
21880 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021881 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021882 break
21883fi
21884done
cristyda16f162011-02-19 23:52:17 +000021885if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021886
cristy3ed852e2009-09-05 21:47:34 +000021887else
21888 ac_cv_search_opendir=no
21889fi
21890rm conftest.$ac_ext
21891LIBS=$ac_func_search_save_LIBS
21892fi
cristy8b350f62009-11-15 23:12:43 +000021893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021894$as_echo "$ac_cv_search_opendir" >&6; }
21895ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021896if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21898
21899fi
21900
21901else
cristy8b350f62009-11-15 23:12:43 +000021902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021903$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021904if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021905 $as_echo_n "(cached) " >&6
21906else
21907 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021909/* end confdefs.h. */
21910
21911/* Override any GCC internal prototype to avoid an error.
21912 Use char because int might match the return type of a GCC
21913 builtin and then its argument prototype would still apply. */
21914#ifdef __cplusplus
21915extern "C"
21916#endif
21917char opendir ();
21918int
21919main ()
21920{
21921return opendir ();
21922 ;
21923 return 0;
21924}
21925_ACEOF
21926for ac_lib in '' x; do
21927 if test -z "$ac_lib"; then
21928 ac_res="none required"
21929 else
21930 ac_res=-l$ac_lib
21931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21932 fi
cristy8b350f62009-11-15 23:12:43 +000021933 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021934 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021935fi
cristy8b350f62009-11-15 23:12:43 +000021936rm -f core conftest.err conftest.$ac_objext \
21937 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021938 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021939 break
21940fi
21941done
cristyda16f162011-02-19 23:52:17 +000021942if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021943
cristy3ed852e2009-09-05 21:47:34 +000021944else
21945 ac_cv_search_opendir=no
21946fi
21947rm conftest.$ac_ext
21948LIBS=$ac_func_search_save_LIBS
21949fi
cristy8b350f62009-11-15 23:12:43 +000021950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021951$as_echo "$ac_cv_search_opendir" >&6; }
21952ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021953if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21955
21956fi
21957
21958fi
21959
21960
21961# Check additional headers
cristya8549b12011-05-18 19:05:08 +000021962for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000021963do :
21964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21965ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021966if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021967 cat >>confdefs.h <<_ACEOF
21968#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21969_ACEOF
21970
21971fi
21972
21973done
21974
21975
21976########
21977#
21978# Checks for typedefs, structures, and compiler characteristics.
21979#
21980########
21981
cristy8b350f62009-11-15 23:12:43 +000021982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021983$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021984if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021985 $as_echo_n "(cached) " >&6
21986else
cristy8b350f62009-11-15 23:12:43 +000021987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021988/* end confdefs.h. */
21989
21990#include <stdbool.h>
21991#ifndef bool
21992 "error: bool is not defined"
21993#endif
21994#ifndef false
21995 "error: false is not defined"
21996#endif
21997#if false
21998 "error: false is not 0"
21999#endif
22000#ifndef true
22001 "error: true is not defined"
22002#endif
22003#if true != 1
22004 "error: true is not 1"
22005#endif
22006#ifndef __bool_true_false_are_defined
22007 "error: __bool_true_false_are_defined is not defined"
22008#endif
22009
22010 struct s { _Bool s: 1; _Bool t; } s;
22011
22012 char a[true == 1 ? 1 : -1];
22013 char b[false == 0 ? 1 : -1];
22014 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22015 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000022016 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000022017 char f[(_Bool) 0.0 == false ? 1 : -1];
22018 char g[true];
22019 char h[sizeof (_Bool)];
22020 char i[sizeof s.t];
22021 enum { j = false, k = true, l = false * true, m = true * 256 };
22022 /* The following fails for
22023 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22024 _Bool n[m];
22025 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22026 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000022027 /* Catch a bug in an HP-UX C compiler. See
22028 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22029 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22030 */
22031 _Bool q = true;
22032 _Bool *pq = &q;
22033
22034int
22035main ()
22036{
22037
cristyda16f162011-02-19 23:52:17 +000022038 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000022039 *pq |= q;
22040 *pq |= ! q;
22041 /* Refer to every declared value, to avoid compiler optimizations. */
22042 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22043 + !m + !n + !o + !p + !q + !pq);
22044
22045 ;
22046 return 0;
22047}
22048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022049if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022050 ac_cv_header_stdbool_h=yes
22051else
cristy8b350f62009-11-15 23:12:43 +000022052 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022053fi
cristy3ed852e2009-09-05 21:47:34 +000022054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22055fi
cristy8b350f62009-11-15 23:12:43 +000022056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022057$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022058ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022059if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022060
22061cat >>confdefs.h <<_ACEOF
22062#define HAVE__BOOL 1
22063_ACEOF
22064
22065
22066fi
22067
22068if test $ac_cv_header_stdbool_h = yes; then
22069
cristy8b350f62009-11-15 23:12:43 +000022070$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022071
22072fi
22073
cristy8b350f62009-11-15 23:12:43 +000022074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022075$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022076if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022077 $as_echo_n "(cached) " >&6
22078else
cristy8b350f62009-11-15 23:12:43 +000022079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022080/* end confdefs.h. */
22081
22082int
22083main ()
22084{
22085
22086volatile int x;
22087int * volatile y = (int *) 0;
22088return !x && !y;
22089 ;
22090 return 0;
22091}
22092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022093if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022094 ac_cv_c_volatile=yes
22095else
cristy8b350f62009-11-15 23:12:43 +000022096 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022097fi
cristy3ed852e2009-09-05 21:47:34 +000022098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099fi
cristy8b350f62009-11-15 23:12:43 +000022100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022101$as_echo "$ac_cv_c_volatile" >&6; }
22102if test $ac_cv_c_volatile = no; then
22103
cristy8b350f62009-11-15 23:12:43 +000022104$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022105
22106fi
22107
cristy8b350f62009-11-15 23:12:43 +000022108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022109$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022110if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022111 $as_echo_n "(cached) " >&6
22112else
cristy8b350f62009-11-15 23:12:43 +000022113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022114/* end confdefs.h. */
22115#define x(y) #y
22116
22117char *s = x(teststring);
22118_ACEOF
22119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022120 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022121 ac_cv_c_stringize=no
22122else
22123 ac_cv_c_stringize=yes
22124fi
22125rm -f conftest*
22126
22127fi
cristy8b350f62009-11-15 23:12:43 +000022128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022129$as_echo "$ac_cv_c_stringize" >&6; }
22130if test $ac_cv_c_stringize = yes; then
22131
cristy8b350f62009-11-15 23:12:43 +000022132$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022133
22134fi
22135
cristy8b350f62009-11-15 23:12:43 +000022136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022137$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022138if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022139 $as_echo_n "(cached) " >&6
22140else
cristy8b350f62009-11-15 23:12:43 +000022141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022142/* end confdefs.h. */
22143#include <sys/types.h>
22144#include <sys/stat.h>
22145
22146#if defined S_ISBLK && defined S_IFDIR
22147extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22148#endif
22149
22150#if defined S_ISBLK && defined S_IFCHR
22151extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22152#endif
22153
22154#if defined S_ISLNK && defined S_IFREG
22155extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22156#endif
22157
22158#if defined S_ISSOCK && defined S_IFREG
22159extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22160#endif
22161
22162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022163if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022164 ac_cv_header_stat_broken=no
22165else
cristy8b350f62009-11-15 23:12:43 +000022166 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022167fi
cristy3ed852e2009-09-05 21:47:34 +000022168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169fi
cristy8b350f62009-11-15 23:12:43 +000022170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022171$as_echo "$ac_cv_header_stat_broken" >&6; }
22172if test $ac_cv_header_stat_broken = yes; then
22173
cristy8b350f62009-11-15 23:12:43 +000022174$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022175
22176fi
22177
cristy8b350f62009-11-15 23:12:43 +000022178{ $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 +000022179$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022180if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022181 $as_echo_n "(cached) " >&6
22182else
cristy8b350f62009-11-15 23:12:43 +000022183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022184/* end confdefs.h. */
22185#include <sys/types.h>
22186#include <sys/time.h>
22187#include <time.h>
22188
22189int
22190main ()
22191{
22192if ((struct tm *) 0)
22193return 0;
22194 ;
22195 return 0;
22196}
22197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022199 ac_cv_header_time=yes
22200else
cristy8b350f62009-11-15 23:12:43 +000022201 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022202fi
cristy3ed852e2009-09-05 21:47:34 +000022203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204fi
cristy8b350f62009-11-15 23:12:43 +000022205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022206$as_echo "$ac_cv_header_time" >&6; }
22207if test $ac_cv_header_time = yes; then
22208
cristy8b350f62009-11-15 23:12:43 +000022209$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022210
22211fi
22212
cristy8b350f62009-11-15 23:12:43 +000022213{ $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 +000022214$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022215if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022216 $as_echo_n "(cached) " >&6
22217else
cristy8b350f62009-11-15 23:12:43 +000022218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022219/* end confdefs.h. */
22220#include <sys/types.h>
22221#include <time.h>
22222
22223int
22224main ()
22225{
22226struct tm tm;
22227 int *p = &tm.tm_sec;
22228 return !p;
22229 ;
22230 return 0;
22231}
22232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022233if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022234 ac_cv_struct_tm=time.h
22235else
cristy8b350f62009-11-15 23:12:43 +000022236 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022237fi
cristy3ed852e2009-09-05 21:47:34 +000022238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22239fi
cristy8b350f62009-11-15 23:12:43 +000022240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022241$as_echo "$ac_cv_struct_tm" >&6; }
22242if test $ac_cv_struct_tm = sys/time.h; then
22243
cristy8b350f62009-11-15 23:12:43 +000022244$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022245
22246fi
22247
cristy92703d82010-04-26 00:18:18 +000022248ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22249#include <$ac_cv_struct_tm>
22250
22251"
cristyda16f162011-02-19 23:52:17 +000022252if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022253
22254cat >>confdefs.h <<_ACEOF
22255#define HAVE_STRUCT_TM_TM_ZONE 1
22256_ACEOF
22257
22258
22259fi
22260
22261if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22262
22263$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22264
22265else
22266 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22267"
cristyda16f162011-02-19 23:52:17 +000022268if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022269 ac_have_decl=1
22270else
22271 ac_have_decl=0
22272fi
22273
22274cat >>confdefs.h <<_ACEOF
22275#define HAVE_DECL_TZNAME $ac_have_decl
22276_ACEOF
22277
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22279$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022280if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022281 $as_echo_n "(cached) " >&6
22282else
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284/* end confdefs.h. */
22285#include <time.h>
22286#if !HAVE_DECL_TZNAME
22287extern char *tzname[];
22288#endif
22289
22290int
22291main ()
22292{
22293return tzname[0][0];
22294 ;
22295 return 0;
22296}
22297_ACEOF
22298if ac_fn_c_try_link "$LINENO"; then :
22299 ac_cv_var_tzname=yes
22300else
22301 ac_cv_var_tzname=no
22302fi
22303rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22305fi
22306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22307$as_echo "$ac_cv_var_tzname" >&6; }
22308 if test $ac_cv_var_tzname = yes; then
22309
22310$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22311
22312 fi
22313fi
22314
cristy8b350f62009-11-15 23:12:43 +000022315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022316$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022317if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 $as_echo_n "(cached) " >&6
22319else
22320 echo '#! /bin/cat
22321exit 69
22322' >conftest
22323chmod u+x conftest
22324(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22325if test $? -ne 69; then
22326 ac_cv_sys_interpreter=yes
22327else
22328 ac_cv_sys_interpreter=no
22329fi
22330rm -f conftest
22331fi
cristy8b350f62009-11-15 23:12:43 +000022332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022333$as_echo "$ac_cv_sys_interpreter" >&6; }
22334interpval=$ac_cv_sys_interpreter
22335
22336
cristy3ed852e2009-09-05 21:47:34 +000022337# If the C compiler supports the keyword inline, do nothing. Otherwise
22338# define inline to __inline__ or __inline if it accepts one of those,
22339# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022341$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022342if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022343 $as_echo_n "(cached) " >&6
22344else
22345 ac_cv_c_inline=no
22346for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022348/* end confdefs.h. */
22349#ifndef __cplusplus
22350typedef int foo_t;
22351static $ac_kw foo_t static_foo () {return 0; }
22352$ac_kw foo_t foo () {return 0; }
22353#endif
22354
22355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022356if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022357 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022358fi
cristy3ed852e2009-09-05 21:47:34 +000022359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22360 test "$ac_cv_c_inline" != no && break
22361done
22362
22363fi
cristy8b350f62009-11-15 23:12:43 +000022364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022365$as_echo "$ac_cv_c_inline" >&6; }
22366
cristy3ed852e2009-09-05 21:47:34 +000022367case $ac_cv_c_inline in
22368 inline | yes) ;;
22369 *)
22370 case $ac_cv_c_inline in
22371 no) ac_val=;;
22372 *) ac_val=$ac_cv_c_inline;;
22373 esac
22374 cat >>confdefs.h <<_ACEOF
22375#ifndef __cplusplus
22376#define inline $ac_val
22377#endif
22378_ACEOF
22379 ;;
22380esac
22381
22382
22383# If the C compiler supports the keyword restrict, do nothing. Otherwise
22384# define restrict to __restrict__ or __restrict if it accepts one of those,
22385# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022387$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022388if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022389 $as_echo_n "(cached) " >&6
22390else
22391 ac_cv_c_restrict=no
22392 # The order here caters to the fact that C++ does not require restrict.
22393 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022395/* end confdefs.h. */
22396typedef int * int_ptr;
22397 int foo (int_ptr $ac_kw ip) {
22398 return ip[0];
22399 }
22400int
22401main ()
22402{
22403int s[1];
22404 int * $ac_kw t = s;
22405 t[0] = 0;
22406 return foo(t)
22407 ;
22408 return 0;
22409}
22410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022412 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022413fi
cristy3ed852e2009-09-05 21:47:34 +000022414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22415 test "$ac_cv_c_restrict" != no && break
22416 done
22417
22418fi
cristy8b350f62009-11-15 23:12:43 +000022419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022420$as_echo "$ac_cv_c_restrict" >&6; }
22421
cristy3ed852e2009-09-05 21:47:34 +000022422 case $ac_cv_c_restrict in
22423 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022424 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022425 ;;
22426 *) cat >>confdefs.h <<_ACEOF
22427#define restrict $ac_cv_c_restrict
22428_ACEOF
22429 ;;
22430 esac
22431
22432
22433# If words are stored with the most significant byte first (like
22434# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022436$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022437if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022438 $as_echo_n "(cached) " >&6
22439else
22440 ac_cv_c_bigendian=unknown
22441 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022443/* end confdefs.h. */
22444#ifndef __APPLE_CC__
22445 not a universal capable compiler
22446 #endif
22447 typedef int dummy;
22448
22449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022450if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022451
22452 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022453 # there are at least two -arch flags with different values.
22454 ac_arch=
22455 ac_prev=
22456 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22457 if test -n "$ac_prev"; then
22458 case $ac_word in
22459 i?86 | x86_64 | ppc | ppc64)
22460 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22461 ac_arch=$ac_word
22462 else
22463 ac_cv_c_bigendian=universal
22464 break
22465 fi
22466 ;;
22467 esac
22468 ac_prev=
22469 elif test "x$ac_word" = "x-arch"; then
22470 ac_prev=arch
22471 fi
22472 done
cristy3ed852e2009-09-05 21:47:34 +000022473fi
cristy3ed852e2009-09-05 21:47:34 +000022474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 if test $ac_cv_c_bigendian = unknown; then
22476 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022478/* end confdefs.h. */
22479#include <sys/types.h>
22480 #include <sys/param.h>
22481
22482int
22483main ()
22484{
22485#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22486 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22487 && LITTLE_ENDIAN)
22488 bogus endian macros
22489 #endif
22490
22491 ;
22492 return 0;
22493}
22494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022495if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022496 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022498/* end confdefs.h. */
22499#include <sys/types.h>
22500 #include <sys/param.h>
22501
22502int
22503main ()
22504{
22505#if BYTE_ORDER != BIG_ENDIAN
22506 not big endian
22507 #endif
22508
22509 ;
22510 return 0;
22511}
22512_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022513if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022514 ac_cv_c_bigendian=yes
22515else
cristy8b350f62009-11-15 23:12:43 +000022516 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022517fi
cristy3ed852e2009-09-05 21:47:34 +000022518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022519fi
cristy3ed852e2009-09-05 21:47:34 +000022520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22521 fi
22522 if test $ac_cv_c_bigendian = unknown; then
22523 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022525/* end confdefs.h. */
22526#include <limits.h>
22527
22528int
22529main ()
22530{
22531#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22532 bogus endian macros
22533 #endif
22534
22535 ;
22536 return 0;
22537}
22538_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022539if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022540 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022542/* end confdefs.h. */
22543#include <limits.h>
22544
22545int
22546main ()
22547{
22548#ifndef _BIG_ENDIAN
22549 not big endian
22550 #endif
22551
22552 ;
22553 return 0;
22554}
22555_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022556if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022557 ac_cv_c_bigendian=yes
22558else
cristy8b350f62009-11-15 23:12:43 +000022559 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022560fi
cristy3ed852e2009-09-05 21:47:34 +000022561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022562fi
cristy3ed852e2009-09-05 21:47:34 +000022563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 fi
22565 if test $ac_cv_c_bigendian = unknown; then
22566 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022567 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022568 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022570/* end confdefs.h. */
22571short int ascii_mm[] =
22572 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22573 short int ascii_ii[] =
22574 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22575 int use_ascii (int i) {
22576 return ascii_mm[i] + ascii_ii[i];
22577 }
22578 short int ebcdic_ii[] =
22579 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22580 short int ebcdic_mm[] =
22581 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22582 int use_ebcdic (int i) {
22583 return ebcdic_mm[i] + ebcdic_ii[i];
22584 }
22585 extern int foo;
22586
22587int
22588main ()
22589{
22590return use_ascii (foo) == use_ebcdic (foo);
22591 ;
22592 return 0;
22593}
22594_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022595if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022596 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22597 ac_cv_c_bigendian=yes
22598 fi
22599 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22600 if test "$ac_cv_c_bigendian" = unknown; then
22601 ac_cv_c_bigendian=no
22602 else
22603 # finding both strings is unlikely to happen, but who knows?
22604 ac_cv_c_bigendian=unknown
22605 fi
22606 fi
cristy3ed852e2009-09-05 21:47:34 +000022607fi
cristy3ed852e2009-09-05 21:47:34 +000022608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609else
cristy8b350f62009-11-15 23:12:43 +000022610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022611/* end confdefs.h. */
22612$ac_includes_default
22613int
22614main ()
22615{
22616
22617 /* Are we little or big endian? From Harbison&Steele. */
22618 union
22619 {
22620 long int l;
22621 char c[sizeof (long int)];
22622 } u;
22623 u.l = 1;
22624 return u.c[sizeof (long int) - 1] == 1;
22625
22626 ;
22627 return 0;
22628}
22629_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022630if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022631 ac_cv_c_bigendian=no
22632else
cristy8b350f62009-11-15 23:12:43 +000022633 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022634fi
cristy8b350f62009-11-15 23:12:43 +000022635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22636 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022637fi
22638
cristy3ed852e2009-09-05 21:47:34 +000022639 fi
22640fi
cristy8b350f62009-11-15 23:12:43 +000022641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022642$as_echo "$ac_cv_c_bigendian" >&6; }
22643 case $ac_cv_c_bigendian in #(
22644 yes)
cristy8b350f62009-11-15 23:12:43 +000022645 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022646;; #(
22647 no)
22648 ;; #(
22649 universal)
22650
cristy8b350f62009-11-15 23:12:43 +000022651$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022652
22653 ;; #(
22654 *)
cristy98dddb52010-11-04 00:30:15 +000022655 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022656 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022657 esac
22658
22659
cristy501c8042011-05-26 17:46:28 +000022660# Define to a suitable type, if standard headers do not define it.
22661ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22662case $ac_cv_c_int8_t in #(
22663 no|yes) ;; #(
22664 *)
cristy3ed852e2009-09-05 21:47:34 +000022665
22666cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022667#define int8_t $ac_cv_c_int8_t
22668_ACEOF
22669;;
22670esac
22671
22672ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22673case $ac_cv_c_int16_t in #(
22674 no|yes) ;; #(
22675 *)
22676
22677cat >>confdefs.h <<_ACEOF
22678#define int16_t $ac_cv_c_int16_t
22679_ACEOF
22680;;
22681esac
22682
22683ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22684case $ac_cv_c_int32_t in #(
22685 no|yes) ;; #(
22686 *)
22687
22688cat >>confdefs.h <<_ACEOF
22689#define int32_t $ac_cv_c_int32_t
22690_ACEOF
22691;;
22692esac
22693
22694ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22695case $ac_cv_c_int64_t in #(
22696 no|yes) ;; #(
22697 *)
22698
22699cat >>confdefs.h <<_ACEOF
22700#define int64_t $ac_cv_c_int64_t
22701_ACEOF
22702;;
22703esac
22704
22705
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22707$as_echo_n "checking for long long int... " >&6; }
22708if ${ac_cv_type_long_long_int+:} false; then :
22709 $as_echo_n "(cached) " >&6
22710else
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712/* end confdefs.h. */
22713
22714 /* For now, do not test the preprocessor; as of 2007 there are too many
22715 implementations with broken preprocessors. Perhaps this can
22716 be revisited in 2012. In the meantime, code should not expect
22717 #if to work with literals wider than 32 bits. */
22718 /* Test literals. */
22719 long long int ll = 9223372036854775807ll;
22720 long long int nll = -9223372036854775807LL;
22721 unsigned long long int ull = 18446744073709551615ULL;
22722 /* Test constant expressions. */
22723 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22724 ? 1 : -1)];
22725 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22726 ? 1 : -1)];
22727 int i = 63;
22728int
22729main ()
22730{
22731/* Test availability of runtime routines for shift and division. */
22732 long long int llmax = 9223372036854775807ll;
22733 unsigned long long int ullmax = 18446744073709551615ull;
22734 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22735 | (llmax / ll) | (llmax % ll)
22736 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22737 | (ullmax / ull) | (ullmax % ull));
22738 ;
22739 return 0;
22740}
22741
22742_ACEOF
22743if ac_fn_c_try_link "$LINENO"; then :
22744 if test "$cross_compiling" = yes; then :
22745 ac_cv_type_long_long_int=yes
22746else
22747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22748/* end confdefs.h. */
22749#include <limits.h>
22750 #ifndef LLONG_MAX
22751 # define HALF \
22752 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22753 # define LLONG_MAX (HALF - 1 + HALF)
22754 #endif
22755int
22756main ()
22757{
22758long long int n = 1;
22759 int i;
22760 for (i = 0; ; i++)
22761 {
22762 long long int m = n << i;
22763 if (m >> i != n)
22764 return 1;
22765 if (LLONG_MAX / 2 < m)
22766 break;
22767 }
22768 return 0;
22769 ;
22770 return 0;
22771}
22772_ACEOF
22773if ac_fn_c_try_run "$LINENO"; then :
22774 ac_cv_type_long_long_int=yes
22775else
22776 ac_cv_type_long_long_int=no
22777fi
22778rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22779 conftest.$ac_objext conftest.beam conftest.$ac_ext
22780fi
22781
22782else
22783 ac_cv_type_long_long_int=no
22784fi
22785rm -f core conftest.err conftest.$ac_objext \
22786 conftest$ac_exeext conftest.$ac_ext
22787fi
22788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22789$as_echo "$ac_cv_type_long_long_int" >&6; }
22790 if test $ac_cv_type_long_long_int = yes; then
22791
22792$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22793
22794 fi
22795
22796
22797
22798 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22799if test "x$ac_cv_type_intmax_t" = xyes; then :
22800
22801$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22802
22803else
22804 test $ac_cv_type_long_long_int = yes \
22805 && ac_type='long long int' \
22806 || ac_type='long int'
22807
22808cat >>confdefs.h <<_ACEOF
22809#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022810_ACEOF
22811
22812fi
22813
22814
cristy501c8042011-05-26 17:46:28 +000022815
22816 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22817if test "x$ac_cv_type_intptr_t" = xyes; then :
22818
22819$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022820
cristy3ed852e2009-09-05 21:47:34 +000022821else
cristy501c8042011-05-26 17:46:28 +000022822 for ac_type in 'int' 'long int' 'long long int'; do
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824/* end confdefs.h. */
22825$ac_includes_default
22826int
22827main ()
22828{
22829static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22830test_array [0] = 0
22831
22832 ;
22833 return 0;
22834}
22835_ACEOF
22836if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022837
22838cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022839#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022840_ACEOF
22841
cristy501c8042011-05-26 17:46:28 +000022842 ac_type=
22843fi
22844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22845 test -z "$ac_type" && break
22846 done
cristy3ed852e2009-09-05 21:47:34 +000022847fi
22848
22849
cristy3ed852e2009-09-05 21:47:34 +000022850
cristy501c8042011-05-26 17:46:28 +000022851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22852$as_echo_n "checking for long double... " >&6; }
22853if ${ac_cv_type_long_double+:} false; then :
22854 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022855else
cristy501c8042011-05-26 17:46:28 +000022856 if test "$GCC" = yes; then
22857 ac_cv_type_long_double=yes
22858 else
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860/* end confdefs.h. */
22861/* The Stardent Vistra knows sizeof (long double), but does
22862 not support it. */
22863 long double foo = 0.0L;
22864int
22865main ()
22866{
22867static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22868 sizeof (double) <= sizeof (long double))];
22869test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000022870
cristy501c8042011-05-26 17:46:28 +000022871 ;
22872 return 0;
22873}
cristy3ed852e2009-09-05 21:47:34 +000022874_ACEOF
cristy501c8042011-05-26 17:46:28 +000022875if ac_fn_c_try_compile "$LINENO"; then :
22876 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022877else
cristy501c8042011-05-26 17:46:28 +000022878 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022879fi
cristy501c8042011-05-26 17:46:28 +000022880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881 fi
cristy3ed852e2009-09-05 21:47:34 +000022882fi
cristy501c8042011-05-26 17:46:28 +000022883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22884$as_echo "$ac_cv_type_long_double" >&6; }
22885 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022886
cristy501c8042011-05-26 17:46:28 +000022887$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022888
cristy501c8042011-05-26 17:46:28 +000022889 fi
22890
cristy3ed852e2009-09-05 21:47:34 +000022891
cristy8b350f62009-11-15 23:12:43 +000022892 { $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 +000022893$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022894if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022895 $as_echo_n "(cached) " >&6
22896else
cristy8b350f62009-11-15 23:12:43 +000022897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022898/* end confdefs.h. */
22899#include <float.h>
22900 long double const a[] =
22901 {
22902 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22903 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22904 };
22905 long double
22906 f (long double x)
22907 {
22908 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22909 + (x ? f (x) : 'c'));
22910 }
22911
22912int
22913main ()
22914{
22915static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22916 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22917 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22918 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22919 && (int) LDBL_EPSILON == 0
22920 )];
22921test_array [0] = 0
22922
22923 ;
22924 return 0;
22925}
22926_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022927if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022928 ac_cv_type_long_double_wider=yes
22929else
cristy8b350f62009-11-15 23:12:43 +000022930 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022931fi
cristy3ed852e2009-09-05 21:47:34 +000022932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933fi
cristy8b350f62009-11-15 23:12:43 +000022934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo "$ac_cv_type_long_double_wider" >&6; }
22936 if test $ac_cv_type_long_double_wider = yes; then
22937
cristy8b350f62009-11-15 23:12:43 +000022938$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022939
22940 fi
22941
22942
cristy501c8042011-05-26 17:46:28 +000022943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22944$as_echo_n "checking for long long int... " >&6; }
22945if ${ac_cv_type_long_long_int+:} false; then :
22946 $as_echo_n "(cached) " >&6
22947else
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949/* end confdefs.h. */
22950
22951 /* For now, do not test the preprocessor; as of 2007 there are too many
22952 implementations with broken preprocessors. Perhaps this can
22953 be revisited in 2012. In the meantime, code should not expect
22954 #if to work with literals wider than 32 bits. */
22955 /* Test literals. */
22956 long long int ll = 9223372036854775807ll;
22957 long long int nll = -9223372036854775807LL;
22958 unsigned long long int ull = 18446744073709551615ULL;
22959 /* Test constant expressions. */
22960 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22961 ? 1 : -1)];
22962 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22963 ? 1 : -1)];
22964 int i = 63;
22965int
22966main ()
22967{
22968/* Test availability of runtime routines for shift and division. */
22969 long long int llmax = 9223372036854775807ll;
22970 unsigned long long int ullmax = 18446744073709551615ull;
22971 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22972 | (llmax / ll) | (llmax % ll)
22973 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22974 | (ullmax / ull) | (ullmax % ull));
22975 ;
22976 return 0;
22977}
22978
22979_ACEOF
22980if ac_fn_c_try_link "$LINENO"; then :
22981 if test "$cross_compiling" = yes; then :
22982 ac_cv_type_long_long_int=yes
22983else
22984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985/* end confdefs.h. */
22986#include <limits.h>
22987 #ifndef LLONG_MAX
22988 # define HALF \
22989 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22990 # define LLONG_MAX (HALF - 1 + HALF)
22991 #endif
22992int
22993main ()
22994{
22995long long int n = 1;
22996 int i;
22997 for (i = 0; ; i++)
22998 {
22999 long long int m = n << i;
23000 if (m >> i != n)
23001 return 1;
23002 if (LLONG_MAX / 2 < m)
23003 break;
23004 }
23005 return 0;
23006 ;
23007 return 0;
23008}
23009_ACEOF
23010if ac_fn_c_try_run "$LINENO"; then :
23011 ac_cv_type_long_long_int=yes
23012else
23013 ac_cv_type_long_long_int=no
23014fi
23015rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23016 conftest.$ac_objext conftest.beam conftest.$ac_ext
23017fi
23018
23019else
23020 ac_cv_type_long_long_int=no
23021fi
23022rm -f core conftest.err conftest.$ac_objext \
23023 conftest$ac_exeext conftest.$ac_ext
23024fi
23025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23026$as_echo "$ac_cv_type_long_long_int" >&6; }
23027 if test $ac_cv_type_long_long_int = yes; then
23028
23029$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23030
23031 fi
23032
23033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23034$as_echo_n "checking for mbstate_t... " >&6; }
23035if ${ac_cv_type_mbstate_t+:} false; then :
23036 $as_echo_n "(cached) " >&6
23037else
23038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23039/* end confdefs.h. */
23040$ac_includes_default
23041# include <wchar.h>
23042int
23043main ()
23044{
23045mbstate_t x; return sizeof x;
23046 ;
23047 return 0;
23048}
23049_ACEOF
23050if ac_fn_c_try_compile "$LINENO"; then :
23051 ac_cv_type_mbstate_t=yes
23052else
23053 ac_cv_type_mbstate_t=no
23054fi
23055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23056fi
23057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23058$as_echo "$ac_cv_type_mbstate_t" >&6; }
23059 if test $ac_cv_type_mbstate_t = yes; then
23060
23061$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23062
23063 else
23064
23065$as_echo "#define mbstate_t int" >>confdefs.h
23066
23067 fi
23068ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23069if test "x$ac_cv_type_mode_t" = xyes; then :
23070
23071else
23072
23073cat >>confdefs.h <<_ACEOF
23074#define mode_t int
23075_ACEOF
23076
23077fi
23078
23079ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23080if test "x$ac_cv_type_off_t" = xyes; then :
23081
23082else
23083
23084cat >>confdefs.h <<_ACEOF
23085#define off_t long int
23086_ACEOF
23087
23088fi
23089
23090ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23091if test "x$ac_cv_type_pid_t" = xyes; then :
23092
23093else
23094
23095cat >>confdefs.h <<_ACEOF
23096#define pid_t int
23097_ACEOF
23098
23099fi
23100
23101ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23102if test "x$ac_cv_type_size_t" = xyes; then :
23103
23104else
23105
23106cat >>confdefs.h <<_ACEOF
23107#define size_t unsigned int
23108_ACEOF
23109
23110fi
23111
23112ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23113if test "x$ac_cv_type_ssize_t" = xyes; then :
23114
23115else
23116
23117cat >>confdefs.h <<_ACEOF
23118#define ssize_t int
23119_ACEOF
23120
23121fi
23122
23123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23124$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23125if ${ac_cv_type_uid_t+:} false; then :
23126 $as_echo_n "(cached) " >&6
23127else
23128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23129/* end confdefs.h. */
23130#include <sys/types.h>
23131
23132_ACEOF
23133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23134 $EGREP "uid_t" >/dev/null 2>&1; then :
23135 ac_cv_type_uid_t=yes
23136else
23137 ac_cv_type_uid_t=no
23138fi
23139rm -f conftest*
23140
23141fi
23142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23143$as_echo "$ac_cv_type_uid_t" >&6; }
23144if test $ac_cv_type_uid_t = no; then
23145
23146$as_echo "#define uid_t int" >>confdefs.h
23147
23148
23149$as_echo "#define gid_t int" >>confdefs.h
23150
23151fi
23152
23153ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23154case $ac_cv_c_uint8_t in #(
23155 no|yes) ;; #(
23156 *)
23157
23158$as_echo "#define _UINT8_T 1" >>confdefs.h
23159
23160
23161cat >>confdefs.h <<_ACEOF
23162#define uint8_t $ac_cv_c_uint8_t
23163_ACEOF
23164;;
23165 esac
23166
23167ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23168case $ac_cv_c_uint16_t in #(
23169 no|yes) ;; #(
23170 *)
23171
23172
23173cat >>confdefs.h <<_ACEOF
23174#define uint16_t $ac_cv_c_uint16_t
23175_ACEOF
23176;;
23177 esac
23178
23179ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23180case $ac_cv_c_uint32_t in #(
23181 no|yes) ;; #(
23182 *)
23183
23184$as_echo "#define _UINT32_T 1" >>confdefs.h
23185
23186
23187cat >>confdefs.h <<_ACEOF
23188#define uint32_t $ac_cv_c_uint32_t
23189_ACEOF
23190;;
23191 esac
23192
23193ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23194case $ac_cv_c_uint64_t in #(
23195 no|yes) ;; #(
23196 *)
23197
23198$as_echo "#define _UINT64_T 1" >>confdefs.h
23199
23200
23201cat >>confdefs.h <<_ACEOF
23202#define uint64_t $ac_cv_c_uint64_t
23203_ACEOF
23204;;
23205 esac
23206
23207
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23209$as_echo_n "checking for unsigned long long int... " >&6; }
23210if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23211 $as_echo_n "(cached) " >&6
23212else
23213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23214/* end confdefs.h. */
23215
23216 /* For now, do not test the preprocessor; as of 2007 there are too many
23217 implementations with broken preprocessors. Perhaps this can
23218 be revisited in 2012. In the meantime, code should not expect
23219 #if to work with literals wider than 32 bits. */
23220 /* Test literals. */
23221 long long int ll = 9223372036854775807ll;
23222 long long int nll = -9223372036854775807LL;
23223 unsigned long long int ull = 18446744073709551615ULL;
23224 /* Test constant expressions. */
23225 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23226 ? 1 : -1)];
23227 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23228 ? 1 : -1)];
23229 int i = 63;
23230int
23231main ()
23232{
23233/* Test availability of runtime routines for shift and division. */
23234 long long int llmax = 9223372036854775807ll;
23235 unsigned long long int ullmax = 18446744073709551615ull;
23236 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23237 | (llmax / ll) | (llmax % ll)
23238 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23239 | (ullmax / ull) | (ullmax % ull));
23240 ;
23241 return 0;
23242}
23243
23244_ACEOF
23245if ac_fn_c_try_link "$LINENO"; then :
23246 ac_cv_type_unsigned_long_long_int=yes
23247else
23248 ac_cv_type_unsigned_long_long_int=no
23249fi
23250rm -f core conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
23252fi
23253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23254$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23255 if test $ac_cv_type_unsigned_long_long_int = yes; then
23256
23257$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23258
23259 fi
23260
23261
23262
23263 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23264if test "x$ac_cv_type_uintmax_t" = xyes; then :
23265
23266$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23267
23268else
23269 test $ac_cv_type_unsigned_long_long_int = yes \
23270 && ac_type='unsigned long long int' \
23271 || ac_type='unsigned long int'
23272
23273cat >>confdefs.h <<_ACEOF
23274#define uintmax_t $ac_type
23275_ACEOF
23276
23277fi
23278
23279
23280
23281 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23282if test "x$ac_cv_type_uintptr_t" = xyes; then :
23283
23284$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23285
23286else
23287 for ac_type in 'unsigned int' 'unsigned long int' \
23288 'unsigned long long int'; do
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290/* end confdefs.h. */
23291$ac_includes_default
23292int
23293main ()
23294{
23295static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23296test_array [0] = 0
23297
23298 ;
23299 return 0;
23300}
23301_ACEOF
23302if ac_fn_c_try_compile "$LINENO"; then :
23303
23304cat >>confdefs.h <<_ACEOF
23305#define uintptr_t $ac_type
23306_ACEOF
23307
23308 ac_type=
23309fi
23310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 test -z "$ac_type" && break
23312 done
23313fi
23314
23315
23316
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23318$as_echo_n "checking for unsigned long long int... " >&6; }
23319if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23320 $as_echo_n "(cached) " >&6
23321else
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323/* end confdefs.h. */
23324
23325 /* For now, do not test the preprocessor; as of 2007 there are too many
23326 implementations with broken preprocessors. Perhaps this can
23327 be revisited in 2012. In the meantime, code should not expect
23328 #if to work with literals wider than 32 bits. */
23329 /* Test literals. */
23330 long long int ll = 9223372036854775807ll;
23331 long long int nll = -9223372036854775807LL;
23332 unsigned long long int ull = 18446744073709551615ULL;
23333 /* Test constant expressions. */
23334 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23335 ? 1 : -1)];
23336 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23337 ? 1 : -1)];
23338 int i = 63;
23339int
23340main ()
23341{
23342/* Test availability of runtime routines for shift and division. */
23343 long long int llmax = 9223372036854775807ll;
23344 unsigned long long int ullmax = 18446744073709551615ull;
23345 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23346 | (llmax / ll) | (llmax % ll)
23347 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23348 | (ullmax / ull) | (ullmax % ull));
23349 ;
23350 return 0;
23351}
23352
23353_ACEOF
23354if ac_fn_c_try_link "$LINENO"; then :
23355 ac_cv_type_unsigned_long_long_int=yes
23356else
23357 ac_cv_type_unsigned_long_long_int=no
23358fi
23359rm -f core conftest.err conftest.$ac_objext \
23360 conftest$ac_exeext conftest.$ac_ext
23361fi
23362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23363$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23364 if test $ac_cv_type_unsigned_long_long_int = yes; then
23365
23366$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23367
23368 fi
23369
23370
cristy3ed852e2009-09-05 21:47:34 +000023371# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23372# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023375if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023376 $as_echo_n "(cached) " >&6
23377else
cristy8b350f62009-11-15 23:12:43 +000023378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023379/* end confdefs.h. */
23380$ac_includes_default
23381int
23382main ()
23383{
23384static int test_array [1 - 2 * !(((char) -1) < 0)];
23385test_array [0] = 0
23386
23387 ;
23388 return 0;
23389}
23390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023391if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023392 ac_cv_c_char_unsigned=no
23393else
cristy8b350f62009-11-15 23:12:43 +000023394 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023395fi
cristy3ed852e2009-09-05 21:47:34 +000023396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23397fi
cristy8b350f62009-11-15 23:12:43 +000023398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023399$as_echo "$ac_cv_c_char_unsigned" >&6; }
23400if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023401 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023402
23403fi
23404
23405
23406# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23407# The cast to long int works around a bug in the HP C Compiler
23408# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23409# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23410# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023412$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023413if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023414 $as_echo_n "(cached) " >&6
23415else
cristy8b350f62009-11-15 23:12:43 +000023416 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 +000023417
cristy3ed852e2009-09-05 21:47:34 +000023418else
cristy8b350f62009-11-15 23:12:43 +000023419 if test "$ac_cv_type_signed_short" = yes; then
23420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023422as_fn_error 77 "cannot compute sizeof (signed short)
23423See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023424 else
23425 ac_cv_sizeof_signed_short=0
23426 fi
23427fi
cristy8b350f62009-11-15 23:12:43 +000023428
cristy3ed852e2009-09-05 21:47:34 +000023429fi
cristy8b350f62009-11-15 23:12:43 +000023430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023431$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23432
23433
23434
23435cat >>confdefs.h <<_ACEOF
23436#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23437_ACEOF
23438
23439
23440
23441# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23442# The cast to long int works around a bug in the HP C Compiler
23443# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23444# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23445# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023447$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023448if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023449 $as_echo_n "(cached) " >&6
23450else
cristy8b350f62009-11-15 23:12:43 +000023451 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 +000023452
cristy3ed852e2009-09-05 21:47:34 +000023453else
cristy8b350f62009-11-15 23:12:43 +000023454 if test "$ac_cv_type_unsigned_short" = yes; then
23455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023457as_fn_error 77 "cannot compute sizeof (unsigned short)
23458See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023459 else
23460 ac_cv_sizeof_unsigned_short=0
23461 fi
23462fi
cristy8b350f62009-11-15 23:12:43 +000023463
cristy3ed852e2009-09-05 21:47:34 +000023464fi
cristy8b350f62009-11-15 23:12:43 +000023465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023466$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23467
23468
23469
23470cat >>confdefs.h <<_ACEOF
23471#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23472_ACEOF
23473
23474
23475
23476# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23477# The cast to long int works around a bug in the HP C Compiler
23478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23480# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023482$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023483if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023484 $as_echo_n "(cached) " >&6
23485else
cristy8b350f62009-11-15 23:12:43 +000023486 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 +000023487
cristy3ed852e2009-09-05 21:47:34 +000023488else
cristy8b350f62009-11-15 23:12:43 +000023489 if test "$ac_cv_type_signed_int" = yes; then
23490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023492as_fn_error 77 "cannot compute sizeof (signed int)
23493See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023494 else
23495 ac_cv_sizeof_signed_int=0
23496 fi
23497fi
cristy8b350f62009-11-15 23:12:43 +000023498
cristy3ed852e2009-09-05 21:47:34 +000023499fi
cristy8b350f62009-11-15 23:12:43 +000023500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023501$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23502
23503
23504
23505cat >>confdefs.h <<_ACEOF
23506#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23507_ACEOF
23508
23509
23510
23511# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23512# The cast to long int works around a bug in the HP C Compiler
23513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23515# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023517$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023518if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023519 $as_echo_n "(cached) " >&6
23520else
cristy8b350f62009-11-15 23:12:43 +000023521 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 +000023522
cristy3ed852e2009-09-05 21:47:34 +000023523else
cristy8b350f62009-11-15 23:12:43 +000023524 if test "$ac_cv_type_unsigned_int" = yes; then
23525 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023527as_fn_error 77 "cannot compute sizeof (unsigned int)
23528See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023529 else
23530 ac_cv_sizeof_unsigned_int=0
23531 fi
23532fi
cristy8b350f62009-11-15 23:12:43 +000023533
cristy3ed852e2009-09-05 21:47:34 +000023534fi
cristy8b350f62009-11-15 23:12:43 +000023535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023536$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23537
23538
23539
23540cat >>confdefs.h <<_ACEOF
23541#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23542_ACEOF
23543
23544
23545
23546# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23547# The cast to long int works around a bug in the HP C Compiler
23548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23550# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023552$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023553if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023554 $as_echo_n "(cached) " >&6
23555else
cristy8b350f62009-11-15 23:12:43 +000023556 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 +000023557
cristy3ed852e2009-09-05 21:47:34 +000023558else
cristy8b350f62009-11-15 23:12:43 +000023559 if test "$ac_cv_type_signed_long" = yes; then
23560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023562as_fn_error 77 "cannot compute sizeof (signed long)
23563See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023564 else
23565 ac_cv_sizeof_signed_long=0
23566 fi
23567fi
cristy8b350f62009-11-15 23:12:43 +000023568
cristy3ed852e2009-09-05 21:47:34 +000023569fi
cristy8b350f62009-11-15 23:12:43 +000023570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023571$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23572
23573
23574
23575cat >>confdefs.h <<_ACEOF
23576#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23577_ACEOF
23578
23579
23580
23581# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23582# The cast to long int works around a bug in the HP C Compiler
23583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23585# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023587$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023588if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023589 $as_echo_n "(cached) " >&6
23590else
cristy8b350f62009-11-15 23:12:43 +000023591 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 +000023592
cristy3ed852e2009-09-05 21:47:34 +000023593else
cristy8b350f62009-11-15 23:12:43 +000023594 if test "$ac_cv_type_unsigned_long" = yes; then
23595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023597as_fn_error 77 "cannot compute sizeof (unsigned long)
23598See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023599 else
23600 ac_cv_sizeof_unsigned_long=0
23601 fi
23602fi
cristy8b350f62009-11-15 23:12:43 +000023603
cristy3ed852e2009-09-05 21:47:34 +000023604fi
cristy8b350f62009-11-15 23:12:43 +000023605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023606$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23607
23608
23609
23610cat >>confdefs.h <<_ACEOF
23611#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23612_ACEOF
23613
23614
23615
23616# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23617# 'signed long long' is not supported then the value defined is zero.
23618# The cast to long int works around a bug in the HP C Compiler
23619# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23620# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23621# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023623$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023624if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023625 $as_echo_n "(cached) " >&6
23626else
cristy8b350f62009-11-15 23:12:43 +000023627 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 +000023628
cristy3ed852e2009-09-05 21:47:34 +000023629else
cristy8b350f62009-11-15 23:12:43 +000023630 if test "$ac_cv_type_signed_long_long" = yes; then
23631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023632$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023633as_fn_error 77 "cannot compute sizeof (signed long long)
23634See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023635 else
23636 ac_cv_sizeof_signed_long_long=0
23637 fi
23638fi
cristy8b350f62009-11-15 23:12:43 +000023639
cristy3ed852e2009-09-05 21:47:34 +000023640fi
cristy8b350f62009-11-15 23:12:43 +000023641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023642$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23643
23644
23645
23646cat >>confdefs.h <<_ACEOF
23647#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23648_ACEOF
23649
23650
23651
23652# Obtain size of a 'unsigned long long' and define as
23653# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23654# supported then the value defined is zero.
23655# The cast to long int works around a bug in the HP C Compiler
23656# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23657# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23658# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023660$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023661if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023662 $as_echo_n "(cached) " >&6
23663else
cristy8b350f62009-11-15 23:12:43 +000023664 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 +000023665
cristy3ed852e2009-09-05 21:47:34 +000023666else
cristy8b350f62009-11-15 23:12:43 +000023667 if test "$ac_cv_type_unsigned_long_long" = yes; then
23668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023669$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023670as_fn_error 77 "cannot compute sizeof (unsigned long long)
23671See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023672 else
23673 ac_cv_sizeof_unsigned_long_long=0
23674 fi
23675fi
cristy8b350f62009-11-15 23:12:43 +000023676
cristy3ed852e2009-09-05 21:47:34 +000023677fi
cristy8b350f62009-11-15 23:12:43 +000023678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023679$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23680
23681
23682
23683cat >>confdefs.h <<_ACEOF
23684#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23685_ACEOF
23686
23687
23688
23689# Obtain size of off_t and define as SIZEOF_OFF_T
23690# The cast to long int works around a bug in the HP C Compiler
23691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23693# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023695$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023696if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023697 $as_echo_n "(cached) " >&6
23698else
cristy8b350f62009-11-15 23:12:43 +000023699 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 +000023700
cristy3ed852e2009-09-05 21:47:34 +000023701else
cristy8b350f62009-11-15 23:12:43 +000023702 if test "$ac_cv_type_off_t" = yes; then
23703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023705as_fn_error 77 "cannot compute sizeof (off_t)
23706See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023707 else
23708 ac_cv_sizeof_off_t=0
23709 fi
23710fi
cristy8b350f62009-11-15 23:12:43 +000023711
cristy3ed852e2009-09-05 21:47:34 +000023712fi
cristy8b350f62009-11-15 23:12:43 +000023713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023714$as_echo "$ac_cv_sizeof_off_t" >&6; }
23715
23716
23717
23718cat >>confdefs.h <<_ACEOF
23719#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23720_ACEOF
23721
23722
23723
23724# Obtain size of size_t and define as SIZEOF_SIZE_T
23725# The cast to long int works around a bug in the HP C Compiler
23726# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23727# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23728# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023730$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023731if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023732 $as_echo_n "(cached) " >&6
23733else
cristy8b350f62009-11-15 23:12:43 +000023734 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 +000023735
cristy3ed852e2009-09-05 21:47:34 +000023736else
cristy8b350f62009-11-15 23:12:43 +000023737 if test "$ac_cv_type_size_t" = yes; then
23738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023740as_fn_error 77 "cannot compute sizeof (size_t)
23741See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023742 else
23743 ac_cv_sizeof_size_t=0
23744 fi
23745fi
cristy8b350f62009-11-15 23:12:43 +000023746
cristy3ed852e2009-09-05 21:47:34 +000023747fi
cristy8b350f62009-11-15 23:12:43 +000023748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023749$as_echo "$ac_cv_sizeof_size_t" >&6; }
23750
23751
23752
23753cat >>confdefs.h <<_ACEOF
23754#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23755_ACEOF
23756
23757
23758
cristy330e9352010-06-01 18:42:49 +000023759# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23760# The cast to long int works around a bug in the HP C Compiler
23761# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23762# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23763# This bug is HP SR number 8606223364.
23764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23765$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023766if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023767 $as_echo_n "(cached) " >&6
23768else
23769 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23770
23771else
23772 if test "$ac_cv_type_ssize_t" = yes; then
23773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023775as_fn_error 77 "cannot compute sizeof (ssize_t)
23776See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023777 else
23778 ac_cv_sizeof_ssize_t=0
23779 fi
23780fi
23781
23782fi
23783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23784$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23785
23786
23787
23788cat >>confdefs.h <<_ACEOF
23789#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23790_ACEOF
23791
23792
23793
cristy3ed852e2009-09-05 21:47:34 +000023794# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23795# The cast to long int works around a bug in the HP C Compiler
23796# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23797# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23798# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023800$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023801if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023802 $as_echo_n "(cached) " >&6
23803else
cristy8b350f62009-11-15 23:12:43 +000023804 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 +000023805
cristy3ed852e2009-09-05 21:47:34 +000023806else
cristy8b350f62009-11-15 23:12:43 +000023807 if test "$ac_cv_type_unsigned_intp" = yes; then
23808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023810as_fn_error 77 "cannot compute sizeof (unsigned int*)
23811See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023812 else
23813 ac_cv_sizeof_unsigned_intp=0
23814 fi
23815fi
cristy8b350f62009-11-15 23:12:43 +000023816
cristy3ed852e2009-09-05 21:47:34 +000023817fi
cristy8b350f62009-11-15 23:12:43 +000023818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023819$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23820
23821
23822
23823cat >>confdefs.h <<_ACEOF
23824#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23825_ACEOF
23826
23827
23828
23829#
23830# Compute sized types for current CPU and compiler options.
23831#
23832
cristy8b350f62009-11-15 23:12:43 +000023833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo_n "checking for signed 8-bit type... " >&6; }
23835INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023836{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23837$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023838
23839
cristy8b350f62009-11-15 23:12:43 +000023840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023841$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23842UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023843{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23844$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023845
23846
cristy8b350f62009-11-15 23:12:43 +000023847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023848$as_echo_n "checking for signed 16-bit type... " >&6; }
23849INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023850{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23851$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023852
23853
cristy8b350f62009-11-15 23:12:43 +000023854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023855$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23856UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023857{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23858$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023859
23860
cristy8b350f62009-11-15 23:12:43 +000023861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023862$as_echo_n "checking for signed 32-bit type... " >&6; }
23863INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023864INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023865if test $ac_cv_sizeof_signed_int -eq 4; then
23866 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023867 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023868elif test $ac_cv_sizeof_signed_long -eq 4; then
23869 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023870 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023871fi
cristy09b53e12011-10-14 12:47:22 +000023872{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23873$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023874
23875
cristy6d5e20f2011-04-25 13:48:54 +000023876
cristy8b350f62009-11-15 23:12:43 +000023877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023878$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23879UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023880UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023881if test $ac_cv_sizeof_unsigned_int -eq 4; then
23882 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023883 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023884elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23885 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023886 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023887fi
cristy09b53e12011-10-14 12:47:22 +000023888{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23889$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023890
23891
cristy6d5e20f2011-04-25 13:48:54 +000023892
cristy8b350f62009-11-15 23:12:43 +000023893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023894$as_echo_n "checking for signed 64-bit type... " >&6; }
23895INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023896INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023897if test $ac_cv_sizeof_signed_long -eq 8; then
23898 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023899 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023900elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23901 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023902 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023903fi
cristy3a99dcf2011-12-17 01:29:40 +000023904case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023905 mingw* )
23906 INT64_F='"I64"'
23907 ;;
23908esac
cristy09b53e12011-10-14 12:47:22 +000023909{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23910$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023911
23912
cristy6d5e20f2011-04-25 13:48:54 +000023913
cristy8b350f62009-11-15 23:12:43 +000023914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023915$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23916UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023917UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023918if test $ac_cv_sizeof_unsigned_long -eq 8; then
23919 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023920 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023921elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23922 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023923 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023924fi
cristy3a99dcf2011-12-17 01:29:40 +000023925case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023926 mingw* )
23927 UINT64_F='"I64"'
23928 ;;
23929esac
cristy09b53e12011-10-14 12:47:22 +000023930{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23931$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023932
23933
cristy6d5e20f2011-04-25 13:48:54 +000023934
cristy8b350f62009-11-15 23:12:43 +000023935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023936$as_echo_n "checking for unsigned maximum type... " >&6; }
23937UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023938UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023939if test "$UINT64_T" != 'none'; then
23940 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023941 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023942elif test "$UINT32_T" != 'none'; then
23943 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023944 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023945fi
cristy09b53e12011-10-14 12:47:22 +000023946{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23947$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023948
23949
cristy6d5e20f2011-04-25 13:48:54 +000023950
cristy8b350f62009-11-15 23:12:43 +000023951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023952$as_echo_n "checking for pointer difference type... " >&6; }
23953UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023954UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023955if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23956 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023957 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023958elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23959 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023960 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023961fi
cristy09b53e12011-10-14 12:47:22 +000023962{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23963$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023964
23965
cristy6d5e20f2011-04-25 13:48:54 +000023966
cristy8b350f62009-11-15 23:12:43 +000023967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023968$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023970/* end confdefs.h. */
23971
23972int
23973main ()
23974{
23975{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23976 ;
23977 return 0;
23978}
23979_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023980if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023981 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23982$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023983else
cristy09b53e12011-10-14 12:47:22 +000023984 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23985$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023989/* end confdefs.h. */
23990
23991int
23992main ()
23993{
23994{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23995 ;
23996 return 0;
23997}
23998_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023999if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024000 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24001$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024002
cristy8b350f62009-11-15 23:12:43 +000024003$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024004
24005else
cristy09b53e12011-10-14 12:47:22 +000024006 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24007$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024008
cristy8b350f62009-11-15 23:12:43 +000024009$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024010
24011fi
cristy3ed852e2009-09-05 21:47:34 +000024012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24013fi
cristy3ed852e2009-09-05 21:47:34 +000024014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015
24016########
24017#
24018# Check for functions
24019#
24020########
cristy73bd4a52010-10-05 11:24:23 +000024021for ac_header in stdlib.h unistd.h
24022do :
24023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24024ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024025if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024026 cat >>confdefs.h <<_ACEOF
24027#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24028_ACEOF
24029
24030fi
24031
24032done
24033
24034for ac_func in getpagesize
24035do :
24036 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024037if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024038 cat >>confdefs.h <<_ACEOF
24039#define HAVE_GETPAGESIZE 1
24040_ACEOF
24041
24042fi
24043done
24044
24045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24046$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024047if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024048 $as_echo_n "(cached) " >&6
24049else
24050 if test "$cross_compiling" = yes; then :
24051 magick_cv_func_mmap_fileio=no
24052else
24053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24054/* end confdefs.h. */
24055$ac_includes_default
24056/* malloc might have been renamed as rpl_malloc. */
24057#undef malloc
24058
24059/*
24060 This test is derived from GNU Autoconf's similar macro.
24061 The purpose of this test is to verify that files may be memory
24062 mapped, and that memory mapping and file I/O are coherent.
24063
24064 The test creates a test file, memory maps the file, updates
24065 the file using the memory map, and then reads the file using
24066 file I/O to verify that the file contains the updates.
24067*/
24068
24069#include <fcntl.h>
24070#include <sys/mman.h>
24071
24072#if !STDC_HEADERS && !HAVE_STDLIB_H
24073char *malloc ();
24074#endif
24075
24076/* This mess was copied from the GNU getpagesize.h. */
24077#if !HAVE_GETPAGESIZE
24078/* Assume that all systems that can run configure have sys/param.h. */
24079# if !HAVE_SYS_PARAM_H
24080# define HAVE_SYS_PARAM_H 1
24081# endif
24082
24083# ifdef _SC_PAGESIZE
24084# define getpagesize() sysconf(_SC_PAGESIZE)
24085# else /* no _SC_PAGESIZE */
24086# if HAVE_SYS_PARAM_H
24087# include <sys/param.h>
24088# ifdef EXEC_PAGESIZE
24089# define getpagesize() EXEC_PAGESIZE
24090# else /* no EXEC_PAGESIZE */
24091# ifdef NBPG
24092# define getpagesize() NBPG * CLSIZE
24093# ifndef CLSIZE
24094# define CLSIZE 1
24095# endif /* no CLSIZE */
24096# else /* no NBPG */
24097# ifdef NBPC
24098# define getpagesize() NBPC
24099# else /* no NBPC */
24100# ifdef PAGESIZE
24101# define getpagesize() PAGESIZE
24102# endif /* PAGESIZE */
24103# endif /* no NBPC */
24104# endif /* no NBPG */
24105# endif /* no EXEC_PAGESIZE */
24106# else /* no HAVE_SYS_PARAM_H */
24107# define getpagesize() 8192 /* punt totally */
24108# endif /* no HAVE_SYS_PARAM_H */
24109# endif /* no _SC_PAGESIZE */
24110
24111#endif /* no HAVE_GETPAGESIZE */
24112
24113int
24114main ()
24115{
24116 char *data, *data2, *data3;
24117 int i, pagesize;
24118 int fd;
24119
24120 pagesize = getpagesize ();
24121
24122 /* First, make a file with some known garbage in it. */
24123 data = (char *) malloc (pagesize);
24124 if (!data)
24125 exit (1);
24126 for (i = 0; i < pagesize; ++i)
24127 *(data + i) = rand ();
24128 umask (0);
24129 fd = creat ("conftest.mmap", 0600);
24130 if (fd < 0)
24131 exit (1);
24132 if (write (fd, data, pagesize) != pagesize)
24133 exit (1);
24134 close (fd);
24135
24136 /* Mmap the file as read/write/shared and verify that we see the
24137 same garbage. */
24138 fd = open ("conftest.mmap", O_RDWR);
24139 if (fd < 0)
24140 exit (1);
24141 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24142 if (data2 == 0)
24143 exit (1);
24144 for (i = 0; i < pagesize; ++i)
24145 if (*(data + i) != *(data2 + i))
24146 exit (1);
24147
24148 /* Finally, make sure that changes to the mapped area
24149 percolate back to the file as seen by read(). */
24150 for (i = 0; i < pagesize; ++i)
24151 *(data2 + i) = *(data2 + i) + 1;
24152 data3 = (char *) malloc (pagesize);
24153 if (!data3)
24154 exit (1);
24155 if (read (fd, data3, pagesize) != pagesize)
24156 exit (1);
24157 for (i = 0; i < pagesize; ++i)
24158 if (*(data2 + i) != *(data3 + i))
24159 exit (1);
24160 close (fd);
24161 exit (0);
24162}
24163_ACEOF
24164if ac_fn_c_try_run "$LINENO"; then :
24165 magick_cv_func_mmap_fileio=yes
24166else
24167 magick_cv_func_mmap_fileio=no
24168fi
24169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24170 conftest.$ac_objext conftest.beam conftest.$ac_ext
24171fi
24172
24173fi
24174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24175$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24176if test $magick_cv_func_mmap_fileio = yes; then
24177
24178$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24179
24180fi
24181rm -f conftest.mmap
24182
cristy8b350f62009-11-15 23:12:43 +000024183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024184$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024185if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024186 $as_echo_n "(cached) " >&6
24187else
cristy8b350f62009-11-15 23:12:43 +000024188 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024189 ac_cv_func_closedir_void=yes
24190else
cristy8b350f62009-11-15 23:12:43 +000024191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024192/* end confdefs.h. */
24193$ac_includes_default
24194#include <$ac_header_dirent>
24195#ifndef __cplusplus
24196int closedir ();
24197#endif
24198
24199int
24200main ()
24201{
24202return closedir (opendir (".")) != 0;
24203 ;
24204 return 0;
24205}
24206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024207if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024208 ac_cv_func_closedir_void=no
24209else
cristy8b350f62009-11-15 23:12:43 +000024210 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024211fi
cristy8b350f62009-11-15 23:12:43 +000024212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24213 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024214fi
24215
cristy3ed852e2009-09-05 21:47:34 +000024216fi
cristy8b350f62009-11-15 23:12:43 +000024217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024218$as_echo "$ac_cv_func_closedir_void" >&6; }
24219if test $ac_cv_func_closedir_void = yes; then
24220
cristy8b350f62009-11-15 23:12:43 +000024221$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024222
24223fi
24224
cristycd4c5312009-11-22 01:19:08 +000024225
24226
24227
24228 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024229do :
24230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024231ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24232"
cristy98dddb52010-11-04 00:30:15 +000024233if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 cat >>confdefs.h <<_ACEOF
24235#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24236_ACEOF
24237
24238fi
24239
24240done
24241
cristycd4c5312009-11-22 01:19:08 +000024242
24243
24244
24245
24246
24247
24248
cristy3ed852e2009-09-05 21:47:34 +000024249for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024250do :
24251 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024252if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024253 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024254#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024255_ACEOF
24256
24257fi
24258done
24259
cristy8b350f62009-11-15 23:12:43 +000024260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024262if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024263 $as_echo_n "(cached) " >&6
24264else
cristy8b350f62009-11-15 23:12:43 +000024265 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024266 ac_cv_func_mmap_fixed_mapped=no
24267else
cristy8b350f62009-11-15 23:12:43 +000024268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024269/* end confdefs.h. */
24270$ac_includes_default
24271/* malloc might have been renamed as rpl_malloc. */
24272#undef malloc
24273
24274/* Thanks to Mike Haertel and Jim Avera for this test.
24275 Here is a matrix of mmap possibilities:
24276 mmap private not fixed
24277 mmap private fixed at somewhere currently unmapped
24278 mmap private fixed at somewhere already mapped
24279 mmap shared not fixed
24280 mmap shared fixed at somewhere currently unmapped
24281 mmap shared fixed at somewhere already mapped
24282 For private mappings, we should verify that changes cannot be read()
24283 back from the file, nor mmap's back from the file at a different
24284 address. (There have been systems where private was not correctly
24285 implemented like the infamous i386 svr4.0, and systems where the
24286 VM page cache was not coherent with the file system buffer cache
24287 like early versions of FreeBSD and possibly contemporary NetBSD.)
24288 For shared mappings, we should conversely verify that changes get
24289 propagated back to all the places they're supposed to be.
24290
24291 Grep wants private fixed already mapped.
24292 The main things grep needs to know about mmap are:
24293 * does it exist and is it safe to write into the mmap'd area
24294 * how to use it (BSD variants) */
24295
24296#include <fcntl.h>
24297#include <sys/mman.h>
24298
24299#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24300char *malloc ();
24301#endif
24302
24303/* This mess was copied from the GNU getpagesize.h. */
24304#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024305# ifdef _SC_PAGESIZE
24306# define getpagesize() sysconf(_SC_PAGESIZE)
24307# else /* no _SC_PAGESIZE */
24308# ifdef HAVE_SYS_PARAM_H
24309# include <sys/param.h>
24310# ifdef EXEC_PAGESIZE
24311# define getpagesize() EXEC_PAGESIZE
24312# else /* no EXEC_PAGESIZE */
24313# ifdef NBPG
24314# define getpagesize() NBPG * CLSIZE
24315# ifndef CLSIZE
24316# define CLSIZE 1
24317# endif /* no CLSIZE */
24318# else /* no NBPG */
24319# ifdef NBPC
24320# define getpagesize() NBPC
24321# else /* no NBPC */
24322# ifdef PAGESIZE
24323# define getpagesize() PAGESIZE
24324# endif /* PAGESIZE */
24325# endif /* no NBPC */
24326# endif /* no NBPG */
24327# endif /* no EXEC_PAGESIZE */
24328# else /* no HAVE_SYS_PARAM_H */
24329# define getpagesize() 8192 /* punt totally */
24330# endif /* no HAVE_SYS_PARAM_H */
24331# endif /* no _SC_PAGESIZE */
24332
24333#endif /* no HAVE_GETPAGESIZE */
24334
24335int
24336main ()
24337{
24338 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024339 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024340 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024341 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024342
24343 pagesize = getpagesize ();
24344
24345 /* First, make a file with some known garbage in it. */
24346 data = (char *) malloc (pagesize);
24347 if (!data)
24348 return 1;
24349 for (i = 0; i < pagesize; ++i)
24350 *(data + i) = rand ();
24351 umask (0);
24352 fd = creat ("conftest.mmap", 0600);
24353 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024354 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024355 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024356 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024357 close (fd);
24358
cristycd4c5312009-11-22 01:19:08 +000024359 /* Next, check that the tail of a page is zero-filled. File must have
24360 non-zero length, otherwise we risk SIGBUS for entire page. */
24361 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24362 if (fd2 < 0)
24363 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024364 cdata2 = "";
24365 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024366 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024367 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024368 if (data2 == MAP_FAILED)
24369 return 6;
24370 for (i = 0; i < pagesize; ++i)
24371 if (*(data2 + i))
24372 return 7;
24373 close (fd2);
24374 if (munmap (data2, pagesize))
24375 return 8;
24376
cristy3ed852e2009-09-05 21:47:34 +000024377 /* Next, try to mmap the file at a fixed address which already has
24378 something else allocated at it. If we can, also make sure that
24379 we see the same garbage. */
24380 fd = open ("conftest.mmap", O_RDWR);
24381 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024382 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024383 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24384 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024385 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024386 for (i = 0; i < pagesize; ++i)
24387 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024388 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024389
24390 /* Finally, make sure that changes to the mapped area do not
24391 percolate back to the file as seen by read(). (This is a bug on
24392 some variants of i386 svr4.0.) */
24393 for (i = 0; i < pagesize; ++i)
24394 *(data2 + i) = *(data2 + i) + 1;
24395 data3 = (char *) malloc (pagesize);
24396 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024397 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024398 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024399 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024400 for (i = 0; i < pagesize; ++i)
24401 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024402 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024403 close (fd);
24404 return 0;
24405}
24406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024407if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024408 ac_cv_func_mmap_fixed_mapped=yes
24409else
cristy8b350f62009-11-15 23:12:43 +000024410 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024411fi
cristy8b350f62009-11-15 23:12:43 +000024412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24413 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024414fi
24415
cristy3ed852e2009-09-05 21:47:34 +000024416fi
cristy8b350f62009-11-15 23:12:43 +000024417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024418$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24419if test $ac_cv_func_mmap_fixed_mapped = yes; then
24420
cristy8b350f62009-11-15 23:12:43 +000024421$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024422
24423fi
cristycd4c5312009-11-22 01:19:08 +000024424rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024425
cristy3ed852e2009-09-05 21:47:34 +000024426for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024427do :
24428 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024429if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024430 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024431#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024432_ACEOF
24433
24434fi
24435
24436done
24437
cristy3ed852e2009-09-05 21:47:34 +000024438for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024439do :
24440 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24441ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024442if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024443 cat >>confdefs.h <<_ACEOF
24444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24445_ACEOF
24446
24447fi
24448done
24449
24450if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024452$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024453if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024454 $as_echo_n "(cached) " >&6
24455else
cristy8b350f62009-11-15 23:12:43 +000024456 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024457 ac_cv_func_fork_works=cross
24458else
cristy8b350f62009-11-15 23:12:43 +000024459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024460/* end confdefs.h. */
24461$ac_includes_default
24462int
24463main ()
24464{
24465
24466 /* By Ruediger Kuhlmann. */
24467 return fork () < 0;
24468
24469 ;
24470 return 0;
24471}
24472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024473if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024474 ac_cv_func_fork_works=yes
24475else
cristy8b350f62009-11-15 23:12:43 +000024476 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024477fi
cristy8b350f62009-11-15 23:12:43 +000024478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24479 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024480fi
24481
cristy3ed852e2009-09-05 21:47:34 +000024482fi
cristy8b350f62009-11-15 23:12:43 +000024483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024484$as_echo "$ac_cv_func_fork_works" >&6; }
24485
24486else
24487 ac_cv_func_fork_works=$ac_cv_func_fork
24488fi
24489if test "x$ac_cv_func_fork_works" = xcross; then
24490 case $host in
24491 *-*-amigaos* | *-*-msdosdjgpp*)
24492 # Override, as these systems have only a dummy fork() stub
24493 ac_cv_func_fork_works=no
24494 ;;
24495 *)
24496 ac_cv_func_fork_works=yes
24497 ;;
24498 esac
cristy8b350f62009-11-15 23:12:43 +000024499 { $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 +000024500$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24501fi
24502ac_cv_func_vfork_works=$ac_cv_func_vfork
24503if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024505$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024506if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024507 $as_echo_n "(cached) " >&6
24508else
cristy8b350f62009-11-15 23:12:43 +000024509 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024510 ac_cv_func_vfork_works=cross
24511else
cristy8b350f62009-11-15 23:12:43 +000024512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024513/* end confdefs.h. */
24514/* Thanks to Paul Eggert for this test. */
24515$ac_includes_default
24516#include <sys/wait.h>
24517#ifdef HAVE_VFORK_H
24518# include <vfork.h>
24519#endif
24520/* On some sparc systems, changes by the child to local and incoming
24521 argument registers are propagated back to the parent. The compiler
24522 is told about this with #include <vfork.h>, but some compilers
24523 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24524 static variable whose address is put into a register that is
24525 clobbered by the vfork. */
24526static void
24527#ifdef __cplusplus
24528sparc_address_test (int arg)
24529# else
24530sparc_address_test (arg) int arg;
24531#endif
24532{
24533 static pid_t child;
24534 if (!child) {
24535 child = vfork ();
24536 if (child < 0) {
24537 perror ("vfork");
24538 _exit(2);
24539 }
24540 if (!child) {
24541 arg = getpid();
24542 write(-1, "", 0);
24543 _exit (arg);
24544 }
24545 }
24546}
24547
24548int
24549main ()
24550{
24551 pid_t parent = getpid ();
24552 pid_t child;
24553
24554 sparc_address_test (0);
24555
24556 child = vfork ();
24557
24558 if (child == 0) {
24559 /* Here is another test for sparc vfork register problems. This
24560 test uses lots of local variables, at least as many local
24561 variables as main has allocated so far including compiler
24562 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24563 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24564 reuse the register of parent for one of the local variables,
24565 since it will think that parent can't possibly be used any more
24566 in this routine. Assigning to the local variable will thus
24567 munge parent in the parent process. */
24568 pid_t
24569 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24570 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24571 /* Convince the compiler that p..p7 are live; otherwise, it might
24572 use the same hardware register for all 8 local variables. */
24573 if (p != p1 || p != p2 || p != p3 || p != p4
24574 || p != p5 || p != p6 || p != p7)
24575 _exit(1);
24576
24577 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24578 from child file descriptors. If the child closes a descriptor
24579 before it execs or exits, this munges the parent's descriptor
24580 as well. Test for this by closing stdout in the child. */
24581 _exit(close(fileno(stdout)) != 0);
24582 } else {
24583 int status;
24584 struct stat st;
24585
24586 while (wait(&status) != child)
24587 ;
24588 return (
24589 /* Was there some problem with vforking? */
24590 child < 0
24591
24592 /* Did the child fail? (This shouldn't happen.) */
24593 || status
24594
24595 /* Did the vfork/compiler bug occur? */
24596 || parent != getpid()
24597
24598 /* Did the file descriptor bug occur? */
24599 || fstat(fileno(stdout), &st) != 0
24600 );
24601 }
24602}
24603_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024604if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024605 ac_cv_func_vfork_works=yes
24606else
cristy8b350f62009-11-15 23:12:43 +000024607 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024608fi
cristy8b350f62009-11-15 23:12:43 +000024609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24610 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024611fi
24612
cristy3ed852e2009-09-05 21:47:34 +000024613fi
cristy8b350f62009-11-15 23:12:43 +000024614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024615$as_echo "$ac_cv_func_vfork_works" >&6; }
24616
24617fi;
24618if test "x$ac_cv_func_fork_works" = xcross; then
24619 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024620 { $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 +000024621$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24622fi
24623
24624if test "x$ac_cv_func_vfork_works" = xyes; then
24625
cristy8b350f62009-11-15 23:12:43 +000024626$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024627
24628else
24629
cristy8b350f62009-11-15 23:12:43 +000024630$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024631
24632fi
24633if test "x$ac_cv_func_fork_works" = xyes; then
24634
cristy8b350f62009-11-15 23:12:43 +000024635$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024636
24637fi
24638
cristy8b350f62009-11-15 23:12:43 +000024639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024640$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024641if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024642 $as_echo_n "(cached) " >&6
24643else
cristy8b350f62009-11-15 23:12:43 +000024644 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024645 ac_cv_func_memcmp_working=no
24646else
cristy8b350f62009-11-15 23:12:43 +000024647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024648/* end confdefs.h. */
24649$ac_includes_default
24650int
24651main ()
24652{
24653
24654 /* Some versions of memcmp are not 8-bit clean. */
24655 char c0 = '\100', c1 = '\200', c2 = '\201';
24656 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24657 return 1;
24658
24659 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24660 or more and with at least one buffer not starting on a 4-byte boundary.
24661 William Lewis provided this test program. */
24662 {
24663 char foo[21];
24664 char bar[21];
24665 int i;
24666 for (i = 0; i < 4; i++)
24667 {
24668 char *a = foo + i;
24669 char *b = bar + i;
24670 strcpy (a, "--------01111111");
24671 strcpy (b, "--------10000000");
24672 if (memcmp (a, b, 16) >= 0)
24673 return 1;
24674 }
24675 return 0;
24676 }
24677
24678 ;
24679 return 0;
24680}
24681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024682if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024683 ac_cv_func_memcmp_working=yes
24684else
cristy8b350f62009-11-15 23:12:43 +000024685 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024686fi
cristy8b350f62009-11-15 23:12:43 +000024687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24688 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024689fi
24690
cristy3ed852e2009-09-05 21:47:34 +000024691fi
cristy8b350f62009-11-15 23:12:43 +000024692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024693$as_echo "$ac_cv_func_memcmp_working" >&6; }
24694test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24695 *" memcmp.$ac_objext "* ) ;;
24696 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24697 ;;
24698esac
24699
24700
cristy3ed852e2009-09-05 21:47:34 +000024701for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024702do :
24703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24704ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024706 cat >>confdefs.h <<_ACEOF
24707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24708_ACEOF
24709
24710fi
24711
24712done
24713
cristy8b350f62009-11-15 23:12:43 +000024714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024715$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024716if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 $as_echo_n "(cached) " >&6
24718else
24719 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24720 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24721 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024723/* end confdefs.h. */
24724$ac_includes_default
24725#ifdef HAVE_SYS_SELECT_H
24726# include <sys/select.h>
24727#endif
24728#ifdef HAVE_SYS_SOCKET_H
24729# include <sys/socket.h>
24730#endif
24731
24732int
24733main ()
24734{
24735extern int select ($ac_arg1,
24736 $ac_arg234, $ac_arg234, $ac_arg234,
24737 $ac_arg5);
24738 ;
24739 return 0;
24740}
24741_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024742if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024743 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024744fi
cristy3ed852e2009-09-05 21:47:34 +000024745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24746 done
24747 done
24748done
24749# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024750: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024751
24752fi
cristy8b350f62009-11-15 23:12:43 +000024753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024754$as_echo "$ac_cv_func_select_args" >&6; }
24755ac_save_IFS=$IFS; IFS=','
24756set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24757IFS=$ac_save_IFS
24758shift
24759
24760cat >>confdefs.h <<_ACEOF
24761#define SELECT_TYPE_ARG1 $1
24762_ACEOF
24763
24764
24765cat >>confdefs.h <<_ACEOF
24766#define SELECT_TYPE_ARG234 ($2)
24767_ACEOF
24768
24769
24770cat >>confdefs.h <<_ACEOF
24771#define SELECT_TYPE_ARG5 ($3)
24772_ACEOF
24773
24774rm -f conftest*
24775
cristyda16f162011-02-19 23:52:17 +000024776if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024777 $as_echo_n "(cached) " >&6
24778else
24779 ac_cv_func_setvbuf_reversed=no
24780fi
24781
24782
cristy8b350f62009-11-15 23:12:43 +000024783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024784$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024785if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024786 $as_echo_n "(cached) " >&6
24787else
cristy8b350f62009-11-15 23:12:43 +000024788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024789/* end confdefs.h. */
24790#include <sys/types.h>
24791#include <signal.h>
24792
24793int
24794main ()
24795{
24796return *(signal (0, 0)) (0) == 1;
24797 ;
24798 return 0;
24799}
24800_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024801if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024802 ac_cv_type_signal=int
24803else
cristy8b350f62009-11-15 23:12:43 +000024804 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024805fi
cristy3ed852e2009-09-05 21:47:34 +000024806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24807fi
cristy8b350f62009-11-15 23:12:43 +000024808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024809$as_echo "$ac_cv_type_signal" >&6; }
24810
24811cat >>confdefs.h <<_ACEOF
24812#define RETSIGTYPE $ac_cv_type_signal
24813_ACEOF
24814
24815
cristy8b350f62009-11-15 23:12:43 +000024816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024817$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024818if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024819 $as_echo_n "(cached) " >&6
24820else
cristy8b350f62009-11-15 23:12:43 +000024821 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024822 ac_cv_func_strtod=no
24823else
cristy8b350f62009-11-15 23:12:43 +000024824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024825/* end confdefs.h. */
24826
24827$ac_includes_default
24828#ifndef strtod
24829double strtod ();
24830#endif
24831int
24832main()
24833{
24834 {
24835 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24836 char *string = " +69";
24837 char *term;
24838 double value;
24839 value = strtod (string, &term);
24840 if (value != 69 || term != (string + 4))
24841 return 1;
24842 }
24843
24844 {
24845 /* Under Solaris 2.4, strtod returns the wrong value for the
24846 terminating character under some conditions. */
24847 char *string = "NaN";
24848 char *term;
24849 strtod (string, &term);
24850 if (term != string && *(term - 1) == 0)
24851 return 1;
24852 }
24853 return 0;
24854}
24855
24856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024857if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024858 ac_cv_func_strtod=yes
24859else
cristy8b350f62009-11-15 23:12:43 +000024860 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024861fi
cristy8b350f62009-11-15 23:12:43 +000024862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24863 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024864fi
24865
cristy3ed852e2009-09-05 21:47:34 +000024866fi
cristy8b350f62009-11-15 23:12:43 +000024867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024868$as_echo "$ac_cv_func_strtod" >&6; }
24869if test $ac_cv_func_strtod = no; then
24870 case " $LIBOBJS " in
24871 *" strtod.$ac_objext "* ) ;;
24872 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24873 ;;
24874esac
24875
cristy8b350f62009-11-15 23:12:43 +000024876ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024877if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024878
cristy3ed852e2009-09-05 21:47:34 +000024879fi
24880
cristy3ed852e2009-09-05 21:47:34 +000024881if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024883$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024884if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024885 $as_echo_n "(cached) " >&6
24886else
24887 ac_check_lib_save_LIBS=$LIBS
24888LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024890/* end confdefs.h. */
24891
24892/* Override any GCC internal prototype to avoid an error.
24893 Use char because int might match the return type of a GCC
24894 builtin and then its argument prototype would still apply. */
24895#ifdef __cplusplus
24896extern "C"
24897#endif
24898char pow ();
24899int
24900main ()
24901{
24902return pow ();
24903 ;
24904 return 0;
24905}
24906_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024907if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 ac_cv_lib_m_pow=yes
24909else
cristy8b350f62009-11-15 23:12:43 +000024910 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024911fi
cristy8b350f62009-11-15 23:12:43 +000024912rm -f core conftest.err conftest.$ac_objext \
24913 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024914LIBS=$ac_check_lib_save_LIBS
24915fi
cristy8b350f62009-11-15 23:12:43 +000024916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024917$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024918if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024919 POW_LIB=-lm
24920else
cristy8b350f62009-11-15 23:12:43 +000024921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024922$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24923fi
24924
24925fi
24926
24927fi
24928
cristy7d4a1d62011-10-13 15:54:12 +000024929ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24930if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24931 ac_have_decl=1
24932else
24933 ac_have_decl=0
24934fi
24935
24936cat >>confdefs.h <<_ACEOF
24937#define HAVE_DECL_STRERROR_R $ac_have_decl
24938_ACEOF
24939
24940for ac_func in strerror_r
24941do :
24942 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24943if test "x$ac_cv_func_strerror_r" = xyes; then :
24944 cat >>confdefs.h <<_ACEOF
24945#define HAVE_STRERROR_R 1
24946_ACEOF
24947
24948fi
24949done
24950
24951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24952$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24953if ${ac_cv_func_strerror_r_char_p+:} false; then :
24954 $as_echo_n "(cached) " >&6
24955else
24956
24957 ac_cv_func_strerror_r_char_p=no
24958 if test $ac_cv_have_decl_strerror_r = yes; then
24959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960/* end confdefs.h. */
24961$ac_includes_default
24962int
24963main ()
24964{
24965
24966 char buf[100];
24967 char x = *strerror_r (0, buf, sizeof buf);
24968 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024969 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024970
24971 ;
24972 return 0;
24973}
24974_ACEOF
24975if ac_fn_c_try_compile "$LINENO"; then :
24976 ac_cv_func_strerror_r_char_p=yes
24977fi
24978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 else
24980 # strerror_r is not declared. Choose between
24981 # systems that have relatively inaccessible declarations for the
24982 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24983 # former has a strerror_r that returns char*, while the latter
24984 # has a strerror_r that returns `int'.
24985 # This test should segfault on the DEC system.
24986 if test "$cross_compiling" = yes; then :
24987 :
24988else
24989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24990/* end confdefs.h. */
24991$ac_includes_default
24992 extern char *strerror_r ();
24993int
24994main ()
24995{
24996char buf[100];
24997 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024998 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024999 ;
25000 return 0;
25001}
25002_ACEOF
25003if ac_fn_c_try_run "$LINENO"; then :
25004 ac_cv_func_strerror_r_char_p=yes
25005fi
25006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25007 conftest.$ac_objext conftest.beam conftest.$ac_ext
25008fi
25009
25010 fi
25011
25012fi
25013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25014$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25015if test $ac_cv_func_strerror_r_char_p = yes; then
25016
25017$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25018
25019fi
25020
cristy3ed852e2009-09-05 21:47:34 +000025021for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025022do :
25023 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025024if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025025 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025026#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025027_ACEOF
25028
cristy8b350f62009-11-15 23:12:43 +000025029ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025030if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025031
cristy8b350f62009-11-15 23:12:43 +000025032$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025033
25034fi
25035
25036fi
25037done
25038
25039
25040
cristy161b9262010-03-20 19:34:32 +000025041#
25042# Find math library
25043#
25044MATH_LIBS=''
25045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25046$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025047if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025048 $as_echo_n "(cached) " >&6
25049else
25050 ac_check_lib_save_LIBS=$LIBS
25051LIBS="-lm $LIBS"
25052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25053/* end confdefs.h. */
25054
25055/* Override any GCC internal prototype to avoid an error.
25056 Use char because int might match the return type of a GCC
25057 builtin and then its argument prototype would still apply. */
25058#ifdef __cplusplus
25059extern "C"
25060#endif
25061char sqrt ();
25062int
25063main ()
25064{
25065return sqrt ();
25066 ;
25067 return 0;
25068}
25069_ACEOF
25070if ac_fn_c_try_link "$LINENO"; then :
25071 ac_cv_lib_m_sqrt=yes
25072else
25073 ac_cv_lib_m_sqrt=no
25074fi
25075rm -f core conftest.err conftest.$ac_objext \
25076 conftest$ac_exeext conftest.$ac_ext
25077LIBS=$ac_check_lib_save_LIBS
25078fi
25079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25080$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025081if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025082 MATH_LIBS="-lm"
25083fi
25084
25085LIBS="$MATH_LIBS $LIBS"
25086
25087
cristy82b20722011-11-05 21:52:36 +000025088for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025089do :
25090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25091ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025092if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025093 cat >>confdefs.h <<_ACEOF
25094#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25095_ACEOF
25096
25097fi
25098done
25099
25100
cristye43a45e2009-09-28 14:49:00 +000025101#
25102# Check for clock_gettime().
25103#
cristy8b350f62009-11-15 23:12:43 +000025104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025105$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025106if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025107 $as_echo_n "(cached) " >&6
25108else
25109 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025111/* end confdefs.h. */
25112
25113/* Override any GCC internal prototype to avoid an error.
25114 Use char because int might match the return type of a GCC
25115 builtin and then its argument prototype would still apply. */
25116#ifdef __cplusplus
25117extern "C"
25118#endif
25119char clock_gettime ();
25120int
25121main ()
25122{
25123return clock_gettime ();
25124 ;
25125 return 0;
25126}
25127_ACEOF
25128for ac_lib in '' rt; do
25129 if test -z "$ac_lib"; then
25130 ac_res="none required"
25131 else
25132 ac_res=-l$ac_lib
25133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25134 fi
cristy8b350f62009-11-15 23:12:43 +000025135 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025136 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025137fi
cristy8b350f62009-11-15 23:12:43 +000025138rm -f core conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025140 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025141 break
25142fi
25143done
cristyda16f162011-02-19 23:52:17 +000025144if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025145
cristye43a45e2009-09-28 14:49:00 +000025146else
25147 ac_cv_search_clock_gettime=no
25148fi
25149rm conftest.$ac_ext
25150LIBS=$ac_func_search_save_LIBS
25151fi
cristy8b350f62009-11-15 23:12:43 +000025152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025153$as_echo "$ac_cv_search_clock_gettime" >&6; }
25154ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025155if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25157
25158
cristy8b350f62009-11-15 23:12:43 +000025159$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025160
cristy8b350f62009-11-15 23:12:43 +000025161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025162$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025164/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025165
25166 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025167int
25168main ()
25169{
25170clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025171 ;
25172 return 0;
25173}
25174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025175if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025176
cristy09b53e12011-10-14 12:47:22 +000025177 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25178$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025179
cristy8b350f62009-11-15 23:12:43 +000025180$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025181
25182
25183else
cristy09b53e12011-10-14 12:47:22 +000025184 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25185$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025186
25187fi
cristye43a45e2009-09-28 14:49:00 +000025188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189
25190else
25191
cristy8b350f62009-11-15 23:12:43 +000025192 for ac_func in gettimeofday ftime
25193do :
25194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25195ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025196if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025197 cat >>confdefs.h <<_ACEOF
25198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25199_ACEOF
25200 break
25201fi
25202done
25203
25204
25205
25206fi
25207
25208
cristy3ed852e2009-09-05 21:47:34 +000025209########
25210#
25211# Check for function prototypes
25212#
25213########
25214
cristy8b350f62009-11-15 23:12:43 +000025215ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025216#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025217"
cristyda16f162011-02-19 23:52:17 +000025218if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025219 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025220else
cristy8b350f62009-11-15 23:12:43 +000025221 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025222fi
25223
cristy3ed852e2009-09-05 21:47:34 +000025224cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025225#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025226_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025227ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025228#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025229"
cristyda16f162011-02-19 23:52:17 +000025230if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025231 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025232else
cristy8b350f62009-11-15 23:12:43 +000025233 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025234fi
25235
cristy3ed852e2009-09-05 21:47:34 +000025236cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025237#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025238_ACEOF
25239
25240
cristy8b350f62009-11-15 23:12:43 +000025241ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025242#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025243"
cristyda16f162011-02-19 23:52:17 +000025244if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025245 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025246else
cristy8b350f62009-11-15 23:12:43 +000025247 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025248fi
25249
cristy3ed852e2009-09-05 21:47:34 +000025250cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025251#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025252_ACEOF
25253
25254
cristy8b350f62009-11-15 23:12:43 +000025255ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025256#include <stdio.h>
25257#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025258"
cristyda16f162011-02-19 23:52:17 +000025259if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025260 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025261else
cristy8b350f62009-11-15 23:12:43 +000025262 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025263fi
25264
cristy3ed852e2009-09-05 21:47:34 +000025265cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025266#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025267_ACEOF
25268
25269
cristy3ed852e2009-09-05 21:47:34 +000025270########
25271#
25272# C++ Support Tests (For Magick++)
25273#
25274########
25275have_magick_plus_plus='no'
25276if test "$with_magick_plus_plus" = 'yes'; then
25277 OLIBS="$LIBS"
25278 LIBS=''
25279 ac_ext=cpp
25280ac_cpp='$CXXCPP $CPPFLAGS'
25281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25284
25285
25286 # Full set of headers used...
25287 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25288 # functional iomanip iosfwd iostream iterator list string strstream utility
25289 ac_ext=cpp
25290ac_cpp='$CXXCPP $CPPFLAGS'
25291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25294
25295 ac_ext=cpp
25296ac_cpp='$CXXCPP $CPPFLAGS'
25297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25300if test -z "$CXX"; then
25301 if test -n "$CCC"; then
25302 CXX=$CCC
25303 else
25304 if test -n "$ac_tool_prefix"; then
25305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25306 do
25307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25308set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025310$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025311if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025312 $as_echo_n "(cached) " >&6
25313else
25314 if test -n "$CXX"; then
25315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25316else
25317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25318for as_dir in $PATH
25319do
25320 IFS=$as_save_IFS
25321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025326 break 2
25327 fi
25328done
cristy8b350f62009-11-15 23:12:43 +000025329 done
cristy3ed852e2009-09-05 21:47:34 +000025330IFS=$as_save_IFS
25331
25332fi
25333fi
25334CXX=$ac_cv_prog_CXX
25335if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025337$as_echo "$CXX" >&6; }
25338else
cristy8b350f62009-11-15 23:12:43 +000025339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025340$as_echo "no" >&6; }
25341fi
25342
25343
25344 test -n "$CXX" && break
25345 done
25346fi
25347if test -z "$CXX"; then
25348 ac_ct_CXX=$CXX
25349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25350do
25351 # Extract the first word of "$ac_prog", so it can be a program name with args.
25352set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025354$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025355if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025356 $as_echo_n "(cached) " >&6
25357else
25358 if test -n "$ac_ct_CXX"; then
25359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25360else
25361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25362for as_dir in $PATH
25363do
25364 IFS=$as_save_IFS
25365 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025366 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25368 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025370 break 2
25371 fi
25372done
cristy8b350f62009-11-15 23:12:43 +000025373 done
cristy3ed852e2009-09-05 21:47:34 +000025374IFS=$as_save_IFS
25375
25376fi
25377fi
25378ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25379if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025381$as_echo "$ac_ct_CXX" >&6; }
25382else
cristy8b350f62009-11-15 23:12:43 +000025383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo "no" >&6; }
25385fi
25386
25387
25388 test -n "$ac_ct_CXX" && break
25389done
25390
25391 if test "x$ac_ct_CXX" = x; then
25392 CXX="g++"
25393 else
25394 case $cross_compiling:$ac_tool_warned in
25395yes:)
cristy8b350f62009-11-15 23:12:43 +000025396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25398ac_tool_warned=yes ;;
25399esac
25400 CXX=$ac_ct_CXX
25401 fi
25402fi
25403
25404 fi
25405fi
25406# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025407$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025408set X $ac_compile
25409ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025410for ac_option in --version -v -V -qversion; do
25411 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025412case "(($ac_try" in
25413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414 *) ac_try_echo=$ac_try;;
25415esac
cristy8b350f62009-11-15 23:12:43 +000025416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25417$as_echo "$ac_try_echo"; } >&5
25418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025419 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025420 if test -s conftest.err; then
25421 sed '10a\
25422... rest of stderr output deleted ...
25423 10q' conftest.err >conftest.er1
25424 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025425 fi
cristycd4c5312009-11-22 01:19:08 +000025426 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25428 test $ac_status = 0; }
25429done
cristy3ed852e2009-09-05 21:47:34 +000025430
cristy8b350f62009-11-15 23:12:43 +000025431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025432$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025433if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025434 $as_echo_n "(cached) " >&6
25435else
cristy8b350f62009-11-15 23:12:43 +000025436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025437/* end confdefs.h. */
25438
25439int
25440main ()
25441{
25442#ifndef __GNUC__
25443 choke me
25444#endif
25445
25446 ;
25447 return 0;
25448}
25449_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025450if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025451 ac_compiler_gnu=yes
25452else
cristy8b350f62009-11-15 23:12:43 +000025453 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025454fi
cristy3ed852e2009-09-05 21:47:34 +000025455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25457
25458fi
cristy8b350f62009-11-15 23:12:43 +000025459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025460$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25461if test $ac_compiler_gnu = yes; then
25462 GXX=yes
25463else
25464 GXX=
25465fi
25466ac_test_CXXFLAGS=${CXXFLAGS+set}
25467ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025469$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025470if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025471 $as_echo_n "(cached) " >&6
25472else
25473 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25474 ac_cxx_werror_flag=yes
25475 ac_cv_prog_cxx_g=no
25476 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025478/* end confdefs.h. */
25479
25480int
25481main ()
25482{
25483
25484 ;
25485 return 0;
25486}
25487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025488if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025489 ac_cv_prog_cxx_g=yes
25490else
cristy8b350f62009-11-15 23:12:43 +000025491 CXXFLAGS=""
25492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025493/* end confdefs.h. */
25494
25495int
25496main ()
25497{
25498
25499 ;
25500 return 0;
25501}
25502_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025503if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025504
cristy8b350f62009-11-15 23:12:43 +000025505else
25506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025507 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025509/* end confdefs.h. */
25510
25511int
25512main ()
25513{
25514
25515 ;
25516 return 0;
25517}
25518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025519if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025520 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025521fi
cristy3ed852e2009-09-05 21:47:34 +000025522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523fi
cristy3ed852e2009-09-05 21:47:34 +000025524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25525fi
cristy3ed852e2009-09-05 21:47:34 +000025526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25528fi
cristy8b350f62009-11-15 23:12:43 +000025529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025530$as_echo "$ac_cv_prog_cxx_g" >&6; }
25531if test "$ac_test_CXXFLAGS" = set; then
25532 CXXFLAGS=$ac_save_CXXFLAGS
25533elif test $ac_cv_prog_cxx_g = yes; then
25534 if test "$GXX" = yes; then
25535 CXXFLAGS="-g -O2"
25536 else
25537 CXXFLAGS="-g"
25538 fi
25539else
25540 if test "$GXX" = yes; then
25541 CXXFLAGS="-O2"
25542 else
25543 CXXFLAGS=
25544 fi
25545fi
25546ac_ext=cpp
25547ac_cpp='$CXXCPP $CPPFLAGS'
25548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25551
cristy73bd4a52010-10-05 11:24:23 +000025552depcc="$CXX" am_compiler_list=
25553
25554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25555$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025556if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025557 $as_echo_n "(cached) " >&6
25558else
25559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25560 # We make a subdir and do the tests there. Otherwise we can end up
25561 # making bogus files that we don't know about and never remove. For
25562 # instance it was reported that on HP-UX the gcc test will end up
25563 # making a dummy file named `D' -- because `-MD' means `put the output
25564 # in D'.
cristy7247bba2012-02-05 16:37:27 +000025565 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025566 mkdir conftest.dir
25567 # Copy depcomp to subdir because otherwise we won't find it if we're
25568 # using a relative directory.
25569 cp "$am_depcomp" conftest.dir
25570 cd conftest.dir
25571 # We will build objects and dependencies in a subdirectory because
25572 # it helps to detect inapplicable dependency modes. For instance
25573 # both Tru64's cc and ICC support -MD to output dependencies as a
25574 # side effect of compilation, but ICC will put the dependencies in
25575 # the current directory while Tru64 will put them in the object
25576 # directory.
25577 mkdir sub
25578
25579 am_cv_CXX_dependencies_compiler_type=none
25580 if test "$am_compiler_list" = ""; then
25581 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25582 fi
25583 am__universal=false
25584 case " $depcc " in #(
25585 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25586 esac
25587
25588 for depmode in $am_compiler_list; do
25589 # Setup a source with many dependencies, because some compilers
25590 # like to wrap large dependency lists on column 80 (with \), and
25591 # we should not choose a depcomp mode which is confused by this.
25592 #
25593 # We need to recreate these files for each test, as the compiler may
25594 # overwrite some of them when testing with obscure command lines.
25595 # This happens at least with the AIX C compiler.
25596 : > sub/conftest.c
25597 for i in 1 2 3 4 5 6; do
25598 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25599 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25600 # Solaris 8's {/usr,}/bin/sh.
25601 touch sub/conftst$i.h
25602 done
25603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25604
25605 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25606 # mode. It turns out that the SunPro C++ compiler does not properly
25607 # handle `-M -o', and we need to detect this. Also, some Intel
25608 # versions had trouble with output in subdirs
25609 am__obj=sub/conftest.${OBJEXT-o}
25610 am__minus_obj="-o $am__obj"
25611 case $depmode in
25612 gcc)
25613 # This depmode causes a compiler race in universal mode.
25614 test "$am__universal" = false || continue
25615 ;;
25616 nosideeffect)
25617 # after this tag, mechanisms are not by side-effect, so they'll
25618 # only be used when explicitly requested
25619 if test "x$enable_dependency_tracking" = xyes; then
25620 continue
25621 else
25622 break
25623 fi
25624 ;;
cristy7247bba2012-02-05 16:37:27 +000025625 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000025626 # This compiler won't grok `-c -o', but also, the minuso test has
25627 # not run yet. These depmodes are late enough in the game, and
25628 # so weak that their functioning should not be impacted.
25629 am__obj=conftest.${OBJEXT-o}
25630 am__minus_obj=
25631 ;;
25632 none) break ;;
25633 esac
25634 if depmode=$depmode \
25635 source=sub/conftest.c object=$am__obj \
25636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25637 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25638 >/dev/null 2>conftest.err &&
25639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25641 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25643 # icc doesn't choke on unknown options, it will just issue warnings
25644 # or remarks (even with -Werror). So we grep stderr for any message
25645 # that says an option was ignored or not supported.
25646 # When given -MP, icc 7.0 and 7.1 complain thusly:
25647 # icc: Command line warning: ignoring option '-M'; no argument required
25648 # The diagnosis changed in icc 8.0:
25649 # icc: Command line remark: option '-MP' not supported
25650 if (grep 'ignoring option' conftest.err ||
25651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25652 am_cv_CXX_dependencies_compiler_type=$depmode
25653 break
25654 fi
25655 fi
25656 done
25657
25658 cd ..
25659 rm -rf conftest.dir
25660else
25661 am_cv_CXX_dependencies_compiler_type=none
25662fi
25663
25664fi
25665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25666$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25667CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25668
25669 if
25670 test "x$enable_dependency_tracking" != xno \
25671 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25672 am__fastdepCXX_TRUE=
25673 am__fastdepCXX_FALSE='#'
25674else
25675 am__fastdepCXX_TRUE='#'
25676 am__fastdepCXX_FALSE=
25677fi
25678
25679
25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25681$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025682if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025683 $as_echo_n "(cached) " >&6
25684else
25685
25686 ac_ext=cpp
25687ac_cpp='$CXXCPP $CPPFLAGS'
25688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25691
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693/* end confdefs.h. */
25694
25695int f(int x){return 1;}
25696int f(char x){return 1;}
25697int f(bool x){return 1;}
25698
25699int
25700main ()
25701{
25702bool b = true; return f(b);
25703 ;
25704 return 0;
25705}
25706_ACEOF
25707if ac_fn_cxx_try_compile "$LINENO"; then :
25708 ax_cv_cxx_bool=yes
25709else
25710 ax_cv_cxx_bool=no
25711fi
25712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25713 ac_ext=cpp
25714ac_cpp='$CXXCPP $CPPFLAGS'
25715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25718
25719
25720fi
25721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25722$as_echo "$ax_cv_cxx_bool" >&6; }
25723if test "$ax_cv_cxx_bool" = yes; then
25724
25725$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25726
25727fi
25728
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25730$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025731if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025732 $as_echo_n "(cached) " >&6
25733else
25734
25735 ac_ext=cpp
25736ac_cpp='$CXXCPP $CPPFLAGS'
25737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25740
25741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25742/* end confdefs.h. */
25743namespace Outer { namespace Inner { int i = 0; }}
25744int
25745main ()
25746{
25747using namespace Outer::Inner; return i;
25748 ;
25749 return 0;
25750}
25751_ACEOF
25752if ac_fn_cxx_try_compile "$LINENO"; then :
25753 ax_cv_cxx_namespaces=yes
25754else
25755 ax_cv_cxx_namespaces=no
25756fi
25757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 ac_ext=cpp
25759ac_cpp='$CXXCPP $CPPFLAGS'
25760ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25761ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25762ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25763
25764
25765fi
25766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25767$as_echo "$ax_cv_cxx_namespaces" >&6; }
25768if test "$ax_cv_cxx_namespaces" = yes; then
25769
25770$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25771
25772fi
25773
25774
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25776$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025777if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025778 $as_echo_n "(cached) " >&6
25779else
25780
25781 ac_ext=cpp
25782ac_cpp='$CXXCPP $CPPFLAGS'
25783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25786
25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788/* end confdefs.h. */
25789#include <iostream>
25790 std::istream& is = std::cin;
25791int
25792main ()
25793{
25794
25795 ;
25796 return 0;
25797}
25798_ACEOF
25799if ac_fn_cxx_try_compile "$LINENO"; then :
25800 ax_cv_cxx_have_std_namespace=yes
25801else
25802 ax_cv_cxx_have_std_namespace=no
25803fi
25804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805 ac_ext=cpp
25806ac_cpp='$CXXCPP $CPPFLAGS'
25807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25810
25811
25812fi
25813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25814$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25815 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25816
25817$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25818
25819 fi
25820
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25822$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025823if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025824 $as_echo_n "(cached) " >&6
25825else
25826
25827
25828 ac_ext=cpp
25829ac_cpp='$CXXCPP $CPPFLAGS'
25830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25833
25834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25835/* end confdefs.h. */
25836#include <iostream>
25837#include <map>
25838#include <iomanip>
25839#include <cmath>
25840#ifdef HAVE_NAMESPACES
25841using namespace std;
25842#endif
25843int
25844main ()
25845{
25846return 0;
25847 ;
25848 return 0;
25849}
25850_ACEOF
25851if ac_fn_cxx_try_compile "$LINENO"; then :
25852 ac_cv_cxx_have_std_libs=yes
25853else
25854 ac_cv_cxx_have_std_libs=no
25855fi
25856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 ac_ext=cpp
25858ac_cpp='$CXXCPP $CPPFLAGS'
25859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25862
25863
25864fi
25865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25866$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25867if test "$ac_cv_cxx_have_std_libs" = yes; then
25868
25869$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25870
25871fi
25872
cristy3ed852e2009-09-05 21:47:34 +000025873
25874 OPENMP_CXXFLAGS=
25875 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025876if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025877 enableval=$enable_openmp;
25878fi
25879
25880 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25882$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025883if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
cristy8b350f62009-11-15 23:12:43 +000025886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25887/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025888
25889#ifndef _OPENMP
25890 choke me
25891#endif
25892#include <omp.h>
25893int main () { return omp_get_num_threads (); }
25894
25895_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025896if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025897 ac_cv_prog_cxx_openmp='none needed'
25898else
cristy8b350f62009-11-15 23:12:43 +000025899 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000025900 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25901 ac_save_CXXFLAGS=$CXXFLAGS
25902 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25904/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025905
25906#ifndef _OPENMP
25907 choke me
25908#endif
25909#include <omp.h>
25910int main () { return omp_get_num_threads (); }
25911
25912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025913if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025914 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025915fi
cristy8b350f62009-11-15 23:12:43 +000025916rm -f core conftest.err conftest.$ac_objext \
25917 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025918 CXXFLAGS=$ac_save_CXXFLAGS
25919 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25920 break
25921 fi
25922 done
25923fi
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 +000025926fi
cristy8b350f62009-11-15 23:12:43 +000025927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025928$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25929 case $ac_cv_prog_cxx_openmp in #(
25930 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025931 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025932 *)
cristy8b350f62009-11-15 23:12:43 +000025933 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025934 esac
25935 fi
25936
25937
25938 ac_ext=c
25939ac_cpp='$CPP $CPPFLAGS'
25940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25942ac_compiler_gnu=$ac_cv_c_compiler_gnu
25943
25944
cristy8b350f62009-11-15 23:12:43 +000025945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025946$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25947 if \
cristy964cb7f2010-04-25 23:18:00 +000025948 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025949 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025950 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025951 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025952 have_magick_plus_plus='yes'
25953 else
25954 have_magick_plus_plus='no (failed tests)'
25955 fi
cristy09b53e12011-10-14 12:47:22 +000025956 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25957$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025958 LIBS="$OLIBS"
25959fi
cristy73bd4a52010-10-05 11:24:23 +000025960 if test "$have_magick_plus_plus" = 'yes'; then
25961 WITH_MAGICK_PLUS_PLUS_TRUE=
25962 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25963else
25964 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25965 WITH_MAGICK_PLUS_PLUS_FALSE=
25966fi
25967
cristy3ed852e2009-09-05 21:47:34 +000025968
25969# Only check for delegate libraries in subdirectories if requested.
25970if test "$enable_delegate_build" != 'no'; then
25971 # Check for delegate sub-directories and add -I & -L options as required.
25972 # This presumes that delegates are installed as detailed in the ImageMagick
25973 # README. If delegates are installed in a standard location where the
25974 # compiler will automatically find them then these options should not be
25975 # required.
25976
25977 #
25978 # Most delegates have includes in the same directory as the library, but not all...
25979 #
25980 # Includes
cristy2542fc62011-12-06 17:50:25 +000025981 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 webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025982 if test -d "$builddir/$dir"; then
25983 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25984 else
25985 if test -d "$srcdirfull/$dir"; then
25986 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25987 fi
25988 fi
25989 done
25990
25991 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025992 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 webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000025993 if test -d "$builddir/$dir/.libs"; then
25994 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25995 else
25996 if test -d "$srcdirfull/$dir/.libs"; then
25997 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25998 fi
25999 fi
26000 if test -d "$builddir/$dir"; then
26001 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26002 else
26003 if test -d "$srcdirfull/$dir"; then
26004 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26005 fi
26006 fi
26007 done
26008fi
26009
26010# Assume that delegate headers reside under same directory as ImageMagick
26011# installation prefix.
26012MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26013
26014#
26015# Find the X11 RGB database
26016#
cristy8b350f62009-11-15 23:12:43 +000026017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026018$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026019if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026020 $as_echo_n "(cached) " >&6
26021else
26022 # Look for the header file in a standard set of common directories.
26023# Check X11 before X11Rn because it is often a symlink to the current release.
26024 for ac_dir in \
26025 /lib/usr/lib/X11 \
26026 /usr/X11/lib \
26027 /usr/X11R4/lib \
26028 /usr/X11R5/lib \
26029 /usr/X11R6/lib \
26030 /usr/X11R7/lib \
26031 /usr/X386/lib \
26032 /usr/XFree86/lib/X11 \
26033 /usr/athena/lib \
26034 /usr/lib \
26035 /usr/lib/X11 \
26036 /usr/lib/X11R4 \
26037 /usr/lib/X11R5 \
26038 /usr/lib/X11R6 \
26039 /usr/lib/X11R7 \
26040 /usr/local/X11/lib \
26041 /usr/local/X11R4/lib \
26042 /usr/local/X11R5/lib \
26043 /usr/local/X11R6/lib \
26044 /usr/local/lib \
26045 /usr/local/lib/X11 \
26046 /usr/local/lib/X11R4 \
26047 /usr/local/lib/X11R5 \
26048 /usr/local/lib/X11R6 \
26049 /usr/local/lib/X11R7 \
26050 /usr/local/x11r5/lib \
26051 /usr/lpp/Xamples/lib \
26052 /usr/openwin/lib \
26053 /usr/openwin/share/lib \
26054 /usr/unsupported/lib \
26055 /usr/x386/lib \
26056 ; do
26057 if test -f "$ac_dir/X11/rgb.txt"; then
26058 im_cv_x_configure="$ac_dir/X11/"
26059 break
26060 elif test -f "$ac_dir/rgb.txt"; then
26061 im_cv_x_configure="$ac_dir/"
26062 break
26063 fi
26064
26065 done
26066fi
cristy8b350f62009-11-15 23:12:43 +000026067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026068$as_echo "$im_cv_x_configure" >&6; }
26069X11_CONFIGURE_PATH="$im_cv_x_configure"
26070case "${build_os}" in
26071 mingw* )
26072 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26073 ;;
26074esac
26075
26076cat >>confdefs.h <<_ACEOF
26077#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26078_ACEOF
26079
26080
26081#
26082# Find OpenMP library
26083#
26084GOMP_LIBS=''
26085if test "$enable_openmp" != 'no'; then
26086 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026087 # Open64 (passes for GCC but uses different OpenMP implementation)
26088 if test "x$GOMP_LIBS" = x ; then
26089 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26091$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26092if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26093 $as_echo_n "(cached) " >&6
26094else
26095 ac_check_lib_save_LIBS=$LIBS
26096LIBS="-lopenmp $LIBS"
26097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098/* end confdefs.h. */
26099
26100/* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26103#ifdef __cplusplus
26104extern "C"
26105#endif
26106char omp_get_num_procs ();
26107int
26108main ()
26109{
26110return omp_get_num_procs ();
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115if ac_fn_c_try_link "$LINENO"; then :
26116 ac_cv_lib_openmp_omp_get_num_procs=yes
26117else
26118 ac_cv_lib_openmp_omp_get_num_procs=no
26119fi
26120rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122LIBS=$ac_check_lib_save_LIBS
26123fi
26124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26125$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26126if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26127 GOMP_LIBS="-lopenmp"
26128fi
26129
26130 fi
26131 fi
26132 # GCC
26133 if test "x$GOMP_LIBS" = x ; then
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026135$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026136if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026137 $as_echo_n "(cached) " >&6
26138else
26139 ac_check_lib_save_LIBS=$LIBS
26140LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026142/* end confdefs.h. */
26143
26144/* Override any GCC internal prototype to avoid an error.
26145 Use char because int might match the return type of a GCC
26146 builtin and then its argument prototype would still apply. */
26147#ifdef __cplusplus
26148extern "C"
26149#endif
26150char GOMP_parallel_start ();
26151int
26152main ()
26153{
26154return GOMP_parallel_start ();
26155 ;
26156 return 0;
26157}
26158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026160 ac_cv_lib_gomp_GOMP_parallel_start=yes
26161else
cristy8b350f62009-11-15 23:12:43 +000026162 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026163fi
cristy8b350f62009-11-15 23:12:43 +000026164rm -f core conftest.err conftest.$ac_objext \
26165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026166LIBS=$ac_check_lib_save_LIBS
26167fi
cristy8b350f62009-11-15 23:12:43 +000026168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026169$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026170if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026171 GOMP_LIBS="-lgomp"
26172fi
cristy18307f12011-12-30 01:20:16 +000026173
26174 fi
cristy3ed852e2009-09-05 21:47:34 +000026175 else
cristy18307f12011-12-30 01:20:16 +000026176 # Sun CC
26177 if test "x$GOMP_LIBS" = x ; then
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026179$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026180if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026181 $as_echo_n "(cached) " >&6
26182else
26183 ac_check_lib_save_LIBS=$LIBS
26184LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026186/* end confdefs.h. */
26187
26188/* Override any GCC internal prototype to avoid an error.
26189 Use char because int might match the return type of a GCC
26190 builtin and then its argument prototype would still apply. */
26191#ifdef __cplusplus
26192extern "C"
26193#endif
26194char sunw_mp_register_warn ();
26195int
26196main ()
26197{
26198return sunw_mp_register_warn ();
26199 ;
26200 return 0;
26201}
26202_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026203if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026204 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26205else
cristy8b350f62009-11-15 23:12:43 +000026206 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026207fi
cristy8b350f62009-11-15 23:12:43 +000026208rm -f core conftest.err conftest.$ac_objext \
26209 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026210LIBS=$ac_check_lib_save_LIBS
26211fi
cristy8b350f62009-11-15 23:12:43 +000026212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026213$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026214if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026215 GOMP_LIBS="-lmtsk"
26216fi
cristy18307f12011-12-30 01:20:16 +000026217
26218 fi
26219 # AIX xlc
26220 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026222$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026223if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026224 $as_echo_n "(cached) " >&6
26225else
26226 ac_check_lib_save_LIBS=$LIBS
26227LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026229/* end confdefs.h. */
26230
26231/* Override any GCC internal prototype to avoid an error.
26232 Use char because int might match the return type of a GCC
26233 builtin and then its argument prototype would still apply. */
26234#ifdef __cplusplus
26235extern "C"
26236#endif
26237char _xlsmpFlush ();
26238int
26239main ()
26240{
26241return _xlsmpFlush ();
26242 ;
26243 return 0;
26244}
26245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026246if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026247 ac_cv_lib_xlsmp__xlsmpFlush=yes
26248else
cristy8b350f62009-11-15 23:12:43 +000026249 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026250fi
cristy8b350f62009-11-15 23:12:43 +000026251rm -f core conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026253LIBS=$ac_check_lib_save_LIBS
26254fi
cristy8b350f62009-11-15 23:12:43 +000026255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026256$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026257if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026258 GOMP_LIBS="-lxlsmp"
26259fi
cristy18307f12011-12-30 01:20:16 +000026260
26261 fi
26262 # SGI IRIX 6.5 MIPSpro C/C++
26263 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026265$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026266if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026267 $as_echo_n "(cached) " >&6
26268else
26269 ac_check_lib_save_LIBS=$LIBS
26270LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026272/* end confdefs.h. */
26273
26274/* Override any GCC internal prototype to avoid an error.
26275 Use char because int might match the return type of a GCC
26276 builtin and then its argument prototype would still apply. */
26277#ifdef __cplusplus
26278extern "C"
26279#endif
26280char mp_destroy ();
26281int
26282main ()
26283{
26284return mp_destroy ();
26285 ;
26286 return 0;
26287}
26288_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026289if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026290 ac_cv_lib_mp_mp_destroy=yes
26291else
cristy8b350f62009-11-15 23:12:43 +000026292 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026293fi
cristy8b350f62009-11-15 23:12:43 +000026294rm -f core conftest.err conftest.$ac_objext \
26295 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026296LIBS=$ac_check_lib_save_LIBS
26297fi
cristy8b350f62009-11-15 23:12:43 +000026298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026299$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026300if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026301 GOMP_LIBS="-lmp"
26302fi
cristy18307f12011-12-30 01:20:16 +000026303
26304 fi
cristy3ed852e2009-09-05 21:47:34 +000026305 fi
26306 LIBS="$GOMP_LIBS $LIBS"
26307fi
26308
26309
26310#
26311# Find Posix threads library
26312#
26313THREAD_LIBS=''
26314if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26315
26316 if test "x$PTHREAD_LIBS" = "x"; then
26317 case "${host_cpu}-${host_os}" in
26318 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026319
26320
26321
26322ac_ext=c
26323ac_cpp='$CPP $CPPFLAGS'
26324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26326ac_compiler_gnu=$ac_cv_c_compiler_gnu
26327
26328magick_pthread_lib_ok=no
26329
26330LIB=-lc_r
26331save_LIBS="$LIBS"
26332LIBS="$LIBS $LIB"
26333
26334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26335$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337/* end confdefs.h. */
26338#include <pthread.h>
26339int
26340main ()
26341{
26342 pthread_t th;
26343 pthread_join(th, 0);
26344 pthread_attr_init(0);
26345 pthread_cleanup_push(0, 0);
26346 pthread_create(0,0,0,0);
26347 pthread_cleanup_pop(0);
26348 ;
26349 return 0;
26350}
26351_ACEOF
26352if ac_fn_c_try_link "$LINENO"; then :
26353 magick_pthread_lib_ok=yes
26354fi
26355rm -f core conftest.err conftest.$ac_objext \
26356 conftest$ac_exeext conftest.$ac_ext
26357
26358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26359$as_echo "${magick_pthread_lib_ok}" >&6; }
26360if test "$magick_pthread_lib_ok" = yes
26361then
26362 PTHREAD_LIBS=-lc_r
26363 :
26364else
26365
26366 :
26367fi
26368
26369LIBS="$save_LIBS"
26370
26371ac_ext=c
26372ac_cpp='$CPP $CPPFLAGS'
26373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26375ac_compiler_gnu=$ac_cv_c_compiler_gnu
26376
26377 ;;
cristy3ed852e2009-09-05 21:47:34 +000026378 esac
26379 fi
26380
26381 for lib in pthread pthreads; do
26382 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026383
26384
26385
26386ac_ext=c
26387ac_cpp='$CPP $CPPFLAGS'
26388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26390ac_compiler_gnu=$ac_cv_c_compiler_gnu
26391
26392magick_pthread_lib_ok=no
26393
26394LIB=-l$lib
26395save_LIBS="$LIBS"
26396LIBS="$LIBS $LIB"
26397
26398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26399$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401/* end confdefs.h. */
26402#include <pthread.h>
26403int
26404main ()
26405{
26406 pthread_t th;
26407 pthread_join(th, 0);
26408 pthread_attr_init(0);
26409 pthread_cleanup_push(0, 0);
26410 pthread_create(0,0,0,0);
26411 pthread_cleanup_pop(0);
26412 ;
26413 return 0;
26414}
26415_ACEOF
26416if ac_fn_c_try_link "$LINENO"; then :
26417 magick_pthread_lib_ok=yes
26418fi
26419rm -f core conftest.err conftest.$ac_objext \
26420 conftest$ac_exeext conftest.$ac_ext
26421
26422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26423$as_echo "${magick_pthread_lib_ok}" >&6; }
26424if test "$magick_pthread_lib_ok" = yes
26425then
26426 PTHREAD_LIBS=-l$lib
26427 :
26428else
26429
26430 :
26431fi
26432
26433LIBS="$save_LIBS"
26434
26435ac_ext=c
26436ac_cpp='$CPP $CPPFLAGS'
26437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26439ac_compiler_gnu=$ac_cv_c_compiler_gnu
26440
26441
cristy3ed852e2009-09-05 21:47:34 +000026442 fi
26443 done
26444
26445 THREAD_LIBS="$PTHREAD_LIBS"
26446 LIBS="$LIBS $THREAD_LIBS"
26447fi
26448
26449
26450#
26451# Check for umem.
26452#
26453have_umem='no'
26454UMEM_LIBS=''
26455if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026458 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26459$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026460 failed=0
26461 passed=0
cristy8b350f62009-11-15 23:12:43 +000026462 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026463if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026464 passed=`expr $passed + 1`
26465else
26466 failed=`expr $failed + 1`
26467fi
26468
26469
cristy8b350f62009-11-15 23:12:43 +000026470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026471$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026472if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026473 $as_echo_n "(cached) " >&6
26474else
26475 ac_check_lib_save_LIBS=$LIBS
26476LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026478/* end confdefs.h. */
26479
26480/* Override any GCC internal prototype to avoid an error.
26481 Use char because int might match the return type of a GCC
26482 builtin and then its argument prototype would still apply. */
26483#ifdef __cplusplus
26484extern "C"
26485#endif
26486char umem_alloc ();
26487int
26488main ()
26489{
26490return umem_alloc ();
26491 ;
26492 return 0;
26493}
26494_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026495if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026496 ac_cv_lib_umem_umem_alloc=yes
26497else
cristy8b350f62009-11-15 23:12:43 +000026498 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026499fi
cristy8b350f62009-11-15 23:12:43 +000026500rm -f core conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502LIBS=$ac_check_lib_save_LIBS
26503fi
cristy8b350f62009-11-15 23:12:43 +000026504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026505$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026506if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026507 passed=`expr $passed + 1`
26508else
26509 failed=`expr $failed + 1`
26510fi
26511
cristy8b350f62009-11-15 23:12:43 +000026512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026513$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026514if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026515 $as_echo_n "(cached) " >&6
26516else
26517 ac_check_lib_save_LIBS=$LIBS
26518LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026520/* end confdefs.h. */
26521
26522/* Override any GCC internal prototype to avoid an error.
26523 Use char because int might match the return type of a GCC
26524 builtin and then its argument prototype would still apply. */
26525#ifdef __cplusplus
26526extern "C"
26527#endif
26528char umem_free ();
26529int
26530main ()
26531{
26532return umem_free ();
26533 ;
26534 return 0;
26535}
26536_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026537if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026538 ac_cv_lib_umem_umem_free=yes
26539else
cristy8b350f62009-11-15 23:12:43 +000026540 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026541fi
cristy8b350f62009-11-15 23:12:43 +000026542rm -f core conftest.err conftest.$ac_objext \
26543 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026544LIBS=$ac_check_lib_save_LIBS
26545fi
cristy8b350f62009-11-15 23:12:43 +000026546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026547$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026548if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026549 passed=`expr $passed + 1`
26550else
26551 failed=`expr $failed + 1`
26552fi
26553
cristy8b350f62009-11-15 23:12:43 +000026554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026555$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26556 if test $passed -gt 0; then
26557 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26559$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026560 have_umem='no (failed tests)'
26561 else
26562 UMEM_LIBS='-lumem'
26563 LIBS="$UMEM_LIBS $LIBS"
26564
cristy8b350f62009-11-15 23:12:43 +000026565$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026566
cristy09b53e12011-10-14 12:47:22 +000026567 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26568$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026569 have_umem='yes'
26570 fi
26571 else
cristy09b53e12011-10-14 12:47:22 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26573$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026574 fi
26575fi
cristy73bd4a52010-10-05 11:24:23 +000026576 if test "$have_umem" = 'yes'; then
26577 HasUMEM_TRUE=
26578 HasUMEM_FALSE='#'
26579else
26580 HasUMEM_TRUE='#'
26581 HasUMEM_FALSE=
26582fi
26583
cristy3ed852e2009-09-05 21:47:34 +000026584
26585
26586#
26587# Add support for ccmalloc memory debugging library if requested
26588#
26589have_ccmalloc='no'
26590CCMALLOC_LIBS=''
26591if test "$enable_ccmalloc" = 'yes'; then
26592 # Extract the first word of "ccmalloc", so it can be a program name with args.
26593set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026596if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026597 $as_echo_n "(cached) " >&6
26598else
26599 case $CCMALLOCDelegate in
26600 [\\/]* | ?:[\\/]*)
26601 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26602 ;;
26603 *)
26604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26605for as_dir in $PATH
26606do
26607 IFS=$as_save_IFS
26608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000026610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26611 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026613 break 2
26614 fi
26615done
cristy8b350f62009-11-15 23:12:43 +000026616 done
cristy3ed852e2009-09-05 21:47:34 +000026617IFS=$as_save_IFS
26618
26619 ;;
26620esac
26621fi
26622CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26623if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026625$as_echo "$CCMALLOCDelegate" >&6; }
26626else
cristy8b350f62009-11-15 23:12:43 +000026627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026628$as_echo "no" >&6; }
26629fi
26630
26631
26632 if test -n "$CCMALLOCDelegate"; then
26633 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26634 OLIBS="$LIBS"
26635 # Assume that gcc is used with ccmalloc.
26636 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026638$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026639if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026640 $as_echo_n "(cached) " >&6
26641else
26642 ac_check_lib_save_LIBS=$LIBS
26643LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026645/* end confdefs.h. */
26646
26647/* Override any GCC internal prototype to avoid an error.
26648 Use char because int might match the return type of a GCC
26649 builtin and then its argument prototype would still apply. */
26650#ifdef __cplusplus
26651extern "C"
26652#endif
26653char ccmalloc_malloc ();
26654int
26655main ()
26656{
26657return ccmalloc_malloc ();
26658 ;
26659 return 0;
26660}
26661_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026662if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026663 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26664else
cristy8b350f62009-11-15 23:12:43 +000026665 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026666fi
cristy8b350f62009-11-15 23:12:43 +000026667rm -f core conftest.err conftest.$ac_objext \
26668 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026669LIBS=$ac_check_lib_save_LIBS
26670fi
cristy8b350f62009-11-15 23:12:43 +000026671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026672$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026673if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026674 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26675fi
26676
26677 if test -n "$CCMALLOC_LIBS"; then
26678 LIBS="$OLIBS"
26679 LIBS="$LIBS $CCMALLOC_LIBS"
26680 have_ccmalloc='yes'
26681 else
26682 LIBS="$OLIBS"
26683 fi
26684 fi
26685fi
26686
26687#
26688# Add support for efence memory debugging library if requested
26689#
26690if test "$enable_efence" = 'yes'; then
26691 EFENCE_LIBS='-lefence'
26692 LIBS="$EFENCE_LIBS $LIBS"
26693fi
26694
cristy3ed852e2009-09-05 21:47:34 +000026695
26696#
26697# Check for BZLIB
26698#
26699
26700
26701# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026702if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 withval=$with_bzlib; with_bzlib=$withval
26704else
26705 with_bzlib='yes'
26706fi
26707
26708
26709if test "$with_bzlib" != 'yes'; then
26710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26711fi
26712
26713have_bzlib='no'
26714if test "$with_bzlib" != 'no'; then
26715 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026716 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26717$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026719$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026720 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26721$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026722 failed=0
26723 passed=0
26724 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026725 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026726if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026727 passed=`expr $passed + 1`
26728else
26729 failed=`expr $failed + 1`
26730fi
26731
26732
cristy8b350f62009-11-15 23:12:43 +000026733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026734$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026735if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 $as_echo_n "(cached) " >&6
26737else
26738 ac_check_lib_save_LIBS=$LIBS
26739LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026741/* end confdefs.h. */
26742
26743/* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
26746#ifdef __cplusplus
26747extern "C"
26748#endif
26749char BZ2_bzDecompress ();
26750int
26751main ()
26752{
26753return BZ2_bzDecompress ();
26754 ;
26755 return 0;
26756}
26757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026759 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26760else
cristy8b350f62009-11-15 23:12:43 +000026761 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026762fi
cristy8b350f62009-11-15 23:12:43 +000026763rm -f core conftest.err conftest.$ac_objext \
26764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026765LIBS=$ac_check_lib_save_LIBS
26766fi
cristy8b350f62009-11-15 23:12:43 +000026767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026768$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026769if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026770 found_libbz=`expr $found_libbz + 1`
26771fi
26772
26773 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026775$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026776if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026777 $as_echo_n "(cached) " >&6
26778else
26779 ac_check_lib_save_LIBS=$LIBS
26780LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026782/* end confdefs.h. */
26783
26784/* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
26787#ifdef __cplusplus
26788extern "C"
26789#endif
26790char _imp__BZ2_decompress ();
26791int
26792main ()
26793{
26794return _imp__BZ2_decompress ();
26795 ;
26796 return 0;
26797}
26798_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026799if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26801else
cristy8b350f62009-11-15 23:12:43 +000026802 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026803fi
cristy8b350f62009-11-15 23:12:43 +000026804rm -f core conftest.err conftest.$ac_objext \
26805 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026806LIBS=$ac_check_lib_save_LIBS
26807fi
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026810if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026811 found_libbz=`expr $found_libbz + 1`
26812fi
26813
26814 fi
26815 if test $found_libbz -gt 0; then
26816 passed=`expr $passed + 1`
26817 else
26818 failed=`expr $failed + 1`
26819 fi
cristy8b350f62009-11-15 23:12:43 +000026820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026821$as_echo_n "checking if BZLIB package is complete... " >&6; }
26822 if test $passed -gt 0; then
26823 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026824 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26825$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026826 have_bzlib='no (failed tests)'
26827 else
26828 BZLIB_LIBS='-lbz2'
26829 LIBS="$BZLIB_LIBS $LIBS"
26830
cristy8b350f62009-11-15 23:12:43 +000026831$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026832
cristy09b53e12011-10-14 12:47:22 +000026833 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26834$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026835 have_bzlib='yes'
26836 fi
26837 else
cristy09b53e12011-10-14 12:47:22 +000026838 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26839$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026840 fi
26841fi
cristy73bd4a52010-10-05 11:24:23 +000026842 if test "$have_bzlib" = 'yes'; then
26843 BZLIB_DELEGATE_TRUE=
26844 BZLIB_DELEGATE_FALSE='#'
26845else
26846 BZLIB_DELEGATE_TRUE='#'
26847 BZLIB_DELEGATE_FALSE=
26848fi
26849
cristy3ed852e2009-09-05 21:47:34 +000026850
26851
26852#
26853# Find the X11 include and library directories.
26854#
26855IPC_LIBS=''
26856X11_LIBS=''
26857XEXT_LIBS=''
26858XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026860$as_echo_n "checking for X... " >&6; }
26861
26862
26863# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026864if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026865 withval=$with_x;
26866fi
26867
26868# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26869if test "x$with_x" = xno; then
26870 # The user explicitly disabled X.
26871 have_x=disabled
26872else
26873 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026874 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026875 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026876 $as_echo_n "(cached) " >&6
26877else
26878 # One or both of the vars are not set, and there is no cached value.
26879ac_x_includes=no ac_x_libraries=no
26880rm -f -r conftest.dir
26881if mkdir conftest.dir; then
26882 cd conftest.dir
26883 cat >Imakefile <<'_ACEOF'
26884incroot:
26885 @echo incroot='${INCROOT}'
26886usrlibdir:
26887 @echo usrlibdir='${USRLIBDIR}'
26888libdir:
26889 @echo libdir='${LIBDIR}'
26890_ACEOF
26891 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026892 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026893 for ac_var in incroot usrlibdir libdir; do
26894 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26895 done
26896 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26897 for ac_extension in a so sl dylib la dll; do
26898 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26899 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26900 ac_im_usrlibdir=$ac_im_libdir; break
26901 fi
26902 done
26903 # Screen out bogus values from the imake configuration. They are
26904 # bogus both because they are the default anyway, and because
26905 # using them would break gcc on systems where it needs fixed includes.
26906 case $ac_im_incroot in
26907 /usr/include) ac_x_includes= ;;
26908 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26909 esac
26910 case $ac_im_usrlibdir in
26911 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26912 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26913 esac
26914 fi
26915 cd ..
26916 rm -f -r conftest.dir
26917fi
26918
26919# Standard set of common directories for X headers.
26920# Check X11 before X11Rn because it is often a symlink to the current release.
26921ac_x_header_dirs='
26922/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026923/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026924/usr/X11R6/include
26925/usr/X11R5/include
26926/usr/X11R4/include
26927
26928/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026929/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026930/usr/include/X11R6
26931/usr/include/X11R5
26932/usr/include/X11R4
26933
26934/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026935/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026936/usr/local/X11R6/include
26937/usr/local/X11R5/include
26938/usr/local/X11R4/include
26939
26940/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026941/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026942/usr/local/include/X11R6
26943/usr/local/include/X11R5
26944/usr/local/include/X11R4
26945
26946/usr/X386/include
26947/usr/x386/include
26948/usr/XFree86/include/X11
26949
26950/usr/include
26951/usr/local/include
26952/usr/unsupported/include
26953/usr/athena/include
26954/usr/local/x11r5/include
26955/usr/lpp/Xamples/include
26956
26957/usr/openwin/include
26958/usr/openwin/share/include'
26959
26960if test "$ac_x_includes" = no; then
26961 # Guess where to find include files, by looking for Xlib.h.
26962 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026964/* end confdefs.h. */
26965#include <X11/Xlib.h>
26966_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026967if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026968 # We can compile using X headers with no special include directory.
26969ac_x_includes=
26970else
cristyc7083c12009-10-14 03:16:55 +000026971 for ac_dir in $ac_x_header_dirs; do
26972 if test -r "$ac_dir/X11/Xlib.h"; then
26973 ac_x_includes=$ac_dir
26974 break
26975 fi
26976done
26977fi
cristyda16f162011-02-19 23:52:17 +000026978rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026979fi # $ac_x_includes = no
26980
26981if test "$ac_x_libraries" = no; then
26982 # Check for the libraries.
26983 # See if we find them without any special options.
26984 # Don't add to $LIBS permanently.
26985 ac_save_LIBS=$LIBS
26986 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026988/* end confdefs.h. */
26989#include <X11/Xlib.h>
26990int
26991main ()
26992{
26993XrmInitialize ()
26994 ;
26995 return 0;
26996}
26997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026998if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026999 LIBS=$ac_save_LIBS
27000# We can link X programs with no special library path.
27001ac_x_libraries=
27002else
cristy8b350f62009-11-15 23:12:43 +000027003 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027004for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27005do
27006 # Don't even attempt the hair of trying to link an X program!
27007 for ac_extension in a so sl dylib la dll; do
27008 if test -r "$ac_dir/libX11.$ac_extension"; then
27009 ac_x_libraries=$ac_dir
27010 break 2
27011 fi
27012 done
27013done
27014fi
cristy8b350f62009-11-15 23:12:43 +000027015rm -f core conftest.err conftest.$ac_objext \
27016 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027017fi # $ac_x_libraries = no
27018
27019case $ac_x_includes,$ac_x_libraries in #(
27020 no,* | *,no | *\'*)
27021 # Didn't find X, or a directory has "'" in its name.
27022 ac_cv_have_x="have_x=no";; #(
27023 *)
27024 # Record where we found X for the cache.
27025 ac_cv_have_x="have_x=yes\
27026 ac_x_includes='$ac_x_includes'\
27027 ac_x_libraries='$ac_x_libraries'"
27028esac
27029fi
27030;; #(
27031 *) have_x=yes;;
27032 esac
27033 eval "$ac_cv_have_x"
27034fi # $with_x != no
27035
27036if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027038$as_echo "$have_x" >&6; }
27039 no_x=yes
27040else
27041 # If each of the values was on the command line, it overrides each guess.
27042 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27043 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27044 # Update the cache value to reflect the command line values.
27045 ac_cv_have_x="have_x=yes\
27046 ac_x_includes='$x_includes'\
27047 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027049$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27050fi
27051
cristy3ed852e2009-09-05 21:47:34 +000027052if test "$no_x" = yes; then
27053 # Not all programs may use this symbol, but it does not hurt to define it.
27054
cristy8b350f62009-11-15 23:12:43 +000027055$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027056
27057 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27058else
27059 if test -n "$x_includes"; then
27060 X_CFLAGS="$X_CFLAGS -I$x_includes"
27061 fi
27062
27063 # It would also be nice to do this for all -L options, not just this one.
27064 if test -n "$x_libraries"; then
27065 X_LIBS="$X_LIBS -L$x_libraries"
27066 # For Solaris; some versions of Sun CC require a space after -R and
27067 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27070 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27071 ac_xsave_c_werror_flag=$ac_c_werror_flag
27072 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027074/* end confdefs.h. */
27075
27076int
27077main ()
27078{
27079
27080 ;
27081 return 0;
27082}
27083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027084if ac_fn_c_try_link "$LINENO"; then :
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027086$as_echo "no" >&6; }
27087 X_LIBS="$X_LIBS -R$x_libraries"
27088else
cristy8b350f62009-11-15 23:12:43 +000027089 LIBS="$ac_xsave_LIBS -R $x_libraries"
27090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027091/* end confdefs.h. */
27092
27093int
27094main ()
27095{
27096
27097 ;
27098 return 0;
27099}
27100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027101if ac_fn_c_try_link "$LINENO"; then :
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "yes" >&6; }
27104 X_LIBS="$X_LIBS -R $x_libraries"
27105else
cristy8b350f62009-11-15 23:12:43 +000027106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027107$as_echo "neither works" >&6; }
27108fi
cristy8b350f62009-11-15 23:12:43 +000027109rm -f core conftest.err conftest.$ac_objext \
27110 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027111fi
cristy8b350f62009-11-15 23:12:43 +000027112rm -f core conftest.err conftest.$ac_objext \
27113 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027114 ac_c_werror_flag=$ac_xsave_c_werror_flag
27115 LIBS=$ac_xsave_LIBS
27116 fi
27117
27118 # Check for system-dependent libraries X programs must link with.
27119 # Do this before checking for the system-independent R6 libraries
27120 # (-lICE), since we may need -lsocket or whatever for X linking.
27121
27122 if test "$ISC" = yes; then
27123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27124 else
27125 # Martyn Johnson says this is needed for Ultrix, if the X
27126 # libraries were built with DECnet support. And Karl Berry says
27127 # the Alpha needs dnet_stub (dnet does not exist).
27128 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027130/* end confdefs.h. */
27131
27132/* Override any GCC internal prototype to avoid an error.
27133 Use char because int might match the return type of a GCC
27134 builtin and then its argument prototype would still apply. */
27135#ifdef __cplusplus
27136extern "C"
27137#endif
27138char XOpenDisplay ();
27139int
27140main ()
27141{
27142return XOpenDisplay ();
27143 ;
27144 return 0;
27145}
27146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027147if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027148
cristy8b350f62009-11-15 23:12:43 +000027149else
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027151$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027152if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 $as_echo_n "(cached) " >&6
27154else
27155 ac_check_lib_save_LIBS=$LIBS
27156LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027158/* end confdefs.h. */
27159
27160/* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
27163#ifdef __cplusplus
27164extern "C"
27165#endif
27166char dnet_ntoa ();
27167int
27168main ()
27169{
27170return dnet_ntoa ();
27171 ;
27172 return 0;
27173}
27174_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027175if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027176 ac_cv_lib_dnet_dnet_ntoa=yes
27177else
cristy8b350f62009-11-15 23:12:43 +000027178 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027179fi
cristy8b350f62009-11-15 23:12:43 +000027180rm -f core conftest.err conftest.$ac_objext \
27181 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027182LIBS=$ac_check_lib_save_LIBS
27183fi
cristy8b350f62009-11-15 23:12:43 +000027184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027185$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027186if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027187 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27188fi
27189
27190 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027192$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027193if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027194 $as_echo_n "(cached) " >&6
27195else
27196 ac_check_lib_save_LIBS=$LIBS
27197LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027199/* end confdefs.h. */
27200
27201/* Override any GCC internal prototype to avoid an error.
27202 Use char because int might match the return type of a GCC
27203 builtin and then its argument prototype would still apply. */
27204#ifdef __cplusplus
27205extern "C"
27206#endif
27207char dnet_ntoa ();
27208int
27209main ()
27210{
27211return dnet_ntoa ();
27212 ;
27213 return 0;
27214}
27215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027217 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27218else
cristy8b350f62009-11-15 23:12:43 +000027219 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027220fi
cristy8b350f62009-11-15 23:12:43 +000027221rm -f core conftest.err conftest.$ac_objext \
27222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027223LIBS=$ac_check_lib_save_LIBS
27224fi
cristy8b350f62009-11-15 23:12:43 +000027225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027226$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027227if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027228 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27229fi
27230
27231 fi
27232fi
cristy8b350f62009-11-15 23:12:43 +000027233rm -f core conftest.err conftest.$ac_objext \
27234 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027235 LIBS="$ac_xsave_LIBS"
27236
27237 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27238 # to get the SysV transport functions.
27239 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27240 # needs -lnsl.
27241 # The nsl library prevents programs from opening the X display
27242 # on Irix 5.2, according to T.E. Dickey.
27243 # The functions gethostbyname, getservbyname, and inet_addr are
27244 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027245 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027246if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027247
cristy3ed852e2009-09-05 21:47:34 +000027248fi
27249
cristy3ed852e2009-09-05 21:47:34 +000027250 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027252$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027253if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027254 $as_echo_n "(cached) " >&6
27255else
27256 ac_check_lib_save_LIBS=$LIBS
27257LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027259/* end confdefs.h. */
27260
27261/* Override any GCC internal prototype to avoid an error.
27262 Use char because int might match the return type of a GCC
27263 builtin and then its argument prototype would still apply. */
27264#ifdef __cplusplus
27265extern "C"
27266#endif
27267char gethostbyname ();
27268int
27269main ()
27270{
27271return gethostbyname ();
27272 ;
27273 return 0;
27274}
27275_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027276if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027277 ac_cv_lib_nsl_gethostbyname=yes
27278else
cristy8b350f62009-11-15 23:12:43 +000027279 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027280fi
cristy8b350f62009-11-15 23:12:43 +000027281rm -f core conftest.err conftest.$ac_objext \
27282 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027283LIBS=$ac_check_lib_save_LIBS
27284fi
cristy8b350f62009-11-15 23:12:43 +000027285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027286$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027287if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27289fi
27290
27291 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 $as_echo_n "(cached) " >&6
27296else
27297 ac_check_lib_save_LIBS=$LIBS
27298LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027300/* end confdefs.h. */
27301
27302/* Override any GCC internal prototype to avoid an error.
27303 Use char because int might match the return type of a GCC
27304 builtin and then its argument prototype would still apply. */
27305#ifdef __cplusplus
27306extern "C"
27307#endif
27308char gethostbyname ();
27309int
27310main ()
27311{
27312return gethostbyname ();
27313 ;
27314 return 0;
27315}
27316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027318 ac_cv_lib_bsd_gethostbyname=yes
27319else
cristy8b350f62009-11-15 23:12:43 +000027320 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027321fi
cristy8b350f62009-11-15 23:12:43 +000027322rm -f core conftest.err conftest.$ac_objext \
27323 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324LIBS=$ac_check_lib_save_LIBS
27325fi
cristy8b350f62009-11-15 23:12:43 +000027326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027327$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027328if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27330fi
27331
27332 fi
27333 fi
27334
27335 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27336 # socket/setsockopt and other routines are undefined under SCO ODT
27337 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27338 # on later versions), says Simon Leinen: it contains gethostby*
27339 # variants that don't use the name server (or something). -lsocket
27340 # must be given before -lnsl if both are needed. We assume that
27341 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027342 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027343if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027344
cristy3ed852e2009-09-05 21:47:34 +000027345fi
27346
cristy3ed852e2009-09-05 21:47:34 +000027347 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027349$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027350if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027351 $as_echo_n "(cached) " >&6
27352else
27353 ac_check_lib_save_LIBS=$LIBS
27354LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027356/* end confdefs.h. */
27357
27358/* Override any GCC internal prototype to avoid an error.
27359 Use char because int might match the return type of a GCC
27360 builtin and then its argument prototype would still apply. */
27361#ifdef __cplusplus
27362extern "C"
27363#endif
27364char connect ();
27365int
27366main ()
27367{
27368return connect ();
27369 ;
27370 return 0;
27371}
27372_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027373if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027374 ac_cv_lib_socket_connect=yes
27375else
cristy8b350f62009-11-15 23:12:43 +000027376 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027377fi
cristy8b350f62009-11-15 23:12:43 +000027378rm -f core conftest.err conftest.$ac_objext \
27379 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027380LIBS=$ac_check_lib_save_LIBS
27381fi
cristy8b350f62009-11-15 23:12:43 +000027382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027383$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027384if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027385 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27386fi
27387
27388 fi
27389
27390 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027391 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027392if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027393
cristy3ed852e2009-09-05 21:47:34 +000027394fi
27395
cristy3ed852e2009-09-05 21:47:34 +000027396 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027398$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027399if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 $as_echo_n "(cached) " >&6
27401else
27402 ac_check_lib_save_LIBS=$LIBS
27403LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027405/* end confdefs.h. */
27406
27407/* Override any GCC internal prototype to avoid an error.
27408 Use char because int might match the return type of a GCC
27409 builtin and then its argument prototype would still apply. */
27410#ifdef __cplusplus
27411extern "C"
27412#endif
27413char remove ();
27414int
27415main ()
27416{
27417return remove ();
27418 ;
27419 return 0;
27420}
27421_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027422if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 ac_cv_lib_posix_remove=yes
27424else
cristy8b350f62009-11-15 23:12:43 +000027425 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027426fi
cristy8b350f62009-11-15 23:12:43 +000027427rm -f core conftest.err conftest.$ac_objext \
27428 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027429LIBS=$ac_check_lib_save_LIBS
27430fi
cristy8b350f62009-11-15 23:12:43 +000027431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027432$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027433if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27435fi
27436
27437 fi
27438
27439 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027440 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027441if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027442
cristy3ed852e2009-09-05 21:47:34 +000027443fi
27444
cristy3ed852e2009-09-05 21:47:34 +000027445 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027447$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027448if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027449 $as_echo_n "(cached) " >&6
27450else
27451 ac_check_lib_save_LIBS=$LIBS
27452LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027454/* end confdefs.h. */
27455
27456/* Override any GCC internal prototype to avoid an error.
27457 Use char because int might match the return type of a GCC
27458 builtin and then its argument prototype would still apply. */
27459#ifdef __cplusplus
27460extern "C"
27461#endif
27462char shmat ();
27463int
27464main ()
27465{
27466return shmat ();
27467 ;
27468 return 0;
27469}
27470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027471if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 ac_cv_lib_ipc_shmat=yes
27473else
cristy8b350f62009-11-15 23:12:43 +000027474 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027475fi
cristy8b350f62009-11-15 23:12:43 +000027476rm -f core conftest.err conftest.$ac_objext \
27477 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027478LIBS=$ac_check_lib_save_LIBS
27479fi
cristy8b350f62009-11-15 23:12:43 +000027480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027481$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027482if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27484fi
27485
27486 fi
27487 fi
27488
27489 # Check for libraries that X11R6 Xt/Xaw programs need.
27490 ac_save_LDFLAGS=$LDFLAGS
27491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27493 # check for ICE first), but we must link in the order -lSM -lICE or
27494 # we get undefined symbols. So assume we have SM if we have ICE.
27495 # These have to be linked with before -lX11, unlike the other
27496 # libraries we check for below, so use a different variable.
27497 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027499$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027500if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027501 $as_echo_n "(cached) " >&6
27502else
27503 ac_check_lib_save_LIBS=$LIBS
27504LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027506/* end confdefs.h. */
27507
27508/* Override any GCC internal prototype to avoid an error.
27509 Use char because int might match the return type of a GCC
27510 builtin and then its argument prototype would still apply. */
27511#ifdef __cplusplus
27512extern "C"
27513#endif
27514char IceConnectionNumber ();
27515int
27516main ()
27517{
27518return IceConnectionNumber ();
27519 ;
27520 return 0;
27521}
27522_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027523if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027524 ac_cv_lib_ICE_IceConnectionNumber=yes
27525else
cristy8b350f62009-11-15 23:12:43 +000027526 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027527fi
cristy8b350f62009-11-15 23:12:43 +000027528rm -f core conftest.err conftest.$ac_objext \
27529 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027530LIBS=$ac_check_lib_save_LIBS
27531fi
cristy8b350f62009-11-15 23:12:43 +000027532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027533$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027534if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027535 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27536fi
27537
27538 LDFLAGS=$ac_save_LDFLAGS
27539
27540fi
27541
27542if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027543 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27544$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027546$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027547 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27548$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027549 LDFLAGS="$LDFLAGS $X_LIBS"
27550 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27551 LIBS="$X11_LIBS $LIBS"
27552 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27553
27554
cristy8b350f62009-11-15 23:12:43 +000027555$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027556
27557 #
27558 # Check for X11 shared memory extension
27559 #
27560 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027561 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027562if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027563 have_shmctl='yes'
27564fi
27565
27566 if test "$have_shmctl" != 'yes'; then
27567 PERSIST_LIBS=$LIBS
27568 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027570/* end confdefs.h. */
27571
27572/* Override any GCC internal prototype to avoid an error.
27573 Use char because int might match the return type of a GCC
27574 builtin and then its argument prototype would still apply. */
27575#ifdef __cplusplus
27576extern "C"
27577#endif
27578char shmctl ();
27579int
27580main ()
27581{
27582return shmctl ();
27583 ;
27584 return 0;
27585}
27586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027588 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027589fi
cristy8b350f62009-11-15 23:12:43 +000027590rm -f core conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027592 LIBS=$PERSIST_LIBS
27593 fi
27594
27595 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027597$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027598if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027599 $as_echo_n "(cached) " >&6
27600else
27601 ac_check_lib_save_LIBS=$LIBS
27602LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027604/* end confdefs.h. */
27605
27606/* Override any GCC internal prototype to avoid an error.
27607 Use char because int might match the return type of a GCC
27608 builtin and then its argument prototype would still apply. */
27609#ifdef __cplusplus
27610extern "C"
27611#endif
27612char XShmAttach ();
27613int
27614main ()
27615{
27616return XShmAttach ();
27617 ;
27618 return 0;
27619}
27620_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027621if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027622 ac_cv_lib_Xext_XShmAttach=yes
27623else
cristy8b350f62009-11-15 23:12:43 +000027624 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027625fi
cristy8b350f62009-11-15 23:12:43 +000027626rm -f core conftest.err conftest.$ac_objext \
27627 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027628LIBS=$ac_check_lib_save_LIBS
27629fi
cristy8b350f62009-11-15 23:12:43 +000027630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027631$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027632if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027634$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027635
27636fi
27637
27638 fi
27639
27640 #
27641 # Check for X11 shape extension
27642 #
cristy8b350f62009-11-15 23:12:43 +000027643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027644$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027645if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027646 $as_echo_n "(cached) " >&6
27647else
27648 ac_check_lib_save_LIBS=$LIBS
27649LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027651/* end confdefs.h. */
27652
27653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
27656#ifdef __cplusplus
27657extern "C"
27658#endif
27659char XShapeCombineMask ();
27660int
27661main ()
27662{
27663return XShapeCombineMask ();
27664 ;
27665 return 0;
27666}
27667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027669 ac_cv_lib_Xext_XShapeCombineMask=yes
27670else
cristy8b350f62009-11-15 23:12:43 +000027671 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027672fi
cristy8b350f62009-11-15 23:12:43 +000027673rm -f core conftest.err conftest.$ac_objext \
27674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027675LIBS=$ac_check_lib_save_LIBS
27676fi
cristy8b350f62009-11-15 23:12:43 +000027677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027678$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027679if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027680 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027681$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027682
27683fi
27684
cristy8b350f62009-11-15 23:12:43 +000027685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027686$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027687if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 $as_echo_n "(cached) " >&6
27689else
27690 ac_check_lib_save_LIBS=$LIBS
27691LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027693/* end confdefs.h. */
27694
27695/* Override any GCC internal prototype to avoid an error.
27696 Use char because int might match the return type of a GCC
27697 builtin and then its argument prototype would still apply. */
27698#ifdef __cplusplus
27699extern "C"
27700#endif
27701char XtSetEventDispatcher ();
27702int
27703main ()
27704{
27705return XtSetEventDispatcher ();
27706 ;
27707 return 0;
27708}
27709_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027710if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027711 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27712else
cristy8b350f62009-11-15 23:12:43 +000027713 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027714fi
cristy8b350f62009-11-15 23:12:43 +000027715rm -f core conftest.err conftest.$ac_objext \
27716 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027717LIBS=$ac_check_lib_save_LIBS
27718fi
cristy8b350f62009-11-15 23:12:43 +000027719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027720$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027721if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027722 XT_LIBS='-lXt'
27723fi
27724
27725 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27726fi
27727if test "$no_x" != 'yes'; then
27728 have_x='yes'
27729else
27730 have_x='no'
27731fi
cristy73bd4a52010-10-05 11:24:23 +000027732 if test "$have_x" = 'yes'; then
27733 X11_DELEGATE_TRUE=
27734 X11_DELEGATE_FALSE='#'
27735else
27736 X11_DELEGATE_TRUE='#'
27737 X11_DELEGATE_FALSE=
27738fi
27739
cristy3ed852e2009-09-05 21:47:34 +000027740
27741
27742
27743
27744#
27745# Check for ZLIB
27746#
27747
27748# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027749if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027750 withval=$with_zlib; with_zlib=$withval
27751else
27752 with_zlib='yes'
27753fi
27754
27755
27756if test "$with_zlib" != 'yes'; then
27757 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27758fi
27759
27760have_zlib='no'
27761ZLIB_LIBS=''
27762if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027763 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27764$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027766$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27768$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027769 ZLIB_LIBS=''
27770 failed=0
27771 passed=0
cristy8b350f62009-11-15 23:12:43 +000027772 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027773if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027774 passed=`expr $passed + 1`
27775else
27776 failed=`expr $failed + 1`
27777fi
27778
27779
cristy8b350f62009-11-15 23:12:43 +000027780 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027781if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027782 passed=`expr $passed + 1`
27783else
27784 failed=`expr $failed + 1`
27785fi
27786
27787
cristy8b350f62009-11-15 23:12:43 +000027788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027789$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027790if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027791 $as_echo_n "(cached) " >&6
27792else
27793 ac_check_lib_save_LIBS=$LIBS
27794LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027796/* end confdefs.h. */
27797
27798/* Override any GCC internal prototype to avoid an error.
27799 Use char because int might match the return type of a GCC
27800 builtin and then its argument prototype would still apply. */
27801#ifdef __cplusplus
27802extern "C"
27803#endif
27804char compress ();
27805int
27806main ()
27807{
27808return compress ();
27809 ;
27810 return 0;
27811}
27812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027813if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027814 ac_cv_lib_z_compress=yes
27815else
cristy8b350f62009-11-15 23:12:43 +000027816 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027817fi
cristy8b350f62009-11-15 23:12:43 +000027818rm -f core conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027820LIBS=$ac_check_lib_save_LIBS
27821fi
cristy8b350f62009-11-15 23:12:43 +000027822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027823$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027824if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027825 passed=`expr $passed + 1`
27826else
27827 failed=`expr $failed + 1`
27828fi
27829
cristy8b350f62009-11-15 23:12:43 +000027830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 $as_echo_n "(cached) " >&6
27834else
27835 ac_check_lib_save_LIBS=$LIBS
27836LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027838/* end confdefs.h. */
27839
27840/* Override any GCC internal prototype to avoid an error.
27841 Use char because int might match the return type of a GCC
27842 builtin and then its argument prototype would still apply. */
27843#ifdef __cplusplus
27844extern "C"
27845#endif
27846char uncompress ();
27847int
27848main ()
27849{
27850return uncompress ();
27851 ;
27852 return 0;
27853}
27854_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027855if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027856 ac_cv_lib_z_uncompress=yes
27857else
cristy8b350f62009-11-15 23:12:43 +000027858 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027859fi
cristy8b350f62009-11-15 23:12:43 +000027860rm -f core conftest.err conftest.$ac_objext \
27861 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027862LIBS=$ac_check_lib_save_LIBS
27863fi
cristy8b350f62009-11-15 23:12:43 +000027864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027865$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027866if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 passed=`expr $passed + 1`
27868else
27869 failed=`expr $failed + 1`
27870fi
27871
cristy8b350f62009-11-15 23:12:43 +000027872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027873$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027874if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027875 $as_echo_n "(cached) " >&6
27876else
27877 ac_check_lib_save_LIBS=$LIBS
27878LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027880/* end confdefs.h. */
27881
27882/* Override any GCC internal prototype to avoid an error.
27883 Use char because int might match the return type of a GCC
27884 builtin and then its argument prototype would still apply. */
27885#ifdef __cplusplus
27886extern "C"
27887#endif
27888char deflate ();
27889int
27890main ()
27891{
27892return deflate ();
27893 ;
27894 return 0;
27895}
27896_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027897if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 ac_cv_lib_z_deflate=yes
27899else
cristy8b350f62009-11-15 23:12:43 +000027900 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027901fi
cristy8b350f62009-11-15 23:12:43 +000027902rm -f core conftest.err conftest.$ac_objext \
27903 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027904LIBS=$ac_check_lib_save_LIBS
27905fi
cristy8b350f62009-11-15 23:12:43 +000027906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027907$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027908if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027909 passed=`expr $passed + 1`
27910else
27911 failed=`expr $failed + 1`
27912fi
27913
cristy8b350f62009-11-15 23:12:43 +000027914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027915$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027916if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027917 $as_echo_n "(cached) " >&6
27918else
27919 ac_check_lib_save_LIBS=$LIBS
27920LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027922/* end confdefs.h. */
27923
27924/* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27927#ifdef __cplusplus
27928extern "C"
27929#endif
27930char inflate ();
27931int
27932main ()
27933{
27934return inflate ();
27935 ;
27936 return 0;
27937}
27938_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027939if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027940 ac_cv_lib_z_inflate=yes
27941else
cristy8b350f62009-11-15 23:12:43 +000027942 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027943fi
cristy8b350f62009-11-15 23:12:43 +000027944rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946LIBS=$ac_check_lib_save_LIBS
27947fi
cristy8b350f62009-11-15 23:12:43 +000027948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027949$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027950if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027951 passed=`expr $passed + 1`
27952else
27953 failed=`expr $failed + 1`
27954fi
27955
cristy8b350f62009-11-15 23:12:43 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027957$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027958if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027959 $as_echo_n "(cached) " >&6
27960else
27961 ac_check_lib_save_LIBS=$LIBS
27962LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027964/* end confdefs.h. */
27965
27966/* Override any GCC internal prototype to avoid an error.
27967 Use char because int might match the return type of a GCC
27968 builtin and then its argument prototype would still apply. */
27969#ifdef __cplusplus
27970extern "C"
27971#endif
27972char gzseek ();
27973int
27974main ()
27975{
27976return gzseek ();
27977 ;
27978 return 0;
27979}
27980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027981if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027982 ac_cv_lib_z_gzseek=yes
27983else
cristy8b350f62009-11-15 23:12:43 +000027984 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027985fi
cristy8b350f62009-11-15 23:12:43 +000027986rm -f core conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027988LIBS=$ac_check_lib_save_LIBS
27989fi
cristy8b350f62009-11-15 23:12:43 +000027990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027991$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027992if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027993 passed=`expr $passed + 1`
27994else
27995 failed=`expr $failed + 1`
27996fi
27997
cristy8b350f62009-11-15 23:12:43 +000027998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027999$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028000if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 $as_echo_n "(cached) " >&6
28002else
28003 ac_check_lib_save_LIBS=$LIBS
28004LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028006/* end confdefs.h. */
28007
28008/* Override any GCC internal prototype to avoid an error.
28009 Use char because int might match the return type of a GCC
28010 builtin and then its argument prototype would still apply. */
28011#ifdef __cplusplus
28012extern "C"
28013#endif
28014char gztell ();
28015int
28016main ()
28017{
28018return gztell ();
28019 ;
28020 return 0;
28021}
28022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028023if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028024 ac_cv_lib_z_gztell=yes
28025else
cristy8b350f62009-11-15 23:12:43 +000028026 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028027fi
cristy8b350f62009-11-15 23:12:43 +000028028rm -f core conftest.err conftest.$ac_objext \
28029 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028030LIBS=$ac_check_lib_save_LIBS
28031fi
cristy8b350f62009-11-15 23:12:43 +000028032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028033$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028034if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 passed=`expr $passed + 1`
28036else
28037 failed=`expr $failed + 1`
28038fi
28039
cristy8b350f62009-11-15 23:12:43 +000028040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028041$as_echo_n "checking if ZLIB package is complete... " >&6; }
28042 if test $passed -gt 0; then
28043 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028044 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28045$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028046 have_zlib='no (failed tests)'
28047 else
28048 ZLIB_LIBS='-lz'
28049 LIBS="$ZLIB_LIBS $LIBS"
28050
cristy8b350f62009-11-15 23:12:43 +000028051$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028052
cristy09b53e12011-10-14 12:47:22 +000028053 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28054$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028055 have_zlib='yes'
28056 fi
28057 else
cristy09b53e12011-10-14 12:47:22 +000028058 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28059$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028060 fi
28061fi
cristy73bd4a52010-10-05 11:24:23 +000028062 if test "$have_zlib" = 'yes'; then
28063 ZLIB_DELEGATE_TRUE=
28064 ZLIB_DELEGATE_FALSE='#'
28065else
28066 ZLIB_DELEGATE_TRUE='#'
28067 ZLIB_DELEGATE_FALSE=
28068fi
28069
cristy3ed852e2009-09-05 21:47:34 +000028070
28071
28072#
28073# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28074#
28075LIB_DL=''
28076if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028079if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 $as_echo_n "(cached) " >&6
28081else
28082 ac_check_lib_save_LIBS=$LIBS
28083LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028085/* end confdefs.h. */
28086
28087/* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28090#ifdef __cplusplus
28091extern "C"
28092#endif
28093char dlopen ();
28094int
28095main ()
28096{
28097return dlopen ();
28098 ;
28099 return 0;
28100}
28101_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028102if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028103 ac_cv_lib_dl_dlopen=yes
28104else
cristy8b350f62009-11-15 23:12:43 +000028105 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028106fi
cristy8b350f62009-11-15 23:12:43 +000028107rm -f core conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028109LIBS=$ac_check_lib_save_LIBS
28110fi
cristy8b350f62009-11-15 23:12:43 +000028111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028112$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028113if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028114 LIB_DL='-ldl'
28115fi
28116
28117 LIBS="$LIB_DL $LIBS"
28118fi
28119
28120
28121
28122#
28123# Check for Autotrace delegate library.
28124#
28125
28126# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028127if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 withval=$with_autotrace; with_autotrace=$withval
28129else
28130 with_autotrace='no'
28131fi
28132
28133
28134if test "$with_autotrace" != 'yes'; then
28135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28136fi
28137
28138have_autotrace='no'
28139AUTOTRACE_CFLAGS=""
28140AUTOTRACE_LIBS=""
28141AUTOTRACE_PKG=""
28142if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028143 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28144$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028145
28146pkg_failed=no
28147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28148$as_echo_n "checking for AUTOTRACE... " >&6; }
28149
28150if test -n "$AUTOTRACE_CFLAGS"; then
28151 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28152 elif test -n "$PKG_CONFIG"; then
28153 if test -n "$PKG_CONFIG" && \
28154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28155 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28156 ac_status=$?
28157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28158 test $ac_status = 0; }; then
28159 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28160else
28161 pkg_failed=yes
28162fi
28163 else
28164 pkg_failed=untried
28165fi
28166if test -n "$AUTOTRACE_LIBS"; then
28167 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28168 elif test -n "$PKG_CONFIG"; then
28169 if test -n "$PKG_CONFIG" && \
28170 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28171 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28172 ac_status=$?
28173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28174 test $ac_status = 0; }; then
28175 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28176else
28177 pkg_failed=yes
28178fi
28179 else
28180 pkg_failed=untried
28181fi
28182
28183
28184
28185if test $pkg_failed = yes; then
28186
28187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28188 _pkg_short_errors_supported=yes
28189else
28190 _pkg_short_errors_supported=no
28191fi
28192 if test $_pkg_short_errors_supported = yes; then
28193 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28194 else
28195 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28196 fi
28197 # Put the nasty error message in config.log where it belongs
28198 echo "$AUTOTRACE_PKG_ERRORS" >&5
28199
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28201$as_echo "no" >&6; }
28202 have_autotrace=no
28203elif test $pkg_failed = untried; then
28204 have_autotrace=no
28205else
28206 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28207 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28209$as_echo "yes" >&6; }
28210 have_autotrace=yes
28211fi
cristy09b53e12011-10-14 12:47:22 +000028212 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28213$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028214fi
28215
28216if test "$have_autotrace" = 'yes'; then
28217 failed=0
28218
cristy8b350f62009-11-15 23:12:43 +000028219$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028220
28221 if test "$with_modules" = 'no'; then
28222 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28223 fi
28224fi
28225
cristy73bd4a52010-10-05 11:24:23 +000028226 if test "$have_autotrace" = 'yes'; then
28227 AUTOTRACE_DELEGATE_TRUE=
28228 AUTOTRACE_DELEGATE_FALSE='#'
28229else
28230 AUTOTRACE_DELEGATE_TRUE='#'
28231 AUTOTRACE_DELEGATE_FALSE=
28232fi
28233
cristy3ed852e2009-09-05 21:47:34 +000028234
28235
28236
28237
28238#
28239# Check for Display Postscript delegate library.
28240#
28241
28242# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028243if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028244 withval=$with_dps; with_dps=$withval
28245else
28246 with_dps='yes'
28247fi
28248
28249
28250if test "$with_dps" != 'yes'; then
28251 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28252fi
28253
28254have_dps='no'
28255DPS_LIBS=''
28256if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028257 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28258$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028260$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28262$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028263 failed=0
28264 passed=0
28265 PERSIST_CPPFLAGS="$CPPFLAGS"
28266 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028267 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 +000028268if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028269 passed=`expr $passed + 1`
28270else
28271 failed=`expr $failed + 1`
28272fi
28273
28274
28275 # DPS issues:
28276 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28277 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28278 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28279 # ImageMagick itself doesn't use -lXt.
28280 have_libdps='no'
28281 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028283$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028284if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028285 $as_echo_n "(cached) " >&6
28286else
28287 ac_check_lib_save_LIBS=$LIBS
28288LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028290/* end confdefs.h. */
28291
28292/* Override any GCC internal prototype to avoid an error.
28293 Use char because int might match the return type of a GCC
28294 builtin and then its argument prototype would still apply. */
28295#ifdef __cplusplus
28296extern "C"
28297#endif
28298char DPSInitialize ();
28299int
28300main ()
28301{
28302return DPSInitialize ();
28303 ;
28304 return 0;
28305}
28306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028308 ac_cv_lib_dps_DPSInitialize=yes
28309else
cristy8b350f62009-11-15 23:12:43 +000028310 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028311fi
cristy8b350f62009-11-15 23:12:43 +000028312rm -f core conftest.err conftest.$ac_objext \
28313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028314LIBS=$ac_check_lib_save_LIBS
28315fi
cristy8b350f62009-11-15 23:12:43 +000028316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028317$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028318if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028319 have_libdps='yes'
28320else
28321 have_libdps='no'
28322fi
28323
28324 if test "$have_libdps" != 'yes'; then
28325 # Unset cache variable so we can try again.
28326 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028328$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028329if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 $as_echo_n "(cached) " >&6
28331else
28332 ac_check_lib_save_LIBS=$LIBS
28333LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028335/* end confdefs.h. */
28336
28337/* Override any GCC internal prototype to avoid an error.
28338 Use char because int might match the return type of a GCC
28339 builtin and then its argument prototype would still apply. */
28340#ifdef __cplusplus
28341extern "C"
28342#endif
28343char DPSInitialize ();
28344int
28345main ()
28346{
28347return DPSInitialize ();
28348 ;
28349 return 0;
28350}
28351_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028352if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028353 ac_cv_lib_dps_DPSInitialize=yes
28354else
cristy8b350f62009-11-15 23:12:43 +000028355 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028356fi
cristy8b350f62009-11-15 23:12:43 +000028357rm -f core conftest.err conftest.$ac_objext \
28358 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028359LIBS=$ac_check_lib_save_LIBS
28360fi
cristy8b350f62009-11-15 23:12:43 +000028361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028362$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028363if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 have_libdps='yes'
28365else
28366 have_libdps='no'
28367fi
28368
28369 if test "$have_libdps" = 'yes'; then
28370 LIBDPS_XT='-lXt'
28371 fi
28372 fi
28373 if test "$have_libdps" = 'yes'; then
28374 passed=`expr $passed + 1`
28375 else
28376 failed=`expr $failed + 1`
28377 fi
cristy8b350f62009-11-15 23:12:43 +000028378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028379$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028380if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028381 $as_echo_n "(cached) " >&6
28382else
28383 ac_check_lib_save_LIBS=$LIBS
28384LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028386/* end confdefs.h. */
28387
28388/* Override any GCC internal prototype to avoid an error.
28389 Use char because int might match the return type of a GCC
28390 builtin and then its argument prototype would still apply. */
28391#ifdef __cplusplus
28392extern "C"
28393#endif
28394char XDPSPixelsPerPoint ();
28395int
28396main ()
28397{
28398return XDPSPixelsPerPoint ();
28399 ;
28400 return 0;
28401}
28402_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028403if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028404 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28405else
cristy8b350f62009-11-15 23:12:43 +000028406 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028407fi
cristy8b350f62009-11-15 23:12:43 +000028408rm -f core conftest.err conftest.$ac_objext \
28409 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028410LIBS=$ac_check_lib_save_LIBS
28411fi
cristy8b350f62009-11-15 23:12:43 +000028412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028413$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028414if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028415 passed=`expr $passed + 1`
28416else
28417 failed=`expr $failed + 1`
28418fi
28419
cristy8b350f62009-11-15 23:12:43 +000028420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028421$as_echo_n "checking if DPS package is complete... " >&6; }
28422 if test $passed -gt 0; then
28423 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028424 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28425$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028426 have_dps='no (failed tests)'
28427 CPPFLAGS="$PERSIST_CPPFLAGS"
28428 else
28429 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28430 LIBS="$DPS_LIBS $LIBS"
28431
cristy8b350f62009-11-15 23:12:43 +000028432$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028433
cristy09b53e12011-10-14 12:47:22 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28435$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028436 have_dps='yes'
28437 fi
28438 else
cristy09b53e12011-10-14 12:47:22 +000028439 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28440$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028441 CPPFLAGS=$PERSIST_CPPFLAGS
28442 fi
28443fi
cristy73bd4a52010-10-05 11:24:23 +000028444 if test "$have_dps" = 'yes'; then
28445 DPS_DELEGATE_TRUE=
28446 DPS_DELEGATE_FALSE='#'
28447else
28448 DPS_DELEGATE_TRUE='#'
28449 DPS_DELEGATE_FALSE=
28450fi
28451
cristy3ed852e2009-09-05 21:47:34 +000028452
28453
28454
28455#
28456# Check for DJVU delegate library.
28457#
28458
28459# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028460if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028461 withval=$with_djvu; with_djvu=$withval
28462else
28463 with_djvu='yes'
28464fi
28465
28466
28467if test "$with_djvu" != 'yes'; then
28468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28469fi
28470
28471have_djvu='no'
28472DJVU_LIBS=''
28473if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028474 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28475$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028478 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28479$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028480 failed=0
28481 passed=0
cristy8b350f62009-11-15 23:12:43 +000028482 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 +000028483if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028484 passed=`expr $passed + 1`
28485else
28486 failed=`expr $failed + 1`
28487fi
28488
28489
cristy8b350f62009-11-15 23:12:43 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028492if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 $as_echo_n "(cached) " >&6
28494else
28495 ac_check_lib_save_LIBS=$LIBS
28496LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028498/* end confdefs.h. */
28499
28500/* Override any GCC internal prototype to avoid an error.
28501 Use char because int might match the return type of a GCC
28502 builtin and then its argument prototype would still apply. */
28503#ifdef __cplusplus
28504extern "C"
28505#endif
28506char ddjvu_context_create ();
28507int
28508main ()
28509{
28510return ddjvu_context_create ();
28511 ;
28512 return 0;
28513}
28514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028516 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28517else
cristy8b350f62009-11-15 23:12:43 +000028518 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028519fi
cristy8b350f62009-11-15 23:12:43 +000028520rm -f core conftest.err conftest.$ac_objext \
28521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028522LIBS=$ac_check_lib_save_LIBS
28523fi
cristy8b350f62009-11-15 23:12:43 +000028524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028526if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028527 passed=`expr $passed + 1`
28528else
28529 failed=`expr $failed + 1`
28530fi
28531
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo_n "checking if DJVU package is complete... " >&6; }
28534 if test $passed -gt 0; then
28535 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028536 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28537$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028538 have_djvu='no (failed tests)'
28539 else
28540 DJVU_LIBS='-ldjvulibre'
28541 LIBS="$DJVU_LIBS $LIBS"
28542
cristy8b350f62009-11-15 23:12:43 +000028543$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028544
cristy09b53e12011-10-14 12:47:22 +000028545 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28546$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028547 have_djvu='yes'
28548 fi
28549 else
cristy09b53e12011-10-14 12:47:22 +000028550 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28551$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028552 fi
28553fi
cristy73bd4a52010-10-05 11:24:23 +000028554 if test "$have_djvu" = 'yes'; then
28555 DJVU_DELEGATE_TRUE=
28556 DJVU_DELEGATE_FALSE='#'
28557else
28558 DJVU_DELEGATE_TRUE='#'
28559 DJVU_DELEGATE_FALSE=
28560fi
28561
cristy3ed852e2009-09-05 21:47:34 +000028562
28563
28564
28565#
cristy430a7312010-01-21 20:44:04 +000028566# Set DejaVu font directory.
28567#
28568
28569# Check whether --with-dejavu-font-dir was given.
28570if test "${with_dejavu_font_dir+set}" = set; then :
28571 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28572else
28573 with_dejavu_font_dir='default'
28574fi
28575
28576
28577if test "$with_dejavu_font_dir" != 'default'; then
28578 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28579fi
28580
28581
28582#
cristy3ed852e2009-09-05 21:47:34 +000028583# Check for FFTW delegate library.
28584#
28585
28586# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028587if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028588 withval=$with_fftw; with_fftw=$withval
28589else
28590 with_fftw='yes'
28591fi
28592
28593
28594if test "$with_fftw" != 'yes'; then
28595 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28596fi
28597
cristy81beccd2011-10-03 18:17:24 +000028598have_fftw='no'
28599FFTW_LIBS=''
28600if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028601 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28602$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28604$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028605 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28606$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028607 failed=0
28608 passed=0
28609 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28610if test "x$ac_cv_header_fftw3_h" = xyes; then :
28611 passed=`expr $passed + 1`
28612else
28613 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028614fi
28615
cristy81beccd2011-10-03 18:17:24 +000028616
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28618$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28619if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28620 $as_echo_n "(cached) " >&6
28621else
28622 ac_check_lib_save_LIBS=$LIBS
28623LIBS="-lfftw3 $LIBS"
28624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28625/* end confdefs.h. */
28626
28627/* Override any GCC internal prototype to avoid an error.
28628 Use char because int might match the return type of a GCC
28629 builtin and then its argument prototype would still apply. */
28630#ifdef __cplusplus
28631extern "C"
28632#endif
28633char fftw_execute ();
28634int
28635main ()
28636{
28637return fftw_execute ();
28638 ;
28639 return 0;
28640}
28641_ACEOF
28642if ac_fn_c_try_link "$LINENO"; then :
28643 ac_cv_lib_fftw3_fftw_execute=yes
28644else
28645 ac_cv_lib_fftw3_fftw_execute=no
28646fi
28647rm -f core conftest.err conftest.$ac_objext \
28648 conftest$ac_exeext conftest.$ac_ext
28649LIBS=$ac_check_lib_save_LIBS
28650fi
28651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28652$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28653if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28654 passed=`expr $passed + 1`
28655else
28656 failed=`expr $failed + 1`
28657fi
28658
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28660$as_echo_n "checking if FFTW package is complete... " >&6; }
28661 if test $passed -gt 0; then
28662 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028663 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28664$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028665 have_fftw='no (failed tests)'
28666 else
28667 FFTW_LIBS='-lfftw3'
28668 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028669
cristy8b350f62009-11-15 23:12:43 +000028670$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028671
cristy09b53e12011-10-14 12:47:22 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28673$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028674 have_fftw='yes'
28675 fi
28676 else
cristy09b53e12011-10-14 12:47:22 +000028677 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28678$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028679 fi
28680fi
cristy73bd4a52010-10-05 11:24:23 +000028681 if test "$have_fftw" = 'yes'; then
28682 FFTW_DELEGATE_TRUE=
28683 FFTW_DELEGATE_FALSE='#'
28684else
28685 FFTW_DELEGATE_TRUE='#'
28686 FFTW_DELEGATE_FALSE=
28687fi
28688
cristy3ed852e2009-09-05 21:47:34 +000028689
28690
28691
28692#
28693# Check for FlashPIX delegate library.
28694#
28695
28696# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028697if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028698 withval=$with_fpx; with_fpx=$withval
28699else
28700 with_fpx='yes'
28701fi
28702
28703
28704if test "$with_fpx" != 'yes'; then
28705 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28706fi
28707
28708have_fpx='no'
28709FPX_LIBS=''
28710if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028711 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28712$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028714$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028715 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28716$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028717 failed=0
28718 passed=0
28719 ac_ext=cpp
28720ac_cpp='$CXXCPP $CPPFLAGS'
28721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28724
28725
cristy8b350f62009-11-15 23:12:43 +000028726ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028727if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028728 passed=`expr $passed + 1`
28729else
28730 failed=`expr $failed + 1`
28731fi
28732
28733
cristy8b350f62009-11-15 23:12:43 +000028734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028735$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028736if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028737 $as_echo_n "(cached) " >&6
28738else
28739 ac_check_lib_save_LIBS=$LIBS
28740LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028742/* end confdefs.h. */
28743
28744/* Override any GCC internal prototype to avoid an error.
28745 Use char because int might match the return type of a GCC
28746 builtin and then its argument prototype would still apply. */
28747#ifdef __cplusplus
28748extern "C"
28749#endif
28750char FPX_OpenImageByFilename ();
28751int
28752main ()
28753{
28754return FPX_OpenImageByFilename ();
28755 ;
28756 return 0;
28757}
28758_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028759if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028760 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28761else
cristy8b350f62009-11-15 23:12:43 +000028762 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028763fi
cristy8b350f62009-11-15 23:12:43 +000028764rm -f core conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028766LIBS=$ac_check_lib_save_LIBS
28767fi
cristy8b350f62009-11-15 23:12:43 +000028768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028769$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028770if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028771 passed=`expr $passed + 1`
28772else
28773 failed=`expr $failed + 1`
28774fi
28775
28776 ac_ext=c
28777ac_cpp='$CPP $CPPFLAGS'
28778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28780ac_compiler_gnu=$ac_cv_c_compiler_gnu
28781
cristy8b350f62009-11-15 23:12:43 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28784 if test $passed -gt 0; then
28785 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028786 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28787$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028788 have_fpx='no (failed tests)'
28789 else
28790 FPX_LIBS='-lfpx'
28791
cristy8b350f62009-11-15 23:12:43 +000028792$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028793
cristy09b53e12011-10-14 12:47:22 +000028794 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28795$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028796 have_fpx='yes'
28797 PERLMAINCC="$CXX"
28798 fi
28799 else
cristy09b53e12011-10-14 12:47:22 +000028800 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28801$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028802 fi
28803fi
cristy73bd4a52010-10-05 11:24:23 +000028804 if test "$have_fpx" = 'yes'; then
28805 FPX_DELEGATE_TRUE=
28806 FPX_DELEGATE_FALSE='#'
28807else
28808 FPX_DELEGATE_TRUE='#'
28809 FPX_DELEGATE_FALSE=
28810fi
28811
cristy3ed852e2009-09-05 21:47:34 +000028812
28813
28814
28815#
28816# Check for fontconfig delegate library.
28817#
28818
28819# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028820if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028821 withval=$with_fontconfig; with_fontconfig=$withval
28822else
cristyfc3d0222012-02-07 15:05:57 +000028823 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028824fi
28825
28826
28827if test "$with_fontconfig" != 'yes'; then
28828 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28829fi
28830
28831have_fontconfig='no'
28832FONTCONFIG_CFLAGS=""
28833FONTCONFIG_LIBS=""
28834FONTCONFIG_PKG=""
28835if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028836 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28837$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028838
28839pkg_failed=no
28840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28841$as_echo_n "checking for FONTCONFIG... " >&6; }
28842
28843if test -n "$FONTCONFIG_CFLAGS"; then
28844 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28845 elif test -n "$PKG_CONFIG"; then
28846 if test -n "$PKG_CONFIG" && \
28847 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28848 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28849 ac_status=$?
28850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28851 test $ac_status = 0; }; then
28852 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28853else
28854 pkg_failed=yes
28855fi
28856 else
28857 pkg_failed=untried
28858fi
28859if test -n "$FONTCONFIG_LIBS"; then
28860 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28861 elif test -n "$PKG_CONFIG"; then
28862 if test -n "$PKG_CONFIG" && \
28863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28864 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28865 ac_status=$?
28866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867 test $ac_status = 0; }; then
28868 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28869else
28870 pkg_failed=yes
28871fi
28872 else
28873 pkg_failed=untried
28874fi
28875
28876
28877
28878if test $pkg_failed = yes; then
28879
28880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28881 _pkg_short_errors_supported=yes
28882else
28883 _pkg_short_errors_supported=no
28884fi
28885 if test $_pkg_short_errors_supported = yes; then
28886 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28887 else
28888 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28889 fi
28890 # Put the nasty error message in config.log where it belongs
28891 echo "$FONTCONFIG_PKG_ERRORS" >&5
28892
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28894$as_echo "no" >&6; }
28895 have_fontconfig=no
28896elif test $pkg_failed = untried; then
28897 have_fontconfig=no
28898else
28899 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28900 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28902$as_echo "yes" >&6; }
28903 have_fontconfig=yes
28904fi
cristy09b53e12011-10-14 12:47:22 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28906$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028907fi
28908
28909if test "$have_fontconfig" = 'yes'; then
28910
cristy8b350f62009-11-15 23:12:43 +000028911$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028912
cristyd09bcf92010-03-25 03:04:45 +000028913 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028914 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028915 fi
cristy3ed852e2009-09-05 21:47:34 +000028916fi
28917
cristy73bd4a52010-10-05 11:24:23 +000028918 if test "$have_fontconfig" = 'yes'; then
28919 FONTCONFIG_DELEGATE_TRUE=
28920 FONTCONFIG_DELEGATE_FALSE='#'
28921else
28922 FONTCONFIG_DELEGATE_TRUE='#'
28923 FONTCONFIG_DELEGATE_FALSE=
28924fi
28925
cristy3ed852e2009-09-05 21:47:34 +000028926
28927
28928
28929
28930#
cristy81beccd2011-10-03 18:17:24 +000028931# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028932#
28933
28934# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028935if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 withval=$with_freetype; with_freetype=$withval
28937else
28938 with_freetype='yes'
28939fi
28940
28941
cristy81beccd2011-10-03 18:17:24 +000028942
cristy3ed852e2009-09-05 21:47:34 +000028943if test "$with_freetype" != 'yes'; then
28944 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28945fi
28946
cristy81beccd2011-10-03 18:17:24 +000028947have_freetype='no'
28948FREETYPE_LIBS=''
28949if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028950 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28951$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28953$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28955$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028956 failed=0
28957 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028958 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028959 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028960 freetype_config=''
28961 # Allow the user to specify the location of freetype.
28962 if test "$with_freetype" != 'yes'; then
28963 if test -x "${with_freetype}/bin/freetype-config"; then
28964 freetype_config="${with_freetype}/bin/freetype-config"
28965 elif test -x "${with_freetype}"; then
28966 freetype_config=${with_freetype}
28967 fi
28968 fi
28969 if test -z "$freetype_config"; then
28970 # Extract the first word of "freetype-config", so it can be a program name with args.
28971set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28973$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028974if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028975 $as_echo_n "(cached) " >&6
28976else
cristy98ca0f52011-10-08 23:19:10 +000028977 case $freetype_config in
28978 [\\/]* | ?:[\\/]*)
28979 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28980 ;;
28981 *)
28982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028983for as_dir in $PATH
28984do
28985 IFS=$as_save_IFS
28986 test -z "$as_dir" && as_dir=.
28987 for ac_exec_ext in '' $ac_executable_extensions; do
28988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy98ca0f52011-10-08 23:19:10 +000028989 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28991 break 2
28992 fi
28993done
28994 done
28995IFS=$as_save_IFS
28996
cristy98ca0f52011-10-08 23:19:10 +000028997 ;;
28998esac
cristy81beccd2011-10-03 18:17:24 +000028999fi
cristy98ca0f52011-10-08 23:19:10 +000029000freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029001if test -n "$freetype_config"; then
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29003$as_echo "$freetype_config" >&6; }
29004else
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29006$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029007fi
29008
cristy98ca0f52011-10-08 23:19:10 +000029009 fi
29010 if test -n "$freetype_config"; then
29011 freetype_prefix=`${freetype_config} --prefix`
29012 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29013 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29014 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029015 fi
29016
29017 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029019$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29020if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29021 $as_echo_n "(cached) " >&6
29022else
29023 ac_check_lib_save_LIBS=$LIBS
29024LIBS="-lfreetype $LIBS"
29025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29026/* end confdefs.h. */
29027
29028/* Override any GCC internal prototype to avoid an error.
29029 Use char because int might match the return type of a GCC
29030 builtin and then its argument prototype would still apply. */
29031#ifdef __cplusplus
29032extern "C"
29033#endif
29034char FT_Init_FreeType ();
29035int
29036main ()
29037{
29038return FT_Init_FreeType ();
29039 ;
29040 return 0;
29041}
29042_ACEOF
29043if ac_fn_c_try_link "$LINENO"; then :
29044 ac_cv_lib_freetype_FT_Init_FreeType=yes
29045else
29046 ac_cv_lib_freetype_FT_Init_FreeType=no
29047fi
29048rm -f core conftest.err conftest.$ac_objext \
29049 conftest$ac_exeext conftest.$ac_ext
29050LIBS=$ac_check_lib_save_LIBS
29051fi
29052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29053$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29054if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29055 FREETYPE_LIBS='-lfreetype'
29056fi
29057
cristy98ca0f52011-10-08 23:19:10 +000029058 if test "$FREETYPE_LIBS" != ''; then
29059 passed=`expr $passed + 1`
29060 else
29061 failed=`expr $failed + 1`
29062 LDFLAGS="$PERSIST_LDFLAGS"
29063 fi
cristy81beccd2011-10-03 18:17:24 +000029064 fi
29065
29066 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29067if test "x$ac_cv_header_ft2build_h" = xyes; then :
29068 FT2BUILD_H='#include <ft2build.h>'
29069else
29070 ft2build=''
29071fi
29072
29073
29074 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29075"
29076if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29077 have_freetype_h='yes'
29078else
29079 have_freetype_h='no'
29080fi
29081
29082
cristy98ca0f52011-10-08 23:19:10 +000029083 if test "$have_freetype_h" = 'yes'; then
29084 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029085 else
cristy98ca0f52011-10-08 23:19:10 +000029086 failed=`expr $failed + 1`
29087 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029088 fi
29089
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29091$as_echo_n "checking if FreeType package is complete... " >&6; }
29092 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029093 if test $failed -gt 0; then
29094 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029095 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29096$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029097 have_freetype='no (failed tests)'
29098 else
29099 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029100
cristy8b350f62009-11-15 23:12:43 +000029101$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029102
cristy98ca0f52011-10-08 23:19:10 +000029103 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029104
29105$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29106
cristy81beccd2011-10-03 18:17:24 +000029107 fi
cristy09b53e12011-10-14 12:47:22 +000029108 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29109$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029110 have_freetype='yes'
29111 fi
cristy81beccd2011-10-03 18:17:24 +000029112 else
cristy09b53e12011-10-14 12:47:22 +000029113 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29114$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029115 fi
29116fi
cristy73bd4a52010-10-05 11:24:23 +000029117 if test "$have_freetype" = 'yes'; then
29118 FREETYPE_DELEGATE_TRUE=
29119 FREETYPE_DELEGATE_FALSE='#'
29120else
29121 FREETYPE_DELEGATE_TRUE='#'
29122 FREETYPE_DELEGATE_FALSE=
29123fi
29124
cristy3ed852e2009-09-05 21:47:34 +000029125
29126
29127
cristy3ed852e2009-09-05 21:47:34 +000029128#
29129# Check for Ghostscript library or framework.
29130#
29131# Test for iapi.h & test for gsapi_new_instance in -lgs
29132# or -framework Ghostscript
29133
29134
29135# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029136if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029137 withval=$with_gslib; with_gslib=$withval
29138else
29139 with_gslib='no'
29140fi
29141
29142
cristyb7931f12009-09-25 10:22:21 +000029143gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029144if test "$with_gslib" != 'yes'; then
29145 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29146fi
29147
29148have_gslib='no'
29149GS_LIBS=''
29150if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029151 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29152$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029154$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29156$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029157 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029158 failed=0
29159 passed=0
cristy8b350f62009-11-15 23:12:43 +000029160 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 +000029161if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029162 passed=`expr $passed + 1`
29163else
29164 failed=`expr $failed + 1`
29165fi
29166
29167
cristy8b350f62009-11-15 23:12:43 +000029168 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 +000029169if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029170 passed=`expr $passed + 1`
29171else
29172 failed=`expr $failed + 1`
29173fi
29174
29175
cristy73bd4a52010-10-05 11:24:23 +000029176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29177$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029178if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029179 $as_echo_n "(cached) " >&6
29180else
29181 ac_check_framework_save_LIBS=$LIBS
29182LIBS="-framework Ghostscript $LIBS"
29183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29184/* end confdefs.h. */
29185
29186/* Override any GCC internal prototype to avoid an error.
29187 Use char because int might match the return type of a GCC
29188 builtin and then its argument prototype would still apply. */
29189#ifdef __cplusplus
29190extern "C"
29191#endif
29192char gsapi_new_instance ();
29193int
29194main ()
29195{
29196return gsapi_new_instance ();
29197 ;
29198 return 0;
29199}
29200_ACEOF
29201if ac_fn_c_try_link "$LINENO"; then :
29202 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29203else
29204 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29205fi
29206rm -f core conftest.err conftest.$ac_objext \
29207 conftest$ac_exeext conftest.$ac_ext
29208LIBS=$ac_check_framework_save_LIBS
29209fi
29210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29211$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29212if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29213 framework=`expr $framework + 1`
29214else
29215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029216$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029217if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029218 $as_echo_n "(cached) " >&6
29219else
29220 ac_check_lib_save_LIBS=$LIBS
29221LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029223/* end confdefs.h. */
29224
29225/* Override any GCC internal prototype to avoid an error.
29226 Use char because int might match the return type of a GCC
29227 builtin and then its argument prototype would still apply. */
29228#ifdef __cplusplus
29229extern "C"
29230#endif
29231char gsapi_new_instance ();
29232int
29233main ()
29234{
29235return gsapi_new_instance ();
29236 ;
29237 return 0;
29238}
29239_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029240if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029241 ac_cv_lib_gs_gsapi_new_instance=yes
29242else
cristy8b350f62009-11-15 23:12:43 +000029243 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029244fi
cristy8b350f62009-11-15 23:12:43 +000029245rm -f core conftest.err conftest.$ac_objext \
29246 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029247LIBS=$ac_check_lib_save_LIBS
29248fi
cristy8b350f62009-11-15 23:12:43 +000029249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029250$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029251if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029252 passed=`expr $passed + 1`
29253else
29254 failed=`expr $failed + 1`
29255fi
cristy73bd4a52010-10-05 11:24:23 +000029256
29257fi
cristy8b350f62009-11-15 23:12:43 +000029258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029259$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29260 if test $passed -gt 0; then
29261 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029262 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29263$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029264 have_gslib='no (failed tests)'
29265 else
29266 if test $framework -gt 0; then
29267 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029268 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029269 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29270$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029271 else
cristy09b53e12011-10-14 12:47:22 +000029272 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29273$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029274 GS_LIBS='-lgs'
29275 fi
29276 LIBS="$GS_LIBS $LIBS"
29277
cristy8b350f62009-11-15 23:12:43 +000029278$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029279
29280 have_gslib='yes'
29281 fi
29282 else
cristy09b53e12011-10-14 12:47:22 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29284$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029285 fi
29286fi
cristy73bd4a52010-10-05 11:24:23 +000029287 if test "$have_gslib" = 'yes'; then
29288 GS_DELEGATE_TRUE=
29289 GS_DELEGATE_FALSE='#'
29290else
29291 GS_DELEGATE_TRUE='#'
29292 GS_DELEGATE_FALSE=
29293fi
29294
cristy3ed852e2009-09-05 21:47:34 +000029295
29296
29297# Set default font search path
29298
29299# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029300if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029301 withval=$with_fontpath; with_fontpath=$withval
29302else
29303 with_fontpath=''
29304fi
29305
29306
29307if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29308 with_fontpath=''
29309else
29310
29311cat >>confdefs.h <<_ACEOF
29312#define MAGICK_FONT_PATH "$with_fontpath"
29313_ACEOF
29314
29315fi
29316if test "$with_fontpath=" != ''; then
29317 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29318fi
29319
29320# Set Ghostscript font directory
29321
29322# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029323if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029324 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29325else
29326 with_gs_font_dir='default'
29327fi
29328
29329
29330if test "$with_gs_font_dir" != 'default'; then
29331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29332fi
29333
29334
29335#
29336# Check for GVC delegate library.
29337#
29338
29339# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029340if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029341 withval=$with_gvc; with_gvc=$withval
29342else
29343 with_gvc='yes'
29344fi
29345
29346
29347if test "$with_gvc" != 'yes'; then
29348 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29349fi
29350
29351GVC_PKG=""
29352if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029353 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29354$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029355
29356pkg_failed=no
29357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29358$as_echo_n "checking for GVC... " >&6; }
29359
29360if test -n "$GVC_CFLAGS"; then
29361 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29362 elif test -n "$PKG_CONFIG"; then
29363 if test -n "$PKG_CONFIG" && \
29364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29365 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29366 ac_status=$?
29367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29368 test $ac_status = 0; }; then
29369 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29370else
29371 pkg_failed=yes
29372fi
29373 else
29374 pkg_failed=untried
29375fi
29376if test -n "$GVC_LIBS"; then
29377 pkg_cv_GVC_LIBS="$GVC_LIBS"
29378 elif test -n "$PKG_CONFIG"; then
29379 if test -n "$PKG_CONFIG" && \
29380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29381 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29382 ac_status=$?
29383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29384 test $ac_status = 0; }; then
29385 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29386else
29387 pkg_failed=yes
29388fi
29389 else
29390 pkg_failed=untried
29391fi
29392
29393
29394
29395if test $pkg_failed = yes; then
29396
29397if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29398 _pkg_short_errors_supported=yes
29399else
29400 _pkg_short_errors_supported=no
29401fi
29402 if test $_pkg_short_errors_supported = yes; then
29403 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29404 else
29405 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29406 fi
29407 # Put the nasty error message in config.log where it belongs
29408 echo "$GVC_PKG_ERRORS" >&5
29409
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29411$as_echo "no" >&6; }
29412 have_gvc=no
29413elif test $pkg_failed = untried; then
29414 have_gvc=no
29415else
29416 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29417 GVC_LIBS=$pkg_cv_GVC_LIBS
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29419$as_echo "yes" >&6; }
29420 have_gvc=yes
29421fi
cristy09b53e12011-10-14 12:47:22 +000029422 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29423$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029424fi
29425
29426if test "$have_gvc" = 'yes'; then
29427
cristy8b350f62009-11-15 23:12:43 +000029428$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029429
29430 if test "$with_modules" = 'no'; then
29431 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29432 fi
29433fi
29434
cristy73bd4a52010-10-05 11:24:23 +000029435 if test "$have_gvc" = 'yes'; then
29436 GVC_DELEGATE_TRUE=
29437 GVC_DELEGATE_FALSE='#'
29438else
29439 GVC_DELEGATE_TRUE='#'
29440 GVC_DELEGATE_FALSE=
29441fi
29442
cristy3ed852e2009-09-05 21:47:34 +000029443
29444
29445
29446
29447#
29448# Check for JBIG delegate library.
29449#
29450
29451
29452# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029453if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029454 withval=$with_jbig; with_jbig=$withval
29455else
29456 with_jbig='yes'
29457fi
29458
29459
29460have_jbig='no'
29461JBIG_LIBS=''
29462if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29464$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029466$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029467 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29468$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029469 failed=0
29470 passed=0
cristy8b350f62009-11-15 23:12:43 +000029471 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029472if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029473 passed=`expr $passed + 1`
29474else
29475 failed=`expr $failed + 1`
29476fi
29477
29478
cristy8b350f62009-11-15 23:12:43 +000029479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029480$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029481if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029482 $as_echo_n "(cached) " >&6
29483else
29484 ac_check_lib_save_LIBS=$LIBS
29485LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029487/* end confdefs.h. */
29488
29489/* Override any GCC internal prototype to avoid an error.
29490 Use char because int might match the return type of a GCC
29491 builtin and then its argument prototype would still apply. */
29492#ifdef __cplusplus
29493extern "C"
29494#endif
29495char jbg_dec_init ();
29496int
29497main ()
29498{
29499return jbg_dec_init ();
29500 ;
29501 return 0;
29502}
29503_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029504if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029505 ac_cv_lib_jbig_jbg_dec_init=yes
29506else
cristy8b350f62009-11-15 23:12:43 +000029507 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029508fi
cristy8b350f62009-11-15 23:12:43 +000029509rm -f core conftest.err conftest.$ac_objext \
29510 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029511LIBS=$ac_check_lib_save_LIBS
29512fi
cristy8b350f62009-11-15 23:12:43 +000029513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029514$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029515if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029516 passed=`expr $passed + 1`
29517else
29518 failed=`expr $failed + 1`
29519fi
29520
cristy8b350f62009-11-15 23:12:43 +000029521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029522$as_echo_n "checking if JBIG package is complete... " >&6; }
29523 if test $passed -gt 0; then
29524 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29526$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029527 have_jbig='no (failed tests)'
29528 else
29529 JBIG_LIBS='-ljbig'
29530 LIBS="$JBIG_LIBS $LIBS"
29531
cristy8b350f62009-11-15 23:12:43 +000029532$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029533
cristy09b53e12011-10-14 12:47:22 +000029534 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29535$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029536 have_jbig='yes'
29537 fi
29538 else
cristy09b53e12011-10-14 12:47:22 +000029539 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29540$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029541 fi
29542fi
cristy73bd4a52010-10-05 11:24:23 +000029543 if test "$have_jbig" = 'yes'; then
29544 JBIG_DELEGATE_TRUE=
29545 JBIG_DELEGATE_FALSE='#'
29546else
29547 JBIG_DELEGATE_TRUE='#'
29548 JBIG_DELEGATE_FALSE=
29549fi
29550
cristy3ed852e2009-09-05 21:47:34 +000029551
29552
29553
29554#
29555# Check for JPEG delegate library.
29556#
29557
29558# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029559if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029560 withval=$with_jpeg; with_jpeg=$withval
29561else
29562 with_jpeg='yes'
29563fi
29564
29565
29566if test "$with_jpeg" != 'yes'; then
29567 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29568fi
29569
29570have_jpeg='no'
29571JPEG_LIBS=''
29572if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029573 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29574$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029576$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029577 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29578$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029579 failed=0
29580 passed=0
cristy8b350f62009-11-15 23:12:43 +000029581 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029582if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029583 passed=`expr $passed + 1`
29584else
29585 failed=`expr $failed + 1`
29586fi
29587
29588
cristy8b350f62009-11-15 23:12:43 +000029589 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029590if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029591 passed=`expr $passed + 1`
29592else
29593 failed=`expr $failed + 1`
29594fi
29595
29596
cristy8b350f62009-11-15 23:12:43 +000029597 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029598if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029599 passed=`expr $passed + 1`
29600else
29601 failed=`expr $failed + 1`
29602fi
29603
29604
cristy8b350f62009-11-15 23:12:43 +000029605 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029606if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029607 passed=`expr $passed + 1`
29608else
29609 failed=`expr $failed + 1`
29610fi
29611
29612
cristy8b350f62009-11-15 23:12:43 +000029613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029614$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029615if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029616 $as_echo_n "(cached) " >&6
29617else
29618 ac_check_lib_save_LIBS=$LIBS
29619LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029621/* end confdefs.h. */
29622
29623/* Override any GCC internal prototype to avoid an error.
29624 Use char because int might match the return type of a GCC
29625 builtin and then its argument prototype would still apply. */
29626#ifdef __cplusplus
29627extern "C"
29628#endif
29629char jpeg_read_header ();
29630int
29631main ()
29632{
29633return jpeg_read_header ();
29634 ;
29635 return 0;
29636}
29637_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029638if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029639 ac_cv_lib_jpeg_jpeg_read_header=yes
29640else
cristy8b350f62009-11-15 23:12:43 +000029641 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029642fi
cristy8b350f62009-11-15 23:12:43 +000029643rm -f core conftest.err conftest.$ac_objext \
29644 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029645LIBS=$ac_check_lib_save_LIBS
29646fi
cristy8b350f62009-11-15 23:12:43 +000029647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029648$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029649if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029650 passed=`expr $passed + 1`
29651else
29652 failed=`expr $failed + 1`
29653fi
29654
29655
29656# Test for compatible JPEG library
29657if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029659$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029660if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029661 $as_echo_n "(cached) " >&6
29662else
cristy8b350f62009-11-15 23:12:43 +000029663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029664/* end confdefs.h. */
29665#include <stdio.h>
29666#include <stdlib.h>
29667#include <jpeglib.h>
29668
29669int
29670main ()
29671{
29672
29673#if JPEG_LIB_VERSION < 62
29674#error IJG JPEG library must be version 6b or newer!
29675#endif
29676return 0;
29677
29678 ;
29679 return 0;
29680}
29681_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029682if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029683 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29684else
cristy8b350f62009-11-15 23:12:43 +000029685 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029686fi
cristy3ed852e2009-09-05 21:47:34 +000029687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29688fi
cristy8b350f62009-11-15 23:12:43 +000029689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029690$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29691fi
cristy8b350f62009-11-15 23:12:43 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029693$as_echo_n "checking if JPEG package is complete... " >&6; }
29694 if test $passed -gt 0; then
29695 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29697$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029698 have_jpeg='no (failed tests)'
29699 else
29700 JPEG_LIBS='-ljpeg'
29701 LIBS="$JPEG_LIBS $LIBS"
29702
cristy8b350f62009-11-15 23:12:43 +000029703$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029704
cristy09b53e12011-10-14 12:47:22 +000029705 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29706$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029707 have_jpeg='yes'
29708 fi
29709 else
cristy09b53e12011-10-14 12:47:22 +000029710 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29711$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029712 fi
29713fi
cristy73bd4a52010-10-05 11:24:23 +000029714 if test "$have_jpeg" = 'yes'; then
29715 JPEG_DELEGATE_TRUE=
29716 JPEG_DELEGATE_FALSE='#'
29717else
29718 JPEG_DELEGATE_TRUE='#'
29719 JPEG_DELEGATE_FALSE=
29720fi
29721
cristy3ed852e2009-09-05 21:47:34 +000029722
29723
29724
29725#
29726# Check for JPEG Version 2 delegate library.
29727#
29728
29729# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029730if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029731 withval=$with_jp2; with_jp2=$withval
29732else
29733 with_jp2='yes'
29734fi
29735
29736
29737if test "$with_jp2" != 'yes'; then
29738 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29739fi
29740
29741have_jp2='no'
29742JP2_LIBS=''
29743if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029744 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29745$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029747$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029748 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29749$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029750 failed=0
29751 passed=0
cristy8b350f62009-11-15 23:12:43 +000029752 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 +000029753if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 passed=`expr $passed + 1`
29755else
29756 failed=`expr $failed + 1`
29757fi
29758
29759
cristy8b350f62009-11-15 23:12:43 +000029760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029761$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029762if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029763 $as_echo_n "(cached) " >&6
29764else
29765 ac_check_lib_save_LIBS=$LIBS
29766LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029768/* end confdefs.h. */
29769
29770/* Override any GCC internal prototype to avoid an error.
29771 Use char because int might match the return type of a GCC
29772 builtin and then its argument prototype would still apply. */
29773#ifdef __cplusplus
29774extern "C"
29775#endif
29776char jas_stream_fopen ();
29777int
29778main ()
29779{
29780return jas_stream_fopen ();
29781 ;
29782 return 0;
29783}
29784_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029785if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029786 ac_cv_lib_jasper_jas_stream_fopen=yes
29787else
cristy8b350f62009-11-15 23:12:43 +000029788 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029789fi
cristy8b350f62009-11-15 23:12:43 +000029790rm -f core conftest.err conftest.$ac_objext \
29791 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029792LIBS=$ac_check_lib_save_LIBS
29793fi
cristy8b350f62009-11-15 23:12:43 +000029794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029795$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029796if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029797 passed=`expr $passed + 1`
29798else
29799 failed=`expr $failed + 1`
29800fi
29801
cristy8b350f62009-11-15 23:12:43 +000029802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029803$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29804 if test $passed -gt 0; then
29805 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029806 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29807$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029808 have_jp2='no (failed tests)'
29809 else
29810 JP2_LIBS='-ljasper'
29811 LIBS="$JP2_LIBS $LIBS"
29812
cristy8b350f62009-11-15 23:12:43 +000029813$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029814
cristy09b53e12011-10-14 12:47:22 +000029815 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29816$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029817 have_jp2='yes'
29818 fi
29819 else
cristy09b53e12011-10-14 12:47:22 +000029820 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29821$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029822 fi
29823fi
cristy73bd4a52010-10-05 11:24:23 +000029824 if test "$have_jp2" = 'yes'; then
29825 JP2_DELEGATE_TRUE=
29826 JP2_DELEGATE_FALSE='#'
29827else
29828 JP2_DELEGATE_TRUE='#'
29829 JP2_DELEGATE_FALSE=
29830fi
29831
cristy3ed852e2009-09-05 21:47:34 +000029832
29833
29834
29835#
29836# Check for LCMS delegate library.
29837#
cristy71203402010-06-18 13:12:03 +000029838# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029839
29840# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029841if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029842 withval=$with_lcms; with_lcms=$withval
29843else
29844 with_lcms='yes'
29845fi
29846
cristy71203402010-06-18 13:12:03 +000029847if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029848 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29849fi
29850
cristy71203402010-06-18 13:12:03 +000029851# Disable LCMS2.
29852
29853# Check whether --with-lcms2 was given.
29854if test "${with_lcms2+set}" = set; then :
29855 withval=$with_lcms2; with_lcms2=$withval
29856else
29857 with_lcms2='yes'
29858fi
29859
29860if test "$with_lcms2" != 'yes' ; then
29861 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29862fi
29863
29864have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029865LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029866if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029867 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29868$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29870$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029871 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29872$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029873 failed=0
29874 passed=0
29875 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029876
29877 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029878 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029879if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029880 have_lcms_header='yes'
29881fi
29882
29883
29884 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029885
29886$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29887
cristy71203402010-06-18 13:12:03 +000029888 passed=`expr $passed + 1`
29889 fi
29890
29891 # Check for <lcms2/lcms2.h)
29892 if test "$have_lcms_header" != 'yes'; then
29893 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 +000029894if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029895 have_lcms_header='yes'
29896fi
29897
29898
cristy71203402010-06-18 13:12:03 +000029899 if test "$have_lcms_header" = 'yes'; then
29900 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029901
cristy71203402010-06-18 13:12:03 +000029902$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029903
cristy71203402010-06-18 13:12:03 +000029904 fi
cristyd09bcf92010-03-25 03:04:45 +000029905 fi
cristy71203402010-06-18 13:12:03 +000029906
29907 # Failed to find lcms header?
29908 if test "$have_lcms_header" != 'yes'; then
29909 failed=`expr $failed + 1`
29910 fi
29911
29912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29913$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029914if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029915 $as_echo_n "(cached) " >&6
29916else
29917 ac_check_lib_save_LIBS=$LIBS
29918LIBS="-llcms2 $LIBS"
29919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29920/* end confdefs.h. */
29921
29922/* Override any GCC internal prototype to avoid an error.
29923 Use char because int might match the return type of a GCC
29924 builtin and then its argument prototype would still apply. */
29925#ifdef __cplusplus
29926extern "C"
29927#endif
cristy71203402010-06-18 13:12:03 +000029928char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029929int
29930main ()
29931{
cristy71203402010-06-18 13:12:03 +000029932return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029933 ;
29934 return 0;
29935}
29936_ACEOF
29937if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029938 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029939else
cristy71203402010-06-18 13:12:03 +000029940 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029941fi
29942rm -f core conftest.err conftest.$ac_objext \
29943 conftest$ac_exeext conftest.$ac_ext
29944LIBS=$ac_check_lib_save_LIBS
29945fi
cristy71203402010-06-18 13:12:03 +000029946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29947$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029948if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029949 passed=`expr $passed + 1`
29950else
29951 failed=`expr $failed + 1`
29952fi
29953
cristy71203402010-06-18 13:12:03 +000029954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29955$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029956 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029957 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029958 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29959$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029960 have_lcms2='no (failed tests)'
29961 else
29962 LCMS_LIBS='-llcms2'
29963 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029964 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29965$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029966 have_lcms2='yes'
29967 fi
cristyd09bcf92010-03-25 03:04:45 +000029968 else
cristy09b53e12011-10-14 12:47:22 +000029969 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29970$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029971 fi
29972fi
29973
cristy71203402010-06-18 13:12:03 +000029974#
29975# Check for LCMS v1 (1.11 or later)
29976#
29977if test $have_lcms2 = 'yes'; then
29978 with_lcms='no'
29979fi
29980
29981have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029982if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029983 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29984$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29986$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029987 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29988$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029989 failed=0
29990 passed=0
29991 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029992
29993 # Check for <lcms.h>
29994 if test "$have_lcms_header" != 'yes'; then
29995 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029996if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029997 have_lcms_header='yes'
29998fi
29999
30000
cristy71203402010-06-18 13:12:03 +000030001 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030002 passed=`expr $passed + 1`
30003
cristy8b350f62009-11-15 23:12:43 +000030004$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030005
cristy71203402010-06-18 13:12:03 +000030006 fi
30007 fi
30008
30009 # Check for <lcms/lcms.h>
30010 if test "$have_lcms_header" != 'yes'; then
30011 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 +000030012if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030013 have_lcms_header='yes'
30014fi
30015
30016
cristy71203402010-06-18 13:12:03 +000030017 if test "$have_lcms_header" = 'yes'; then
30018 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030019
cristy8b350f62009-11-15 23:12:43 +000030020$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030021
cristy71203402010-06-18 13:12:03 +000030022 fi
cristy3ed852e2009-09-05 21:47:34 +000030023 fi
cristy71203402010-06-18 13:12:03 +000030024
30025 # Failed to find lcms header?
30026 if test "$have_lcms_header" != 'yes'; then
30027 failed=`expr $failed + 1`
30028 fi
30029
30030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30031$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030032if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030033 $as_echo_n "(cached) " >&6
30034else
30035 ac_check_lib_save_LIBS=$LIBS
30036LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030038/* end confdefs.h. */
30039
30040/* Override any GCC internal prototype to avoid an error.
30041 Use char because int might match the return type of a GCC
30042 builtin and then its argument prototype would still apply. */
30043#ifdef __cplusplus
30044extern "C"
30045#endif
cristy71203402010-06-18 13:12:03 +000030046char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030047int
30048main ()
30049{
cristy71203402010-06-18 13:12:03 +000030050return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030051 ;
30052 return 0;
30053}
30054_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030055if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030056 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030057else
cristy71203402010-06-18 13:12:03 +000030058 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030059fi
cristy8b350f62009-11-15 23:12:43 +000030060rm -f core conftest.err conftest.$ac_objext \
30061 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030062LIBS=$ac_check_lib_save_LIBS
30063fi
cristy71203402010-06-18 13:12:03 +000030064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30065$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030066if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030067 passed=`expr $passed + 1`
30068else
30069 failed=`expr $failed + 1`
30070fi
30071
cristy8b350f62009-11-15 23:12:43 +000030072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030073$as_echo_n "checking if LCMS package is complete... " >&6; }
30074 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030075 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030076 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30077$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030078 have_lcms='no (failed tests)'
30079 else
30080 LCMS_LIBS='-llcms'
30081 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030082 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30083$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030084 have_lcms='yes'
30085 fi
cristy3ed852e2009-09-05 21:47:34 +000030086 else
cristy09b53e12011-10-14 12:47:22 +000030087 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30088$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030089 fi
30090fi
cristy71203402010-06-18 13:12:03 +000030091
cristy73bd4a52010-10-05 11:24:23 +000030092 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30093 LCMS_DELEGATE_TRUE=
30094 LCMS_DELEGATE_FALSE='#'
30095else
30096 LCMS_DELEGATE_TRUE='#'
30097 LCMS_DELEGATE_FALSE=
30098fi
30099
cristy71203402010-06-18 13:12:03 +000030100if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30101
30102$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30103
30104fi
30105
cristy3ed852e2009-09-05 21:47:34 +000030106
30107
30108
30109#
30110# Check for the LQR (Liquid Rescale) delegate library.
30111#
30112
30113# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030114if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 withval=$with_lqr; with_lqr=$withval
30116else
30117 with_lqr='yes'
30118fi
30119
30120
30121if test "$with_lqr" != 'yes'; then
30122 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30123fi
30124
30125have_lqr='no'
30126LQR_CFLAGS=""
30127LQR_LIBS=""
30128LQR_PKG=""
30129if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030130 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30131$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030132
30133pkg_failed=no
30134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30135$as_echo_n "checking for LQR... " >&6; }
30136
30137if test -n "$LQR_CFLAGS"; then
30138 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30139 elif test -n "$PKG_CONFIG"; then
30140 if test -n "$PKG_CONFIG" && \
30141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30142 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30143 ac_status=$?
30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145 test $ac_status = 0; }; then
30146 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30147else
30148 pkg_failed=yes
30149fi
30150 else
30151 pkg_failed=untried
30152fi
30153if test -n "$LQR_LIBS"; then
30154 pkg_cv_LQR_LIBS="$LQR_LIBS"
30155 elif test -n "$PKG_CONFIG"; then
30156 if test -n "$PKG_CONFIG" && \
30157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30158 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30159 ac_status=$?
30160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30161 test $ac_status = 0; }; then
30162 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30163else
30164 pkg_failed=yes
30165fi
30166 else
30167 pkg_failed=untried
30168fi
30169
30170
30171
30172if test $pkg_failed = yes; then
30173
30174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30175 _pkg_short_errors_supported=yes
30176else
30177 _pkg_short_errors_supported=no
30178fi
30179 if test $_pkg_short_errors_supported = yes; then
30180 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30181 else
30182 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30183 fi
30184 # Put the nasty error message in config.log where it belongs
30185 echo "$LQR_PKG_ERRORS" >&5
30186
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30188$as_echo "no" >&6; }
30189 have_lqr=no
30190elif test $pkg_failed = untried; then
30191 have_lqr=no
30192else
30193 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30194 LQR_LIBS=$pkg_cv_LQR_LIBS
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30196$as_echo "yes" >&6; }
30197 have_lqr=yes
30198fi
cristy09b53e12011-10-14 12:47:22 +000030199 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30200$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030201fi
30202
30203if test "$have_lqr" = 'yes'; then
30204
cristy8b350f62009-11-15 23:12:43 +000030205$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030206
30207 CFLAGS="$LQR_CFLAGS $CFLAGS"
30208fi
30209
cristy73bd4a52010-10-05 11:24:23 +000030210 if test "$have_lqr" = 'yes'; then
30211 LQR_DELEGATE_TRUE=
30212 LQR_DELEGATE_FALSE='#'
30213else
30214 LQR_DELEGATE_TRUE='#'
30215 LQR_DELEGATE_FALSE=
30216fi
30217
cristy3ed852e2009-09-05 21:47:34 +000030218
30219
30220
30221
cristy81beccd2011-10-03 18:17:24 +000030222# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030223
30224# Check whether --with-lzma was given.
30225if test "${with_lzma+set}" = set; then :
30226 withval=$with_lzma; with_lzma=$withval
30227else
30228 with_lzma='yes'
30229fi
30230
cristy81beccd2011-10-03 18:17:24 +000030231if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30233fi
30234
cristyb94e5002011-11-14 13:20:10 +000030235LZMA_PKG=""
30236if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030237 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30238$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030239
30240pkg_failed=no
30241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030242$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030243
30244if test -n "$LZMA_CFLAGS"; then
30245 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30246 elif test -n "$PKG_CONFIG"; then
30247 if test -n "$PKG_CONFIG" && \
30248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30249 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30250 ac_status=$?
30251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30252 test $ac_status = 0; }; then
30253 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30254else
30255 pkg_failed=yes
30256fi
30257 else
30258 pkg_failed=untried
30259fi
30260if test -n "$LZMA_LIBS"; then
30261 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30262 elif test -n "$PKG_CONFIG"; then
30263 if test -n "$PKG_CONFIG" && \
30264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30265 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30266 ac_status=$?
30267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30268 test $ac_status = 0; }; then
30269 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30270else
30271 pkg_failed=yes
30272fi
30273 else
30274 pkg_failed=untried
30275fi
30276
30277
30278
30279if test $pkg_failed = yes; then
30280
30281if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30282 _pkg_short_errors_supported=yes
30283else
30284 _pkg_short_errors_supported=no
30285fi
30286 if test $_pkg_short_errors_supported = yes; then
30287 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30288 else
30289 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30290 fi
30291 # Put the nasty error message in config.log where it belongs
30292 echo "$LZMA_PKG_ERRORS" >&5
30293
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30295$as_echo "no" >&6; }
30296 have_lzma=no
30297elif test $pkg_failed = untried; then
30298 have_lzma=no
30299else
30300 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30301 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30303$as_echo "yes" >&6; }
30304 have_lzma=yes
30305fi
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030307$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030308fi
30309
cristyb94e5002011-11-14 13:20:10 +000030310if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030311
30312$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30313
cristyb94e5002011-11-14 13:20:10 +000030314 if test "$with_modules" = 'no'; then
30315 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030316 fi
cristyfbb0ef02010-12-19 02:32:11 +000030317fi
cristyb94e5002011-11-14 13:20:10 +000030318
cristyfbb0ef02010-12-19 02:32:11 +000030319 if test "$have_lzma" = 'yes'; then
30320 LZMA_DELEGATE_TRUE=
30321 LZMA_DELEGATE_FALSE='#'
30322else
30323 LZMA_DELEGATE_TRUE='#'
30324 LZMA_DELEGATE_FALSE=
30325fi
30326
30327
30328
30329
cristyb94e5002011-11-14 13:20:10 +000030330
cristy3ed852e2009-09-05 21:47:34 +000030331#
30332# Check for the OpenEXR delegate library.
30333#
30334
30335# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030336if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030337 withval=$with_openexr; with_openexr=$withval
30338else
30339 with_openexr='yes'
30340fi
30341
30342
30343if test "$with_openexr" != 'yes'; then
30344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30345fi
30346
30347have_openexr='no'
30348OPENEXR_CFLAGS=""
30349OPENEXR_LIBS=""
30350OPENEXR_PKG=""
30351if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30353$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030354
30355pkg_failed=no
30356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30357$as_echo_n "checking for OPENEXR... " >&6; }
30358
30359if test -n "$OPENEXR_CFLAGS"; then
30360 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30361 elif test -n "$PKG_CONFIG"; then
30362 if test -n "$PKG_CONFIG" && \
30363 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30364 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30365 ac_status=$?
30366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30367 test $ac_status = 0; }; then
30368 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30369else
30370 pkg_failed=yes
30371fi
30372 else
30373 pkg_failed=untried
30374fi
30375if test -n "$OPENEXR_LIBS"; then
30376 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30377 elif test -n "$PKG_CONFIG"; then
30378 if test -n "$PKG_CONFIG" && \
30379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30380 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30381 ac_status=$?
30382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30383 test $ac_status = 0; }; then
30384 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30385else
30386 pkg_failed=yes
30387fi
30388 else
30389 pkg_failed=untried
30390fi
30391
30392
30393
30394if test $pkg_failed = yes; then
30395
30396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30397 _pkg_short_errors_supported=yes
30398else
30399 _pkg_short_errors_supported=no
30400fi
30401 if test $_pkg_short_errors_supported = yes; then
30402 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30403 else
30404 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30405 fi
30406 # Put the nasty error message in config.log where it belongs
30407 echo "$OPENEXR_PKG_ERRORS" >&5
30408
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30410$as_echo "no" >&6; }
30411 have_openexr=no
30412elif test $pkg_failed = untried; then
30413 have_openexr=no
30414else
30415 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30416 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30418$as_echo "yes" >&6; }
30419 have_openexr=yes
30420fi
cristy09b53e12011-10-14 12:47:22 +000030421 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30422$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030423fi
30424
30425if test "$have_openexr" = 'yes'; then
30426
cristy8b350f62009-11-15 23:12:43 +000030427$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030428
30429 if test "$with_modules" = 'no'; then
30430 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30431 fi
30432fi
30433
cristy73bd4a52010-10-05 11:24:23 +000030434 if test "$have_openexr" = 'yes'; then
30435 OPENEXR_DELEGATE_TRUE=
30436 OPENEXR_DELEGATE_FALSE='#'
30437else
30438 OPENEXR_DELEGATE_TRUE='#'
30439 OPENEXR_DELEGATE_FALSE=
30440fi
30441
cristy3ed852e2009-09-05 21:47:34 +000030442
30443
30444
30445
30446#
cristy41cbe8a2011-10-27 01:35:18 +000030447# Check for PANGO delegate library.
30448#
30449
30450# Check whether --with-pango was given.
30451if test "${with_pango+set}" = set; then :
30452 withval=$with_pango; with_pango=$withval
30453else
cristyfc3d0222012-02-07 15:05:57 +000030454 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030455fi
30456
30457
30458if test "$with_pango" != 'yes'; then
30459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30460fi
30461
30462have_pango='no'
30463have_pangoft2='no'
30464PANGO_CFLAGS=""
30465PANGO_LIBS=""
30466PANGO_PKG=""
30467if test "x$with_pango" = "xyes"; then
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30469$as_echo "-------------------------------------------------------------" >&6; }
30470
30471pkg_failed=no
30472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30473$as_echo_n "checking for PANGO... " >&6; }
30474
30475if test -n "$PANGO_CFLAGS"; then
30476 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30477 elif test -n "$PKG_CONFIG"; then
30478 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030479 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30480 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030481 ac_status=$?
30482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30483 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030484 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030485else
30486 pkg_failed=yes
30487fi
30488 else
30489 pkg_failed=untried
30490fi
30491if test -n "$PANGO_LIBS"; then
30492 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30493 elif test -n "$PKG_CONFIG"; then
30494 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30496 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030497 ac_status=$?
30498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30499 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030500 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030501else
30502 pkg_failed=yes
30503fi
30504 else
30505 pkg_failed=untried
30506fi
30507
30508
30509
30510if test $pkg_failed = yes; then
30511
30512if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30513 _pkg_short_errors_supported=yes
30514else
30515 _pkg_short_errors_supported=no
30516fi
30517 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030518 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030519 else
cristy2542fc62011-12-06 17:50:25 +000030520 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030521 fi
30522 # Put the nasty error message in config.log where it belongs
30523 echo "$PANGO_PKG_ERRORS" >&5
30524
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30526$as_echo "no" >&6; }
30527 have_pangoft2=no
30528elif test $pkg_failed = untried; then
30529 have_pangoft2=no
30530else
30531 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30532 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30534$as_echo "yes" >&6; }
30535 have_pangoft2=yes
30536fi
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30538$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030539
30540pkg_failed=no
30541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30542$as_echo_n "checking for PANGO... " >&6; }
30543
30544if test -n "$PANGO_CFLAGS"; then
30545 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30546 elif test -n "$PKG_CONFIG"; then
30547 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030548 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30549 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030550 ac_status=$?
30551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30552 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030553 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030554else
30555 pkg_failed=yes
30556fi
30557 else
30558 pkg_failed=untried
30559fi
30560if test -n "$PANGO_LIBS"; then
30561 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30562 elif test -n "$PKG_CONFIG"; then
30563 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30565 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030566 ac_status=$?
30567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30568 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030569 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030570else
30571 pkg_failed=yes
30572fi
30573 else
30574 pkg_failed=untried
30575fi
30576
30577
30578
30579if test $pkg_failed = yes; then
30580
30581if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30582 _pkg_short_errors_supported=yes
30583else
30584 _pkg_short_errors_supported=no
30585fi
30586 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030587 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030588 else
cristy2542fc62011-12-06 17:50:25 +000030589 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030590 fi
30591 # Put the nasty error message in config.log where it belongs
30592 echo "$PANGO_PKG_ERRORS" >&5
30593
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595$as_echo "no" >&6; }
30596 have_pango=no
30597elif test $pkg_failed = untried; then
30598 have_pango=no
30599else
30600 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30601 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30603$as_echo "yes" >&6; }
30604 have_pango=yes
30605fi
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30607$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030608fi
30609
30610if test "$have_pango" = 'yes'; then
30611
30612$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30613
30614 if test "$with_modules" = 'no'; then
30615 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30616 fi
30617fi
30618
30619if test "$have_pangoft2" = 'yes'; then
30620
30621$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30622
30623 if test "$with_modules" = 'no'; then
30624 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30625 fi
30626fi
30627
30628 if test "$have_pango" = 'yes'; then
30629 PANGO_DELEGATE_TRUE=
30630 PANGO_DELEGATE_FALSE='#'
30631else
30632 PANGO_DELEGATE_TRUE='#'
30633 PANGO_DELEGATE_FALSE=
30634fi
30635
30636 if test "$have_pangoft2" = 'yes'; then
30637 PANGOFT2_DELEGATE_TRUE=
30638 PANGOFT2_DELEGATE_FALSE='#'
30639else
30640 PANGOFT2_DELEGATE_TRUE='#'
30641 PANGOFT2_DELEGATE_FALSE=
30642fi
30643
30644
30645
30646
30647
30648#
cristy3ed852e2009-09-05 21:47:34 +000030649# Check for PNG delegate library.
30650#
30651
30652# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030653if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030654 withval=$with_png; with_png=$withval
30655else
30656 with_png='yes'
30657fi
30658
30659
30660if test "$with_png" != 'yes'; then
30661 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30662fi
30663
cristy81beccd2011-10-03 18:17:24 +000030664have_png='no'
30665PNG_LIBS=''
30666
30667if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030668 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30669$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30671$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030672 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30673$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030674 failed=0
30675 passed=0
30676 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30677if test "x$ac_cv_header_png_h" = xyes; then :
30678 passed=`expr $passed + 1`
30679else
30680 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030681fi
30682
cristy81beccd2011-10-03 18:17:24 +000030683
30684
30685 if test $passed -gt 0; then
30686 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030687 if test "$have_png" = 'no' ; then
30688 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030689 pnglib='png'
30690 else
30691 pnglib="png1${var}"
30692 fi
30693
30694# Test for compatible LIBPNG library
30695 failed=0
30696 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030697 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030698 if test "${pnglib}" != 'png' ; then
30699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30700$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30702/* end confdefs.h. */
30703#include <stdio.h>
30704#include <stdlib.h>
30705#include <png.h>
30706
30707int
30708main ()
30709{
30710
30711#if PNG_LIBPNG_VER_MINOR != ${var}
30712#error LIBPNG library must be version 1${var}!
30713Kaboom, Kaboom
30714#endif
30715return 0;
30716
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721if ac_fn_c_try_compile "$LINENO"; then :
30722 ac_cv_libpng_ok='yes'
30723else
30724 ac_cv_libpng_ok='no'
30725fi
30726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30727 if test "$ac_cv_libpng_ok" = 'yes' ; then
30728 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030729 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30730$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030731 else
30732 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30734$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030735 fi
30736 else
30737 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030738 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30739$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030740 fi
30741 fi
30742
30743 if test $passed -gt 0 -a $failed -le 0; then
30744 if test "1${var}" = '15' ; then
30745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30746$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30747if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30748 $as_echo_n "(cached) " >&6
30749else
30750 ac_check_lib_save_LIBS=$LIBS
30751LIBS="-lpng15 $LIBS"
30752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30753/* end confdefs.h. */
30754
30755/* Override any GCC internal prototype to avoid an error.
30756 Use char because int might match the return type of a GCC
30757 builtin and then its argument prototype would still apply. */
30758#ifdef __cplusplus
30759extern "C"
30760#endif
30761char png_get_io_ptr ();
30762int
30763main ()
30764{
30765return png_get_io_ptr ();
30766 ;
30767 return 0;
30768}
30769_ACEOF
30770if ac_fn_c_try_link "$LINENO"; then :
30771 ac_cv_lib_png15_png_get_io_ptr=yes
30772else
30773 ac_cv_lib_png15_png_get_io_ptr=no
30774fi
30775rm -f core conftest.err conftest.$ac_objext \
30776 conftest$ac_exeext conftest.$ac_ext
30777LIBS=$ac_check_lib_save_LIBS
30778fi
30779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30780$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30781if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30782 passed=`expr $passed + 1`
30783else
30784 failed=`expr $failed + 1`
30785fi
30786
30787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30788$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30789if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30790 $as_echo_n "(cached) " >&6
30791else
30792 ac_check_lib_save_LIBS=$LIBS
30793LIBS="-lpng15 $LIBS"
30794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30795/* end confdefs.h. */
30796
30797/* Override any GCC internal prototype to avoid an error.
30798 Use char because int might match the return type of a GCC
30799 builtin and then its argument prototype would still apply. */
30800#ifdef __cplusplus
30801extern "C"
30802#endif
30803char png_longjmp ();
30804int
30805main ()
30806{
30807return png_longjmp ();
30808 ;
30809 return 0;
30810}
30811_ACEOF
30812if ac_fn_c_try_link "$LINENO"; then :
30813 ac_cv_lib_png15_png_longjmp=yes
30814else
30815 ac_cv_lib_png15_png_longjmp=no
30816fi
30817rm -f core conftest.err conftest.$ac_objext \
30818 conftest$ac_exeext conftest.$ac_ext
30819LIBS=$ac_check_lib_save_LIBS
30820fi
30821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30822$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30823if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30824 passed=`expr $passed + 1`
30825else
30826 failed=`expr $failed + 1`
30827fi
30828
30829 fi
30830 if test "1${var}" = '14' ; then
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30832$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30833if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30834 $as_echo_n "(cached) " >&6
30835else
30836 ac_check_lib_save_LIBS=$LIBS
30837LIBS="-lpng14 $LIBS"
30838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30839/* end confdefs.h. */
30840
30841/* Override any GCC internal prototype to avoid an error.
30842 Use char because int might match the return type of a GCC
30843 builtin and then its argument prototype would still apply. */
30844#ifdef __cplusplus
30845extern "C"
30846#endif
30847char png_get_io_ptr ();
30848int
30849main ()
30850{
30851return png_get_io_ptr ();
30852 ;
30853 return 0;
30854}
30855_ACEOF
30856if ac_fn_c_try_link "$LINENO"; then :
30857 ac_cv_lib_png14_png_get_io_ptr=yes
30858else
30859 ac_cv_lib_png14_png_get_io_ptr=no
30860fi
30861rm -f core conftest.err conftest.$ac_objext \
30862 conftest$ac_exeext conftest.$ac_ext
30863LIBS=$ac_check_lib_save_LIBS
30864fi
30865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30866$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30867if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30868 passed=`expr $passed + 1`
30869else
30870 failed=`expr $failed + 1`
30871fi
30872
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30874$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30875if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30876 $as_echo_n "(cached) " >&6
30877else
30878 ac_check_lib_save_LIBS=$LIBS
30879LIBS="-lpng14 $LIBS"
30880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30881/* end confdefs.h. */
30882
30883/* Override any GCC internal prototype to avoid an error.
30884 Use char because int might match the return type of a GCC
30885 builtin and then its argument prototype would still apply. */
30886#ifdef __cplusplus
30887extern "C"
30888#endif
30889char png_get_io_state ();
30890int
30891main ()
30892{
30893return png_get_io_state ();
30894 ;
30895 return 0;
30896}
30897_ACEOF
30898if ac_fn_c_try_link "$LINENO"; then :
30899 ac_cv_lib_png14_png_get_io_state=yes
30900else
30901 ac_cv_lib_png14_png_get_io_state=no
30902fi
30903rm -f core conftest.err conftest.$ac_objext \
30904 conftest$ac_exeext conftest.$ac_ext
30905LIBS=$ac_check_lib_save_LIBS
30906fi
30907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30908$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30909if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30910 passed=`expr $passed + 1`
30911else
30912 failed=`expr $failed + 1`
30913fi
30914
30915 fi
30916 if test "1${var}" = '12' ; then
30917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30918$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30919if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30920 $as_echo_n "(cached) " >&6
30921else
30922 ac_check_lib_save_LIBS=$LIBS
30923LIBS="-lpng12 $LIBS"
30924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30925/* end confdefs.h. */
30926
30927/* Override any GCC internal prototype to avoid an error.
30928 Use char because int might match the return type of a GCC
30929 builtin and then its argument prototype would still apply. */
30930#ifdef __cplusplus
30931extern "C"
30932#endif
30933char png_get_io_ptr ();
30934int
30935main ()
30936{
30937return png_get_io_ptr ();
30938 ;
30939 return 0;
30940}
30941_ACEOF
30942if ac_fn_c_try_link "$LINENO"; then :
30943 ac_cv_lib_png12_png_get_io_ptr=yes
30944else
30945 ac_cv_lib_png12_png_get_io_ptr=no
30946fi
30947rm -f core conftest.err conftest.$ac_objext \
30948 conftest$ac_exeext conftest.$ac_ext
30949LIBS=$ac_check_lib_save_LIBS
30950fi
30951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30952$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30953if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30954 passed=`expr $passed + 1`
30955else
30956 failed=`expr $failed + 1`
30957fi
30958
30959 fi
30960 if test "1${var}" = '1' ; then
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30962$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30963if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30964 $as_echo_n "(cached) " >&6
30965else
30966 ac_check_lib_save_LIBS=$LIBS
30967LIBS="-lpng $LIBS"
30968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30969/* end confdefs.h. */
30970
30971/* Override any GCC internal prototype to avoid an error.
30972 Use char because int might match the return type of a GCC
30973 builtin and then its argument prototype would still apply. */
30974#ifdef __cplusplus
30975extern "C"
30976#endif
30977char png_get_io_ptr ();
30978int
30979main ()
30980{
30981return png_get_io_ptr ();
30982 ;
30983 return 0;
30984}
30985_ACEOF
30986if ac_fn_c_try_link "$LINENO"; then :
30987 ac_cv_lib_png_png_get_io_ptr=yes
30988else
30989 ac_cv_lib_png_png_get_io_ptr=no
30990fi
30991rm -f core conftest.err conftest.$ac_objext \
30992 conftest$ac_exeext conftest.$ac_ext
30993LIBS=$ac_check_lib_save_LIBS
30994fi
30995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30996$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30997if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30998 passed=`expr $passed + 1`
30999else
31000 failed=`expr $failed + 1`
31001fi
31002
31003 fi
31004 if test $passed -gt 0 -a $failed -le 0 ; then
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31006$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31007 if test $passed -gt 0 ; then
31008 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031009 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31010$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031011 have_png='no (failed tests)'
31012 else
31013 PNG_LIBS="-l${pnglib}"
31014 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031015
cristy8b350f62009-11-15 23:12:43 +000031016$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031017
cristy09b53e12011-10-14 12:47:22 +000031018 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31019$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031020 have_png='yes'
31021 fi
31022 fi
31023 fi
31024 fi
31025 fi
31026 done
31027 fi
cristy3ed852e2009-09-05 21:47:34 +000031028fi
cristy64877302011-08-23 19:10:31 +000031029
cristy73bd4a52010-10-05 11:24:23 +000031030 if test "$have_png" = 'yes'; then
31031 PNG_DELEGATE_TRUE=
31032 PNG_DELEGATE_FALSE='#'
31033else
31034 PNG_DELEGATE_TRUE='#'
31035 PNG_DELEGATE_FALSE=
31036fi
31037
cristy3ed852e2009-09-05 21:47:34 +000031038
cristy50d3f5c2011-09-10 20:09:06 +000031039
cristy3ed852e2009-09-05 21:47:34 +000031040
31041
31042#
31043# Check for RSVG delegate library.
31044#
31045
31046# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031047if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031048 withval=$with_rsvg; with_rsvg=$withval
31049else
cristyfc3d0222012-02-07 15:05:57 +000031050 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031051fi
31052
31053
31054if test "$with_rsvg" != 'yes'; then
31055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31056fi
31057
31058have_rsvg='no'
31059have_cairo='no'
31060RSVG_CFLAGS=""
31061RSVG_LIBS=""
31062RSVG_PKG=""
31063if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031064 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31065$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031066
31067pkg_failed=no
31068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31069$as_echo_n "checking for RSVG... " >&6; }
31070
31071if test -n "$RSVG_CFLAGS"; then
31072 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31073 elif test -n "$PKG_CONFIG"; then
31074 if test -n "$PKG_CONFIG" && \
31075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31076 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31077 ac_status=$?
31078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31079 test $ac_status = 0; }; then
31080 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31081else
31082 pkg_failed=yes
31083fi
31084 else
31085 pkg_failed=untried
31086fi
31087if test -n "$RSVG_LIBS"; then
31088 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31089 elif test -n "$PKG_CONFIG"; then
31090 if test -n "$PKG_CONFIG" && \
31091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31092 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31093 ac_status=$?
31094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31095 test $ac_status = 0; }; then
31096 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31097else
31098 pkg_failed=yes
31099fi
31100 else
31101 pkg_failed=untried
31102fi
31103
31104
31105
31106if test $pkg_failed = yes; then
31107
31108if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31109 _pkg_short_errors_supported=yes
31110else
31111 _pkg_short_errors_supported=no
31112fi
31113 if test $_pkg_short_errors_supported = yes; then
31114 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31115 else
31116 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31117 fi
31118 # Put the nasty error message in config.log where it belongs
31119 echo "$RSVG_PKG_ERRORS" >&5
31120
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31122$as_echo "no" >&6; }
31123 have_rsvg=no
31124elif test $pkg_failed = untried; then
31125 have_rsvg=no
31126else
31127 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31128 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31130$as_echo "yes" >&6; }
31131 have_rsvg=yes
31132fi
cristy09b53e12011-10-14 12:47:22 +000031133 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31134$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031135
31136pkg_failed=no
31137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31138$as_echo_n "checking for CAIRO_SVG... " >&6; }
31139
31140if test -n "$CAIRO_SVG_CFLAGS"; then
31141 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31142 elif test -n "$PKG_CONFIG"; then
31143 if test -n "$PKG_CONFIG" && \
31144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31145 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31146 ac_status=$?
31147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31148 test $ac_status = 0; }; then
31149 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31150else
31151 pkg_failed=yes
31152fi
31153 else
31154 pkg_failed=untried
31155fi
31156if test -n "$CAIRO_SVG_LIBS"; then
31157 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31158 elif test -n "$PKG_CONFIG"; then
31159 if test -n "$PKG_CONFIG" && \
31160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31161 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31162 ac_status=$?
31163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }; then
31165 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31166else
31167 pkg_failed=yes
31168fi
31169 else
31170 pkg_failed=untried
31171fi
31172
31173
31174
31175if test $pkg_failed = yes; then
31176
31177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31178 _pkg_short_errors_supported=yes
31179else
31180 _pkg_short_errors_supported=no
31181fi
31182 if test $_pkg_short_errors_supported = yes; then
31183 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31184 else
31185 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31186 fi
31187 # Put the nasty error message in config.log where it belongs
31188 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31189
31190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31191$as_echo "no" >&6; }
31192 have_cairo=no
31193elif test $pkg_failed = untried; then
31194 have_cairo=no
31195else
31196 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31197 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31199$as_echo "yes" >&6; }
31200 have_cairo=yes
31201fi
cristy09b53e12011-10-14 12:47:22 +000031202 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31203$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031204fi
31205
31206if test "$have_rsvg" = 'yes'; then
31207
cristy8b350f62009-11-15 23:12:43 +000031208$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031209
31210 if test "$with_modules" = 'no'; then
31211 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31212 fi
31213fi
31214
31215if test "$have_cairo" = 'yes'; then
31216
cristy8b350f62009-11-15 23:12:43 +000031217$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031218
31219 if test "$with_modules" = 'no'; then
31220 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31221 fi
31222fi
31223
cristy73bd4a52010-10-05 11:24:23 +000031224 if test "$have_rsvg" = 'yes'; then
31225 RSVG_DELEGATE_TRUE=
31226 RSVG_DELEGATE_FALSE='#'
31227else
31228 RSVG_DELEGATE_TRUE='#'
31229 RSVG_DELEGATE_FALSE=
31230fi
31231
31232 if test "$have_cairo" = 'yes'; then
31233 CAIRO_DELEGATE_TRUE=
31234 CAIRO_DELEGATE_FALSE='#'
31235else
31236 CAIRO_DELEGATE_TRUE='#'
31237 CAIRO_DELEGATE_FALSE=
31238fi
31239
cristy3ed852e2009-09-05 21:47:34 +000031240
31241
31242
31243
31244#
31245# Check for TIFF delegate library.
31246#
31247
31248# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031249if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031250 withval=$with_tiff; with_tiff=$withval
31251else
31252 with_tiff='yes'
31253fi
31254
31255
31256if test "$with_tiff" != 'yes'; then
31257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31258fi
31259
31260have_tiff='no'
31261TIFF_LIBS=''
31262if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031263 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31264$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031266$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031267 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31268$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031269 failed=0
31270 passed=0
cristy8b350f62009-11-15 23:12:43 +000031271 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031272if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031273 passed=`expr $passed + 1`
31274else
31275 failed=`expr $failed + 1`
31276fi
31277
31278
cristy8b350f62009-11-15 23:12:43 +000031279 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031280if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031281 passed=`expr $passed + 1`
31282else
31283 failed=`expr $failed + 1`
31284fi
31285
31286
cristy8b350f62009-11-15 23:12:43 +000031287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031288$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031289if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031290 $as_echo_n "(cached) " >&6
31291else
31292 ac_check_lib_save_LIBS=$LIBS
31293LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031295/* end confdefs.h. */
31296
31297/* Override any GCC internal prototype to avoid an error.
31298 Use char because int might match the return type of a GCC
31299 builtin and then its argument prototype would still apply. */
31300#ifdef __cplusplus
31301extern "C"
31302#endif
31303char TIFFOpen ();
31304int
31305main ()
31306{
31307return TIFFOpen ();
31308 ;
31309 return 0;
31310}
31311_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031312if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031313 ac_cv_lib_tiff_TIFFOpen=yes
31314else
cristy8b350f62009-11-15 23:12:43 +000031315 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031316fi
cristy8b350f62009-11-15 23:12:43 +000031317rm -f core conftest.err conftest.$ac_objext \
31318 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031319LIBS=$ac_check_lib_save_LIBS
31320fi
cristy8b350f62009-11-15 23:12:43 +000031321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031322$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031323if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031324 passed=`expr $passed + 1`
31325else
31326 failed=`expr $failed + 1`
31327fi
31328
cristy8b350f62009-11-15 23:12:43 +000031329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031330$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031331if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031332 $as_echo_n "(cached) " >&6
31333else
31334 ac_check_lib_save_LIBS=$LIBS
31335LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031337/* end confdefs.h. */
31338
31339/* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31342#ifdef __cplusplus
31343extern "C"
31344#endif
31345char TIFFClientOpen ();
31346int
31347main ()
31348{
31349return TIFFClientOpen ();
31350 ;
31351 return 0;
31352}
31353_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031354if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031355 ac_cv_lib_tiff_TIFFClientOpen=yes
31356else
cristy8b350f62009-11-15 23:12:43 +000031357 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031358fi
cristy8b350f62009-11-15 23:12:43 +000031359rm -f core conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031361LIBS=$ac_check_lib_save_LIBS
31362fi
cristy8b350f62009-11-15 23:12:43 +000031363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031364$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031365if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031366 passed=`expr $passed + 1`
31367else
31368 failed=`expr $failed + 1`
31369fi
31370
cristy8b350f62009-11-15 23:12:43 +000031371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031372$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031373if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031374 $as_echo_n "(cached) " >&6
31375else
31376 ac_check_lib_save_LIBS=$LIBS
31377LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031379/* end confdefs.h. */
31380
31381/* Override any GCC internal prototype to avoid an error.
31382 Use char because int might match the return type of a GCC
31383 builtin and then its argument prototype would still apply. */
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char TIFFIsByteSwapped ();
31388int
31389main ()
31390{
31391return TIFFIsByteSwapped ();
31392 ;
31393 return 0;
31394}
31395_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031397 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31398else
cristy8b350f62009-11-15 23:12:43 +000031399 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031400fi
cristy8b350f62009-11-15 23:12:43 +000031401rm -f core conftest.err conftest.$ac_objext \
31402 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031403LIBS=$ac_check_lib_save_LIBS
31404fi
cristy8b350f62009-11-15 23:12:43 +000031405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031406$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031407if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031408 passed=`expr $passed + 1`
31409else
31410 failed=`expr $failed + 1`
31411fi
31412
cristy8b350f62009-11-15 23:12:43 +000031413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031414$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031415if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031416 $as_echo_n "(cached) " >&6
31417else
31418 ac_check_lib_save_LIBS=$LIBS
31419LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031421/* end confdefs.h. */
31422
31423/* Override any GCC internal prototype to avoid an error.
31424 Use char because int might match the return type of a GCC
31425 builtin and then its argument prototype would still apply. */
31426#ifdef __cplusplus
31427extern "C"
31428#endif
31429char TIFFReadRGBATile ();
31430int
31431main ()
31432{
31433return TIFFReadRGBATile ();
31434 ;
31435 return 0;
31436}
31437_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031438if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031439 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31440else
cristy8b350f62009-11-15 23:12:43 +000031441 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031442fi
cristy8b350f62009-11-15 23:12:43 +000031443rm -f core conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031445LIBS=$ac_check_lib_save_LIBS
31446fi
cristy8b350f62009-11-15 23:12:43 +000031447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031448$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031449if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031450 passed=`expr $passed + 1`
31451else
31452 failed=`expr $failed + 1`
31453fi
31454
cristy8b350f62009-11-15 23:12:43 +000031455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031456$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031457if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031458 $as_echo_n "(cached) " >&6
31459else
31460 ac_check_lib_save_LIBS=$LIBS
31461LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031463/* end confdefs.h. */
31464
31465/* Override any GCC internal prototype to avoid an error.
31466 Use char because int might match the return type of a GCC
31467 builtin and then its argument prototype would still apply. */
31468#ifdef __cplusplus
31469extern "C"
31470#endif
31471char TIFFReadRGBAStrip ();
31472int
31473main ()
31474{
31475return TIFFReadRGBAStrip ();
31476 ;
31477 return 0;
31478}
31479_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031480if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031481 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31482else
cristy8b350f62009-11-15 23:12:43 +000031483 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031484fi
cristy8b350f62009-11-15 23:12:43 +000031485rm -f core conftest.err conftest.$ac_objext \
31486 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031487LIBS=$ac_check_lib_save_LIBS
31488fi
cristy8b350f62009-11-15 23:12:43 +000031489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031490$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031491if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031492 passed=`expr $passed + 1`
31493else
31494 failed=`expr $failed + 1`
31495fi
31496
cristy8b350f62009-11-15 23:12:43 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031498$as_echo_n "checking if TIFF package is complete... " >&6; }
31499 if test $passed -gt 0; then
31500 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031501 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31502$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031503 have_tiff='no (failed tests)'
31504 else
31505 TIFF_LIBS='-ltiff'
31506 LIBS="$TIFF_LIBS $LIBS"
31507
cristy8b350f62009-11-15 23:12:43 +000031508$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031509
cristy09b53e12011-10-14 12:47:22 +000031510 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31511$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031512 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031513 for ac_header in tiffconf.h
31514do :
31515 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031516if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031517 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031518#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031519_ACEOF
31520
31521fi
31522
31523done
31524
cristy8b350f62009-11-15 23:12:43 +000031525 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031526 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31527 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31528 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031529do :
31530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31531ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031532if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031533 cat >>confdefs.h <<_ACEOF
31534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31535_ACEOF
31536
31537fi
31538done
31539
31540 fi
31541 else
cristy09b53e12011-10-14 12:47:22 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31543$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031544 fi
31545fi
cristy73bd4a52010-10-05 11:24:23 +000031546 if test "$have_tiff" = 'yes'; then
31547 TIFF_DELEGATE_TRUE=
31548 TIFF_DELEGATE_FALSE='#'
31549else
31550 TIFF_DELEGATE_TRUE='#'
31551 TIFF_DELEGATE_FALSE=
31552fi
31553
cristy3ed852e2009-09-05 21:47:34 +000031554
31555
31556
31557#
cristyb1860752011-03-14 00:27:46 +000031558# Check for WEBP delegate library.
31559#
31560
31561# Check whether --with-webp was given.
31562if test "${with_webp+set}" = set; then :
31563 withval=$with_webp; with_webp=$withval
31564else
31565 with_webp='yes'
31566fi
31567
31568
31569if test "$with_webp" != 'yes'; then
31570 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31571fi
31572
31573have_webp='no'
31574WEBP_LIBS=''
31575if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031576 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31577$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31579$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031580 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31581$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031582 failed=0
31583 passed=0
31584 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31585if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31586 passed=`expr $passed + 1`
31587else
31588 failed=`expr $failed + 1`
31589fi
31590
31591
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31593$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31594if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31595 $as_echo_n "(cached) " >&6
31596else
31597 ac_check_lib_save_LIBS=$LIBS
31598LIBS="-lwebp $LIBS"
31599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600/* end confdefs.h. */
31601
31602/* Override any GCC internal prototype to avoid an error.
31603 Use char because int might match the return type of a GCC
31604 builtin and then its argument prototype would still apply. */
31605#ifdef __cplusplus
31606extern "C"
31607#endif
31608char WebPDecodeRGB ();
31609int
31610main ()
31611{
31612return WebPDecodeRGB ();
31613 ;
31614 return 0;
31615}
31616_ACEOF
31617if ac_fn_c_try_link "$LINENO"; then :
31618 ac_cv_lib_webp_WebPDecodeRGB=yes
31619else
31620 ac_cv_lib_webp_WebPDecodeRGB=no
31621fi
31622rm -f core conftest.err conftest.$ac_objext \
31623 conftest$ac_exeext conftest.$ac_ext
31624LIBS=$ac_check_lib_save_LIBS
31625fi
31626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31627$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31628if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31629 passed=`expr $passed + 1`
31630else
31631 failed=`expr $failed + 1`
31632fi
31633
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31635$as_echo_n "checking if WEBP package is complete... " >&6; }
31636 if test $passed -gt 0; then
31637 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031638 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31639$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031640 have_webp='no (failed tests)'
31641 else
31642 WEBP_LIBS='-lwebp'
31643 LIBS="$WEBP_LIBS $LIBS"
31644
31645$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31646
cristy09b53e12011-10-14 12:47:22 +000031647 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31648$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031649 have_webp='yes'
31650 fi
31651 else
cristy09b53e12011-10-14 12:47:22 +000031652 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31653$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031654 fi
31655fi
31656 if test "$have_webp" = 'yes'; then
31657 WEBP_DELEGATE_TRUE=
31658 WEBP_DELEGATE_FALSE='#'
31659else
31660 WEBP_DELEGATE_TRUE='#'
31661 WEBP_DELEGATE_FALSE=
31662fi
31663
31664
31665
31666
31667#
cristy3ed852e2009-09-05 21:47:34 +000031668# Set Windows font directory.
31669#
31670
31671# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031672if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031673 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31674else
31675 with_windows_font_dir=''
31676fi
31677
31678if test "$with_windows_font_dir" != '' ; then
31679 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31680fi
31681
31682
31683#
31684# Check for WMF delegate library.
31685#
31686
31687# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031688if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031689 withval=$with_wmf; with_wmf=$withval
31690else
cristyfc3d0222012-02-07 15:05:57 +000031691 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031692fi
31693
31694
31695if test "$with_wmf" != 'yes'; then
31696 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31697fi
31698
31699have_wmf='no'
31700WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031701WMF_LIBS_DEPS=''
31702OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031703if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31705$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031707$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31709$as_echo "" >&6; }
31710 have_libwmf='no'
31711 have_libwmflite='no'
31712 have_libwmf_ipa_h='no'
31713
31714 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31715"
31716if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31717 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031718fi
31719
31720
cristy03f7cf92011-12-15 01:40:41 +000031721 if test "$have_libwmf_ipa_h" = 'yes'; then
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31723$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31724if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031725 $as_echo_n "(cached) " >&6
31726else
31727 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031728LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031730/* end confdefs.h. */
31731
31732/* Override any GCC internal prototype to avoid an error.
31733 Use char because int might match the return type of a GCC
31734 builtin and then its argument prototype would still apply. */
31735#ifdef __cplusplus
31736extern "C"
31737#endif
cristy03f7cf92011-12-15 01:40:41 +000031738char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031739int
31740main ()
31741{
cristy03f7cf92011-12-15 01:40:41 +000031742return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031743 ;
31744 return 0;
31745}
31746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031747if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031748 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031749else
cristy03f7cf92011-12-15 01:40:41 +000031750 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031751fi
cristy8b350f62009-11-15 23:12:43 +000031752rm -f core conftest.err conftest.$ac_objext \
31753 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031754LIBS=$ac_check_lib_save_LIBS
31755fi
cristy03f7cf92011-12-15 01:40:41 +000031756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31757$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31758if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31759 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031760fi
31761
cristy03f7cf92011-12-15 01:40:41 +000031762 if test "$have_libwmflite" = 'yes'; then
31763
31764$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31765
31766 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031767 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031768 have_wmf='yes'
31769 else
31770 WMF_LIBS_DEPS=''
31771 WMF_CONFIG_LIBS=`libwmf-config --libs`
31772 for lib in xml2 expat freetype jpeg png z; do
31773 testlib="-l${lib}"
31774 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31775 done
31776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31777$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31778if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31779 $as_echo_n "(cached) " >&6
31780else
31781 ac_check_lib_save_LIBS=$LIBS
31782LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31784/* end confdefs.h. */
31785
31786/* Override any GCC internal prototype to avoid an error.
31787 Use char because int might match the return type of a GCC
31788 builtin and then its argument prototype would still apply. */
31789#ifdef __cplusplus
31790extern "C"
31791#endif
31792char wmf_api_create ();
31793int
31794main ()
31795{
31796return wmf_api_create ();
31797 ;
31798 return 0;
31799}
31800_ACEOF
31801if ac_fn_c_try_link "$LINENO"; then :
31802 ac_cv_lib_wmf_wmf_api_create=yes
31803else
31804 ac_cv_lib_wmf_wmf_api_create=no
31805fi
31806rm -f core conftest.err conftest.$ac_objext \
31807 conftest$ac_exeext conftest.$ac_ext
31808LIBS=$ac_check_lib_save_LIBS
31809fi
31810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31811$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31812if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31813 have_libwmf='yes'
31814fi
31815
31816 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031817
cristy8b350f62009-11-15 23:12:43 +000031818$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031819
cristy03f7cf92011-12-15 01:40:41 +000031820 WMF_LIBS='-lwmf'
31821 LIBS="$WMF_LIBS $LIBS"
31822 have_wmf='yes'
31823 else
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31825$as_echo "no -- some components failed test" >&6; }
31826 have_wmf='no (failed tests)'
31827 have_wmflite='no (failed tests)'
31828 LIBS="$OLIBS"
31829 WMF_LIBS=''
31830 fi
glennrp33e524b2011-08-24 17:41:57 +000031831 fi
cristy03f7cf92011-12-15 01:40:41 +000031832 fi
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31834$as_echo_n "checking if WMF package is complete... " >&6; }
31835 if test "$have_wmf" = 'yes'; then
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31837$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031838 else
cristy03f7cf92011-12-15 01:40:41 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31840$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031841 fi
cristy3ed852e2009-09-05 21:47:34 +000031842fi
cristy73bd4a52010-10-05 11:24:23 +000031843 if test "$have_wmf" = 'yes'; then
31844 WMF_DELEGATE_TRUE=
31845 WMF_DELEGATE_FALSE='#'
31846else
31847 WMF_DELEGATE_TRUE='#'
31848 WMF_DELEGATE_FALSE=
31849fi
31850
cristy3ed852e2009-09-05 21:47:34 +000031851
31852
31853
cristy81beccd2011-10-03 18:17:24 +000031854
31855
cristy3ed852e2009-09-05 21:47:34 +000031856#
31857# Check for XML delegate library.
31858#
31859
31860# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031861if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031862 withval=$with_xml; with_xml=$withval
31863else
cristyfc3d0222012-02-07 15:05:57 +000031864 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031865fi
31866
31867
cristy81beccd2011-10-03 18:17:24 +000031868if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031869 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31870fi
31871
cristy81beccd2011-10-03 18:17:24 +000031872have_xml='no'
31873XML_LIBS=''
31874if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031875 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31876$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31878$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031879 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31880$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031881 PERSIST_LDFLAGS=$LDFLAGS
31882 PERSIST_CPPFLAGS=$CPPFLAGS
31883 xml2_config=''
31884 # Extract the first word of "xml2-config", so it can be a program name with args.
31885set dummy xml2-config; ac_word=$2
31886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31887$as_echo_n "checking for $ac_word... " >&6; }
31888if ${ac_cv_path_xml2_config+:} false; then :
31889 $as_echo_n "(cached) " >&6
31890else
31891 case $xml2_config in
31892 [\\/]* | ?:[\\/]*)
31893 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31894 ;;
31895 *)
31896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31897for as_dir in $PATH
31898do
31899 IFS=$as_save_IFS
31900 test -z "$as_dir" && as_dir=.
31901 for ac_exec_ext in '' $ac_executable_extensions; do
31902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31903 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31905 break 2
31906 fi
31907done
31908 done
31909IFS=$as_save_IFS
31910
31911 ;;
31912esac
31913fi
31914xml2_config=$ac_cv_path_xml2_config
31915if test -n "$xml2_config"; then
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31917$as_echo "$xml2_config" >&6; }
31918else
31919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31920$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031921fi
31922
cristy81beccd2011-10-03 18:17:24 +000031923 if test -n "$xml2_config"; then
31924 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31925 # the shared library installed under /usr/lib, whereas the package
31926 # installs itself under $prefix/libxml and $prefix/lib.
31927 xml2_prefix=`xml2-config --prefix`
31928 if test -d "${xml2_prefix}/include/libxml2"; then
31929 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31930 fi
31931 if test "${xml2_prefix}" != '/usr'; then
31932 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31933 fi
31934 fi
31935 failed=0
31936 passed=0
31937 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31938if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31939 passed=`expr $passed + 1`
31940else
31941 failed=`expr $failed + 1`
31942fi
31943
31944
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31946$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31947if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31948 $as_echo_n "(cached) " >&6
31949else
31950 ac_check_lib_save_LIBS=$LIBS
31951LIBS="-lxml2 $LIBS"
31952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31953/* end confdefs.h. */
31954
31955/* Override any GCC internal prototype to avoid an error.
31956 Use char because int might match the return type of a GCC
31957 builtin and then its argument prototype would still apply. */
31958#ifdef __cplusplus
31959extern "C"
31960#endif
31961char xmlSAXVersion ();
31962int
31963main ()
31964{
31965return xmlSAXVersion ();
31966 ;
31967 return 0;
31968}
31969_ACEOF
31970if ac_fn_c_try_link "$LINENO"; then :
31971 ac_cv_lib_xml2_xmlSAXVersion=yes
31972else
31973 ac_cv_lib_xml2_xmlSAXVersion=no
31974fi
31975rm -f core conftest.err conftest.$ac_objext \
31976 conftest$ac_exeext conftest.$ac_ext
31977LIBS=$ac_check_lib_save_LIBS
31978fi
31979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31980$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31981if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31982 passed=`expr $passed + 1`
31983else
31984 failed=`expr $failed + 1`
31985fi
31986
31987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31988$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31989if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31990 $as_echo_n "(cached) " >&6
31991else
31992 ac_check_lib_save_LIBS=$LIBS
31993LIBS="-lxml2 $LIBS"
31994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31995/* end confdefs.h. */
31996
31997/* Override any GCC internal prototype to avoid an error.
31998 Use char because int might match the return type of a GCC
31999 builtin and then its argument prototype would still apply. */
32000#ifdef __cplusplus
32001extern "C"
32002#endif
32003char xmlParseChunk ();
32004int
32005main ()
32006{
32007return xmlParseChunk ();
32008 ;
32009 return 0;
32010}
32011_ACEOF
32012if ac_fn_c_try_link "$LINENO"; then :
32013 ac_cv_lib_xml2_xmlParseChunk=yes
32014else
32015 ac_cv_lib_xml2_xmlParseChunk=no
32016fi
32017rm -f core conftest.err conftest.$ac_objext \
32018 conftest$ac_exeext conftest.$ac_ext
32019LIBS=$ac_check_lib_save_LIBS
32020fi
32021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32022$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32023if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32024 passed=`expr $passed + 1`
32025else
32026 failed=`expr $failed + 1`
32027fi
32028
32029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32030$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32031if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32032 $as_echo_n "(cached) " >&6
32033else
32034 ac_check_lib_save_LIBS=$LIBS
32035LIBS="-lxml2 $LIBS"
32036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32037/* end confdefs.h. */
32038
32039/* Override any GCC internal prototype to avoid an error.
32040 Use char because int might match the return type of a GCC
32041 builtin and then its argument prototype would still apply. */
32042#ifdef __cplusplus
32043extern "C"
32044#endif
32045char xmlCreatePushParserCtxt ();
32046int
32047main ()
32048{
32049return xmlCreatePushParserCtxt ();
32050 ;
32051 return 0;
32052}
32053_ACEOF
32054if ac_fn_c_try_link "$LINENO"; then :
32055 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32056else
32057 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32058fi
32059rm -f core conftest.err conftest.$ac_objext \
32060 conftest$ac_exeext conftest.$ac_ext
32061LIBS=$ac_check_lib_save_LIBS
32062fi
32063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32064$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32065if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32066 passed=`expr $passed + 1`
32067else
32068 failed=`expr $failed + 1`
32069fi
32070
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32072$as_echo_n "checking if XML package is complete... " >&6; }
32073 if test $passed -gt 0; then
32074 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32076$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032077 have_xml='no (failed tests)'
32078 LDFLAGS="$PERSIST_LDFLAGS"
32079 CPPFLAGS="$PERSIST_CPPFLAGS"
32080 else
32081 XML_LIBS='-lxml2'
32082 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032083
cristy8b350f62009-11-15 23:12:43 +000032084$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032085
cristy09b53e12011-10-14 12:47:22 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32087$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032088 have_xml='yes'
32089 fi
32090 else
cristy09b53e12011-10-14 12:47:22 +000032091 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32092$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032093 fi
32094fi
cristy73bd4a52010-10-05 11:24:23 +000032095 if test "$have_xml" = 'yes'; then
32096 XML_DELEGATE_TRUE=
32097 XML_DELEGATE_FALSE='#'
32098else
32099 XML_DELEGATE_TRUE='#'
32100 XML_DELEGATE_FALSE=
32101fi
32102
cristy3ed852e2009-09-05 21:47:34 +000032103
32104
32105
32106# Substitute compiler name to build/link PerlMagick
32107#
32108
32109
32110#
32111# Configure install Paths
32112#
cristy7def36a2011-10-28 19:04:41 +000032113
cristy2a11bef2011-10-28 18:33:11 +000032114# Path to ImageMagick header files
32115INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032116INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32117DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032118case "${build_os}" in
32119 mingw* )
32120 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32121 ;;
32122esac
32123
32124cat >>confdefs.h <<_ACEOF
32125#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32126_ACEOF
32127
32128
cristy3ed852e2009-09-05 21:47:34 +000032129
32130# Subdirectory under lib to place ImageMagick lib files
32131LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32132
32133cat >>confdefs.h <<_ACEOF
32134#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32135_ACEOF
32136
32137
32138# Path to ImageMagick bin directory
32139EXECUTABLE_PATH="${BIN_DIR}"
32140DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32141case "${build_os}" in
32142 mingw* )
32143 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32144 ;;
32145esac
32146
32147cat >>confdefs.h <<_ACEOF
32148#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32149_ACEOF
32150
32151
32152
32153# Path to ImageMagick lib
32154LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32155DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32156case "${build_os}" in
32157 mingw* )
32158 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32159 ;;
32160esac
32161
32162cat >>confdefs.h <<_ACEOF
32163#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32164_ACEOF
32165
32166
32167
cristy3ed852e2009-09-05 21:47:34 +000032168#
32169# Subdirectory under lib to place ImageMagick coder module files
32170CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32171
32172cat >>confdefs.h <<_ACEOF
32173#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32174_ACEOF
32175
32176CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32177DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32178case "${build_os}" in
32179 mingw* )
32180 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32181 ;;
32182esac
32183
32184cat >>confdefs.h <<_ACEOF
32185#define CODER_PATH "$DEFINE_CODER_PATH"
32186_ACEOF
32187
32188
32189
32190#
32191# Subdirectory under lib to place ImageMagick filter module files
32192FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32193
32194cat >>confdefs.h <<_ACEOF
32195#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32196_ACEOF
32197
32198FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32199DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32200case "${build_os}" in
32201 mingw* )
32202 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32203 ;;
32204esac
32205
32206cat >>confdefs.h <<_ACEOF
32207#define FILTER_PATH "$DEFINE_FILTER_PATH"
32208_ACEOF
32209
32210
32211
32212#
32213# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032214DOCUMENTATION_RELATIVE_PATH=""
32215DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32216DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032217case "${build_os}" in
32218 mingw* )
32219 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32220 ;;
32221esac
32222
32223cat >>confdefs.h <<_ACEOF
32224#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32225_ACEOF
32226
32227
32228
cristy2a11bef2011-10-28 18:33:11 +000032229# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032230CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032231
32232cat >>confdefs.h <<_ACEOF
32233#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32234_ACEOF
32235
cristy7def36a2011-10-28 19:04:41 +000032236CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032237DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32238case "${build_os}" in
32239 mingw* )
32240 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32241 ;;
32242esac
32243
32244cat >>confdefs.h <<_ACEOF
32245#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32246_ACEOF
32247
32248
32249
cristy2a11bef2011-10-28 18:33:11 +000032250# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032251SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032252
32253cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032254#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032255_ACEOF
32256
cristy670aa3c2011-11-03 00:54:00 +000032257SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032258DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032259case "${build_os}" in
32260 mingw* )
cristy4f820712011-04-01 12:35:43 +000032261 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032262 ;;
32263esac
32264
32265cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032266#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032267_ACEOF
32268
32269
32270
cristy408ebcd2011-11-14 01:36:57 +000032271# Subdirectory to place architecture-dependent configuration files
32272SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032273
32274cat >>confdefs.h <<_ACEOF
32275#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32276_ACEOF
32277
cristy408ebcd2011-11-14 01:36:57 +000032278SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32279DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032280case "${build_os}" in
32281 mingw* )
32282 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32283 ;;
32284esac
32285
32286cat >>confdefs.h <<_ACEOF
32287#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32288_ACEOF
32289
32290
32291
cristy3ed852e2009-09-05 21:47:34 +000032292#
32293# program_transform_name is formed for use in a Makefile, so create a
32294# modified version for use in a shell script.
32295configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32296
32297# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032298{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32299$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032301$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032302{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32303$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032304AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032305BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032306BZIPDelegateDefault='bzip2'
32307BrowseDelegateDefault='xdg-open'
32308CGMDecodeDelegateDefault='ralcgm'
32309CatDelegateDefault='cat'
32310DNGDecodeDelegateDefault='ufraw-batch'
32311GVCDecodeDelegateDefault='dot'
32312DVIDecodeDelegateDefault='dvips'
32313EchoDelegateDefault='echo'
32314EditorDelegateDefault='xterm'
32315FIGDecodeDelegateDefault='fig2dev'
32316ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32317DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32318MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32319GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032320HPGLDecodeDelegateDefault='hp2xx'
32321HTMLDecodeDelegateDefault='html2ps'
32322ILBMDecodeDelegateDefault='ilbmtoppm'
32323ILBMEncodeDelegateDefault='ppmtoilbm'
32324LPDelegateDefault='lp'
32325LPRDelegateDefault='lpr'
32326LZWDecodeDelegateDefault='uncompress'
32327LZWEncodeDelegateDefault='compress'
32328LaunchDelegateDefault='gimp'
32329MANDelegateDefault='groff'
32330MPEGDecodeDelegateDefault='ffmpeg'
32331MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032332MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032333MVDelegateDefault='mv'
32334PCLDelegateDefault='pcl6'
32335PGPDecodeDelegateDefault='pgpv'
32336POVDelegateDefault='povray'
32337if test "$native_win32_build" = 'yes'; then
32338 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032339elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032340 PSDelegateDefault='gsc'
32341else
32342 PSDelegateDefault='gs'
32343fi
32344RLEEncodeDelegateDefault='rawtorle'
32345RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032346RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032347SCANDecodeDelegateDefault='scanimage'
32348TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032349UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032350WMFDecodeDelegateDefault='wmf2eps'
32351WWWDecodeDelegateDefault='curl'
32352XPSDelegateDefault='gxps'
32353ZipDelegateDefault='gzip'
32354
32355# Search for delegates
32356# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32357set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032359$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032360if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032361 $as_echo_n "(cached) " >&6
32362else
32363 case $AutotraceDecodeDelegate in
32364 [\\/]* | ?:[\\/]*)
32365 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32366 ;;
32367 *)
32368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32369for as_dir in $PATH
32370do
32371 IFS=$as_save_IFS
32372 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032373 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32375 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032377 break 2
32378 fi
32379done
cristy8b350f62009-11-15 23:12:43 +000032380 done
cristy3ed852e2009-09-05 21:47:34 +000032381IFS=$as_save_IFS
32382
32383 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32384 ;;
32385esac
32386fi
32387AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32388if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032390$as_echo "$AutotraceDecodeDelegate" >&6; }
32391else
cristy8b350f62009-11-15 23:12:43 +000032392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032393$as_echo "no" >&6; }
32394fi
32395
32396
cristy3ed852e2009-09-05 21:47:34 +000032397# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32398set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032400$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032401if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032402 $as_echo_n "(cached) " >&6
32403else
32404 case $BlenderDecodeDelegate in
32405 [\\/]* | ?:[\\/]*)
32406 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32407 ;;
32408 *)
32409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32410for as_dir in $PATH
32411do
32412 IFS=$as_save_IFS
32413 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032414 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32416 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032418 break 2
32419 fi
32420done
cristy8b350f62009-11-15 23:12:43 +000032421 done
cristy3ed852e2009-09-05 21:47:34 +000032422IFS=$as_save_IFS
32423
32424 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32425 ;;
32426esac
32427fi
32428BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32429if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032431$as_echo "$BlenderDecodeDelegate" >&6; }
32432else
cristy8b350f62009-11-15 23:12:43 +000032433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032434$as_echo "no" >&6; }
32435fi
32436
32437
32438# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32439set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032441$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032442if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032443 $as_echo_n "(cached) " >&6
32444else
32445 case $BZIPDelegate in
32446 [\\/]* | ?:[\\/]*)
32447 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32448 ;;
32449 *)
32450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32451for as_dir in $PATH
32452do
32453 IFS=$as_save_IFS
32454 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032455 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32457 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032459 break 2
32460 fi
32461done
cristy8b350f62009-11-15 23:12:43 +000032462 done
cristy3ed852e2009-09-05 21:47:34 +000032463IFS=$as_save_IFS
32464
32465 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32466 ;;
32467esac
32468fi
32469BZIPDelegate=$ac_cv_path_BZIPDelegate
32470if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032472$as_echo "$BZIPDelegate" >&6; }
32473else
cristy8b350f62009-11-15 23:12:43 +000032474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032475$as_echo "no" >&6; }
32476fi
32477
32478
32479# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32480set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032482$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032483if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032484 $as_echo_n "(cached) " >&6
32485else
32486 case $BrowseDelegate in
32487 [\\/]* | ?:[\\/]*)
32488 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32489 ;;
32490 *)
32491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32492for as_dir in $PATH
32493do
32494 IFS=$as_save_IFS
32495 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032496 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32498 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032500 break 2
32501 fi
32502done
cristy8b350f62009-11-15 23:12:43 +000032503 done
cristy3ed852e2009-09-05 21:47:34 +000032504IFS=$as_save_IFS
32505
32506 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32507 ;;
32508esac
32509fi
32510BrowseDelegate=$ac_cv_path_BrowseDelegate
32511if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032513$as_echo "$BrowseDelegate" >&6; }
32514else
cristy8b350f62009-11-15 23:12:43 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032516$as_echo "no" >&6; }
32517fi
32518
32519
32520# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32521set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032523$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032524if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032525 $as_echo_n "(cached) " >&6
32526else
32527 case $CGMDecodeDelegate in
32528 [\\/]* | ?:[\\/]*)
32529 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32530 ;;
32531 *)
32532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32533for as_dir in $PATH
32534do
32535 IFS=$as_save_IFS
32536 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32539 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032541 break 2
32542 fi
32543done
cristy8b350f62009-11-15 23:12:43 +000032544 done
cristy3ed852e2009-09-05 21:47:34 +000032545IFS=$as_save_IFS
32546
32547 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32548 ;;
32549esac
32550fi
32551CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32552if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032554$as_echo "$CGMDecodeDelegate" >&6; }
32555else
cristy8b350f62009-11-15 23:12:43 +000032556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032557$as_echo "no" >&6; }
32558fi
32559
32560
32561# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32562set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032565if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032566 $as_echo_n "(cached) " >&6
32567else
32568 case $CatDelegate in
32569 [\\/]* | ?:[\\/]*)
32570 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32571 ;;
32572 *)
32573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32574for as_dir in $PATH
32575do
32576 IFS=$as_save_IFS
32577 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032578 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32580 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032582 break 2
32583 fi
32584done
cristy8b350f62009-11-15 23:12:43 +000032585 done
cristy3ed852e2009-09-05 21:47:34 +000032586IFS=$as_save_IFS
32587
32588 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32589 ;;
32590esac
32591fi
32592CatDelegate=$ac_cv_path_CatDelegate
32593if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032595$as_echo "$CatDelegate" >&6; }
32596else
cristy8b350f62009-11-15 23:12:43 +000032597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032598$as_echo "no" >&6; }
32599fi
32600
32601
32602# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32603set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032605$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032606if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032607 $as_echo_n "(cached) " >&6
32608else
32609 case $DNGDecodeDelegate in
32610 [\\/]* | ?:[\\/]*)
32611 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32612 ;;
32613 *)
32614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32615for as_dir in $PATH
32616do
32617 IFS=$as_save_IFS
32618 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032619 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32621 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032623 break 2
32624 fi
32625done
cristy8b350f62009-11-15 23:12:43 +000032626 done
cristy3ed852e2009-09-05 21:47:34 +000032627IFS=$as_save_IFS
32628
32629 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32630 ;;
32631esac
32632fi
32633DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32634if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032636$as_echo "$DNGDecodeDelegate" >&6; }
32637else
cristy8b350f62009-11-15 23:12:43 +000032638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032639$as_echo "no" >&6; }
32640fi
32641
32642
32643# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32644set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032646$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032647if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032648 $as_echo_n "(cached) " >&6
32649else
32650 case $GVCDecodeDelegate in
32651 [\\/]* | ?:[\\/]*)
32652 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32653 ;;
32654 *)
32655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32656for as_dir in $PATH
32657do
32658 IFS=$as_save_IFS
32659 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032660 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32662 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032664 break 2
32665 fi
32666done
cristy8b350f62009-11-15 23:12:43 +000032667 done
cristy3ed852e2009-09-05 21:47:34 +000032668IFS=$as_save_IFS
32669
32670 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32671 ;;
32672esac
32673fi
32674GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32675if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032677$as_echo "$GVCDecodeDelegate" >&6; }
32678else
cristy8b350f62009-11-15 23:12:43 +000032679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032680$as_echo "no" >&6; }
32681fi
32682
32683
32684# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32685set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032688if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032689 $as_echo_n "(cached) " >&6
32690else
32691 case $DVIDecodeDelegate in
32692 [\\/]* | ?:[\\/]*)
32693 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32694 ;;
32695 *)
32696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32697for as_dir in $PATH
32698do
32699 IFS=$as_save_IFS
32700 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32703 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032705 break 2
32706 fi
32707done
cristy8b350f62009-11-15 23:12:43 +000032708 done
cristy3ed852e2009-09-05 21:47:34 +000032709IFS=$as_save_IFS
32710
32711 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32712 ;;
32713esac
32714fi
32715DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32716if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032718$as_echo "$DVIDecodeDelegate" >&6; }
32719else
cristy8b350f62009-11-15 23:12:43 +000032720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032721$as_echo "no" >&6; }
32722fi
32723
32724
32725# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32726set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032729if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032730 $as_echo_n "(cached) " >&6
32731else
32732 case $EchoDelegate in
32733 [\\/]* | ?:[\\/]*)
32734 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32735 ;;
32736 *)
32737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32738for as_dir in $PATH
32739do
32740 IFS=$as_save_IFS
32741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32744 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032746 break 2
32747 fi
32748done
cristy8b350f62009-11-15 23:12:43 +000032749 done
cristy3ed852e2009-09-05 21:47:34 +000032750IFS=$as_save_IFS
32751
32752 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32753 ;;
32754esac
32755fi
32756EchoDelegate=$ac_cv_path_EchoDelegate
32757if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032759$as_echo "$EchoDelegate" >&6; }
32760else
cristy8b350f62009-11-15 23:12:43 +000032761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032762$as_echo "no" >&6; }
32763fi
32764
32765
32766# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32767set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032770if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032771 $as_echo_n "(cached) " >&6
32772else
32773 case $EditorDelegate in
32774 [\\/]* | ?:[\\/]*)
32775 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32776 ;;
32777 *)
32778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32779for as_dir in $PATH
32780do
32781 IFS=$as_save_IFS
32782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32785 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032787 break 2
32788 fi
32789done
cristy8b350f62009-11-15 23:12:43 +000032790 done
cristy3ed852e2009-09-05 21:47:34 +000032791IFS=$as_save_IFS
32792
32793 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32794 ;;
32795esac
32796fi
32797EditorDelegate=$ac_cv_path_EditorDelegate
32798if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032800$as_echo "$EditorDelegate" >&6; }
32801else
cristy8b350f62009-11-15 23:12:43 +000032802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803$as_echo "no" >&6; }
32804fi
32805
32806
32807# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32808set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032810$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032811if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032812 $as_echo_n "(cached) " >&6
32813else
32814 case $FIGDecodeDelegate in
32815 [\\/]* | ?:[\\/]*)
32816 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32817 ;;
32818 *)
32819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32820for as_dir in $PATH
32821do
32822 IFS=$as_save_IFS
32823 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032824 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32826 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032828 break 2
32829 fi
32830done
cristy8b350f62009-11-15 23:12:43 +000032831 done
cristy3ed852e2009-09-05 21:47:34 +000032832IFS=$as_save_IFS
32833
32834 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32835 ;;
32836esac
32837fi
32838FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32839if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032841$as_echo "$FIGDecodeDelegate" >&6; }
32842else
cristy8b350f62009-11-15 23:12:43 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "no" >&6; }
32845fi
32846
32847
32848# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32849set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032851$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032852if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032853 $as_echo_n "(cached) " >&6
32854else
32855 case $ConvertDelegate in
32856 [\\/]* | ?:[\\/]*)
32857 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32858 ;;
32859 *)
32860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32861for as_dir in $PATH
32862do
32863 IFS=$as_save_IFS
32864 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032865 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32867 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032869 break 2
32870 fi
32871done
cristy8b350f62009-11-15 23:12:43 +000032872 done
cristy3ed852e2009-09-05 21:47:34 +000032873IFS=$as_save_IFS
32874
32875 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32876 ;;
32877esac
32878fi
32879ConvertDelegate=$ac_cv_path_ConvertDelegate
32880if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032882$as_echo "$ConvertDelegate" >&6; }
32883else
cristy8b350f62009-11-15 23:12:43 +000032884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo "no" >&6; }
32886fi
32887
32888
32889# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32890set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032892$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032893if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032894 $as_echo_n "(cached) " >&6
32895else
32896 case $DisplayDelegate in
32897 [\\/]* | ?:[\\/]*)
32898 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32899 ;;
32900 *)
32901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32902for as_dir in $PATH
32903do
32904 IFS=$as_save_IFS
32905 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032906 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32908 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032910 break 2
32911 fi
32912done
cristy8b350f62009-11-15 23:12:43 +000032913 done
cristy3ed852e2009-09-05 21:47:34 +000032914IFS=$as_save_IFS
32915
32916 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32917 ;;
32918esac
32919fi
32920DisplayDelegate=$ac_cv_path_DisplayDelegate
32921if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032923$as_echo "$DisplayDelegate" >&6; }
32924else
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo "no" >&6; }
32927fi
32928
32929
32930# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32931set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032933$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032934if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032935 $as_echo_n "(cached) " >&6
32936else
32937 case $MogrifyDelegate in
32938 [\\/]* | ?:[\\/]*)
32939 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32940 ;;
32941 *)
32942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32943for as_dir in $PATH
32944do
32945 IFS=$as_save_IFS
32946 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032947 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32949 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032951 break 2
32952 fi
32953done
cristy8b350f62009-11-15 23:12:43 +000032954 done
cristy3ed852e2009-09-05 21:47:34 +000032955IFS=$as_save_IFS
32956
32957 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32958 ;;
32959esac
32960fi
32961MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32962if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032964$as_echo "$MogrifyDelegate" >&6; }
32965else
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo "no" >&6; }
32968fi
32969
32970
32971# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32972set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032974$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032975if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032976 $as_echo_n "(cached) " >&6
32977else
32978 case $GnuplotDecodeDelegate in
32979 [\\/]* | ?:[\\/]*)
32980 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32981 ;;
32982 *)
32983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32984for as_dir in $PATH
32985do
32986 IFS=$as_save_IFS
32987 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032988 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32990 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032992 break 2
32993 fi
32994done
cristy8b350f62009-11-15 23:12:43 +000032995 done
cristy3ed852e2009-09-05 21:47:34 +000032996IFS=$as_save_IFS
32997
32998 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32999 ;;
33000esac
33001fi
33002GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33003if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033005$as_echo "$GnuplotDecodeDelegate" >&6; }
33006else
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "no" >&6; }
33009fi
33010
33011
cristy3ed852e2009-09-05 21:47:34 +000033012# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33013set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033016if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033017 $as_echo_n "(cached) " >&6
33018else
33019 case $HPGLDecodeDelegate in
33020 [\\/]* | ?:[\\/]*)
33021 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33022 ;;
33023 *)
33024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33025for as_dir in $PATH
33026do
33027 IFS=$as_save_IFS
33028 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033029 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33031 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033033 break 2
33034 fi
33035done
cristy8b350f62009-11-15 23:12:43 +000033036 done
cristy3ed852e2009-09-05 21:47:34 +000033037IFS=$as_save_IFS
33038
33039 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33040 ;;
33041esac
33042fi
33043HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33044if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033046$as_echo "$HPGLDecodeDelegate" >&6; }
33047else
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo "no" >&6; }
33050fi
33051
33052
33053# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33054set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033056$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033057if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033058 $as_echo_n "(cached) " >&6
33059else
33060 case $HTMLDecodeDelegate in
33061 [\\/]* | ?:[\\/]*)
33062 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33063 ;;
33064 *)
33065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33066for as_dir in $PATH
33067do
33068 IFS=$as_save_IFS
33069 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033070 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33072 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033074 break 2
33075 fi
33076done
cristy8b350f62009-11-15 23:12:43 +000033077 done
cristy3ed852e2009-09-05 21:47:34 +000033078IFS=$as_save_IFS
33079
33080 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33081 ;;
33082esac
33083fi
33084HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33085if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033087$as_echo "$HTMLDecodeDelegate" >&6; }
33088else
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "no" >&6; }
33091fi
33092
33093
33094# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33095set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033097$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033098if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033099 $as_echo_n "(cached) " >&6
33100else
33101 case $ILBMDecodeDelegate in
33102 [\\/]* | ?:[\\/]*)
33103 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33104 ;;
33105 *)
33106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33107for as_dir in $PATH
33108do
33109 IFS=$as_save_IFS
33110 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033111 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33113 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033115 break 2
33116 fi
33117done
cristy8b350f62009-11-15 23:12:43 +000033118 done
cristy3ed852e2009-09-05 21:47:34 +000033119IFS=$as_save_IFS
33120
33121 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33122 ;;
33123esac
33124fi
33125ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33126if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033128$as_echo "$ILBMDecodeDelegate" >&6; }
33129else
cristy8b350f62009-11-15 23:12:43 +000033130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo "no" >&6; }
33132fi
33133
33134
33135# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33136set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033138$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033139if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033140 $as_echo_n "(cached) " >&6
33141else
33142 case $ILBMEncodeDelegate in
33143 [\\/]* | ?:[\\/]*)
33144 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33145 ;;
33146 *)
33147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33148for as_dir in $PATH
33149do
33150 IFS=$as_save_IFS
33151 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033152 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33154 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033156 break 2
33157 fi
33158done
cristy8b350f62009-11-15 23:12:43 +000033159 done
cristy3ed852e2009-09-05 21:47:34 +000033160IFS=$as_save_IFS
33161
33162 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33163 ;;
33164esac
33165fi
33166ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33167if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033169$as_echo "$ILBMEncodeDelegate" >&6; }
33170else
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "no" >&6; }
33173fi
33174
33175
33176# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33177set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033180if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033181 $as_echo_n "(cached) " >&6
33182else
33183 case $LPDelegate in
33184 [\\/]* | ?:[\\/]*)
33185 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33186 ;;
33187 *)
33188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33189for as_dir in $PATH
33190do
33191 IFS=$as_save_IFS
33192 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033193 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33195 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033197 break 2
33198 fi
33199done
cristy8b350f62009-11-15 23:12:43 +000033200 done
cristy3ed852e2009-09-05 21:47:34 +000033201IFS=$as_save_IFS
33202
33203 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33204 ;;
33205esac
33206fi
33207LPDelegate=$ac_cv_path_LPDelegate
33208if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033210$as_echo "$LPDelegate" >&6; }
33211else
cristy8b350f62009-11-15 23:12:43 +000033212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo "no" >&6; }
33214fi
33215
33216
33217# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33218set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033220$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033221if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033222 $as_echo_n "(cached) " >&6
33223else
33224 case $LPRDelegate in
33225 [\\/]* | ?:[\\/]*)
33226 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33227 ;;
33228 *)
33229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33230for as_dir in $PATH
33231do
33232 IFS=$as_save_IFS
33233 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033234 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33236 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033238 break 2
33239 fi
33240done
cristy8b350f62009-11-15 23:12:43 +000033241 done
cristy3ed852e2009-09-05 21:47:34 +000033242IFS=$as_save_IFS
33243
33244 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33245 ;;
33246esac
33247fi
33248LPRDelegate=$ac_cv_path_LPRDelegate
33249if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033251$as_echo "$LPRDelegate" >&6; }
33252else
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "no" >&6; }
33255fi
33256
33257
33258# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33259set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033262if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033263 $as_echo_n "(cached) " >&6
33264else
33265 case $LZWDecodeDelegate in
33266 [\\/]* | ?:[\\/]*)
33267 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33268 ;;
33269 *)
33270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33271for as_dir in $PATH
33272do
33273 IFS=$as_save_IFS
33274 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33277 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033279 break 2
33280 fi
33281done
cristy8b350f62009-11-15 23:12:43 +000033282 done
cristy3ed852e2009-09-05 21:47:34 +000033283IFS=$as_save_IFS
33284
33285 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33286 ;;
33287esac
33288fi
33289LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33290if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033292$as_echo "$LZWDecodeDelegate" >&6; }
33293else
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "no" >&6; }
33296fi
33297
33298
33299# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33300set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033302$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033303if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033304 $as_echo_n "(cached) " >&6
33305else
33306 case $LZWEncodeDelegate in
33307 [\\/]* | ?:[\\/]*)
33308 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33309 ;;
33310 *)
33311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33312for as_dir in $PATH
33313do
33314 IFS=$as_save_IFS
33315 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33318 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033320 break 2
33321 fi
33322done
cristy8b350f62009-11-15 23:12:43 +000033323 done
cristy3ed852e2009-09-05 21:47:34 +000033324IFS=$as_save_IFS
33325
33326 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33327 ;;
33328esac
33329fi
33330LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33331if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033333$as_echo "$LZWEncodeDelegate" >&6; }
33334else
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "no" >&6; }
33337fi
33338
33339
33340# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33341set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033344if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033345 $as_echo_n "(cached) " >&6
33346else
33347 case $LaunchDelegate in
33348 [\\/]* | ?:[\\/]*)
33349 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33350 ;;
33351 *)
33352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33353for as_dir in $PATH
33354do
33355 IFS=$as_save_IFS
33356 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033357 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33359 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033361 break 2
33362 fi
33363done
cristy8b350f62009-11-15 23:12:43 +000033364 done
cristy3ed852e2009-09-05 21:47:34 +000033365IFS=$as_save_IFS
33366
33367 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33368 ;;
33369esac
33370fi
33371LaunchDelegate=$ac_cv_path_LaunchDelegate
33372if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033374$as_echo "$LaunchDelegate" >&6; }
33375else
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "no" >&6; }
33378fi
33379
33380
33381# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33382set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033385if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033386 $as_echo_n "(cached) " >&6
33387else
33388 case $MANDelegate in
33389 [\\/]* | ?:[\\/]*)
33390 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33391 ;;
33392 *)
33393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33394for as_dir in $PATH
33395do
33396 IFS=$as_save_IFS
33397 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033398 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33400 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033402 break 2
33403 fi
33404done
cristy8b350f62009-11-15 23:12:43 +000033405 done
cristy3ed852e2009-09-05 21:47:34 +000033406IFS=$as_save_IFS
33407
33408 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33409 ;;
33410esac
33411fi
33412MANDelegate=$ac_cv_path_MANDelegate
33413if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033415$as_echo "$MANDelegate" >&6; }
33416else
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "no" >&6; }
33419fi
33420
33421
33422# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33423set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033426if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033427 $as_echo_n "(cached) " >&6
33428else
33429 case $MPEGDecodeDelegate in
33430 [\\/]* | ?:[\\/]*)
33431 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33432 ;;
33433 *)
33434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33435for as_dir in $PATH
33436do
33437 IFS=$as_save_IFS
33438 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33441 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033443 break 2
33444 fi
33445done
cristy8b350f62009-11-15 23:12:43 +000033446 done
cristy3ed852e2009-09-05 21:47:34 +000033447IFS=$as_save_IFS
33448
33449 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33450 ;;
33451esac
33452fi
33453MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33454if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo "$MPEGDecodeDelegate" >&6; }
33457else
cristy8b350f62009-11-15 23:12:43 +000033458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo "no" >&6; }
33460fi
33461
33462
33463# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33464set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033467if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033468 $as_echo_n "(cached) " >&6
33469else
33470 case $MPEGEncodeDelegate in
33471 [\\/]* | ?:[\\/]*)
33472 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33473 ;;
33474 *)
33475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33476for as_dir in $PATH
33477do
33478 IFS=$as_save_IFS
33479 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033480 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33482 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033484 break 2
33485 fi
33486done
cristy8b350f62009-11-15 23:12:43 +000033487 done
cristy3ed852e2009-09-05 21:47:34 +000033488IFS=$as_save_IFS
33489
33490 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33491 ;;
33492esac
33493fi
33494MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33495if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033497$as_echo "$MPEGEncodeDelegate" >&6; }
33498else
cristy8b350f62009-11-15 23:12:43 +000033499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo "no" >&6; }
33501fi
33502
33503
cristy935c86e2010-06-05 23:50:07 +000033504# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33505set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33507$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033508if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033509 $as_echo_n "(cached) " >&6
33510else
33511 case $MrSIDDecodeDelegate in
33512 [\\/]* | ?:[\\/]*)
33513 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33514 ;;
33515 *)
33516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33517for as_dir in $PATH
33518do
33519 IFS=$as_save_IFS
33520 test -z "$as_dir" && as_dir=.
33521 for ac_exec_ext in '' $ac_executable_extensions; do
33522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33523 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33525 break 2
33526 fi
33527done
33528 done
33529IFS=$as_save_IFS
33530
33531 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33532 ;;
33533esac
33534fi
33535MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33536if test -n "$MrSIDDecodeDelegate"; then
33537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33538$as_echo "$MrSIDDecodeDelegate" >&6; }
33539else
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33541$as_echo "no" >&6; }
33542fi
33543
33544
cristy3ed852e2009-09-05 21:47:34 +000033545# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33546set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033549if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033550 $as_echo_n "(cached) " >&6
33551else
33552 case $MVDelegate in
33553 [\\/]* | ?:[\\/]*)
33554 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33555 ;;
33556 *)
33557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33558for as_dir in $PATH
33559do
33560 IFS=$as_save_IFS
33561 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033562 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33564 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033566 break 2
33567 fi
33568done
cristy8b350f62009-11-15 23:12:43 +000033569 done
cristy3ed852e2009-09-05 21:47:34 +000033570IFS=$as_save_IFS
33571
33572 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33573 ;;
33574esac
33575fi
33576MVDelegate=$ac_cv_path_MVDelegate
33577if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033579$as_echo "$MVDelegate" >&6; }
33580else
cristy8b350f62009-11-15 23:12:43 +000033581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo "no" >&6; }
33583fi
33584
33585
33586# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33587set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033590if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033591 $as_echo_n "(cached) " >&6
33592else
33593 case $PCLDelegate in
33594 [\\/]* | ?:[\\/]*)
33595 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33596 ;;
33597 *)
33598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33599for as_dir in $PATH
33600do
33601 IFS=$as_save_IFS
33602 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033603 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33605 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033607 break 2
33608 fi
33609done
cristy8b350f62009-11-15 23:12:43 +000033610 done
cristy3ed852e2009-09-05 21:47:34 +000033611IFS=$as_save_IFS
33612
33613 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33614 ;;
33615esac
33616fi
33617PCLDelegate=$ac_cv_path_PCLDelegate
33618if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033620$as_echo "$PCLDelegate" >&6; }
33621else
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "no" >&6; }
33624fi
33625
33626
33627# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33628set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033631if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033632 $as_echo_n "(cached) " >&6
33633else
33634 case $PGPDecodeDelegate in
33635 [\\/]* | ?:[\\/]*)
33636 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33637 ;;
33638 *)
33639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33640for as_dir in $PATH
33641do
33642 IFS=$as_save_IFS
33643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33646 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033648 break 2
33649 fi
33650done
cristy8b350f62009-11-15 23:12:43 +000033651 done
cristy3ed852e2009-09-05 21:47:34 +000033652IFS=$as_save_IFS
33653
33654 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33655 ;;
33656esac
33657fi
33658PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33659if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033661$as_echo "$PGPDecodeDelegate" >&6; }
33662else
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "no" >&6; }
33665fi
33666
33667
33668# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33669set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033672if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033673 $as_echo_n "(cached) " >&6
33674else
33675 case $POVDelegate in
33676 [\\/]* | ?:[\\/]*)
33677 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33678 ;;
33679 *)
33680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33681for as_dir in $PATH
33682do
33683 IFS=$as_save_IFS
33684 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033685 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33687 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033689 break 2
33690 fi
33691done
cristy8b350f62009-11-15 23:12:43 +000033692 done
cristy3ed852e2009-09-05 21:47:34 +000033693IFS=$as_save_IFS
33694
33695 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33696 ;;
33697esac
33698fi
33699POVDelegate=$ac_cv_path_POVDelegate
33700if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033702$as_echo "$POVDelegate" >&6; }
33703else
cristy8b350f62009-11-15 23:12:43 +000033704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo "no" >&6; }
33706fi
33707
33708
33709for ac_prog in gsx gsc "$PSDelegateDefault"
33710do
33711 # Extract the first word of "$ac_prog", so it can be a program name with args.
33712set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033715if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033716 $as_echo_n "(cached) " >&6
33717else
33718 case $PSDelegate in
33719 [\\/]* | ?:[\\/]*)
33720 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33721 ;;
33722 *)
33723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33724for as_dir in $PATH
33725do
33726 IFS=$as_save_IFS
33727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33730 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033732 break 2
33733 fi
33734done
cristy8b350f62009-11-15 23:12:43 +000033735 done
cristy3ed852e2009-09-05 21:47:34 +000033736IFS=$as_save_IFS
33737
33738 ;;
33739esac
33740fi
33741PSDelegate=$ac_cv_path_PSDelegate
33742if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744$as_echo "$PSDelegate" >&6; }
33745else
cristy8b350f62009-11-15 23:12:43 +000033746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747$as_echo "no" >&6; }
33748fi
33749
33750
33751 test -n "$PSDelegate" && break
33752done
33753test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33754
33755# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33756set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033758$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033759if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033760 $as_echo_n "(cached) " >&6
33761else
33762 case $RLEEncodeDelegate in
33763 [\\/]* | ?:[\\/]*)
33764 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33765 ;;
33766 *)
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768for as_dir in $PATH
33769do
33770 IFS=$as_save_IFS
33771 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033772 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33774 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033776 break 2
33777 fi
33778done
cristy8b350f62009-11-15 23:12:43 +000033779 done
cristy3ed852e2009-09-05 21:47:34 +000033780IFS=$as_save_IFS
33781
33782 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33783 ;;
33784esac
33785fi
33786RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33787if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033789$as_echo "$RLEEncodeDelegate" >&6; }
33790else
cristy8b350f62009-11-15 23:12:43 +000033791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033792$as_echo "no" >&6; }
33793fi
33794
33795
33796# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33797set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033799$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033800if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033801 $as_echo_n "(cached) " >&6
33802else
33803 case $RMDelegate in
33804 [\\/]* | ?:[\\/]*)
33805 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33806 ;;
33807 *)
33808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33809for as_dir in $PATH
33810do
33811 IFS=$as_save_IFS
33812 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033813 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33815 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817 break 2
33818 fi
33819done
cristy8b350f62009-11-15 23:12:43 +000033820 done
cristy3ed852e2009-09-05 21:47:34 +000033821IFS=$as_save_IFS
33822
33823 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33824 ;;
33825esac
33826fi
33827RMDelegate=$ac_cv_path_RMDelegate
33828if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033830$as_echo "$RMDelegate" >&6; }
33831else
cristy8b350f62009-11-15 23:12:43 +000033832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033833$as_echo "no" >&6; }
33834fi
33835
33836
cristy4689cf02010-02-17 21:15:45 +000033837# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33838set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33840$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033841if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033842 $as_echo_n "(cached) " >&6
33843else
33844 case $RSVGDecodeDelegate in
33845 [\\/]* | ?:[\\/]*)
33846 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33847 ;;
33848 *)
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850for as_dir in $PATH
33851do
33852 IFS=$as_save_IFS
33853 test -z "$as_dir" && as_dir=.
33854 for ac_exec_ext in '' $ac_executable_extensions; do
33855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33856 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33858 break 2
33859 fi
33860done
33861 done
33862IFS=$as_save_IFS
33863
33864 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33865 ;;
33866esac
33867fi
33868RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33869if test -n "$RSVGDecodeDelegate"; then
33870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33871$as_echo "$RSVGDecodeDelegate" >&6; }
33872else
33873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33874$as_echo "no" >&6; }
33875fi
33876
33877
cristy3ed852e2009-09-05 21:47:34 +000033878# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33879set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033881$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033882if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033883 $as_echo_n "(cached) " >&6
33884else
33885 case $SCANDecodeDelegate in
33886 [\\/]* | ?:[\\/]*)
33887 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33888 ;;
33889 *)
33890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33891for as_dir in $PATH
33892do
33893 IFS=$as_save_IFS
33894 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033895 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33897 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033899 break 2
33900 fi
33901done
cristy8b350f62009-11-15 23:12:43 +000033902 done
cristy3ed852e2009-09-05 21:47:34 +000033903IFS=$as_save_IFS
33904
33905 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33906 ;;
33907esac
33908fi
33909SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33910if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033912$as_echo "$SCANDecodeDelegate" >&6; }
33913else
cristy8b350f62009-11-15 23:12:43 +000033914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033915$as_echo "no" >&6; }
33916fi
33917
33918
33919# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33920set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033922$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033923if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033924 $as_echo_n "(cached) " >&6
33925else
33926 case $TXTDelegate in
33927 [\\/]* | ?:[\\/]*)
33928 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33929 ;;
33930 *)
33931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33932for as_dir in $PATH
33933do
33934 IFS=$as_save_IFS
33935 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033936 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33938 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033940 break 2
33941 fi
33942done
cristy8b350f62009-11-15 23:12:43 +000033943 done
cristy3ed852e2009-09-05 21:47:34 +000033944IFS=$as_save_IFS
33945
33946 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33947 ;;
33948esac
33949fi
33950TXTDelegate=$ac_cv_path_TXTDelegate
33951if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033953$as_echo "$TXTDelegate" >&6; }
33954else
cristy8b350f62009-11-15 23:12:43 +000033955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033956$as_echo "no" >&6; }
33957fi
33958
33959
cristy5ac9ac82010-07-29 13:24:24 +000033960# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33961set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33963$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033964if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033965 $as_echo_n "(cached) " >&6
33966else
33967 case $UniconvertorDelegate in
33968 [\\/]* | ?:[\\/]*)
33969 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33970 ;;
33971 *)
33972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33973for as_dir in $PATH
33974do
33975 IFS=$as_save_IFS
33976 test -z "$as_dir" && as_dir=.
33977 for ac_exec_ext in '' $ac_executable_extensions; do
33978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33979 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33981 break 2
33982 fi
33983done
33984 done
33985IFS=$as_save_IFS
33986
33987 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33988 ;;
33989esac
33990fi
33991UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33992if test -n "$UniconvertorDelegate"; then
33993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33994$as_echo "$UniconvertorDelegate" >&6; }
33995else
33996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33997$as_echo "no" >&6; }
33998fi
33999
34000
cristy3ed852e2009-09-05 21:47:34 +000034001# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34002set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034005if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034006 $as_echo_n "(cached) " >&6
34007else
34008 case $WMFDecodeDelegate in
34009 [\\/]* | ?:[\\/]*)
34010 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34011 ;;
34012 *)
34013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34014for as_dir in $PATH
34015do
34016 IFS=$as_save_IFS
34017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34020 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034022 break 2
34023 fi
34024done
cristy8b350f62009-11-15 23:12:43 +000034025 done
cristy3ed852e2009-09-05 21:47:34 +000034026IFS=$as_save_IFS
34027
34028 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34029 ;;
34030esac
34031fi
34032WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34033if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034035$as_echo "$WMFDecodeDelegate" >&6; }
34036else
cristy8b350f62009-11-15 23:12:43 +000034037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034038$as_echo "no" >&6; }
34039fi
34040
34041
34042# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34043set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034046if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034047 $as_echo_n "(cached) " >&6
34048else
34049 case $WWWDecodeDelegate in
34050 [\\/]* | ?:[\\/]*)
34051 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34052 ;;
34053 *)
34054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34055for as_dir in $PATH
34056do
34057 IFS=$as_save_IFS
34058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34061 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034063 break 2
34064 fi
34065done
cristy8b350f62009-11-15 23:12:43 +000034066 done
cristy3ed852e2009-09-05 21:47:34 +000034067IFS=$as_save_IFS
34068
34069 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34070 ;;
34071esac
34072fi
34073WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34074if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034076$as_echo "$WWWDecodeDelegate" >&6; }
34077else
cristy8b350f62009-11-15 23:12:43 +000034078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034079$as_echo "no" >&6; }
34080fi
34081
34082
34083# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34084set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034087if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034088 $as_echo_n "(cached) " >&6
34089else
34090 case $XPSDelegate in
34091 [\\/]* | ?:[\\/]*)
34092 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34093 ;;
34094 *)
34095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34096for as_dir in $PATH
34097do
34098 IFS=$as_save_IFS
34099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34102 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034104 break 2
34105 fi
34106done
cristy8b350f62009-11-15 23:12:43 +000034107 done
cristy3ed852e2009-09-05 21:47:34 +000034108IFS=$as_save_IFS
34109
34110 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34111 ;;
34112esac
34113fi
34114XPSDelegate=$ac_cv_path_XPSDelegate
34115if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034117$as_echo "$XPSDelegate" >&6; }
34118else
cristy8b350f62009-11-15 23:12:43 +000034119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034120$as_echo "no" >&6; }
34121fi
34122
34123
34124# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34125set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034127$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034128if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034129 $as_echo_n "(cached) " >&6
34130else
34131 case $ZipDelegate in
34132 [\\/]* | ?:[\\/]*)
34133 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34134 ;;
34135 *)
34136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34137for as_dir in $PATH
34138do
34139 IFS=$as_save_IFS
34140 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034141 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34143 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034145 break 2
34146 fi
34147done
cristy8b350f62009-11-15 23:12:43 +000034148 done
cristy3ed852e2009-09-05 21:47:34 +000034149IFS=$as_save_IFS
34150
34151 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34152 ;;
34153esac
34154fi
34155ZipDelegate=$ac_cv_path_ZipDelegate
34156if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034158$as_echo "$ZipDelegate" >&6; }
34159else
cristy8b350f62009-11-15 23:12:43 +000034160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034161$as_echo "no" >&6; }
34162fi
34163
34164
34165
34166# Prefer lpr to lp; lp needs options tacked on.
34167if test "$LPRDelegate" != no; then
34168 PrintDelegate="$LPRDelegate"
34169else
34170 PrintDelegate="$LPDelegate -c -s"
34171fi
34172
34173
34174# Installed ImageMagick utiltity paths
34175ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34176DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34177MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34178
34179# Set delegate booleans
34180have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34181have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34182have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34183have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34184have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034185have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034186have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34187have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034188have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34189have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34190
34191#
34192# Test for font directories
34193#
34194type_include_files=''
34195
cristy430a7312010-01-21 20:44:04 +000034196# Dejavu fonts.
34197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34198$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34199dejavu_font_dir=''
34200if test "${with_dejavu_font_dir}" != 'default'; then
34201 dejavu_font_dir="${with_dejavu_font_dir}/"
34202else
34203 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34204 if test -f "${font_dir}DejaVuSerif.ttf"; then
34205 dejavu_font_dir="${font_dir}"
34206 break 1
34207 fi
34208 done
34209fi
34210if test "${dejavu_font_dir}x" != 'x'; then
34211 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034212 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34213$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034214else
cristy09b53e12011-10-14 12:47:22 +000034215 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34216$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034217fi
34218
34219
cristy3ed852e2009-09-05 21:47:34 +000034220# Windows
34221windows_font_dir=''
34222if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34223 windows_font_dir="${with_windows_font_dir}/"
34224fi
cristy430a7312010-01-21 20:44:04 +000034225if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034226 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34227 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34228 fi
34229 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34230 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34231 fi
34232 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34233 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34234 fi
34235fi
cristy430a7312010-01-21 20:44:04 +000034236if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034237 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34238fi
34239
34240
34241# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34244ghostscript_font_dir=''
34245if test "${with_gs_font_dir}" != 'default'; then
34246 ghostscript_font_dir="${with_gs_font_dir}/"
34247else
34248 if test "${native_win32_build}" = 'yes'; then
34249 # Native Windows Build
34250 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34251 if test -f "${font_dir}a010013l.pfb"; then
34252 ghostscript_font_dir="$font_dir"
34253 break 1
34254 fi
34255 done
34256 if test "${PSDelegate}" != 'gswin32c'; then
34257 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34258 fi
34259 else
34260 # Linux / Mac OS X / Unix Build
34261 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
34262 if test -f "${font_dir}a010013l.pfb"; then
34263 ghostscript_font_dir="${font_dir}"
34264 break 1
34265 fi
34266 done
34267 if test "${ghostscript_font_dir}x" = 'x'; then
34268 if test "$PSDelegate" != 'gs'; then
34269 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34270 fi
34271 fi
34272 fi
34273fi
34274if test "${ghostscript_font_dir}x" != 'x'; then
34275 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034276 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34277$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034278else
cristy09b53e12011-10-14 12:47:22 +000034279 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34280$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034281fi
34282
34283case "${build_os}" in
34284 mingw* )
34285 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34286 ;;
34287esac
34288
34289
34290
34291#
34292# Handle case where user doesn't want frozen paths
34293#
34294if test "$with_frozenpaths" != 'yes'; then
34295 # Re-set delegate definitions to default (no paths)
34296 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034297 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34298 BZIPDelegate="$BZIPDelegateDefault"
34299 BrowseDelegate="$BrowseDelegateDefault"
34300 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34301 CatDelegate="$CatDelegateDefault"
34302 ConvertDelegate="$ConvertDelegateDefault"
34303 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34304 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34305 EchoDelegate="$EchoDelegateDefault"
34306 EditorDelegate="$EditorDelegateDefault"
34307 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34308 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34309 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34310 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34311 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34312 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34313 LPDelegate="$LPDelegateDefault"
34314 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34315 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34316 LaunchDelegate="$LaunchDelegateDefault"
34317 MANDelegate="$MANDelegateDefault"
34318 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34319 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034320 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034321 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34322 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034323 PCLDelegate="$PCLDelegateDefault"
34324 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34325 POVDelegate="$POVDelegateDefault"
34326 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034327 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34328 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034329 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034330 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34331 ShowImageDelegate="$ShowImageDelegateDefault"
34332 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034333 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034334 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34335 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34336 XPSDelegate="$XPSDelegateDefault"
34337 ZipDelegate="$ZipDelegateDefault"
34338fi
34339
34340# Delegate substitutions
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
34366
34367
34368
34369
34370
34371
34372
34373
34374
34375
34376
34377
34378
34379
34380
34381
34382
34383#
34384# RPM support.
34385#
34386RPM=''
34387for ac_prog in gnutar gtar tar
34388do
34389 # Extract the first word of "$ac_prog", so it can be a program name with args.
34390set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034392$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034393if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034394 $as_echo_n "(cached) " >&6
34395else
34396 if test -n "$TAR"; then
34397 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34398else
34399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34400for as_dir in $PATH
34401do
34402 IFS=$as_save_IFS
34403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34406 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034408 break 2
34409 fi
34410done
cristy8b350f62009-11-15 23:12:43 +000034411 done
cristy3ed852e2009-09-05 21:47:34 +000034412IFS=$as_save_IFS
34413
34414fi
34415fi
34416TAR=$ac_cv_prog_TAR
34417if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo "$TAR" >&6; }
34420else
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "no" >&6; }
34423fi
34424
34425
34426 test -n "$TAR" && break
34427done
34428
34429for ac_prog in perl
34430do
34431 # Extract the first word of "$ac_prog", so it can be a program name with args.
34432set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034434$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034435if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034436 $as_echo_n "(cached) " >&6
34437else
34438 if test -n "$PERL"; then
34439 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34440else
34441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34442for as_dir in $PATH
34443do
34444 IFS=$as_save_IFS
34445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34448 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034450 break 2
34451 fi
34452done
cristy8b350f62009-11-15 23:12:43 +000034453 done
cristy3ed852e2009-09-05 21:47:34 +000034454IFS=$as_save_IFS
34455
34456fi
34457fi
34458PERL=$ac_cv_prog_PERL
34459if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461$as_echo "$PERL" >&6; }
34462else
cristy8b350f62009-11-15 23:12:43 +000034463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034464$as_echo "no" >&6; }
34465fi
34466
34467
34468 test -n "$PERL" && break
34469done
34470
34471for ac_prog in rpmbuild rpm
34472do
34473 # Extract the first word of "$ac_prog", so it can be a program name with args.
34474set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034477if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034478 $as_echo_n "(cached) " >&6
34479else
34480 if test -n "$RPM"; then
34481 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34482else
34483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34484for as_dir in $PATH
34485do
34486 IFS=$as_save_IFS
34487 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34490 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034492 break 2
34493 fi
34494done
cristy8b350f62009-11-15 23:12:43 +000034495 done
cristy3ed852e2009-09-05 21:47:34 +000034496IFS=$as_save_IFS
34497
34498fi
34499fi
34500RPM=$ac_cv_prog_RPM
34501if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034503$as_echo "$RPM" >&6; }
34504else
cristy8b350f62009-11-15 23:12:43 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo "no" >&6; }
34507fi
34508
34509
34510 test -n "$RPM" && break
34511done
34512
34513
cristy73bd4a52010-10-05 11:24:23 +000034514ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34515
34516
34517AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34518
34519
34520AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34521
34522
34523AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34524
34525
34526 if test "x$RPM" != "x" ; then
34527 RPM_DELEGATE_TRUE=
34528 RPM_DELEGATE_FALSE='#'
34529else
34530 RPM_DELEGATE_TRUE='#'
34531 RPM_DELEGATE_FALSE=
34532fi
34533
cristy3ed852e2009-09-05 21:47:34 +000034534
34535#
34536# 7ZIP support (http://p7zip.sourceforge.net/)
34537#
34538P7ZIP=''
34539for ac_prog in 7za
34540do
34541 # Extract the first word of "$ac_prog", so it can be a program name with args.
34542set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034545if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034546 $as_echo_n "(cached) " >&6
34547else
34548 if test -n "$P7ZIP"; then
34549 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34550else
34551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34552for as_dir in $PATH
34553do
34554 IFS=$as_save_IFS
34555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34558 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034560 break 2
34561 fi
34562done
cristy8b350f62009-11-15 23:12:43 +000034563 done
cristy3ed852e2009-09-05 21:47:34 +000034564IFS=$as_save_IFS
34565
34566fi
34567fi
34568P7ZIP=$ac_cv_prog_P7ZIP
34569if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo "$P7ZIP" >&6; }
34572else
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo "no" >&6; }
34575fi
34576
34577
34578 test -n "$P7ZIP" && break
34579done
34580
34581
cristy73bd4a52010-10-05 11:24:23 +000034582 if test "x$P7ZIP" != "x" ; then
34583 P7ZIP_DELEGATE_TRUE=
34584 P7ZIP_DELEGATE_FALSE='#'
34585else
34586 P7ZIP_DELEGATE_TRUE='#'
34587 P7ZIP_DELEGATE_FALSE=
34588fi
34589
cristy3ed852e2009-09-05 21:47:34 +000034590
34591#
34592# ZIP support (http://www.info-zip.org/Zip.html)
34593#
34594ZIP=''
34595for ac_prog in zip
34596do
34597 # Extract the first word of "$ac_prog", so it can be a program name with args.
34598set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034601if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034602 $as_echo_n "(cached) " >&6
34603else
34604 if test -n "$ZIP"; then
34605 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34606else
34607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34608for as_dir in $PATH
34609do
34610 IFS=$as_save_IFS
34611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34614 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616 break 2
34617 fi
34618done
cristy8b350f62009-11-15 23:12:43 +000034619 done
cristy3ed852e2009-09-05 21:47:34 +000034620IFS=$as_save_IFS
34621
34622fi
34623fi
34624ZIP=$ac_cv_prog_ZIP
34625if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034627$as_echo "$ZIP" >&6; }
34628else
cristy8b350f62009-11-15 23:12:43 +000034629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034630$as_echo "no" >&6; }
34631fi
34632
34633
34634 test -n "$ZIP" && break
34635done
34636
34637
cristy73bd4a52010-10-05 11:24:23 +000034638 if test "x$ZIP" != "x" ; then
34639 ZIP_DELEGATE_TRUE=
34640 ZIP_DELEGATE_FALSE='#'
34641else
34642 ZIP_DELEGATE_TRUE='#'
34643 ZIP_DELEGATE_FALSE=
34644fi
34645
cristy3ed852e2009-09-05 21:47:34 +000034646
34647#
34648# GhostPCL related configuration.
34649#
34650PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034651PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034652PCLMonoDevice=pbmraw
34653if test -z "$PCLVersion"; then
34654 PCLVersion='unknown'
34655fi
34656if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034657 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34658$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034660$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034661 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34662$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034663 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034665$as_echo_n "checking for pcl color device... " >&6; }
34666 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34667 :
34668 else
34669 PCLColorDevice=ppmraw
34670 fi
cristy09b53e12011-10-14 12:47:22 +000034671 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34672$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034673
34674 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034676$as_echo_n "checking for pcl CMYK device... " >&6; }
34677 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34678 :
34679 else
34680 PCLCMYKDevice=$PCLColorDevice
34681 fi
cristy09b53e12011-10-14 12:47:22 +000034682 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34683$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034684
34685 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034687$as_echo_n "checking for pcl mono device... " >&6; }
34688 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34689 :
34690 else
34691 PCLMonoDevice=$PCLColorDevice
34692 fi
cristy09b53e12011-10-14 12:47:22 +000034693 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34694$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034695fi
34696
34697
34698
34699
34700
34701
34702#
34703# GhostXPS related configuration.
34704#
34705XPSColorDevice=ppmraw
34706XPSCMYKDevice=bmpsep8
34707XPSMonoDevice=pbmraw
34708if test -z "$XPSVersion"; then
34709 XPSVersion='unknown'
34710fi
34711if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034712 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34713$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034715$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034716 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34717$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034718 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034720$as_echo_n "checking for xps color device... " >&6; }
34721 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34722 :
34723 else
34724 XPSColorDevice=ppmraw
34725 fi
cristy09b53e12011-10-14 12:47:22 +000034726 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34727$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034728
34729 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034731$as_echo_n "checking for xps CMYK device... " >&6; }
34732 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34733 :
34734 else
34735 XPSCMYKDevice=$XPSColorDevice
34736 fi
cristy09b53e12011-10-14 12:47:22 +000034737 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34738$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034739
34740 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034742$as_echo_n "checking for xps mono device... " >&6; }
34743 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34744 :
34745 else
34746 XPSMonoDevice=$XPSColorDevice
34747 fi
cristy09b53e12011-10-14 12:47:22 +000034748 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34749$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034750fi
34751
34752
34753
34754
34755
34756
34757#
34758# Ghostscript related configuration.
34759#
cristya97426c2011-02-04 01:41:27 +000034760GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034761GSColorDevice=pnmraw
34762GSCMYKDevice=pam
34763GSMonoDevice=pbmraw
34764GSPDFDevice=pdfwrite
34765GSPSDevice=pswrite
34766GSEPSDevice=epswrite
34767GSVersion='unknown'
34768if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034769 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34770$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034772$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034773 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34774$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034776$as_echo_n "checking for Ghostscript version... " >&6; }
34777 if GSVersion=`$PSDelegate --version`; then
34778 :
34779 else
34780 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34781 fi
cristy09b53e12011-10-14 12:47:22 +000034782 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34783$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034784
34785 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034787$as_echo_n "checking for gs alpha device... " >&6; }
34788 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34789 :
34790 else
34791 GSAlphaDevice=pnmraw
34792 fi
cristy09b53e12011-10-14 12:47:22 +000034793 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34794$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034795
34796 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034798$as_echo_n "checking for gs color device... " >&6; }
34799 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34800 :
34801 else
34802 GSColorDevice=pnmraw
34803 fi
cristy09b53e12011-10-14 12:47:22 +000034804 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34805$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034806
34807 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034809$as_echo_n "checking for gs CMYK device... " >&6; }
34810 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34811 :
34812 else
34813 GSCMYKDevice=bmpsep8
34814 fi
cristy09b53e12011-10-14 12:47:22 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34816$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034817
34818 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034820$as_echo_n "checking for gs mono device... " >&6; }
34821 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34822 :
34823 else
34824 GSMonoDevice=$GSColorDevice
34825 fi
cristy09b53e12011-10-14 12:47:22 +000034826 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34827$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034828
34829 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034831$as_echo_n "checking for gs PDF writing device... " >&6; }
34832 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34833 :
34834 else
34835 GSPDFDevice=nodevice
34836 fi
cristy09b53e12011-10-14 12:47:22 +000034837 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34838$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034839
34840 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034842$as_echo_n "checking for gs PS writing device... " >&6; }
34843 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34844 :
34845 else
34846 GSPSDevice=nodevice
34847 fi
cristy09b53e12011-10-14 12:47:22 +000034848 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34849$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034850
34851 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034853$as_echo_n "checking for gs EPS writing device... " >&6; }
34854 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34855 :
34856 else
34857 GSEPSDevice=nodevice
34858 fi
cristy09b53e12011-10-14 12:47:22 +000034859 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34860$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034861fi
34862
34863
34864
34865
34866
34867
34868
34869
34870
34871
34872#
34873# PerlMagick-related configuration
34874#
34875
34876# Look for PERL if PerlMagick requested
34877# If name/path of desired PERL interpreter is specified, look for that one first
34878have_perl='no'
34879if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034880 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34881$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034883$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034884 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34885$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034886 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034888$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034889if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034890 $as_echo_n "(cached) " >&6
34891else
34892 ac_cv_path_PERL="$with_perl"
34893fi
cristy8b350f62009-11-15 23:12:43 +000034894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895$as_echo "$ac_cv_path_PERL" >&6; };
34896 PERL=$ac_cv_path_PERL
34897 have_perl="$ac_cv_path_PERL"
34898 else
34899 for ac_prog in perl perl5
34900do
34901 # Extract the first word of "$ac_prog", so it can be a program name with args.
34902set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034904$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034905if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034906 $as_echo_n "(cached) " >&6
34907else
34908 case $PERL in
34909 [\\/]* | ?:[\\/]*)
34910 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34911 ;;
34912 *)
34913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34914for as_dir in $PATH
34915do
34916 IFS=$as_save_IFS
34917 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34920 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034922 break 2
34923 fi
34924done
cristy8b350f62009-11-15 23:12:43 +000034925 done
cristy3ed852e2009-09-05 21:47:34 +000034926IFS=$as_save_IFS
34927
34928 ;;
34929esac
34930fi
34931PERL=$ac_cv_path_PERL
34932if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034934$as_echo "$PERL" >&6; }
34935else
cristy8b350f62009-11-15 23:12:43 +000034936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034937$as_echo "no" >&6; }
34938fi
34939
34940
34941 test -n "$PERL" && break
34942done
34943 if test "$ac_cv_path_PERL"; then
34944 have_perl="$ac_cv_path_PERL"
34945 fi
34946 fi
34947fi
34948
cristy949301e2010-01-06 01:38:40 +000034949if test "$with_perl" != 'yes' ; then
34950 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34951fi
34952
34953PERL_SUPPORTS_DESTDIR='no'
34954
cristy3ed852e2009-09-05 21:47:34 +000034955with_perl_static='no'
34956with_perl_dynamic='no'
34957if test "$have_perl" != 'no'; then
34958 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34959 with_perl_static='yes'
34960 fi
34961 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34962 with_perl_dynamic='yes'
34963 fi
34964 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034965
34966
34967
34968
34969 if test -n "$PERL"; then :
34970
34971 ax_perl_version="5.8.1"
34972
34973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34974$as_echo_n "checking for perl version... " >&6; }
34975
34976 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34977
34978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34979$as_echo "$perl_version" >&6; }
34980
34981 PERL_VERSION=$perl_version
34982
34983
34984
34985
34986
34987 # Used to indicate true or false condition
34988 ax_compare_version=false
34989
34990 # Convert the two version strings to be compared into a format that
34991 # allows a simple string comparison. The end result is that a version
34992 # string of the form 1.12.5-r617 will be converted to the form
34993 # 0001001200050617. In other words, each number is zero padded to four
34994 # digits, and non digits are removed.
34995
34996 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34997 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34998 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34999 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35000 -e 's/[^0-9]//g'`
35001
35002
35003 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35004 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35005 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35006 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35007 -e 's/[^0-9]//g'`
35008
35009
35010 ax_compare_version=`echo "x$ax_compare_version_A
35011x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35012
35013
35014
35015 if test "$ax_compare_version" = "true" ; then
35016
35017 :
35018 PERL_SUPPORTS_DESTDIR='yes'
35019
35020 else
35021 :
35022 PERL_SUPPORTS_DESTDIR='no'
35023
35024 fi
35025
35026
35027else
35028
35029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35030$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35031 PERL_SUPPORTS_DESTDIR='no'
35032
cristy3ed852e2009-09-05 21:47:34 +000035033fi
cristy73bd4a52010-10-05 11:24:23 +000035034
35035fi
35036 if test "$have_perl" != 'no'; then
35037 WITH_PERL_TRUE=
35038 WITH_PERL_FALSE='#'
35039else
35040 WITH_PERL_TRUE='#'
35041 WITH_PERL_FALSE=
35042fi
35043
35044 if test $with_perl_static = 'yes'; then
35045 WITH_PERL_STATIC_TRUE=
35046 WITH_PERL_STATIC_FALSE='#'
35047else
35048 WITH_PERL_STATIC_TRUE='#'
35049 WITH_PERL_STATIC_FALSE=
35050fi
35051
35052 if test $with_perl_dynamic = 'yes'; then
35053 WITH_PERL_DYNAMIC_TRUE=
35054 WITH_PERL_DYNAMIC_FALSE='#'
35055else
35056 WITH_PERL_DYNAMIC_TRUE='#'
35057 WITH_PERL_DYNAMIC_FALSE=
35058fi
35059
cristy3ed852e2009-09-05 21:47:34 +000035060
35061
35062# Determine path to pick up MagickCore library from for use with building PerlMagick
35063MAGICKCORE_PATH="${LIB_DIR}"
35064if test $with_perl_static = 'yes'; then
35065 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35066 libtool_objdir=$objdir
35067
35068 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035069 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035070fi
35071
35072
35073# Create a simple string containing format names for all delegate libraries
35074DELEGATES=''
35075if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35076if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35077if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35078if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35079if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35080if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35081if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35082if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35083if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35084if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35085if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35086if test "$have_jpeg" = 'yes'; then
35087 DELEGATES="$DELEGATES jpeg";
35088 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35089fi
35090if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035091if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035092if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35093if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035094if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035095if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35096if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35097if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35098if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35099if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35100if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35101if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35102if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35103if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35104
35105
35106
35107#
35108# Handle special compiler flags
35109#
35110
35111# Add '-p' if prof source profiling support enabled
35112if test "$enable_prof" = 'yes'; then
35113 CFLAGS="-p $CFLAGS"
35114 CXXFLAGS="-p $CXXFLAGS"
35115 LDFLAGS="-p $LDFLAGS"
35116fi
35117
35118# Add '-pg' if gprof source profiling support enabled
35119if test "$enable_gprof" = 'yes'; then
35120 CFLAGS="-pg $CFLAGS"
35121 CXXFLAGS="-pg $CXXFLAGS"
35122 LDFLAGS="-pg $LDFLAGS"
35123fi
35124
35125# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35126# This is a gcc-specific feature
35127if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035129$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035130if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035131 $as_echo_n "(cached) " >&6
35132else
35133 ac_check_lib_save_LIBS=$LIBS
35134LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035136/* end confdefs.h. */
35137
35138/* Override any GCC internal prototype to avoid an error.
35139 Use char because int might match the return type of a GCC
35140 builtin and then its argument prototype would still apply. */
35141#ifdef __cplusplus
35142extern "C"
35143#endif
35144char _gcov_init ();
35145int
35146main ()
35147{
35148return _gcov_init ();
35149 ;
35150 return 0;
35151}
35152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035153if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035154 ac_cv_lib_gcov__gcov_init=yes
35155else
cristy8b350f62009-11-15 23:12:43 +000035156 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035157fi
cristy8b350f62009-11-15 23:12:43 +000035158rm -f core conftest.err conftest.$ac_objext \
35159 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035160LIBS=$ac_check_lib_save_LIBS
35161fi
cristy8b350f62009-11-15 23:12:43 +000035162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035164if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035165 cat >>confdefs.h <<_ACEOF
35166#define HAVE_LIBGCOV 1
35167_ACEOF
35168
35169 LIBS="-lgcov $LIBS"
35170
35171fi
35172
cristy8b350f62009-11-15 23:12:43 +000035173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035174$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035175if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035176 $as_echo_n "(cached) " >&6
35177else
35178 ac_check_lib_save_LIBS=$LIBS
35179LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035181/* end confdefs.h. */
35182
35183/* Override any GCC internal prototype to avoid an error.
35184 Use char because int might match the return type of a GCC
35185 builtin and then its argument prototype would still apply. */
35186#ifdef __cplusplus
35187extern "C"
35188#endif
35189char __gcov_init ();
35190int
35191main ()
35192{
35193return __gcov_init ();
35194 ;
35195 return 0;
35196}
35197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035199 ac_cv_lib_gcov___gcov_init=yes
35200else
cristy8b350f62009-11-15 23:12:43 +000035201 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035202fi
cristy8b350f62009-11-15 23:12:43 +000035203rm -f core conftest.err conftest.$ac_objext \
35204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035205LIBS=$ac_check_lib_save_LIBS
35206fi
cristy8b350f62009-11-15 23:12:43 +000035207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035208$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035209if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035210 cat >>confdefs.h <<_ACEOF
35211#define HAVE_LIBGCOV 1
35212_ACEOF
35213
35214 LIBS="-lgcov $LIBS"
35215
35216fi
35217
35218 case "$target_os" in
35219 darwin*)
35220 OSX_GCOV_LDFLAG="-Wl,-single_module"
35221 ;;
35222 *)
35223 OSX_GCOV_LDFLAG=""
35224 ;;
35225 esac
35226
35227 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35228 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35229 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35230fi
35231
35232#
35233# Build library dependency list for libMagickCore
35234#
35235
35236MAGICK_LIBLTDL='' # Libltdl for build
35237MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35238MAGICK_LTDLDEPS='' # extra libltdl dependencies
35239if test "$with_ltdl" != 'no'
35240then
35241 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35242 MAGICK_API_LIBLTDL='-lltdl'
35243 fi
35244 MAGICK_LIBLTDL=${LIBLTDL}
35245 MAGICK_LTDLDEPS=${LTDLDEPS}
35246fi
35247
35248
35249
35250if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035251 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 +000035252else
cristy41cbe8a2011-10-27 01:35:18 +000035253 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035254fi
35255
35256
35257#
35258# Remove extraneous spaces from output variables (asthetic)
35259#
35260X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35261X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35262X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35263X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35264
35265CC=`echo $CC | sed -e 's/ */ /g'`
35266CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35267CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35268CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35269DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35270DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35271LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35272TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35273MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35274#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35275
35276# Pass only user-provided LIBS as "global" libraries
35277LIBS=$USER_LIBS
35278
35279#AC_SUBST(CPPFLAGS)
35280
35281#AC_SUBST(LDFLAGS)
35282#AC_SUBST(X_PRE_LIBS)
35283#AC_SUBST(X_LIBS)
35284#AC_SUBST(X_EXTRA_LIBS)
35285
35286MAGICK_CFLAGS=$CFLAGS
35287MAGICK_CXXFLAGS="$CXXFLAGS"
35288MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35289MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35290MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35291MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35292
35293
35294
35295
35296
35297
35298
35299
cristyfd9dcd42010-08-08 18:07:02 +000035300
cristy3ed852e2009-09-05 21:47:34 +000035301# Set configured scripts to executable.
35302ac_config_commands="$ac_config_commands default"
35303
35304ac_config_commands="$ac_config_commands MagickCore-config.in"
35305
cristy3ed852e2009-09-05 21:47:34 +000035306ac_config_commands="$ac_config_commands MagickWand-config.in"
35307
cristy3ed852e2009-09-05 21:47:34 +000035308ac_config_commands="$ac_config_commands Magick++-config.in"
35309
35310ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35311
35312
cristy09b53e12011-10-14 12:47:22 +000035313{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35314$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35315{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35316$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035317cat >confcache <<\_ACEOF
35318# This file is a shell script that caches the results of configure
35319# tests run on this system so they can be shared between configure
35320# scripts and configure runs, see configure's option --config-cache.
35321# It is not useful on other systems. If it contains results you don't
35322# want to keep, you may remove or edit it.
35323#
35324# config.status only pays attention to the cache file if you give it
35325# the --recheck option to rerun configure.
35326#
35327# `ac_cv_env_foo' variables (set or unset) will be overridden when
35328# loading this file, other *unset* `ac_cv_foo' will be assigned the
35329# following values.
35330
35331_ACEOF
35332
35333# The following way of writing the cache mishandles newlines in values,
35334# but we know of no workaround that is simple, portable, and efficient.
35335# So, we kill variables containing newlines.
35336# Ultrix sh set writes to stderr and can't be redirected directly,
35337# and sets the high bit in the cache file unless we assign to the vars.
35338(
35339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35340 eval ac_val=\$$ac_var
35341 case $ac_val in #(
35342 *${as_nl}*)
35343 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035345$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35346 esac
35347 case $ac_var in #(
35348 _ | IFS | as_nl) ;; #(
35349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035350 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035351 esac ;;
35352 esac
35353 done
35354
35355 (set) 2>&1 |
35356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35357 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035358 # `set' does not quote correctly, so add quotes: double-quote
35359 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035360 sed -n \
35361 "s/'/'\\\\''/g;
35362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35363 ;; #(
35364 *)
35365 # `set' quotes correctly as required by POSIX, so do not add quotes.
35366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35367 ;;
35368 esac |
35369 sort
35370) |
35371 sed '
35372 /^ac_cv_env_/b end
35373 t clear
35374 :clear
35375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35376 t end
35377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35378 :end' >>confcache
35379if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35380 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035381 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035382 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035383$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035384 if test ! -f "$cache_file" || test -h "$cache_file"; then
35385 cat confcache >"$cache_file"
35386 else
35387 case $cache_file in #(
35388 */* | ?:*)
35389 mv -f confcache "$cache_file"$$ &&
35390 mv -f "$cache_file"$$ "$cache_file" ;; #(
35391 *)
35392 mv -f confcache "$cache_file" ;;
35393 esac
35394 fi
35395 fi
cristy3ed852e2009-09-05 21:47:34 +000035396 else
cristy8b350f62009-11-15 23:12:43 +000035397 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035398$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35399 fi
35400fi
35401rm -f confcache
35402
35403test "x$prefix" = xNONE && prefix=$ac_default_prefix
35404# Let make expand exec_prefix.
35405test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35406
35407DEFS=-DHAVE_CONFIG_H
35408
35409ac_libobjs=
35410ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035411U=
cristy3ed852e2009-09-05 21:47:34 +000035412for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35413 # 1. Remove the extension, and $U if already installed.
35414 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35415 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35416 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35417 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035418 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35419 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035420done
35421LIBOBJS=$ac_libobjs
35422
35423LTLIBOBJS=$ac_ltlibobjs
35424
35425
cristy73bd4a52010-10-05 11:24:23 +000035426 if test -n "$EXEEXT"; then
35427 am__EXEEXT_TRUE=
35428 am__EXEEXT_FALSE='#'
35429else
35430 am__EXEEXT_TRUE='#'
35431 am__EXEEXT_FALSE=
35432fi
cristy3ed852e2009-09-05 21:47:34 +000035433
cristy73bd4a52010-10-05 11:24:23 +000035434if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035435 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035436Usually this means the macro was only invoked conditionally." "$LINENO" 5
35437fi
35438if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035439 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035440Usually this means the macro was only invoked conditionally." "$LINENO" 5
35441fi
35442if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035443 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035444Usually this means the macro was only invoked conditionally." "$LINENO" 5
35445fi
35446if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035447 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035448Usually this means the macro was only invoked conditionally." "$LINENO" 5
35449fi
35450if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035451 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035452Usually this means the macro was only invoked conditionally." "$LINENO" 5
35453fi
35454if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035455 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035456Usually this means the macro was only invoked conditionally." "$LINENO" 5
35457fi
35458if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035459 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035460Usually this means the macro was only invoked conditionally." "$LINENO" 5
35461fi
35462if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035463 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035464Usually this means the macro was only invoked conditionally." "$LINENO" 5
35465fi
cristy73bd4a52010-10-05 11:24:23 +000035466if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035467 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035468Usually this means the macro was only invoked conditionally." "$LINENO" 5
35469fi
35470if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035471 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035472Usually this means the macro was only invoked conditionally." "$LINENO" 5
35473fi
35474LT_CONFIG_H=config/config.h
35475
35476 _ltdl_libobjs=
35477 _ltdl_ltlibobjs=
35478 if test -n "$_LT_LIBOBJS"; then
35479 # Remove the extension.
35480 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35481 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35482 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35483 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35484 done
35485 fi
35486 ltdl_LIBOBJS=$_ltdl_libobjs
35487
35488 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35489
35490
35491if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035492 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035493Usually this means the macro was only invoked conditionally." "$LINENO" 5
35494fi
35495if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035496 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035497Usually this means the macro was only invoked conditionally." "$LINENO" 5
35498fi
35499if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035500 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035501Usually this means the macro was only invoked conditionally." "$LINENO" 5
35502fi
35503if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035504 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035505Usually this means the macro was only invoked conditionally." "$LINENO" 5
35506fi
35507
35508if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035509 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035510Usually this means the macro was only invoked conditionally." "$LINENO" 5
35511fi
35512if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035513 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035514Usually this means the macro was only invoked conditionally." "$LINENO" 5
35515fi
35516if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035517 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035518Usually this means the macro was only invoked conditionally." "$LINENO" 5
35519fi
35520if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035521 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035522Usually this means the macro was only invoked conditionally." "$LINENO" 5
35523fi
35524if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035525 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035526Usually this means the macro was only invoked conditionally." "$LINENO" 5
35527fi
35528if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035529 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035530Usually this means the macro was only invoked conditionally." "$LINENO" 5
35531fi
35532if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035533 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035534Usually this means the macro was only invoked conditionally." "$LINENO" 5
35535fi
35536if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035537 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035538Usually this means the macro was only invoked conditionally." "$LINENO" 5
35539fi
35540if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035541 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035542Usually this means the macro was only invoked conditionally." "$LINENO" 5
35543fi
35544if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035545 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035546Usually this means the macro was only invoked conditionally." "$LINENO" 5
35547fi
35548if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035549 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035550Usually this means the macro was only invoked conditionally." "$LINENO" 5
35551fi
35552if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035553 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035554Usually this means the macro was only invoked conditionally." "$LINENO" 5
35555fi
35556if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035557 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035558Usually this means the macro was only invoked conditionally." "$LINENO" 5
35559fi
35560if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035561 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035562Usually this means the macro was only invoked conditionally." "$LINENO" 5
35563fi
35564if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035565 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035566Usually this means the macro was only invoked conditionally." "$LINENO" 5
35567fi
35568if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035569 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035570Usually this means the macro was only invoked conditionally." "$LINENO" 5
35571fi
35572if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035573 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035574Usually this means the macro was only invoked conditionally." "$LINENO" 5
35575fi
35576if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035577 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035578Usually this means the macro was only invoked conditionally." "$LINENO" 5
35579fi
35580if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035581 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035582Usually this means the macro was only invoked conditionally." "$LINENO" 5
35583fi
35584if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035585 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035586Usually this means the macro was only invoked conditionally." "$LINENO" 5
35587fi
cristyfbb0ef02010-12-19 02:32:11 +000035588if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35589 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35590Usually this means the macro was only invoked conditionally." "$LINENO" 5
35591fi
cristy73bd4a52010-10-05 11:24:23 +000035592if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035593 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035594Usually this means the macro was only invoked conditionally." "$LINENO" 5
35595fi
cristy41cbe8a2011-10-27 01:35:18 +000035596if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35597 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35598Usually this means the macro was only invoked conditionally." "$LINENO" 5
35599fi
35600if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35601 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35602Usually this means the macro was only invoked conditionally." "$LINENO" 5
35603fi
cristy73bd4a52010-10-05 11:24:23 +000035604if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035605 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035606Usually this means the macro was only invoked conditionally." "$LINENO" 5
35607fi
35608if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035609 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035610Usually this means the macro was only invoked conditionally." "$LINENO" 5
35611fi
35612if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035613 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035614Usually this means the macro was only invoked conditionally." "$LINENO" 5
35615fi
35616if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035617 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035618Usually this means the macro was only invoked conditionally." "$LINENO" 5
35619fi
cristyb1860752011-03-14 00:27:46 +000035620if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35621 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35622Usually this means the macro was only invoked conditionally." "$LINENO" 5
35623fi
cristy73bd4a52010-10-05 11:24:23 +000035624if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035625 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035626Usually this means the macro was only invoked conditionally." "$LINENO" 5
35627fi
35628if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035629 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035630Usually this means the macro was only invoked conditionally." "$LINENO" 5
35631fi
35632if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035633 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035634Usually this means the macro was only invoked conditionally." "$LINENO" 5
35635fi
35636if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035637 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035638Usually this means the macro was only invoked conditionally." "$LINENO" 5
35639fi
35640if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035641 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035642Usually this means the macro was only invoked conditionally." "$LINENO" 5
35643fi
35644if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035645 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035646Usually this means the macro was only invoked conditionally." "$LINENO" 5
35647fi
35648if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035649 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035650Usually this means the macro was only invoked conditionally." "$LINENO" 5
35651fi
35652if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035653 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035654Usually this means the macro was only invoked conditionally." "$LINENO" 5
35655fi
cristy3ed852e2009-09-05 21:47:34 +000035656
cristyda16f162011-02-19 23:52:17 +000035657: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035658ac_write_fail=0
35659ac_clean_files_save=$ac_clean_files
35660ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035661{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035662$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035663as_write_fail=0
35664cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035665#! $SHELL
35666# Generated by $as_me.
35667# Run this file to recreate the current configuration.
35668# Compiler output produced by configure, useful for debugging
35669# configure, is in config.log if it exists.
35670
35671debug=false
35672ac_cs_recheck=false
35673ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035674
cristy8b350f62009-11-15 23:12:43 +000035675SHELL=\${CONFIG_SHELL-$SHELL}
35676export SHELL
35677_ASEOF
35678cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35679## -------------------- ##
35680## M4sh Initialization. ##
35681## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035682
35683# Be more Bourne compatible
35684DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035685if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035686 emulate sh
35687 NULLCMD=:
35688 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35689 # is contrary to our usage. Disable this feature.
35690 alias -g '${1+"$@"}'='"$@"'
35691 setopt NO_GLOB_SUBST
35692else
cristy8b350f62009-11-15 23:12:43 +000035693 case `(set -o) 2>/dev/null` in #(
35694 *posix*) :
35695 set -o posix ;; #(
35696 *) :
35697 ;;
cristy3ed852e2009-09-05 21:47:34 +000035698esac
cristy3ed852e2009-09-05 21:47:34 +000035699fi
35700
35701
cristy3ed852e2009-09-05 21:47:34 +000035702as_nl='
35703'
35704export as_nl
35705# Printing a long string crashes Solaris 7 /usr/bin/printf.
35706as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35707as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35708as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035709# Prefer a ksh shell builtin over an external printf program on Solaris,
35710# but without wasting forks for bash or zsh.
35711if test -z "$BASH_VERSION$ZSH_VERSION" \
35712 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35713 as_echo='print -r --'
35714 as_echo_n='print -rn --'
35715elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035716 as_echo='printf %s\n'
35717 as_echo_n='printf %s'
35718else
35719 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35720 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35721 as_echo_n='/usr/ucb/echo -n'
35722 else
35723 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35724 as_echo_n_body='eval
35725 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035726 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035727 *"$as_nl"*)
35728 expr "X$arg" : "X\\(.*\\)$as_nl";
35729 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35730 esac;
35731 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35732 '
35733 export as_echo_n_body
35734 as_echo_n='sh -c $as_echo_n_body as_echo'
35735 fi
35736 export as_echo_body
35737 as_echo='sh -c $as_echo_body as_echo'
35738fi
35739
35740# The user is always right.
35741if test "${PATH_SEPARATOR+set}" != set; then
35742 PATH_SEPARATOR=:
35743 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35744 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35745 PATH_SEPARATOR=';'
35746 }
35747fi
35748
cristy3ed852e2009-09-05 21:47:34 +000035749
35750# IFS
35751# We need space, tab and new line, in precisely that order. Quoting is
35752# there to prevent editors from complaining about space-tab.
35753# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35754# splitting by setting IFS to empty value.)
35755IFS=" "" $as_nl"
35756
35757# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035758as_myself=
cristy8b350f62009-11-15 23:12:43 +000035759case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035760 *[\\/]* ) as_myself=$0 ;;
35761 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35762for as_dir in $PATH
35763do
35764 IFS=$as_save_IFS
35765 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035766 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35767 done
cristy3ed852e2009-09-05 21:47:34 +000035768IFS=$as_save_IFS
35769
35770 ;;
35771esac
35772# We did not find ourselves, most probably we were run as `sh COMMAND'
35773# in which case we are not to be found in the path.
35774if test "x$as_myself" = x; then
35775 as_myself=$0
35776fi
35777if test ! -f "$as_myself"; then
35778 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035779 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035780fi
35781
cristy8b350f62009-11-15 23:12:43 +000035782# Unset variables that we do not need and which cause bugs (e.g. in
35783# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35784# suppresses any "Segmentation fault" message there. '((' could
35785# trigger a bug in pdksh 5.2.14.
35786for as_var in BASH_ENV ENV MAIL MAILPATH
35787do eval test x\${$as_var+set} = xset \
35788 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035789done
35790PS1='$ '
35791PS2='> '
35792PS4='+ '
35793
35794# NLS nuisances.
35795LC_ALL=C
35796export LC_ALL
35797LANGUAGE=C
35798export LANGUAGE
35799
cristy8b350f62009-11-15 23:12:43 +000035800# CDPATH.
35801(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35802
35803
cristy98dddb52010-11-04 00:30:15 +000035804# as_fn_error STATUS ERROR [LINENO LOG_FD]
35805# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035806# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35807# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035808# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035809as_fn_error ()
35810{
cristy98dddb52010-11-04 00:30:15 +000035811 as_status=$1; test $as_status -eq 0 && as_status=1
35812 if test "$4"; then
35813 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35814 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035815 fi
cristy98dddb52010-11-04 00:30:15 +000035816 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035817 as_fn_exit $as_status
35818} # as_fn_error
35819
35820
35821# as_fn_set_status STATUS
35822# -----------------------
35823# Set $? to STATUS, without forking.
35824as_fn_set_status ()
35825{
35826 return $1
35827} # as_fn_set_status
35828
35829# as_fn_exit STATUS
35830# -----------------
35831# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35832as_fn_exit ()
35833{
35834 set +e
35835 as_fn_set_status $1
35836 exit $1
35837} # as_fn_exit
35838
35839# as_fn_unset VAR
35840# ---------------
35841# Portably unset VAR.
35842as_fn_unset ()
35843{
35844 { eval $1=; unset $1;}
35845}
35846as_unset=as_fn_unset
35847# as_fn_append VAR VALUE
35848# ----------------------
35849# Append the text in VALUE to the end of the definition contained in VAR. Take
35850# advantage of any shell optimizations that allow amortized linear growth over
35851# repeated appends, instead of the typical quadratic growth present in naive
35852# implementations.
35853if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35854 eval 'as_fn_append ()
35855 {
35856 eval $1+=\$2
35857 }'
35858else
35859 as_fn_append ()
35860 {
35861 eval $1=\$$1\$2
35862 }
35863fi # as_fn_append
35864
35865# as_fn_arith ARG...
35866# ------------------
35867# Perform arithmetic evaluation on the ARGs, and store the result in the
35868# global $as_val. Take advantage of shells that can avoid forks. The arguments
35869# must be portable across $(()) and expr.
35870if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35871 eval 'as_fn_arith ()
35872 {
35873 as_val=$(( $* ))
35874 }'
35875else
35876 as_fn_arith ()
35877 {
35878 as_val=`expr "$@" || test $? -eq 1`
35879 }
35880fi # as_fn_arith
35881
35882
cristy3ed852e2009-09-05 21:47:34 +000035883if expr a : '\(a\)' >/dev/null 2>&1 &&
35884 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35885 as_expr=expr
35886else
35887 as_expr=false
35888fi
35889
35890if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35891 as_basename=basename
35892else
35893 as_basename=false
35894fi
35895
cristy8b350f62009-11-15 23:12:43 +000035896if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35897 as_dirname=dirname
35898else
35899 as_dirname=false
35900fi
cristy3ed852e2009-09-05 21:47:34 +000035901
cristy3ed852e2009-09-05 21:47:34 +000035902as_me=`$as_basename -- "$0" ||
35903$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35904 X"$0" : 'X\(//\)$' \| \
35905 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35906$as_echo X/"$0" |
35907 sed '/^.*\/\([^/][^/]*\)\/*$/{
35908 s//\1/
35909 q
35910 }
35911 /^X\/\(\/\/\)$/{
35912 s//\1/
35913 q
35914 }
35915 /^X\/\(\/\).*/{
35916 s//\1/
35917 q
35918 }
35919 s/.*/./; q'`
35920
cristy8b350f62009-11-15 23:12:43 +000035921# Avoid depending upon Character Ranges.
35922as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35923as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35924as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35925as_cr_digits='0123456789'
35926as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035927
35928ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035929case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035930-n*)
cristy8b350f62009-11-15 23:12:43 +000035931 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035932 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035933 xy) ECHO_C='\c';;
35934 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35935 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035936 esac;;
35937*)
35938 ECHO_N='-n';;
35939esac
cristy3ed852e2009-09-05 21:47:34 +000035940
35941rm -f conf$$ conf$$.exe conf$$.file
35942if test -d conf$$.dir; then
35943 rm -f conf$$.dir/conf$$.file
35944else
35945 rm -f conf$$.dir
35946 mkdir conf$$.dir 2>/dev/null
35947fi
35948if (echo >conf$$.file) 2>/dev/null; then
35949 if ln -s conf$$.file conf$$ 2>/dev/null; then
35950 as_ln_s='ln -s'
35951 # ... but there are two gotchas:
35952 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35953 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35954 # In both cases, we have to default to `cp -p'.
35955 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35956 as_ln_s='cp -p'
35957 elif ln conf$$.file conf$$ 2>/dev/null; then
35958 as_ln_s=ln
35959 else
35960 as_ln_s='cp -p'
35961 fi
35962else
35963 as_ln_s='cp -p'
35964fi
35965rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35966rmdir conf$$.dir 2>/dev/null
35967
cristy8b350f62009-11-15 23:12:43 +000035968
35969# as_fn_mkdir_p
35970# -------------
35971# Create "$as_dir" as a directory, including parents if necessary.
35972as_fn_mkdir_p ()
35973{
35974
35975 case $as_dir in #(
35976 -*) as_dir=./$as_dir;;
35977 esac
35978 test -d "$as_dir" || eval $as_mkdir_p || {
35979 as_dirs=
35980 while :; do
35981 case $as_dir in #(
35982 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35983 *) as_qdir=$as_dir;;
35984 esac
35985 as_dirs="'$as_qdir' $as_dirs"
35986 as_dir=`$as_dirname -- "$as_dir" ||
35987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35988 X"$as_dir" : 'X\(//\)[^/]' \| \
35989 X"$as_dir" : 'X\(//\)$' \| \
35990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35991$as_echo X"$as_dir" |
35992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35993 s//\1/
35994 q
35995 }
35996 /^X\(\/\/\)[^/].*/{
35997 s//\1/
35998 q
35999 }
36000 /^X\(\/\/\)$/{
36001 s//\1/
36002 q
36003 }
36004 /^X\(\/\).*/{
36005 s//\1/
36006 q
36007 }
36008 s/.*/./; q'`
36009 test -d "$as_dir" && break
36010 done
36011 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036012 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036013
36014
36015} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036016if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036017 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036018else
36019 test -d ./-p && rmdir ./-p
36020 as_mkdir_p=false
36021fi
36022
36023if test -x / >/dev/null 2>&1; then
36024 as_test_x='test -x'
36025else
36026 if ls -dL / >/dev/null 2>&1; then
36027 as_ls_L_option=L
36028 else
36029 as_ls_L_option=
36030 fi
36031 as_test_x='
36032 eval sh -c '\''
36033 if test -d "$1"; then
36034 test -d "$1/.";
36035 else
cristy8b350f62009-11-15 23:12:43 +000036036 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000036037 -*)set "./$1";;
36038 esac;
cristy8b350f62009-11-15 23:12:43 +000036039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000036040 ???[sx]*):;;*)false;;esac;fi
36041 '\'' sh
36042 '
36043fi
36044as_executable_p=$as_test_x
36045
36046# Sed expression to map a string onto a valid CPP name.
36047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36048
36049# Sed expression to map a string onto a valid variable name.
36050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36051
36052
36053exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036054## ----------------------------------- ##
36055## Main body of $CONFIG_STATUS script. ##
36056## ----------------------------------- ##
36057_ASEOF
36058test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036059
cristy8b350f62009-11-15 23:12:43 +000036060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36061# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036062# report actual input values of CONFIG_FILES etc. instead of their
36063# values after options handling.
36064ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036065This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036066generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036067
36068 CONFIG_FILES = $CONFIG_FILES
36069 CONFIG_HEADERS = $CONFIG_HEADERS
36070 CONFIG_LINKS = $CONFIG_LINKS
36071 CONFIG_COMMANDS = $CONFIG_COMMANDS
36072 $ $0 $@
36073
36074on `(hostname || uname -n) 2>/dev/null | sed 1q`
36075"
36076
36077_ACEOF
36078
36079case $ac_config_files in *"
36080"*) set x $ac_config_files; shift; ac_config_files=$*;;
36081esac
36082
36083case $ac_config_headers in *"
36084"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36085esac
36086
36087
36088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36089# Files that config.status was made for.
36090config_files="$ac_config_files"
36091config_headers="$ac_config_headers"
36092config_commands="$ac_config_commands"
36093
36094_ACEOF
36095
36096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36097ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036098\`$as_me' instantiates files and other configuration actions
36099from templates according to the current configuration. Unless the files
36100and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036101
cristy8b350f62009-11-15 23:12:43 +000036102Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036103
36104 -h, --help print this help, then exit
36105 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036106 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036107 -q, --quiet, --silent
36108 do not print progress messages
36109 -d, --debug don't remove temporary files
36110 --recheck update $as_me by reconfiguring in the same conditions
36111 --file=FILE[:TEMPLATE]
36112 instantiate the configuration file FILE
36113 --header=FILE[:TEMPLATE]
36114 instantiate the configuration header FILE
36115
36116Configuration files:
36117$config_files
36118
36119Configuration headers:
36120$config_headers
36121
36122Configuration commands:
36123$config_commands
36124
cristy8b350f62009-11-15 23:12:43 +000036125Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036126
36127_ACEOF
36128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036129ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036130ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036131ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036132configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036133 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036134
cristy98dddb52010-11-04 00:30:15 +000036135Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036136This config.status script is free software; the Free Software Foundation
36137gives unlimited permission to copy, distribute and modify it."
36138
36139ac_pwd='$ac_pwd'
36140srcdir='$srcdir'
36141INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036142MKDIR_P='$MKDIR_P'
36143AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036144test -n "\$AWK" || AWK=awk
36145_ACEOF
36146
36147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36148# The default lists apply if the user does not specify any file.
36149ac_need_defaults=:
36150while test $# != 0
36151do
36152 case $1 in
cristyda16f162011-02-19 23:52:17 +000036153 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036154 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36155 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36156 ac_shift=:
36157 ;;
cristyda16f162011-02-19 23:52:17 +000036158 --*=)
36159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36160 ac_optarg=
36161 ac_shift=:
36162 ;;
cristy3ed852e2009-09-05 21:47:34 +000036163 *)
36164 ac_option=$1
36165 ac_optarg=$2
36166 ac_shift=shift
36167 ;;
36168 esac
36169
36170 case $ac_option in
36171 # Handling of the options.
36172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36173 ac_cs_recheck=: ;;
36174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36175 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036176 --config | --confi | --conf | --con | --co | --c )
36177 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036178 --debug | --debu | --deb | --de | --d | -d )
36179 debug=: ;;
36180 --file | --fil | --fi | --f )
36181 $ac_shift
36182 case $ac_optarg in
36183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036184 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036185 esac
cristy8b350f62009-11-15 23:12:43 +000036186 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036187 ac_need_defaults=false;;
36188 --header | --heade | --head | --hea )
36189 $ac_shift
36190 case $ac_optarg in
36191 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36192 esac
cristy8b350f62009-11-15 23:12:43 +000036193 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036194 ac_need_defaults=false;;
36195 --he | --h)
36196 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036197 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036198Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036199 --help | --hel | -h )
36200 $as_echo "$ac_cs_usage"; exit ;;
36201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36202 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36203 ac_cs_silent=: ;;
36204
36205 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036206 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036207Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036208
cristy8b350f62009-11-15 23:12:43 +000036209 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036210 ac_need_defaults=false ;;
36211
36212 esac
36213 shift
36214done
36215
36216ac_configure_extra_args=
36217
36218if $ac_cs_silent; then
36219 exec 6>/dev/null
36220 ac_configure_extra_args="$ac_configure_extra_args --silent"
36221fi
36222
36223_ACEOF
36224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36225if \$ac_cs_recheck; then
36226 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36227 shift
36228 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36229 CONFIG_SHELL='$SHELL'
36230 export CONFIG_SHELL
36231 exec "\$@"
36232fi
36233
36234_ACEOF
36235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36236exec 5>>config.log
36237{
36238 echo
36239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36240## Running $as_me. ##
36241_ASBOX
36242 $as_echo "$ac_log"
36243} >&5
36244
36245_ACEOF
36246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036247#
36248# INIT-COMMANDS
36249#
36250PACKAGE="$PACKAGE"
36251AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36252
36253
36254# The HP-UX ksh and POSIX shell print the target directory to stdout
36255# if CDPATH is set.
36256(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36257
36258sed_quote_subst='$sed_quote_subst'
36259double_quote_subst='$double_quote_subst'
36260delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036261SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36262Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36263GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36264EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36265FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36266SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36267ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36268LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36269macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36270macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36271AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36272DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36273OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36274enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36275enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36276pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36277enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036278PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036279host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36280host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36281host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36282build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36283build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36284build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36285NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36286LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36287max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36288ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36289exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36290lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36291lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36292lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036293lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36294lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036295reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36296reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36297deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36298file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036299file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36300want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36301sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036302AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36303AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036304archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036305STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36306RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36307old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36308old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36309old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36310lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36311CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36312CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36313compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36314GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36315lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36316lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36317lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36318lt_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 +000036319nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36320lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036321objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36322MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36323lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036324lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036325lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036326lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36327lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36328need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036329MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036330DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36331NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36332LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36333OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36334OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36335libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36336shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36337extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36338archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36339enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36340export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36341whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36342compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36343old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36344old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36345archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36346archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36347module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36348module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36349with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36350allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36351no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36352hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036353hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36354hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36355hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36356hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36357hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36358hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36359inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36360link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036361always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36362export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36363exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36364include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36365prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036366postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036367file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36368variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36369need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36370need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36371version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36372runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36373shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36374shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36375libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36376library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36377soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36378install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36379postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36380postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36381finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36382finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36383hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36384sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36385sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36386hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36387enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36388enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36389enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36390old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36391striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36392compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36393predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36394postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36395predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36396postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36397compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36398LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36399reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36400reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36401old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36402compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36403GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36404lt_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 +000036405lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036406lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036407lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36408lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36409archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36410enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36411export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36412whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36413compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36414old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36415old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36416archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36417archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36418module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36419module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36420with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36421allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36422no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36423hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036424hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36425hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36426hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36427hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36428hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36429hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36430inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36431link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036432always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36433export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36434exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36435include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36436prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036437postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036438file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36439hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36440compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36441predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36442postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36443predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36444postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36445compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036446
36447LTCC='$LTCC'
36448LTCFLAGS='$LTCFLAGS'
36449compiler='$compiler_DEFAULT'
36450
cristy0c60a692010-11-04 01:09:47 +000036451# A function that is used when there is no print builtin or printf.
36452func_fallback_echo ()
36453{
36454 eval 'cat <<_LTECHO_EOF
36455\$1
36456_LTECHO_EOF'
36457}
36458
cristy73bd4a52010-10-05 11:24:23 +000036459# Quote evaled strings.
36460for var in SED \
36461GREP \
36462EGREP \
36463FGREP \
cristy0c60a692010-11-04 01:09:47 +000036464SHELL \
36465ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036466LD \
cristy0c60a692010-11-04 01:09:47 +000036467AS \
36468DLLTOOL \
36469OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036470PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036471NM \
36472LN_S \
36473lt_SP2NL \
36474lt_NL2SP \
36475reload_flag \
36476deplibs_check_method \
36477file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036478file_magic_glob \
36479want_nocaseglob \
36480sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036481AR \
36482AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036483archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036484STRIP \
36485RANLIB \
36486CC \
36487CFLAGS \
36488compiler \
36489lt_cv_sys_global_symbol_pipe \
36490lt_cv_sys_global_symbol_to_cdecl \
36491lt_cv_sys_global_symbol_to_c_name_address \
36492lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036493nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036494lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036495lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036496lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036497lt_prog_compiler_static \
36498lt_cv_prog_compiler_c_o \
36499need_locks \
cristyda16f162011-02-19 23:52:17 +000036500MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036501DSYMUTIL \
36502NMEDIT \
36503LIPO \
36504OTOOL \
36505OTOOL64 \
36506shrext_cmds \
36507export_dynamic_flag_spec \
36508whole_archive_flag_spec \
36509compiler_needs_object \
36510with_gnu_ld \
36511allow_undefined_flag \
36512no_undefined_flag \
36513hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036514hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036515exclude_expsyms \
36516include_expsyms \
36517file_list_spec \
36518variables_saved_for_relink \
36519libname_spec \
36520library_names_spec \
36521soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036522install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036523finish_eval \
36524old_striplib \
36525striplib \
36526compiler_lib_search_dirs \
36527predep_objects \
36528postdep_objects \
36529predeps \
36530postdeps \
36531compiler_lib_search_path \
36532LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036533reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036534compiler_CXX \
36535lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036536lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036537lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036538lt_prog_compiler_static_CXX \
36539lt_cv_prog_compiler_c_o_CXX \
36540export_dynamic_flag_spec_CXX \
36541whole_archive_flag_spec_CXX \
36542compiler_needs_object_CXX \
36543with_gnu_ld_CXX \
36544allow_undefined_flag_CXX \
36545no_undefined_flag_CXX \
36546hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036547hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036548exclude_expsyms_CXX \
36549include_expsyms_CXX \
36550file_list_spec_CXX \
36551compiler_lib_search_dirs_CXX \
36552predep_objects_CXX \
36553postdep_objects_CXX \
36554predeps_CXX \
36555postdeps_CXX \
36556compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036558 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036560 ;;
36561 *)
36562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36563 ;;
36564 esac
36565done
36566
36567# Double-quote double-evaled strings.
36568for var in reload_cmds \
36569old_postinstall_cmds \
36570old_postuninstall_cmds \
36571old_archive_cmds \
36572extract_expsyms_cmds \
36573old_archive_from_new_cmds \
36574old_archive_from_expsyms_cmds \
36575archive_cmds \
36576archive_expsym_cmds \
36577module_cmds \
36578module_expsym_cmds \
36579export_symbols_cmds \
36580prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036581postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036582postinstall_cmds \
36583postuninstall_cmds \
36584finish_cmds \
36585sys_lib_search_path_spec \
36586sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036587reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036588old_archive_cmds_CXX \
36589old_archive_from_new_cmds_CXX \
36590old_archive_from_expsyms_cmds_CXX \
36591archive_cmds_CXX \
36592archive_expsym_cmds_CXX \
36593module_cmds_CXX \
36594module_expsym_cmds_CXX \
36595export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036596prelink_cmds_CXX \
36597postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036598 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036599 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036600 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036601 ;;
36602 *)
36603 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36604 ;;
36605 esac
36606done
36607
cristy73bd4a52010-10-05 11:24:23 +000036608ac_aux_dir='$ac_aux_dir'
36609xsi_shell='$xsi_shell'
36610lt_shell_append='$lt_shell_append'
36611
36612# See if we are running on zsh, and set the options which allow our
36613# commands through without removal of \ escapes INIT.
36614if test -n "\${ZSH_VERSION+set}" ; then
36615 setopt NO_GLOB_SUBST
36616fi
36617
36618
36619 PACKAGE='$PACKAGE'
36620 VERSION='$VERSION'
36621 TIMESTAMP='$TIMESTAMP'
36622 RM='$RM'
36623 ofile='$ofile'
36624
36625
36626
36627
36628
36629
cristy3ed852e2009-09-05 21:47:34 +000036630_ACEOF
36631
36632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36633
36634# Handling of arguments.
36635for ac_config_target in $ac_config_targets
36636do
36637 case $ac_config_target in
36638 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036639 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036640 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36641 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36642 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36643 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36644 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036645 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036646 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36647 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36648 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36649 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36650 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036651 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036652 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36653 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036654 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36655 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36656 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036657 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36658 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36659 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36660 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36661 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36662 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36663 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36664 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36665 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36666 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36667 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36668 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36669 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36670 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36671 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36672 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36673 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036674 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36675 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036676 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36677 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036678 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36679 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036680 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036681 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36682 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36683
cristy98dddb52010-11-04 00:30:15 +000036684 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036685 esac
36686done
36687
36688
36689# If the user did not use the arguments to specify the items to instantiate,
36690# then the envvar interface is used. Set only those that are not.
36691# We use the long form for the default assignment because of an extremely
36692# bizarre bug on SunOS 4.1.3.
36693if $ac_need_defaults; then
36694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36697fi
36698
36699# Have a temporary directory for convenience. Make it in the build tree
36700# simply because there is no reason against having it here, and in addition,
36701# creating and moving files from /tmp can sometimes cause problems.
36702# Hook for its removal unless debugging.
36703# Note that there is a small window in which the directory will not be cleaned:
36704# after its creation but before its name has been assigned to `$tmp'.
36705$debug ||
36706{
cristyda16f162011-02-19 23:52:17 +000036707 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036708 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036709 : "${ac_tmp:=$tmp}"
36710 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036711' 0
cristy8b350f62009-11-15 23:12:43 +000036712 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036713}
36714# Create a (secure) tmp directory for tmp files.
36715
36716{
36717 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036718 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036719} ||
36720{
36721 tmp=./conf$$-$RANDOM
36722 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036723} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036724ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036725
36726# Set up the scripts for CONFIG_FILES section.
36727# No need to generate them if there are no CONFIG_FILES.
36728# This happens for instance with `./config.status config.h'.
36729if test -n "$CONFIG_FILES"; then
36730
36731
cristy8b350f62009-11-15 23:12:43 +000036732ac_cr=`echo X | tr X '\015'`
36733# On cygwin, bash can eat \r inside `` if the user requested igncr.
36734# But we know of no other shell where ac_cr would be empty at this
36735# point, so we can use a bashism as a fallback.
36736if test "x$ac_cr" = x; then
36737 eval ac_cr=\$\'\\r\'
36738fi
cristy3ed852e2009-09-05 21:47:34 +000036739ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36740if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036741 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036742else
36743 ac_cs_awk_cr=$ac_cr
36744fi
36745
cristyda16f162011-02-19 23:52:17 +000036746echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036747_ACEOF
36748
36749
36750{
36751 echo "cat >conf$$subs.awk <<_ACEOF" &&
36752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36753 echo "_ACEOF"
36754} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036755 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36756ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036757ac_delim='%!_!# '
36758for ac_last_try in false false false false false :; do
36759 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036761
36762 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36763 if test $ac_delim_n = $ac_delim_num; then
36764 break
36765 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036766 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036767 else
36768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36769 fi
36770done
36771rm -f conf$$subs.sh
36772
36773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036774cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036775_ACEOF
36776sed -n '
36777h
36778s/^/S["/; s/!.*/"]=/
36779p
36780g
36781s/^[^!]*!//
36782:repl
36783t repl
36784s/'"$ac_delim"'$//
36785t delim
36786:nl
36787h
cristycd4c5312009-11-22 01:19:08 +000036788s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036789t more1
36790s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36791p
36792n
36793b repl
36794:more1
36795s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36796p
36797g
36798s/.\{148\}//
36799t nl
36800:delim
36801h
cristycd4c5312009-11-22 01:19:08 +000036802s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036803t more2
36804s/["\\]/\\&/g; s/^/"/; s/$/"/
36805p
36806b
36807:more2
36808s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36809p
36810g
36811s/.\{148\}//
36812t delim
36813' <conf$$subs.awk | sed '
36814/^[^""]/{
36815 N
36816 s/\n//
36817}
36818' >>$CONFIG_STATUS || ac_write_fail=1
36819rm -f conf$$subs.awk
36820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36821_ACAWK
cristyda16f162011-02-19 23:52:17 +000036822cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036823 for (key in S) S_is_set[key] = 1
36824 FS = ""
36825
36826}
36827{
36828 line = $ 0
36829 nfields = split(line, field, "@")
36830 substed = 0
36831 len = length(field[1])
36832 for (i = 2; i < nfields; i++) {
36833 key = field[i]
36834 keylen = length(key)
36835 if (S_is_set[key]) {
36836 value = S[key]
36837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36838 len += length(value) + length(field[++i])
36839 substed = 1
36840 } else
36841 len += 1 + keylen
36842 }
36843
36844 print line
36845}
36846
36847_ACAWK
36848_ACEOF
36849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36850if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36851 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36852else
36853 cat
cristyda16f162011-02-19 23:52:17 +000036854fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036855 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036856_ACEOF
36857
cristy98dddb52010-11-04 00:30:15 +000036858# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36859# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036860# trailing colons and then remove the whole line if VPATH becomes empty
36861# (actually we leave an empty line to preserve line numbers).
36862if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036863 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36864h
36865s///
36866s/^/:/
36867s/[ ]*$/:/
36868s/:\$(srcdir):/:/g
36869s/:\${srcdir}:/:/g
36870s/:@srcdir@:/:/g
36871s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036872s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036873x
36874s/\(=[ ]*\).*/\1/
36875G
36876s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036877s/^[^=]*=[ ]*$//
36878}'
36879fi
36880
36881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36882fi # test -n "$CONFIG_FILES"
36883
36884# Set up the scripts for CONFIG_HEADERS section.
36885# No need to generate them if there are no CONFIG_HEADERS.
36886# This happens for instance with `./config.status Makefile'.
36887if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036888cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036889BEGIN {
36890_ACEOF
36891
36892# Transform confdefs.h into an awk script `defines.awk', embedded as
36893# here-document in config.status, that substitutes the proper values into
36894# config.h.in to produce config.h.
36895
36896# Create a delimiter string that does not exist in confdefs.h, to ease
36897# handling of long lines.
36898ac_delim='%!_!# '
36899for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036900 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36901 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036902 break
36903 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036904 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036905 else
36906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36907 fi
36908done
36909
36910# For the awk script, D is an array of macro values keyed by name,
36911# likewise P contains macro parameters if any. Preserve backslash
36912# newline sequences.
36913
36914ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36915sed -n '
36916s/.\{148\}/&'"$ac_delim"'/g
36917t rset
36918:rset
36919s/^[ ]*#[ ]*define[ ][ ]*/ /
36920t def
36921d
36922:def
36923s/\\$//
36924t bsnl
36925s/["\\]/\\&/g
36926s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36927D["\1"]=" \3"/p
36928s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36929d
36930:bsnl
36931s/["\\]/\\&/g
36932s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36933D["\1"]=" \3\\\\\\n"\\/p
36934t cont
36935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36936t cont
36937d
36938:cont
36939n
36940s/.\{148\}/&'"$ac_delim"'/g
36941t clear
36942:clear
36943s/\\$//
36944t bsnlc
36945s/["\\]/\\&/g; s/^/"/; s/$/"/p
36946d
36947:bsnlc
36948s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36949b cont
36950' <confdefs.h | sed '
36951s/'"$ac_delim"'/"\\\
36952"/g' >>$CONFIG_STATUS || ac_write_fail=1
36953
36954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36955 for (key in D) D_is_set[key] = 1
36956 FS = ""
36957}
36958/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36959 line = \$ 0
36960 split(line, arg, " ")
36961 if (arg[1] == "#") {
36962 defundef = arg[2]
36963 mac1 = arg[3]
36964 } else {
36965 defundef = substr(arg[1], 2)
36966 mac1 = arg[2]
36967 }
36968 split(mac1, mac2, "(") #)
36969 macro = mac2[1]
36970 prefix = substr(line, 1, index(line, defundef) - 1)
36971 if (D_is_set[macro]) {
36972 # Preserve the white space surrounding the "#".
36973 print prefix "define", macro P[macro] D[macro]
36974 next
36975 } else {
36976 # Replace #undef with comments. This is necessary, for example,
36977 # in the case of _POSIX_SOURCE, which is predefined and required
36978 # on some systems where configure will not decide to define it.
36979 if (defundef == "undef") {
36980 print "/*", prefix defundef, macro, "*/"
36981 next
36982 }
36983 }
36984}
36985{ print }
36986_ACAWK
36987_ACEOF
36988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036989 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036990fi # test -n "$CONFIG_HEADERS"
36991
36992
36993eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36994shift
36995for ac_tag
36996do
36997 case $ac_tag in
36998 :[FHLC]) ac_mode=$ac_tag; continue;;
36999 esac
37000 case $ac_mode$ac_tag in
37001 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037002 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037003 :[FH]-) ac_tag=-:-;;
37004 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37005 esac
37006 ac_save_IFS=$IFS
37007 IFS=:
37008 set x $ac_tag
37009 IFS=$ac_save_IFS
37010 shift
37011 ac_file=$1
37012 shift
37013
37014 case $ac_mode in
37015 :L) ac_source=$1;;
37016 :[FH])
37017 ac_file_inputs=
37018 for ac_f
37019 do
37020 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037021 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037022 *) # Look for the file first in the build tree, then in the source tree
37023 # (if the path is not absolute). The absolute path cannot be DOS-style,
37024 # because $ac_f cannot contain `:'.
37025 test -f "$ac_f" ||
37026 case $ac_f in
37027 [\\/$]*) false;;
37028 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37029 esac ||
cristy98dddb52010-11-04 00:30:15 +000037030 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037031 esac
37032 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037033 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037034 done
37035
37036 # Let's still pretend it is `configure' which instantiates (i.e., don't
37037 # use $as_me), people would be surprised to read:
37038 # /* config.h. Generated by config.status. */
37039 configure_input='Generated from '`
37040 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37041 `' by configure.'
37042 if test x"$ac_file" != x-; then
37043 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037045$as_echo "$as_me: creating $ac_file" >&6;}
37046 fi
37047 # Neutralize special characters interpreted by sed in replacement strings.
37048 case $configure_input in #(
37049 *\&* | *\|* | *\\* )
37050 ac_sed_conf_input=`$as_echo "$configure_input" |
37051 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37052 *) ac_sed_conf_input=$configure_input;;
37053 esac
37054
37055 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037056 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037057 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037058 esac
37059 ;;
37060 esac
37061
37062 ac_dir=`$as_dirname -- "$ac_file" ||
37063$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37064 X"$ac_file" : 'X\(//\)[^/]' \| \
37065 X"$ac_file" : 'X\(//\)$' \| \
37066 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37067$as_echo X"$ac_file" |
37068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37069 s//\1/
37070 q
37071 }
37072 /^X\(\/\/\)[^/].*/{
37073 s//\1/
37074 q
37075 }
37076 /^X\(\/\/\)$/{
37077 s//\1/
37078 q
37079 }
37080 /^X\(\/\).*/{
37081 s//\1/
37082 q
37083 }
37084 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037085 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037086 ac_builddir=.
37087
37088case "$ac_dir" in
37089.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37090*)
37091 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37092 # A ".." for each directory in $ac_dir_suffix.
37093 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37094 case $ac_top_builddir_sub in
37095 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37096 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37097 esac ;;
37098esac
37099ac_abs_top_builddir=$ac_pwd
37100ac_abs_builddir=$ac_pwd$ac_dir_suffix
37101# for backward compatibility:
37102ac_top_builddir=$ac_top_build_prefix
37103
37104case $srcdir in
37105 .) # We are building in place.
37106 ac_srcdir=.
37107 ac_top_srcdir=$ac_top_builddir_sub
37108 ac_abs_top_srcdir=$ac_pwd ;;
37109 [\\/]* | ?:[\\/]* ) # Absolute name.
37110 ac_srcdir=$srcdir$ac_dir_suffix;
37111 ac_top_srcdir=$srcdir
37112 ac_abs_top_srcdir=$srcdir ;;
37113 *) # Relative name.
37114 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37115 ac_top_srcdir=$ac_top_build_prefix$srcdir
37116 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37117esac
37118ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37119
37120
37121 case $ac_mode in
37122 :F)
37123 #
37124 # CONFIG_FILE
37125 #
37126
37127 case $INSTALL in
37128 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37129 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37130 esac
cristy73bd4a52010-10-05 11:24:23 +000037131 ac_MKDIR_P=$MKDIR_P
37132 case $MKDIR_P in
37133 [\\/$]* | ?:[\\/]* ) ;;
37134 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37135 esac
cristy3ed852e2009-09-05 21:47:34 +000037136_ACEOF
37137
37138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37139# If the template does not know about datarootdir, expand it.
37140# FIXME: This hack should be removed a few years after 2.60.
37141ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037142ac_sed_dataroot='
37143/datarootdir/ {
37144 p
37145 q
37146}
37147/@datadir@/p
37148/@docdir@/p
37149/@infodir@/p
37150/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037151/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037152case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37153*datarootdir*) ac_datarootdir_seen=yes;;
37154*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037156$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37157_ACEOF
37158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37159 ac_datarootdir_hack='
37160 s&@datadir@&$datadir&g
37161 s&@docdir@&$docdir&g
37162 s&@infodir@&$infodir&g
37163 s&@localedir@&$localedir&g
37164 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037165 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037166esac
37167_ACEOF
37168
37169# Neutralize VPATH when `$srcdir' = `.'.
37170# Shell code in configure.ac might set extrasub.
37171# FIXME: do we really want to maintain this feature?
37172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37173ac_sed_extra="$ac_vpsub
37174$extrasub
37175_ACEOF
37176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37177:t
37178/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37179s|@configure_input@|$ac_sed_conf_input|;t t
37180s&@top_builddir@&$ac_top_builddir_sub&;t t
37181s&@top_build_prefix@&$ac_top_build_prefix&;t t
37182s&@srcdir@&$ac_srcdir&;t t
37183s&@abs_srcdir@&$ac_abs_srcdir&;t t
37184s&@top_srcdir@&$ac_top_srcdir&;t t
37185s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37186s&@builddir@&$ac_builddir&;t t
37187s&@abs_builddir@&$ac_abs_builddir&;t t
37188s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37189s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037190s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037191$ac_datarootdir_hack
37192"
cristyda16f162011-02-19 23:52:17 +000037193eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37194 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037195
37196test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037197 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37198 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37199 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037201which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037202$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037203which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037204
cristyda16f162011-02-19 23:52:17 +000037205 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037206 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037207 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37208 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037209 esac \
cristy98dddb52010-11-04 00:30:15 +000037210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037211 ;;
37212 :H)
37213 #
37214 # CONFIG_HEADER
37215 #
37216 if test x"$ac_file" != x-; then
37217 {
37218 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037219 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37220 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037222 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037223 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037224$as_echo "$as_me: $ac_file is unchanged" >&6;}
37225 else
37226 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037227 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037229 fi
37230 else
37231 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037232 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037233 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037234 fi
cristy73bd4a52010-10-05 11:24:23 +000037235# Compute "$ac_file"'s index in $config_headers.
37236_am_arg="$ac_file"
37237_am_stamp_count=1
37238for _am_header in $config_headers :; do
37239 case $_am_header in
37240 $_am_arg | $_am_arg:* )
37241 break ;;
37242 * )
37243 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37244 esac
37245done
37246echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37247$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37248 X"$_am_arg" : 'X\(//\)[^/]' \| \
37249 X"$_am_arg" : 'X\(//\)$' \| \
37250 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37251$as_echo X"$_am_arg" |
37252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37253 s//\1/
37254 q
37255 }
37256 /^X\(\/\/\)[^/].*/{
37257 s//\1/
37258 q
37259 }
37260 /^X\(\/\/\)$/{
37261 s//\1/
37262 q
37263 }
37264 /^X\(\/\).*/{
37265 s//\1/
37266 q
37267 }
37268 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037269 ;;
37270
cristy8b350f62009-11-15 23:12:43 +000037271 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037272$as_echo "$as_me: executing $ac_file commands" >&6;}
37273 ;;
37274 esac
37275
37276
37277 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037278 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037279ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37280ac_prefix_conf_PKG=`echo MagickCore`
37281ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37282ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37283ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37284if test ".$ac_prefix_conf_INP" = "."; then
37285 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37286 case "$ac_file" in
37287 *.h) ac_prefix_conf_INP=$ac_file ;;
37288 *)
37289 esac
37290 test ".$ac_prefix_conf_INP" != "." && break
37291 done
37292fi
37293if test ".$ac_prefix_conf_INP" = "."; then
37294 case "$ac_prefix_conf_OUT" in
37295 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37296 ;;
37297 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37298 ;;
37299 *) ac_prefix_conf_INP=config.h
37300 ;;
37301 esac
37302fi
37303if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037304 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037305else
37306 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37307 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37308 fi fi
37309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37310$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37311 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037312 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37313 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37314 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37315 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37316 $as_echo "#endif/" >> conftest.prefix
37317 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37318 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37319 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037320 # now executing _script on _DEF input to create _OUT output file
37321 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37322 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37323 echo ' ' >>$tmp/pconfig.h
37324 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37325
37326 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37327 echo ' ' >>$tmp/pconfig.h
37328 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37329 echo "#endif" >>$tmp/pconfig.h
37330 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37332$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37333 else
37334 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37335$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37336 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37337 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37338 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37339$as_echo X"$ac_prefix_conf_OUT" |
37340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37341 s//\1/
37342 q
37343 }
37344 /^X\(\/\/\)[^/].*/{
37345 s//\1/
37346 q
37347 }
37348 /^X\(\/\/\)$/{
37349 s//\1/
37350 q
37351 }
37352 /^X\(\/\).*/{
37353 s//\1/
37354 q
37355 }
37356 s/.*/./; q'`
37357 as_dir="$ac_dir"; as_fn_mkdir_p
37358 rm -f "$ac_prefix_conf_OUT"
37359 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37360 fi
37361 cp conftest.prefix _configs.sed
37362 else
cristy98dddb52010-11-04 00:30:15 +000037363 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 +000037364 fi
37365 rm -f conftest.*
37366fi
37367 ;;
37368 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37369 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37370 # are listed without --file. Let's play safe and only enable the eval
37371 # if we detect the quoting.
37372 case $CONFIG_FILES in
37373 *\'*) eval set x "$CONFIG_FILES" ;;
37374 *) set x $CONFIG_FILES ;;
37375 esac
37376 shift
37377 for mf
37378 do
37379 # Strip MF so we end up with the name of the file.
37380 mf=`echo "$mf" | sed -e 's/:.*$//'`
37381 # Check whether this is an Automake generated Makefile or not.
37382 # We used to match only the files named `Makefile.in', but
37383 # some people rename them; so instead we look at the file content.
37384 # Grep'ing the first line is not enough: some people post-process
37385 # each Makefile.in and add a new line on top of each file to say so.
37386 # Grep'ing the whole file is not good either: AIX grep has a line
37387 # limit of 2048, but all sed's we know have understand at least 4000.
37388 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37389 dirpart=`$as_dirname -- "$mf" ||
37390$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37391 X"$mf" : 'X\(//\)[^/]' \| \
37392 X"$mf" : 'X\(//\)$' \| \
37393 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37394$as_echo X"$mf" |
37395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37396 s//\1/
37397 q
37398 }
37399 /^X\(\/\/\)[^/].*/{
37400 s//\1/
37401 q
37402 }
37403 /^X\(\/\/\)$/{
37404 s//\1/
37405 q
37406 }
37407 /^X\(\/\).*/{
37408 s//\1/
37409 q
37410 }
37411 s/.*/./; q'`
37412 else
37413 continue
37414 fi
37415 # Extract the definition of DEPDIR, am__include, and am__quote
37416 # from the Makefile without running `make'.
37417 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37418 test -z "$DEPDIR" && continue
37419 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37420 test -z "am__include" && continue
37421 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37422 # When using ansi2knr, U may be empty or an underscore; expand it
37423 U=`sed -n 's/^U = //p' < "$mf"`
37424 # Find all dependency output files, they are included files with
37425 # $(DEPDIR) in their names. We invoke sed twice because it is the
37426 # simplest approach to changing $(DEPDIR) to its actual value in the
37427 # expansion.
37428 for file in `sed -n "
37429 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37430 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37431 # Make sure the directory exists.
37432 test -f "$dirpart/$file" && continue
37433 fdir=`$as_dirname -- "$file" ||
37434$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37435 X"$file" : 'X\(//\)[^/]' \| \
37436 X"$file" : 'X\(//\)$' \| \
37437 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37438$as_echo X"$file" |
37439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37440 s//\1/
37441 q
37442 }
37443 /^X\(\/\/\)[^/].*/{
37444 s//\1/
37445 q
37446 }
37447 /^X\(\/\/\)$/{
37448 s//\1/
37449 q
37450 }
37451 /^X\(\/\).*/{
37452 s//\1/
37453 q
37454 }
37455 s/.*/./; q'`
37456 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37457 # echo "creating $dirpart/$file"
37458 echo '# dummy' > "$dirpart/$file"
37459 done
37460 done
37461}
37462 ;;
37463 "libtool":C)
37464
37465 # See if we are running on zsh, and set the options which allow our
37466 # commands through without removal of \ escapes.
37467 if test -n "${ZSH_VERSION+set}" ; then
37468 setopt NO_GLOB_SUBST
37469 fi
37470
37471 cfgfile="${ofile}T"
37472 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37473 $RM "$cfgfile"
37474
37475 cat <<_LT_EOF >> "$cfgfile"
37476#! $SHELL
37477
37478# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37479# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37480# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37481# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37482#
37483# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037484# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37485# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037486# Written by Gordon Matzigkeit, 1996
37487#
37488# This file is part of GNU Libtool.
37489#
37490# GNU Libtool is free software; you can redistribute it and/or
37491# modify it under the terms of the GNU General Public License as
37492# published by the Free Software Foundation; either version 2 of
37493# the License, or (at your option) any later version.
37494#
37495# As a special exception to the GNU General Public License,
37496# if you distribute this file as part of a program or library that
37497# is built using GNU Libtool, you may include this file under the
37498# same distribution terms that you use for the rest of that program.
37499#
37500# GNU Libtool is distributed in the hope that it will be useful,
37501# but WITHOUT ANY WARRANTY; without even the implied warranty of
37502# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37503# GNU General Public License for more details.
37504#
37505# You should have received a copy of the GNU General Public License
37506# along with GNU Libtool; see the file COPYING. If not, a copy
37507# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37508# obtained by writing to the Free Software Foundation, Inc.,
37509# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37510
37511
37512# The names of the tagged configurations supported by this script.
37513available_tags="CXX "
37514
37515# ### BEGIN LIBTOOL CONFIG
37516
37517# A sed program that does not truncate output.
37518SED=$lt_SED
37519
37520# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37521Xsed="\$SED -e 1s/^X//"
37522
37523# A grep program that handles long lines.
37524GREP=$lt_GREP
37525
37526# An ERE matcher.
37527EGREP=$lt_EGREP
37528
37529# A literal string matcher.
37530FGREP=$lt_FGREP
37531
cristy0c60a692010-11-04 01:09:47 +000037532# Shell to use when invoking shell scripts.
37533SHELL=$lt_SHELL
37534
37535# An echo program that protects backslashes.
37536ECHO=$lt_ECHO
37537
cristy73bd4a52010-10-05 11:24:23 +000037538# Which release of libtool.m4 was used?
37539macro_version=$macro_version
37540macro_revision=$macro_revision
37541
37542# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037543AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037544
37545# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037546DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037547
37548# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037549OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037550
37551# Whether or not to build shared libraries.
37552build_libtool_libs=$enable_shared
37553
37554# Whether or not to build static libraries.
37555build_old_libs=$enable_static
37556
37557# What type of objects to build.
37558pic_mode=$pic_mode
37559
37560# Whether or not to optimize for fast installation.
37561fast_install=$enable_fast_install
37562
cristy99bd5232011-12-07 14:38:20 +000037563# The PATH separator for the build system.
37564PATH_SEPARATOR=$lt_PATH_SEPARATOR
37565
cristy73bd4a52010-10-05 11:24:23 +000037566# The host system.
37567host_alias=$host_alias
37568host=$host
37569host_os=$host_os
37570
37571# The build system.
37572build_alias=$build_alias
37573build=$build
37574build_os=$build_os
37575
37576# A BSD- or MS-compatible name lister.
37577NM=$lt_NM
37578
37579# Whether we need soft or hard links.
37580LN_S=$lt_LN_S
37581
37582# What is the maximum length of a command?
37583max_cmd_len=$max_cmd_len
37584
37585# Object file suffix (normally "o").
37586objext=$ac_objext
37587
37588# Executable file suffix (normally "").
37589exeext=$exeext
37590
37591# whether the shell understands "unset".
37592lt_unset=$lt_unset
37593
37594# turn spaces into newlines.
37595SP2NL=$lt_lt_SP2NL
37596
37597# turn newlines into spaces.
37598NL2SP=$lt_lt_NL2SP
37599
cristyda16f162011-02-19 23:52:17 +000037600# convert \$build file names to \$host format.
37601to_host_file_cmd=$lt_cv_to_host_file_cmd
37602
37603# convert \$build files to toolchain format.
37604to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37605
cristy73bd4a52010-10-05 11:24:23 +000037606# Method to check whether dependent libraries are shared objects.
37607deplibs_check_method=$lt_deplibs_check_method
37608
cristyda16f162011-02-19 23:52:17 +000037609# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037610file_magic_cmd=$lt_file_magic_cmd
37611
cristyda16f162011-02-19 23:52:17 +000037612# How to find potential files when deplibs_check_method = "file_magic".
37613file_magic_glob=$lt_file_magic_glob
37614
37615# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37616want_nocaseglob=$lt_want_nocaseglob
37617
37618# Command to associate shared and link libraries.
37619sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37620
cristy73bd4a52010-10-05 11:24:23 +000037621# The archiver.
37622AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037623
37624# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037625AR_FLAGS=$lt_AR_FLAGS
37626
cristyda16f162011-02-19 23:52:17 +000037627# How to feed a file listing to the archiver.
37628archiver_list_spec=$lt_archiver_list_spec
37629
cristy73bd4a52010-10-05 11:24:23 +000037630# A symbol stripping program.
37631STRIP=$lt_STRIP
37632
37633# Commands used to install an old-style archive.
37634RANLIB=$lt_RANLIB
37635old_postinstall_cmds=$lt_old_postinstall_cmds
37636old_postuninstall_cmds=$lt_old_postuninstall_cmds
37637
cristy0c60a692010-11-04 01:09:47 +000037638# Whether to use a lock for old archive extraction.
37639lock_old_archive_extraction=$lock_old_archive_extraction
37640
cristy73bd4a52010-10-05 11:24:23 +000037641# A C compiler.
37642LTCC=$lt_CC
37643
37644# LTCC compiler flags.
37645LTCFLAGS=$lt_CFLAGS
37646
37647# Take the output of nm and produce a listing of raw symbols and C names.
37648global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37649
37650# Transform the output of nm in a proper C declaration.
37651global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37652
37653# Transform the output of nm in a C name address pair.
37654global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37655
37656# Transform the output of nm in a C name address pair when lib prefix is needed.
37657global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37658
cristyda16f162011-02-19 23:52:17 +000037659# Specify filename containing input files for \$NM.
37660nm_file_list_spec=$lt_nm_file_list_spec
37661
37662# The root where to search for dependent libraries,and in which our libraries should be installed.
37663lt_sysroot=$lt_sysroot
37664
cristy73bd4a52010-10-05 11:24:23 +000037665# The name of the directory that contains temporary libtool files.
37666objdir=$objdir
37667
cristy73bd4a52010-10-05 11:24:23 +000037668# Used to examine libraries when file_magic_cmd begins with "file".
37669MAGIC_CMD=$MAGIC_CMD
37670
37671# Must we lock files when doing compilation?
37672need_locks=$lt_need_locks
37673
cristyda16f162011-02-19 23:52:17 +000037674# Manifest tool.
37675MANIFEST_TOOL=$lt_MANIFEST_TOOL
37676
cristy73bd4a52010-10-05 11:24:23 +000037677# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37678DSYMUTIL=$lt_DSYMUTIL
37679
37680# Tool to change global to local symbols on Mac OS X.
37681NMEDIT=$lt_NMEDIT
37682
37683# Tool to manipulate fat objects and archives on Mac OS X.
37684LIPO=$lt_LIPO
37685
37686# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37687OTOOL=$lt_OTOOL
37688
37689# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37690OTOOL64=$lt_OTOOL64
37691
37692# Old archive suffix (normally "a").
37693libext=$libext
37694
37695# Shared library suffix (normally ".so").
37696shrext_cmds=$lt_shrext_cmds
37697
37698# The commands to extract the exported symbol list from a shared archive.
37699extract_expsyms_cmds=$lt_extract_expsyms_cmds
37700
37701# Variables whose values should be saved in libtool wrapper scripts and
37702# restored at link time.
37703variables_saved_for_relink=$lt_variables_saved_for_relink
37704
37705# Do we need the "lib" prefix for modules?
37706need_lib_prefix=$need_lib_prefix
37707
37708# Do we need a version for libraries?
37709need_version=$need_version
37710
37711# Library versioning type.
37712version_type=$version_type
37713
37714# Shared library runtime path variable.
37715runpath_var=$runpath_var
37716
37717# Shared library path variable.
37718shlibpath_var=$shlibpath_var
37719
37720# Is shlibpath searched before the hard-coded library search path?
37721shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37722
37723# Format of library name prefix.
37724libname_spec=$lt_libname_spec
37725
37726# List of archive names. First name is the real one, the rest are links.
37727# The last name is the one that the linker finds with -lNAME
37728library_names_spec=$lt_library_names_spec
37729
37730# The coded name of the library, if different from the real name.
37731soname_spec=$lt_soname_spec
37732
cristy0c60a692010-11-04 01:09:47 +000037733# Permission mode override for installation of shared libraries.
37734install_override_mode=$lt_install_override_mode
37735
cristy73bd4a52010-10-05 11:24:23 +000037736# Command to use after installation of a shared archive.
37737postinstall_cmds=$lt_postinstall_cmds
37738
37739# Command to use after uninstallation of a shared archive.
37740postuninstall_cmds=$lt_postuninstall_cmds
37741
37742# Commands used to finish a libtool library installation in a directory.
37743finish_cmds=$lt_finish_cmds
37744
37745# As "finish_cmds", except a single script fragment to be evaled but
37746# not shown.
37747finish_eval=$lt_finish_eval
37748
37749# Whether we should hardcode library paths into libraries.
37750hardcode_into_libs=$hardcode_into_libs
37751
37752# Compile-time system search path for libraries.
37753sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37754
37755# Run-time system search path for libraries.
37756sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37757
37758# Whether dlopen is supported.
37759dlopen_support=$enable_dlopen
37760
37761# Whether dlopen of programs is supported.
37762dlopen_self=$enable_dlopen_self
37763
37764# Whether dlopen of statically linked programs is supported.
37765dlopen_self_static=$enable_dlopen_self_static
37766
37767# Commands to strip libraries.
37768old_striplib=$lt_old_striplib
37769striplib=$lt_striplib
37770
37771
37772# The linker used to build libraries.
37773LD=$lt_LD
37774
cristy0c60a692010-11-04 01:09:47 +000037775# How to create reloadable object files.
37776reload_flag=$lt_reload_flag
37777reload_cmds=$lt_reload_cmds
37778
cristy73bd4a52010-10-05 11:24:23 +000037779# Commands used to build an old-style archive.
37780old_archive_cmds=$lt_old_archive_cmds
37781
37782# A language specific compiler.
37783CC=$lt_compiler
37784
37785# Is the compiler the GNU compiler?
37786with_gcc=$GCC
37787
37788# Compiler flag to turn off builtin functions.
37789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37790
cristy73bd4a52010-10-05 11:24:23 +000037791# Additional compiler flags for building library objects.
37792pic_flag=$lt_lt_prog_compiler_pic
37793
cristyda16f162011-02-19 23:52:17 +000037794# How to pass a linker flag through the compiler.
37795wl=$lt_lt_prog_compiler_wl
37796
cristy73bd4a52010-10-05 11:24:23 +000037797# Compiler flag to prevent dynamic linking.
37798link_static_flag=$lt_lt_prog_compiler_static
37799
37800# Does compiler simultaneously support -c and -o options?
37801compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37802
37803# Whether or not to add -lc for building shared libraries.
37804build_libtool_need_lc=$archive_cmds_need_lc
37805
37806# Whether or not to disallow shared libs when runtime libs are static.
37807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37808
37809# Compiler flag to allow reflexive dlopens.
37810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37811
37812# Compiler flag to generate shared objects directly from archives.
37813whole_archive_flag_spec=$lt_whole_archive_flag_spec
37814
37815# Whether the compiler copes with passing no objects directly.
37816compiler_needs_object=$lt_compiler_needs_object
37817
37818# Create an old-style archive from a shared archive.
37819old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37820
37821# Create a temporary old-style archive to link instead of a shared archive.
37822old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37823
37824# Commands used to build a shared archive.
37825archive_cmds=$lt_archive_cmds
37826archive_expsym_cmds=$lt_archive_expsym_cmds
37827
37828# Commands used to build a loadable module if different from building
37829# a shared archive.
37830module_cmds=$lt_module_cmds
37831module_expsym_cmds=$lt_module_expsym_cmds
37832
37833# Whether we are building with GNU ld or not.
37834with_gnu_ld=$lt_with_gnu_ld
37835
37836# Flag that allows shared libraries with undefined symbols to be built.
37837allow_undefined_flag=$lt_allow_undefined_flag
37838
37839# Flag that enforces no undefined symbols.
37840no_undefined_flag=$lt_no_undefined_flag
37841
37842# Flag to hardcode \$libdir into a binary during linking.
37843# This must work even if \$libdir does not exist
37844hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37845
cristy73bd4a52010-10-05 11:24:23 +000037846# Whether we need a single "-rpath" flag with a separated argument.
37847hardcode_libdir_separator=$lt_hardcode_libdir_separator
37848
37849# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37850# DIR into the resulting binary.
37851hardcode_direct=$hardcode_direct
37852
37853# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37854# DIR into the resulting binary and the resulting library dependency is
37855# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37856# library is relocated.
37857hardcode_direct_absolute=$hardcode_direct_absolute
37858
37859# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37860# into the resulting binary.
37861hardcode_minus_L=$hardcode_minus_L
37862
37863# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37864# into the resulting binary.
37865hardcode_shlibpath_var=$hardcode_shlibpath_var
37866
37867# Set to "yes" if building a shared library automatically hardcodes DIR
37868# into the library and all subsequent libraries and executables linked
37869# against it.
37870hardcode_automatic=$hardcode_automatic
37871
37872# Set to yes if linker adds runtime paths of dependent libraries
37873# to runtime path list.
37874inherit_rpath=$inherit_rpath
37875
37876# Whether libtool must link a program against all its dependency libraries.
37877link_all_deplibs=$link_all_deplibs
37878
cristy73bd4a52010-10-05 11:24:23 +000037879# Set to "yes" if exported symbols are required.
37880always_export_symbols=$always_export_symbols
37881
37882# The commands to list exported symbols.
37883export_symbols_cmds=$lt_export_symbols_cmds
37884
37885# Symbols that should not be listed in the preloaded symbols.
37886exclude_expsyms=$lt_exclude_expsyms
37887
37888# Symbols that must always be exported.
37889include_expsyms=$lt_include_expsyms
37890
37891# Commands necessary for linking programs (against libraries) with templates.
37892prelink_cmds=$lt_prelink_cmds
37893
cristyda16f162011-02-19 23:52:17 +000037894# Commands necessary for finishing linking programs.
37895postlink_cmds=$lt_postlink_cmds
37896
cristy73bd4a52010-10-05 11:24:23 +000037897# Specify filename containing input files.
37898file_list_spec=$lt_file_list_spec
37899
37900# How to hardcode a shared library path into an executable.
37901hardcode_action=$hardcode_action
37902
37903# The directories searched by this compiler when creating a shared library.
37904compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37905
37906# Dependencies to place before and after the objects being linked to
37907# create a shared library.
37908predep_objects=$lt_predep_objects
37909postdep_objects=$lt_postdep_objects
37910predeps=$lt_predeps
37911postdeps=$lt_postdeps
37912
37913# The library search path used internally by the compiler when linking
37914# a shared library.
37915compiler_lib_search_path=$lt_compiler_lib_search_path
37916
37917# ### END LIBTOOL CONFIG
37918
37919_LT_EOF
37920
37921 case $host_os in
37922 aix3*)
37923 cat <<\_LT_EOF >> "$cfgfile"
37924# AIX sometimes has problems with the GCC collect2 program. For some
37925# reason, if we set the COLLECT_NAMES environment variable, the problems
37926# vanish in a puff of smoke.
37927if test "X${COLLECT_NAMES+set}" != Xset; then
37928 COLLECT_NAMES=
37929 export COLLECT_NAMES
37930fi
37931_LT_EOF
37932 ;;
37933 esac
37934
37935
37936ltmain="$ac_aux_dir/ltmain.sh"
37937
37938
37939 # We use sed instead of cat because bash on DJGPP gets confused if
37940 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37941 # text mode, it properly converts lines to CR/LF. This bash problem
37942 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037943 sed '$q' "$ltmain" >> "$cfgfile" \
37944 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037945
cristyda16f162011-02-19 23:52:17 +000037946 if test x"$xsi_shell" = xyes; then
37947 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37948func_dirname ()\
37949{\
37950\ case ${1} in\
37951\ */*) func_dirname_result="${1%/*}${2}" ;;\
37952\ * ) func_dirname_result="${3}" ;;\
37953\ esac\
37954} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37955 && mv -f "$cfgfile.tmp" "$cfgfile" \
37956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37957test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037958
37959
cristyda16f162011-02-19 23:52:17 +000037960 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37961func_basename ()\
37962{\
37963\ func_basename_result="${1##*/}"\
37964} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37965 && mv -f "$cfgfile.tmp" "$cfgfile" \
37966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37967test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037968
37969
cristyda16f162011-02-19 23:52:17 +000037970 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37971func_dirname_and_basename ()\
37972{\
37973\ case ${1} in\
37974\ */*) func_dirname_result="${1%/*}${2}" ;;\
37975\ * ) func_dirname_result="${3}" ;;\
37976\ esac\
37977\ func_basename_result="${1##*/}"\
37978} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37979 && mv -f "$cfgfile.tmp" "$cfgfile" \
37980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37981test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037982
cristyda16f162011-02-19 23:52:17 +000037983
37984 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37985func_stripname ()\
37986{\
37987\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37988\ # positional parameters, so assign one to ordinary parameter first.\
37989\ func_stripname_result=${3}\
37990\ func_stripname_result=${func_stripname_result#"${1}"}\
37991\ func_stripname_result=${func_stripname_result%"${2}"}\
37992} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37993 && mv -f "$cfgfile.tmp" "$cfgfile" \
37994 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37995test 0 -eq $? || _lt_function_replace_fail=:
37996
37997
37998 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37999func_split_long_opt ()\
38000{\
38001\ func_split_long_opt_name=${1%%=*}\
38002\ func_split_long_opt_arg=${1#*=}\
38003} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38004 && mv -f "$cfgfile.tmp" "$cfgfile" \
38005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38006test 0 -eq $? || _lt_function_replace_fail=:
38007
38008
38009 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38010func_split_short_opt ()\
38011{\
38012\ func_split_short_opt_arg=${1#??}\
38013\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38014} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38015 && mv -f "$cfgfile.tmp" "$cfgfile" \
38016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38017test 0 -eq $? || _lt_function_replace_fail=:
38018
38019
38020 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38021func_lo2o ()\
38022{\
38023\ case ${1} in\
38024\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38025\ *) func_lo2o_result=${1} ;;\
38026\ esac\
38027} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38028 && mv -f "$cfgfile.tmp" "$cfgfile" \
38029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38030test 0 -eq $? || _lt_function_replace_fail=:
38031
38032
38033 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38034func_xform ()\
38035{\
38036 func_xform_result=${1%.*}.lo\
38037} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38038 && mv -f "$cfgfile.tmp" "$cfgfile" \
38039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38040test 0 -eq $? || _lt_function_replace_fail=:
38041
38042
38043 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38044func_arith ()\
38045{\
38046 func_arith_result=$(( $* ))\
38047} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38048 && mv -f "$cfgfile.tmp" "$cfgfile" \
38049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38050test 0 -eq $? || _lt_function_replace_fail=:
38051
38052
38053 sed -e '/^func_len ()$/,/^} # func_len /c\
38054func_len ()\
38055{\
38056 func_len_result=${#1}\
38057} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38058 && mv -f "$cfgfile.tmp" "$cfgfile" \
38059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38060test 0 -eq $? || _lt_function_replace_fail=:
38061
38062fi
38063
38064if test x"$lt_shell_append" = xyes; then
38065 sed -e '/^func_append ()$/,/^} # func_append /c\
38066func_append ()\
38067{\
38068 eval "${1}+=\\${2}"\
38069} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38070 && mv -f "$cfgfile.tmp" "$cfgfile" \
38071 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38072test 0 -eq $? || _lt_function_replace_fail=:
38073
38074
38075 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38076func_append_quoted ()\
38077{\
38078\ func_quote_for_eval "${2}"\
38079\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38080} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38081 && mv -f "$cfgfile.tmp" "$cfgfile" \
38082 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38083test 0 -eq $? || _lt_function_replace_fail=:
38084
38085
38086 # Save a `func_append' function call where possible by direct use of '+='
38087 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38088 && mv -f "$cfgfile.tmp" "$cfgfile" \
38089 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38090 test 0 -eq $? || _lt_function_replace_fail=:
38091else
38092 # Save a `func_append' function call even when '+=' is not available
38093 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38094 && mv -f "$cfgfile.tmp" "$cfgfile" \
38095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38096 test 0 -eq $? || _lt_function_replace_fail=:
38097fi
38098
38099if test x"$_lt_function_replace_fail" = x":"; then
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38101$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38102fi
38103
38104
38105 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038106 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38107 chmod +x "$ofile"
38108
38109
38110 cat <<_LT_EOF >> "$ofile"
38111
38112# ### BEGIN LIBTOOL TAG CONFIG: CXX
38113
38114# The linker used to build libraries.
38115LD=$lt_LD_CXX
38116
cristy0c60a692010-11-04 01:09:47 +000038117# How to create reloadable object files.
38118reload_flag=$lt_reload_flag_CXX
38119reload_cmds=$lt_reload_cmds_CXX
38120
cristy73bd4a52010-10-05 11:24:23 +000038121# Commands used to build an old-style archive.
38122old_archive_cmds=$lt_old_archive_cmds_CXX
38123
38124# A language specific compiler.
38125CC=$lt_compiler_CXX
38126
38127# Is the compiler the GNU compiler?
38128with_gcc=$GCC_CXX
38129
38130# Compiler flag to turn off builtin functions.
38131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38132
cristy73bd4a52010-10-05 11:24:23 +000038133# Additional compiler flags for building library objects.
38134pic_flag=$lt_lt_prog_compiler_pic_CXX
38135
cristyda16f162011-02-19 23:52:17 +000038136# How to pass a linker flag through the compiler.
38137wl=$lt_lt_prog_compiler_wl_CXX
38138
cristy73bd4a52010-10-05 11:24:23 +000038139# Compiler flag to prevent dynamic linking.
38140link_static_flag=$lt_lt_prog_compiler_static_CXX
38141
38142# Does compiler simultaneously support -c and -o options?
38143compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38144
38145# Whether or not to add -lc for building shared libraries.
38146build_libtool_need_lc=$archive_cmds_need_lc_CXX
38147
38148# Whether or not to disallow shared libs when runtime libs are static.
38149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38150
38151# Compiler flag to allow reflexive dlopens.
38152export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38153
38154# Compiler flag to generate shared objects directly from archives.
38155whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38156
38157# Whether the compiler copes with passing no objects directly.
38158compiler_needs_object=$lt_compiler_needs_object_CXX
38159
38160# Create an old-style archive from a shared archive.
38161old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38162
38163# Create a temporary old-style archive to link instead of a shared archive.
38164old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38165
38166# Commands used to build a shared archive.
38167archive_cmds=$lt_archive_cmds_CXX
38168archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38169
38170# Commands used to build a loadable module if different from building
38171# a shared archive.
38172module_cmds=$lt_module_cmds_CXX
38173module_expsym_cmds=$lt_module_expsym_cmds_CXX
38174
38175# Whether we are building with GNU ld or not.
38176with_gnu_ld=$lt_with_gnu_ld_CXX
38177
38178# Flag that allows shared libraries with undefined symbols to be built.
38179allow_undefined_flag=$lt_allow_undefined_flag_CXX
38180
38181# Flag that enforces no undefined symbols.
38182no_undefined_flag=$lt_no_undefined_flag_CXX
38183
38184# Flag to hardcode \$libdir into a binary during linking.
38185# This must work even if \$libdir does not exist
38186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38187
cristy73bd4a52010-10-05 11:24:23 +000038188# Whether we need a single "-rpath" flag with a separated argument.
38189hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38190
38191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38192# DIR into the resulting binary.
38193hardcode_direct=$hardcode_direct_CXX
38194
38195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38196# DIR into the resulting binary and the resulting library dependency is
38197# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38198# library is relocated.
38199hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38200
38201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38202# into the resulting binary.
38203hardcode_minus_L=$hardcode_minus_L_CXX
38204
38205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38206# into the resulting binary.
38207hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38208
38209# Set to "yes" if building a shared library automatically hardcodes DIR
38210# into the library and all subsequent libraries and executables linked
38211# against it.
38212hardcode_automatic=$hardcode_automatic_CXX
38213
38214# Set to yes if linker adds runtime paths of dependent libraries
38215# to runtime path list.
38216inherit_rpath=$inherit_rpath_CXX
38217
38218# Whether libtool must link a program against all its dependency libraries.
38219link_all_deplibs=$link_all_deplibs_CXX
38220
cristy73bd4a52010-10-05 11:24:23 +000038221# Set to "yes" if exported symbols are required.
38222always_export_symbols=$always_export_symbols_CXX
38223
38224# The commands to list exported symbols.
38225export_symbols_cmds=$lt_export_symbols_cmds_CXX
38226
38227# Symbols that should not be listed in the preloaded symbols.
38228exclude_expsyms=$lt_exclude_expsyms_CXX
38229
38230# Symbols that must always be exported.
38231include_expsyms=$lt_include_expsyms_CXX
38232
38233# Commands necessary for linking programs (against libraries) with templates.
38234prelink_cmds=$lt_prelink_cmds_CXX
38235
cristyda16f162011-02-19 23:52:17 +000038236# Commands necessary for finishing linking programs.
38237postlink_cmds=$lt_postlink_cmds_CXX
38238
cristy73bd4a52010-10-05 11:24:23 +000038239# Specify filename containing input files.
38240file_list_spec=$lt_file_list_spec_CXX
38241
38242# How to hardcode a shared library path into an executable.
38243hardcode_action=$hardcode_action_CXX
38244
38245# The directories searched by this compiler when creating a shared library.
38246compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38247
38248# Dependencies to place before and after the objects being linked to
38249# create a shared library.
38250predep_objects=$lt_predep_objects_CXX
38251postdep_objects=$lt_postdep_objects_CXX
38252predeps=$lt_predeps_CXX
38253postdeps=$lt_postdeps_CXX
38254
38255# The library search path used internally by the compiler when linking
38256# a shared library.
38257compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38258
38259# ### END LIBTOOL TAG CONFIG: CXX
38260_LT_EOF
38261
38262 ;;
cristy4c08aed2011-07-01 19:47:50 +000038263 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038264 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038265 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38266 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38267
38268 esac
38269done # for ac_tag
38270
38271
cristy8b350f62009-11-15 23:12:43 +000038272as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038273_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038274ac_clean_files=$ac_clean_files_save
38275
38276test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038278
38279
38280# configure is writing to config.log, and then calls config.status.
38281# config.status does its own redirection, appending to config.log.
38282# Unfortunately, on DOS this fails, as config.log is still kept open
38283# by configure, so config.status won't be able to write to it; its
38284# output is simply discarded. So we exec the FD to /dev/null,
38285# effectively closing config.log, so it can be properly (re)opened and
38286# appended to by config.status. When coming back to configure, we
38287# need to make the FD available again.
38288if test "$no_create" != yes; then
38289 ac_cs_success=:
38290 ac_config_status_args=
38291 test "$silent" = yes &&
38292 ac_config_status_args="$ac_config_status_args --quiet"
38293 exec 5>/dev/null
38294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38295 exec 5>>config.log
38296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38297 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038298 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038299fi
38300if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038302$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38303fi
38304
38305
38306rm -f magick-version
38307
cristy430a7312010-01-21 20:44:04 +000038308result_dejavu_font_dir='none'
38309if test "${dejavu_font_dir}x" != 'x'; then
38310 result_dejavu_font_dir=$dejavu_font_dir
38311fi
38312
cristy3ed852e2009-09-05 21:47:34 +000038313result_ghostscript_font_dir='none'
38314if test "${ghostscript_font_dir}x" != 'x'; then
38315 result_ghostscript_font_dir=$ghostscript_font_dir
38316fi
38317
38318result_windows_font_dir='none'
38319if test "${windows_font_dir}x" != 'x'; then
38320 result_windows_font_dir=${windows_font_dir}
38321fi
38322
cristy09b53e12011-10-14 12:47:22 +000038323{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038324ImageMagick is configured as follows. Please verify that this configuration
38325matches your expectations.
38326
38327Host system type: $host
38328Build system type: $build
38329
38330 Option Value
38331-------------------------------------------------------------------------------
38332Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38333Static libraries --enable-static=$enable_static $libtool_build_static_libs
38334Module support --with-modules=$with_modules $with_modules
38335GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38336Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38337High Dynamic Range Imagery
38338 --enable-hdri=$enable_hdri $enable_hdri
38339
38340Delegate Configuration:
38341BZLIB --with-bzlib=$with_bzlib $have_bzlib
38342Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038343Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038344DJVU --with-djvu=$with_djvu $have_djvu
38345DPS --with-dps=$with_dps $have_dps
38346FFTW --with-fftw=$with_fftw $have_fftw
38347FlashPIX --with-fpx=$with_fpx $have_fpx
38348FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38349FreeType --with-freetype=$with_freetype $have_freetype
38350GhostPCL None $PCLDelegate ($PCLVersion)
38351GhostXPS None $XPSDelegate ($XPSVersion)
38352Ghostscript None $PSDelegate ($GSVersion)
38353Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38354Ghostscript lib --with-gslib=$with_gslib $have_gslib
38355Graphviz --with-gvc=$with_gvc $have_gvc
38356JBIG --with-jbig=$with_jbig $have_jbig
38357JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38358JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038359LCMS v1 --with-lcms=$with_lcms $have_lcms
38360LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038361LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038362LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038363Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38364OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038365PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038366PERL --with-perl=$with_perl $have_perl
38367PNG --with-png=$with_png $have_png
38368RSVG --with-rsvg=$with_rsvg $have_rsvg
38369TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038370WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038371Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38372WMF --with-wmf=$with_wmf $have_wmf
38373X11 --with-x=$with_x $have_x
38374XML --with-xml=$with_xml $have_xml
38375ZLIB --with-zlib=$with_zlib $have_zlib
38376
38377X11 Configuration:
38378 X_CFLAGS = $X_CFLAGS
38379 X_PRE_LIBS = $X_PRE_LIBS
38380 X_LIBS = $X_LIBS
38381 X_EXTRA_LIBS = $X_EXTRA_LIBS
38382
38383Options used to compile and link:
38384 PREFIX = $PREFIX_DIR
38385 EXEC-PREFIX = $EXEC_PREFIX_DIR
38386 VERSION = $PACKAGE_VERSION
38387 CC = $CC
38388 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038389 CPPFLAGS = $MAGICK_CPPFLAGS
38390 PCFLAGS = $MAGICK_PCFLAGS
38391 DEFS = $DEFS
38392 LDFLAGS = $LDFLAGS
38393 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38394 LIBS = $MAGICK_LIBS
38395 CXX = $CXX
38396 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038397 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038398" >&5
cristy09b53e12011-10-14 12:47:22 +000038399$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038400ImageMagick is configured as follows. Please verify that this configuration
38401matches your expectations.
38402
38403Host system type: $host
38404Build system type: $build
38405
38406 Option Value
38407-------------------------------------------------------------------------------
38408Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38409Static libraries --enable-static=$enable_static $libtool_build_static_libs
38410Module support --with-modules=$with_modules $with_modules
38411GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38412Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38413High Dynamic Range Imagery
38414 --enable-hdri=$enable_hdri $enable_hdri
38415
38416Delegate Configuration:
38417BZLIB --with-bzlib=$with_bzlib $have_bzlib
38418Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038419Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038420DJVU --with-djvu=$with_djvu $have_djvu
38421DPS --with-dps=$with_dps $have_dps
38422FFTW --with-fftw=$with_fftw $have_fftw
38423FlashPIX --with-fpx=$with_fpx $have_fpx
38424FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38425FreeType --with-freetype=$with_freetype $have_freetype
38426GhostPCL None $PCLDelegate ($PCLVersion)
38427GhostXPS None $XPSDelegate ($XPSVersion)
38428Ghostscript None $PSDelegate ($GSVersion)
38429Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38430Ghostscript lib --with-gslib=$with_gslib $have_gslib
38431Graphviz --with-gvc=$with_gvc $have_gvc
38432JBIG --with-jbig=$with_jbig $have_jbig
38433JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38434JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038435LCMS v1 --with-lcms=$with_lcms $have_lcms
38436LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038437LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038438LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038439Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38440OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038441PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038442PERL --with-perl=$with_perl $have_perl
38443PNG --with-png=$with_png $have_png
38444RSVG --with-rsvg=$with_rsvg $have_rsvg
38445TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038446WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038447Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38448WMF --with-wmf=$with_wmf $have_wmf
38449X11 --with-x=$with_x $have_x
38450XML --with-xml=$with_xml $have_xml
38451ZLIB --with-zlib=$with_zlib $have_zlib
38452
38453X11 Configuration:
38454 X_CFLAGS = $X_CFLAGS
38455 X_PRE_LIBS = $X_PRE_LIBS
38456 X_LIBS = $X_LIBS
38457 X_EXTRA_LIBS = $X_EXTRA_LIBS
38458
38459Options used to compile and link:
38460 PREFIX = $PREFIX_DIR
38461 EXEC-PREFIX = $EXEC_PREFIX_DIR
38462 VERSION = $PACKAGE_VERSION
38463 CC = $CC
38464 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038465 CPPFLAGS = $MAGICK_CPPFLAGS
38466 PCFLAGS = $MAGICK_PCFLAGS
38467 DEFS = $DEFS
38468 LDFLAGS = $LDFLAGS
38469 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38470 LIBS = $MAGICK_LIBS
38471 CXX = $CXX
38472 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038473 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038474" >&6;}