blob: b4afd4430364e899c5bfa1d05fb00970e3607c14 [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
cristy37110d62012-03-01 18:38:20 +0000937PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000938LN_S
cristy3ed852e2009-09-05 21:47:34 +0000939LD
cristy73bd4a52010-10-05 11:24:23 +0000940FGREP
941SED
942am__fastdepCXX_FALSE
943am__fastdepCXX_TRUE
944CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000945ac_ct_CXX
946CXXFLAGS
947CXX
cristya0b81c32010-01-22 02:54:33 +0000948EGREP
949GREP
950CPP
cristy73bd4a52010-10-05 11:24:23 +0000951am__fastdepCC_FALSE
952am__fastdepCC_TRUE
953CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000954am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000955AMDEPBACKSLASH
956AMDEP_FALSE
957AMDEP_TRUE
958am__quote
959am__include
960DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000961OBJEXT
962EXEEXT
963ac_ct_CC
964CPPFLAGS
965LDFLAGS
966CFLAGS
967CC
968DIRSEP
969MAGICK_FILTER_MODULE_PATH
970MAGICK_CONFIGURE_BUILD_PATH
971MAGICK_CONFIGURE_SRC_PATH
972MAGICK_CODER_MODULE_PATH
973MAN_DIR
974INFO_DIR
975PERSISTINCLUDE_DIR
976INCLUDE_DIR
977LIB_DIR
978LOCALSTATE_DIR
979SHAREDSTATE_DIR
980SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000981DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000982DATA_DIR
983LIBEXEC_DIR
984SBIN_DIR
985BIN_DIR
986EXEC_PREFIX_DIR
987PREFIX_DIR
988CONFIG_STATUS_DEPENDENCIES
989MAGICK_LIB_VERSION_NUMBER
990MAGICK_LIB_VERSION_TEXT
991MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000992AM_BACKSLASH
993AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000994AM_DEFAULT_V
995AM_V
cristy73bd4a52010-10-05 11:24:23 +0000996am__untar
997am__tar
998AMTAR
999am__leading_dot
1000SET_MAKE
1001AWK
1002mkdir_p
1003MKDIR_P
1004INSTALL_STRIP_PROGRAM
1005STRIP
1006install_sh
1007MAKEINFO
1008AUTOHEADER
1009AUTOMAKE
1010AUTOCONF
1011ACLOCAL
1012VERSION
1013PACKAGE
1014CYGPATH_W
1015am__isrc
1016INSTALL_DATA
1017INSTALL_SCRIPT
1018INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001019PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001020PACKAGE_RELEASE_DATE
1021PACKAGE_LIB_VERSION_NUMBER
1022PACKAGE_LIB_VERSION
1023PACKAGE_CHANGE_DATE
1024PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001025PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001026MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001027MAGICK_LIBRARY_VERSION_INFO
1028MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001029MAGICK_LIBRARY_AGE
1030MAGICK_LIBRARY_REVISION
1031MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001032MAGICK_TARGET_OS
1033MAGICK_TARGET_VENDOR
1034MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001035target_os
1036target_vendor
1037target_cpu
1038target
1039host_os
1040host_vendor
1041host_cpu
1042host
1043build_os
1044build_vendor
1045build_cpu
1046build
1047CONFIGURE_ARGS
1048DISTCHECK_CONFIG_FLAGS
1049target_alias
1050host_alias
1051build_alias
1052LIBS
1053ECHO_T
1054ECHO_N
1055ECHO_C
1056DEFS
1057mandir
1058localedir
1059libdir
1060psdir
1061pdfdir
1062dvidir
1063htmldir
1064infodir
1065docdir
1066oldincludedir
1067includedir
1068localstatedir
1069sharedstatedir
1070sysconfdir
1071datadir
1072datarootdir
1073libexecdir
1074sbindir
1075bindir
1076program_transform_name
1077prefix
1078exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001079PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001080PACKAGE_BUGREPORT
1081PACKAGE_STRING
1082PACKAGE_VERSION
1083PACKAGE_TARNAME
1084PACKAGE_NAME
1085PATH_SEPARATOR
1086SHELL'
1087ac_subst_files=''
1088ac_user_opts='
1089enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001090enable_silent_rules
1091enable_dependency_tracking
1092with_gnu_ld
1093with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001094with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001095enable_bounds_checking
1096enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001097with_includearch_dir
1098with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001099with_threads
1100enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001101enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001102enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001103enable_shared
1104enable_static
1105with_pic
1106enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001107with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001108enable_libtool_lock
1109with_included_ltdl
1110with_ltdl_include
1111with_ltdl_lib
1112enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001113with_modules
1114enable_delegate_build
1115enable_deprecated
1116enable_installed
1117enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001118enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001119enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001120enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001121enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001122enable_ccmalloc
1123enable_efence
1124enable_prof
1125enable_gprof
1126enable_gcov
1127with_method_prefix
1128with_quantum_depth
1129with_cache
1130with_frozenpaths
1131with_magick_plus_plus
1132with_perl
1133with_perl_options
1134with_umem
1135with_libstdc
1136with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001137with_x
cristy3ed852e2009-09-05 21:47:34 +00001138with_zlib
1139with_autotrace
1140with_dps
1141with_djvu
cristy430a7312010-01-21 20:44:04 +00001142with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001143with_fftw
1144with_fpx
1145with_fontconfig
1146with_freetype
1147with_gslib
1148with_fontpath
1149with_gs_font_dir
1150with_gvc
1151with_jbig
1152with_jpeg
1153with_jp2
1154with_lcms
cristy71203402010-06-18 13:12:03 +00001155with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001156with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001157with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001158with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001159with_pango
cristy3ed852e2009-09-05 21:47:34 +00001160with_png
1161with_rsvg
1162with_tiff
cristyb1860752011-03-14 00:27:46 +00001163with_webp
cristy3ed852e2009-09-05 21:47:34 +00001164with_windows_font_dir
1165with_wmf
1166with_xml
1167'
1168 ac_precious_vars='build_alias
1169host_alias
1170target_alias
1171CC
1172CFLAGS
1173LDFLAGS
1174LIBS
1175CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001176CPP
cristy3ed852e2009-09-05 21:47:34 +00001177CXX
1178CXXFLAGS
1179CCC
cristy73bd4a52010-10-05 11:24:23 +00001180PKG_CONFIG
1181CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001182XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001183AUTOTRACE_CFLAGS
1184AUTOTRACE_LIBS
1185FONTCONFIG_CFLAGS
1186FONTCONFIG_LIBS
1187GVC_CFLAGS
1188GVC_LIBS
1189LQR_CFLAGS
1190LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001191LZMA_CFLAGS
1192LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001193OPENEXR_CFLAGS
1194OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001195PANGO_CFLAGS
1196PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001197RSVG_CFLAGS
1198RSVG_LIBS
1199CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001200CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001201
1202
1203# Initialize some variables set by options.
1204ac_init_help=
1205ac_init_version=false
1206ac_unrecognized_opts=
1207ac_unrecognized_sep=
1208# The variables have the same names as the options, with
1209# dashes changed to underlines.
1210cache_file=/dev/null
1211exec_prefix=NONE
1212no_create=
1213no_recursion=
1214prefix=NONE
1215program_prefix=NONE
1216program_suffix=NONE
1217program_transform_name=s,x,x,
1218silent=
1219site=
1220srcdir=
1221verbose=
1222x_includes=NONE
1223x_libraries=NONE
1224
1225# Installation directory options.
1226# These are left unexpanded so users can "make install exec_prefix=/foo"
1227# and all the variables that are supposed to be based on exec_prefix
1228# by default will actually change.
1229# Use braces instead of parens because sh, perl, etc. also accept them.
1230# (The list follows the same order as the GNU Coding Standards.)
1231bindir='${exec_prefix}/bin'
1232sbindir='${exec_prefix}/sbin'
1233libexecdir='${exec_prefix}/libexec'
1234datarootdir='${prefix}/share'
1235datadir='${datarootdir}'
1236sysconfdir='${prefix}/etc'
1237sharedstatedir='${prefix}/com'
1238localstatedir='${prefix}/var'
1239includedir='${prefix}/include'
1240oldincludedir='/usr/include'
1241docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1242infodir='${datarootdir}/info'
1243htmldir='${docdir}'
1244dvidir='${docdir}'
1245pdfdir='${docdir}'
1246psdir='${docdir}'
1247libdir='${exec_prefix}/lib'
1248localedir='${datarootdir}/locale'
1249mandir='${datarootdir}/man'
1250
1251ac_prev=
1252ac_dashdash=
1253for ac_option
1254do
1255 # If the previous option needs an argument, assign it.
1256 if test -n "$ac_prev"; then
1257 eval $ac_prev=\$ac_option
1258 ac_prev=
1259 continue
1260 fi
1261
1262 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001263 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1264 *=) ac_optarg= ;;
1265 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001266 esac
1267
1268 # Accept the important Cygnus configure options, so we can diagnose typos.
1269
1270 case $ac_dashdash$ac_option in
1271 --)
1272 ac_dashdash=yes ;;
1273
1274 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1275 ac_prev=bindir ;;
1276 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1277 bindir=$ac_optarg ;;
1278
1279 -build | --build | --buil | --bui | --bu)
1280 ac_prev=build_alias ;;
1281 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1282 build_alias=$ac_optarg ;;
1283
1284 -cache-file | --cache-file | --cache-fil | --cache-fi \
1285 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1286 ac_prev=cache_file ;;
1287 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1288 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1289 cache_file=$ac_optarg ;;
1290
1291 --config-cache | -C)
1292 cache_file=config.cache ;;
1293
1294 -datadir | --datadir | --datadi | --datad)
1295 ac_prev=datadir ;;
1296 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1297 datadir=$ac_optarg ;;
1298
1299 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1300 | --dataroo | --dataro | --datar)
1301 ac_prev=datarootdir ;;
1302 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1303 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1304 datarootdir=$ac_optarg ;;
1305
1306 -disable-* | --disable-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001310 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315"enable_$ac_useropt"
1316"*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval enable_$ac_useropt=no ;;
1321
1322 -docdir | --docdir | --docdi | --doc | --do)
1323 ac_prev=docdir ;;
1324 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1325 docdir=$ac_optarg ;;
1326
1327 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1328 ac_prev=dvidir ;;
1329 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1330 dvidir=$ac_optarg ;;
1331
1332 -enable-* | --enable-*)
1333 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1334 # Reject names that are not valid shell variable names.
1335 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001336 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001337 ac_useropt_orig=$ac_useropt
1338 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339 case $ac_user_opts in
1340 *"
1341"enable_$ac_useropt"
1342"*) ;;
1343 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1344 ac_unrecognized_sep=', ';;
1345 esac
1346 eval enable_$ac_useropt=\$ac_optarg ;;
1347
1348 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1349 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1350 | --exec | --exe | --ex)
1351 ac_prev=exec_prefix ;;
1352 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1353 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1354 | --exec=* | --exe=* | --ex=*)
1355 exec_prefix=$ac_optarg ;;
1356
1357 -gas | --gas | --ga | --g)
1358 # Obsolete; use --with-gas.
1359 with_gas=yes ;;
1360
1361 -help | --help | --hel | --he | -h)
1362 ac_init_help=long ;;
1363 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1364 ac_init_help=recursive ;;
1365 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1366 ac_init_help=short ;;
1367
1368 -host | --host | --hos | --ho)
1369 ac_prev=host_alias ;;
1370 -host=* | --host=* | --hos=* | --ho=*)
1371 host_alias=$ac_optarg ;;
1372
1373 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1374 ac_prev=htmldir ;;
1375 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1376 | --ht=*)
1377 htmldir=$ac_optarg ;;
1378
1379 -includedir | --includedir | --includedi | --included | --include \
1380 | --includ | --inclu | --incl | --inc)
1381 ac_prev=includedir ;;
1382 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1383 | --includ=* | --inclu=* | --incl=* | --inc=*)
1384 includedir=$ac_optarg ;;
1385
1386 -infodir | --infodir | --infodi | --infod | --info | --inf)
1387 ac_prev=infodir ;;
1388 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1389 infodir=$ac_optarg ;;
1390
1391 -libdir | --libdir | --libdi | --libd)
1392 ac_prev=libdir ;;
1393 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1394 libdir=$ac_optarg ;;
1395
1396 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1397 | --libexe | --libex | --libe)
1398 ac_prev=libexecdir ;;
1399 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1400 | --libexe=* | --libex=* | --libe=*)
1401 libexecdir=$ac_optarg ;;
1402
1403 -localedir | --localedir | --localedi | --localed | --locale)
1404 ac_prev=localedir ;;
1405 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1406 localedir=$ac_optarg ;;
1407
1408 -localstatedir | --localstatedir | --localstatedi | --localstated \
1409 | --localstate | --localstat | --localsta | --localst | --locals)
1410 ac_prev=localstatedir ;;
1411 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1412 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1413 localstatedir=$ac_optarg ;;
1414
1415 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1416 ac_prev=mandir ;;
1417 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1418 mandir=$ac_optarg ;;
1419
1420 -nfp | --nfp | --nf)
1421 # Obsolete; use --without-fp.
1422 with_fp=no ;;
1423
1424 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1425 | --no-cr | --no-c | -n)
1426 no_create=yes ;;
1427
1428 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1429 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1430 no_recursion=yes ;;
1431
1432 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1433 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1434 | --oldin | --oldi | --old | --ol | --o)
1435 ac_prev=oldincludedir ;;
1436 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1437 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1438 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1439 oldincludedir=$ac_optarg ;;
1440
1441 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1442 ac_prev=prefix ;;
1443 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1444 prefix=$ac_optarg ;;
1445
1446 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1447 | --program-pre | --program-pr | --program-p)
1448 ac_prev=program_prefix ;;
1449 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1450 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1451 program_prefix=$ac_optarg ;;
1452
1453 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1454 | --program-suf | --program-su | --program-s)
1455 ac_prev=program_suffix ;;
1456 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1457 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1458 program_suffix=$ac_optarg ;;
1459
1460 -program-transform-name | --program-transform-name \
1461 | --program-transform-nam | --program-transform-na \
1462 | --program-transform-n | --program-transform- \
1463 | --program-transform | --program-transfor \
1464 | --program-transfo | --program-transf \
1465 | --program-trans | --program-tran \
1466 | --progr-tra | --program-tr | --program-t)
1467 ac_prev=program_transform_name ;;
1468 -program-transform-name=* | --program-transform-name=* \
1469 | --program-transform-nam=* | --program-transform-na=* \
1470 | --program-transform-n=* | --program-transform-=* \
1471 | --program-transform=* | --program-transfor=* \
1472 | --program-transfo=* | --program-transf=* \
1473 | --program-trans=* | --program-tran=* \
1474 | --progr-tra=* | --program-tr=* | --program-t=*)
1475 program_transform_name=$ac_optarg ;;
1476
1477 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1478 ac_prev=pdfdir ;;
1479 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1480 pdfdir=$ac_optarg ;;
1481
1482 -psdir | --psdir | --psdi | --psd | --ps)
1483 ac_prev=psdir ;;
1484 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1485 psdir=$ac_optarg ;;
1486
1487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1488 | -silent | --silent | --silen | --sile | --sil)
1489 silent=yes ;;
1490
1491 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1492 ac_prev=sbindir ;;
1493 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1494 | --sbi=* | --sb=*)
1495 sbindir=$ac_optarg ;;
1496
1497 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1498 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1499 | --sharedst | --shareds | --shared | --share | --shar \
1500 | --sha | --sh)
1501 ac_prev=sharedstatedir ;;
1502 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1503 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1504 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1505 | --sha=* | --sh=*)
1506 sharedstatedir=$ac_optarg ;;
1507
1508 -site | --site | --sit)
1509 ac_prev=site ;;
1510 -site=* | --site=* | --sit=*)
1511 site=$ac_optarg ;;
1512
1513 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1514 ac_prev=srcdir ;;
1515 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1516 srcdir=$ac_optarg ;;
1517
1518 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1519 | --syscon | --sysco | --sysc | --sys | --sy)
1520 ac_prev=sysconfdir ;;
1521 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1522 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1523 sysconfdir=$ac_optarg ;;
1524
1525 -target | --target | --targe | --targ | --tar | --ta | --t)
1526 ac_prev=target_alias ;;
1527 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1528 target_alias=$ac_optarg ;;
1529
1530 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1531 verbose=yes ;;
1532
1533 -version | --version | --versio | --versi | --vers | -V)
1534 ac_init_version=: ;;
1535
1536 -with-* | --with-*)
1537 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1538 # Reject names that are not valid shell variable names.
1539 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001540 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001541 ac_useropt_orig=$ac_useropt
1542 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1543 case $ac_user_opts in
1544 *"
1545"with_$ac_useropt"
1546"*) ;;
1547 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1548 ac_unrecognized_sep=', ';;
1549 esac
1550 eval with_$ac_useropt=\$ac_optarg ;;
1551
1552 -without-* | --without-*)
1553 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1554 # Reject names that are not valid shell variable names.
1555 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001556 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001557 ac_useropt_orig=$ac_useropt
1558 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1559 case $ac_user_opts in
1560 *"
1561"with_$ac_useropt"
1562"*) ;;
1563 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1564 ac_unrecognized_sep=', ';;
1565 esac
1566 eval with_$ac_useropt=no ;;
1567
1568 --x)
1569 # Obsolete; use --with-x.
1570 with_x=yes ;;
1571
1572 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1573 | --x-incl | --x-inc | --x-in | --x-i)
1574 ac_prev=x_includes ;;
1575 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1576 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1577 x_includes=$ac_optarg ;;
1578
1579 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1580 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1581 ac_prev=x_libraries ;;
1582 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1583 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1584 x_libraries=$ac_optarg ;;
1585
cristy98dddb52010-11-04 00:30:15 +00001586 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1587Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001588 ;;
1589
1590 *=*)
1591 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1592 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001593 case $ac_envvar in #(
1594 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001595 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001596 esac
cristy3ed852e2009-09-05 21:47:34 +00001597 eval $ac_envvar=\$ac_optarg
1598 export $ac_envvar ;;
1599
1600 *)
1601 # FIXME: should be removed in autoconf 3.0.
1602 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1603 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1604 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001605 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001606 ;;
1607
1608 esac
1609done
1610
1611if test -n "$ac_prev"; then
1612 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001613 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001614fi
1615
1616if test -n "$ac_unrecognized_opts"; then
1617 case $enable_option_checking in
1618 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001619 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001620 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1621 esac
1622fi
1623
1624# Check all directory arguments for consistency.
1625for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1626 datadir sysconfdir sharedstatedir localstatedir includedir \
1627 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1628 libdir localedir mandir
1629do
1630 eval ac_val=\$$ac_var
1631 # Remove trailing slashes.
1632 case $ac_val in
1633 */ )
1634 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1635 eval $ac_var=\$ac_val;;
1636 esac
1637 # Be sure to have absolute directory names.
1638 case $ac_val in
1639 [\\/$]* | ?:[\\/]* ) continue;;
1640 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1641 esac
cristy98dddb52010-11-04 00:30:15 +00001642 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001643done
1644
1645# There might be people who depend on the old broken behavior: `$host'
1646# used to hold the argument of --host etc.
1647# FIXME: To remove some day.
1648build=$build_alias
1649host=$host_alias
1650target=$target_alias
1651
1652# FIXME: To remove some day.
1653if test "x$host_alias" != x; then
1654 if test "x$build_alias" = x; then
1655 cross_compiling=maybe
cristy98dddb52010-11-04 00:30:15 +00001656 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1657 If a cross compiler is detected then cross compile mode will be used" >&2
cristy3ed852e2009-09-05 21:47:34 +00001658 elif test "x$build_alias" != "x$host_alias"; then
1659 cross_compiling=yes
1660 fi
1661fi
1662
1663ac_tool_prefix=
1664test -n "$host_alias" && ac_tool_prefix=$host_alias-
1665
1666test "$silent" = yes && exec 6>/dev/null
1667
1668
1669ac_pwd=`pwd` && test -n "$ac_pwd" &&
1670ac_ls_di=`ls -di .` &&
1671ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001672 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001673test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001674 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001675
1676
1677# Find the source files, if location was not specified.
1678if test -z "$srcdir"; then
1679 ac_srcdir_defaulted=yes
1680 # Try the directory containing this script, then the parent directory.
1681 ac_confdir=`$as_dirname -- "$as_myself" ||
1682$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1683 X"$as_myself" : 'X\(//\)[^/]' \| \
1684 X"$as_myself" : 'X\(//\)$' \| \
1685 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1686$as_echo X"$as_myself" |
1687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1688 s//\1/
1689 q
1690 }
1691 /^X\(\/\/\)[^/].*/{
1692 s//\1/
1693 q
1694 }
1695 /^X\(\/\/\)$/{
1696 s//\1/
1697 q
1698 }
1699 /^X\(\/\).*/{
1700 s//\1/
1701 q
1702 }
1703 s/.*/./; q'`
1704 srcdir=$ac_confdir
1705 if test ! -r "$srcdir/$ac_unique_file"; then
1706 srcdir=..
1707 fi
1708else
1709 ac_srcdir_defaulted=no
1710fi
1711if test ! -r "$srcdir/$ac_unique_file"; then
1712 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001713 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001714fi
1715ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1716ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001717 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001718 pwd)`
1719# When building in place, set srcdir=.
1720if test "$ac_abs_confdir" = "$ac_pwd"; then
1721 srcdir=.
1722fi
1723# Remove unnecessary trailing slashes from srcdir.
1724# Double slashes in file names in object file debugging info
1725# mess up M-x gdb in Emacs.
1726case $srcdir in
1727*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1728esac
1729for ac_var in $ac_precious_vars; do
1730 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1731 eval ac_env_${ac_var}_value=\$${ac_var}
1732 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1733 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1734done
1735
1736#
1737# Report the --help message.
1738#
1739if test "$ac_init_help" = "long"; then
1740 # Omit some internal or obsolete options to make the list less imposing.
1741 # This message is too long to be a string in the A/UX 3.1 sh.
1742 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001743\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001744
1745Usage: $0 [OPTION]... [VAR=VALUE]...
1746
1747To assign environment variables (e.g., CC, CFLAGS...), specify them as
1748VAR=VALUE. See below for descriptions of some of the useful variables.
1749
1750Defaults for the options are specified in brackets.
1751
1752Configuration:
1753 -h, --help display this help and exit
1754 --help=short display options specific to this package
1755 --help=recursive display the short help of all the included packages
1756 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001757 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001758 --cache-file=FILE cache test results in FILE [disabled]
1759 -C, --config-cache alias for \`--cache-file=config.cache'
1760 -n, --no-create do not create output files
1761 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1762
1763Installation directories:
1764 --prefix=PREFIX install architecture-independent files in PREFIX
1765 [$ac_default_prefix]
1766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1767 [PREFIX]
1768
1769By default, \`make install' will install all the files in
1770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1771an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1772for instance \`--prefix=\$HOME'.
1773
1774For better control, use the options below.
1775
1776Fine tuning of the installation directories:
1777 --bindir=DIR user executables [EPREFIX/bin]
1778 --sbindir=DIR system admin executables [EPREFIX/sbin]
1779 --libexecdir=DIR program executables [EPREFIX/libexec]
1780 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1781 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1782 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1783 --libdir=DIR object code libraries [EPREFIX/lib]
1784 --includedir=DIR C header files [PREFIX/include]
1785 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1786 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1787 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1788 --infodir=DIR info documentation [DATAROOTDIR/info]
1789 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1790 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001791 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001792 --htmldir=DIR html documentation [DOCDIR]
1793 --dvidir=DIR dvi documentation [DOCDIR]
1794 --pdfdir=DIR pdf documentation [DOCDIR]
1795 --psdir=DIR ps documentation [DOCDIR]
1796_ACEOF
1797
1798 cat <<\_ACEOF
1799
cristy73bd4a52010-10-05 11:24:23 +00001800Program names:
1801 --program-prefix=PREFIX prepend PREFIX to installed program names
1802 --program-suffix=SUFFIX append SUFFIX to installed program names
1803 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1804
cristy3ed852e2009-09-05 21:47:34 +00001805X features:
1806 --x-includes=DIR X include files are in DIR
1807 --x-libraries=DIR X library files are in DIR
1808
1809System types:
1810 --build=BUILD configure for building on BUILD [guessed]
1811 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1812 --target=TARGET configure for building compilers for TARGET [HOST]
1813_ACEOF
1814fi
1815
1816if test -n "$ac_init_help"; then
1817 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001818 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001819 esac
1820 cat <<\_ACEOF
1821
1822Optional Features:
1823 --disable-option-checking ignore unrecognized --enable/--with options
1824 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1825 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristy73bd4a52010-10-05 11:24:23 +00001826 --enable-silent-rules less verbose build output (undo: `make V=1')
1827 --disable-silent-rules verbose build output (undo: `make V=0')
1828 --disable-dependency-tracking speeds up one-time build
1829 --enable-dependency-tracking do not reject slow dependency extractors
cristy3ed852e2009-09-05 21:47:34 +00001830 --bounds-checking enable run-time bounds-checking
1831 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001832 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001833 --disable-openmp do not use OpenMP
cristy73bd4a52010-10-05 11:24:23 +00001834 --disable-opencl do not use OpenCL
cristy3ed852e2009-09-05 21:47:34 +00001835 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001836 --enable-shared[=PKGS] build shared libraries [default=yes]
1837 --enable-static[=PKGS] build static libraries [default=yes]
1838 --enable-fast-install[=PKGS]
1839 optimize for fast installation [default=yes]
1840 --disable-libtool-lock avoid locking (might break parallel builds)
1841 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001842 --enable-delegate-build look for delegate libraries in build directory
1843 --disable-deprecated exclude deprecated methods in MagickCore and
1844 MagickWand API's
1845 --disable-installed Formally install ImageMagick under PREFIX
1846 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001847 --enable-zero-configuration
1848 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001849 zero-configuration ImageMagick
1850 --enable-hdri accurately represent the wide range of intensity
1851 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001852 --disable-assert disable assert() statements in build
cristy73bd4a52010-10-05 11:24:23 +00001853 --enable-maintainer-mode enable make rules and dependencies not useful
1854 (and sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001855 --enable-ccmalloc enable 'ccmalloc' memory debug support
1856 --enable-efence enable 'efence' memory debug support
1857 --enable-prof enable 'prof' profiling support
1858 --enable-gprof enable 'gprof' profiling support
1859 --enable-gcov enable 'gcov' profiling support
cristya0b81c32010-01-22 02:54:33 +00001860 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001861
1862Optional Packages:
1863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001865 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001866 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001867 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1868 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001869 --includearch-dir=DIR ARCH specific include directory
1870 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001871 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001872 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001873 both]
cristyda16f162011-02-19 23:52:17 +00001874 --with-sysroot=DIR Search for dependent libraries within DIR
1875 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001876 --with-included-ltdl use the GNU ltdl sources included here
1877 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1878 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001879 --with-modules enable building dynamically loadable modules
1880 --with-method-prefix=PREFIX
1881 prefix MagickCore API methods
1882 --with-quantum-depth=DEPTH
1883 number of bits in a pixel quantum (default 16)
1884 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1885 memory)
1886 --with-frozenpaths freeze delegate paths
1887 --without-magick-plus-plus
1888 disable build/install of Magick++
1889 --with-perl enable build/install of PerlMagick
1890 --with-perl-options=OPTIONS
1891 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001892 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001893 --with-umem enable umem memory allocation library support
1894 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1895 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001896 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-zlib disable ZLIB support
1898 --with-autotrace enable autotrace support
1899 --without-dps disable Display Postscript support
1900 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001901 --with-dejavu-font-dir=DIR
1902 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001903 --without-fftw disable FFTW support
1904 --without-fpx disable FlashPIX support
1905 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001906 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001907 --without-gslib enable Ghostscript library support
1908 --with-fontpath=DIR prepend to default font search path
1909 --with-gs-font-dir=DIR Ghostscript font directory
1910 --without-gvc disable GVC support
1911 --without-jbig disable JBIG support
1912 --without-jpeg disable JPEG support
1913 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001914 --without-lcms disable lcms (v1.1X) support
1915 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001916 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001917 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001918 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001919 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001920 --without-png disable PNG support
1921 --without-rsvg disable RSVG support
1922 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001923 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001924 --with-windows-font-dir=DIR
1925 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001926 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001927 --without-xml disable XML support
1928
1929Some influential environment variables:
1930 CC C compiler command
1931 CFLAGS C compiler flags
1932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1933 nonstandard directory <lib dir>
1934 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001935 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001936 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001937 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001938 CXX C++ compiler command
1939 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001940 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001941 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001942 XMKMF Path to xmkmf, Makefile generator for X Window System
1943 AUTOTRACE_CFLAGS
1944 C compiler flags for AUTOTRACE, overriding pkg-config
1945 AUTOTRACE_LIBS
1946 linker flags for AUTOTRACE, overriding pkg-config
1947 FONTCONFIG_CFLAGS
1948 C compiler flags for FONTCONFIG, overriding pkg-config
1949 FONTCONFIG_LIBS
1950 linker flags for FONTCONFIG, overriding pkg-config
1951 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1952 GVC_LIBS linker flags for GVC, overriding pkg-config
1953 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1954 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001955 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1956 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001957 OPENEXR_CFLAGS
1958 C compiler flags for OPENEXR, overriding pkg-config
1959 OPENEXR_LIBS
1960 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001961 PANGO_CFLAGS
1962 C compiler flags for PANGO, overriding pkg-config
1963 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001964 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1965 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1966 CAIRO_SVG_CFLAGS
1967 C compiler flags for CAIRO_SVG, overriding pkg-config
1968 CAIRO_SVG_LIBS
1969 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001970
1971Use these variables to override the choices made by `configure' or to help
1972it to find libraries and programs with nonstandard names/locations.
1973
1974Report bugs to <http://www.imagemagick.org>.
1975_ACEOF
1976ac_status=$?
1977fi
1978
1979if test "$ac_init_help" = "recursive"; then
1980 # If there are subdirs, report their specific --help.
1981 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1982 test -d "$ac_dir" ||
1983 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1984 continue
1985 ac_builddir=.
1986
1987case "$ac_dir" in
1988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989*)
1990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1991 # A ".." for each directory in $ac_dir_suffix.
1992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1993 case $ac_top_builddir_sub in
1994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1996 esac ;;
1997esac
1998ac_abs_top_builddir=$ac_pwd
1999ac_abs_builddir=$ac_pwd$ac_dir_suffix
2000# for backward compatibility:
2001ac_top_builddir=$ac_top_build_prefix
2002
2003case $srcdir in
2004 .) # We are building in place.
2005 ac_srcdir=.
2006 ac_top_srcdir=$ac_top_builddir_sub
2007 ac_abs_top_srcdir=$ac_pwd ;;
2008 [\\/]* | ?:[\\/]* ) # Absolute name.
2009 ac_srcdir=$srcdir$ac_dir_suffix;
2010 ac_top_srcdir=$srcdir
2011 ac_abs_top_srcdir=$srcdir ;;
2012 *) # Relative name.
2013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2014 ac_top_srcdir=$ac_top_build_prefix$srcdir
2015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2016esac
2017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2018
2019 cd "$ac_dir" || { ac_status=$?; continue; }
2020 # Check for guested configure.
2021 if test -f "$ac_srcdir/configure.gnu"; then
2022 echo &&
2023 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2024 elif test -f "$ac_srcdir/configure"; then
2025 echo &&
2026 $SHELL "$ac_srcdir/configure" --help=recursive
2027 else
2028 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2029 fi || ac_status=$?
2030 cd "$ac_pwd" || { ac_status=$?; break; }
2031 done
2032fi
2033
2034test -n "$ac_init_help" && exit $ac_status
2035if $ac_init_version; then
2036 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002037ImageMagick configure 7.0.0-0
cristyda16f162011-02-19 23:52:17 +00002038generated by GNU Autoconf 2.68
cristy3ed852e2009-09-05 21:47:34 +00002039
cristy98dddb52010-11-04 00:30:15 +00002040Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002041This configure script is free software; the Free Software Foundation
2042gives unlimited permission to copy, distribute and modify it.
2043_ACEOF
2044 exit
2045fi
cristy8b350f62009-11-15 23:12:43 +00002046
2047## ------------------------ ##
2048## Autoconf initialization. ##
2049## ------------------------ ##
2050
2051# ac_fn_c_try_compile LINENO
2052# --------------------------
2053# Try to compile conftest.$ac_ext, and return whether this succeeded.
2054ac_fn_c_try_compile ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 rm -f conftest.$ac_objext
2058 if { { ac_try="$ac_compile"
2059case "(($ac_try" in
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2062esac
2063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064$as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_compile") 2>conftest.err
2066 ac_status=$?
2067 if test -s conftest.err; then
2068 grep -v '^ *+' conftest.err >conftest.er1
2069 cat conftest.er1 >&5
2070 mv -f conftest.er1 conftest.err
2071 fi
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; } && {
2074 test -z "$ac_c_werror_flag" ||
2075 test ! -s conftest.err
2076 } && test -s conftest.$ac_objext; then :
2077 ac_retval=0
2078else
2079 $as_echo "$as_me: failed program was:" >&5
2080sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=1
2083fi
cristyda16f162011-02-19 23:52:17 +00002084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002085 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002086
2087} # ac_fn_c_try_compile
2088
cristy95646052009-11-28 23:05:30 +00002089# ac_fn_c_try_cpp LINENO
2090# ----------------------
2091# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2092ac_fn_c_try_cpp ()
2093{
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if { { ac_try="$ac_cpp conftest.$ac_ext"
2096case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099esac
2100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101$as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2103 ac_status=$?
2104 if test -s conftest.err; then
2105 grep -v '^ *+' conftest.err >conftest.er1
2106 cat conftest.er1 >&5
2107 mv -f conftest.er1 conftest.err
2108 fi
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002110 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2112 test ! -s conftest.err
2113 }; then :
2114 ac_retval=0
2115else
2116 $as_echo "$as_me: failed program was:" >&5
2117sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 ac_retval=1
2120fi
cristyda16f162011-02-19 23:52:17 +00002121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002122 as_fn_set_status $ac_retval
2123
2124} # ac_fn_c_try_cpp
2125
cristy8b350f62009-11-15 23:12:43 +00002126# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2127# -------------------------------------------------------
2128# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2129# the include files in INCLUDES and setting the cache variable VAR
2130# accordingly.
2131ac_fn_c_check_header_mongrel ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002134 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002138 $as_echo_n "(cached) " >&6
2139fi
2140eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142$as_echo "$ac_res" >&6; }
2143else
2144 # Is the header compilable?
2145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2146$as_echo_n "checking $2 usability... " >&6; }
2147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h. */
2149$4
2150#include <$2>
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_header_compiler=yes
2154else
2155 ac_header_compiler=no
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2159$as_echo "$ac_header_compiler" >&6; }
2160
2161# Is the header present?
2162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2163$as_echo_n "checking $2 presence... " >&6; }
2164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h. */
2166#include <$2>
2167_ACEOF
2168if ac_fn_c_try_cpp "$LINENO"; then :
2169 ac_header_preproc=yes
2170else
2171 ac_header_preproc=no
2172fi
cristyda16f162011-02-19 23:52:17 +00002173rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2175$as_echo "$ac_header_preproc" >&6; }
2176
2177# So? What about this header?
2178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2179 yes:no: )
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2181$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184 ;;
2185 no:yes:* )
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2187$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2189$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2191$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2193$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002196( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002197## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002198## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002199 ) | sed "s/^/$as_me: WARNING: /" >&2
2200 ;;
2201esac
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002204if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002205 $as_echo_n "(cached) " >&6
2206else
2207 eval "$3=\$ac_header_compiler"
2208fi
2209eval ac_res=\$$3
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211$as_echo "$ac_res" >&6; }
2212fi
cristyda16f162011-02-19 23:52:17 +00002213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002214
2215} # ac_fn_c_check_header_mongrel
2216
2217# ac_fn_c_try_run LINENO
2218# ----------------------
2219# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2220# that executables *can* be run.
2221ac_fn_c_try_run ()
2222{
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if { { ac_try="$ac_link"
2225case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228esac
2229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230$as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_link") 2>&5
2232 ac_status=$?
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2235 { { case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_try") 2>&5
2242 ac_status=$?
2243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244 test $ac_status = 0; }; }; then :
2245 ac_retval=0
2246else
2247 $as_echo "$as_me: program exited with status $ac_status" >&5
2248 $as_echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_retval=$ac_status
2252fi
2253 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002255 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002256
2257} # ac_fn_c_try_run
2258
2259# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2260# -------------------------------------------------------
2261# Tests whether HEADER exists and can be compiled using the include files in
2262# INCLUDES, setting the cache variable VAR accordingly.
2263ac_fn_c_check_header_compile ()
2264{
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002268if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002269 $as_echo_n "(cached) " >&6
2270else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272/* end confdefs.h. */
2273$4
2274#include <$2>
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277 eval "$3=yes"
2278else
2279 eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002287
2288} # ac_fn_c_check_header_compile
2289
cristya0b81c32010-01-22 02:54:33 +00002290# ac_fn_cxx_try_compile LINENO
2291# ----------------------------
2292# Try to compile conftest.$ac_ext, and return whether this succeeded.
2293ac_fn_cxx_try_compile ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 rm -f conftest.$ac_objext
2297 if { { ac_try="$ac_compile"
2298case "(($ac_try" in
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2301esac
2302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303$as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_compile") 2>conftest.err
2305 ac_status=$?
2306 if test -s conftest.err; then
2307 grep -v '^ *+' conftest.err >conftest.er1
2308 cat conftest.er1 >&5
2309 mv -f conftest.er1 conftest.err
2310 fi
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && {
2313 test -z "$ac_cxx_werror_flag" ||
2314 test ! -s conftest.err
2315 } && test -s conftest.$ac_objext; then :
2316 ac_retval=0
2317else
2318 $as_echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 ac_retval=1
2322fi
cristyda16f162011-02-19 23:52:17 +00002323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002324 as_fn_set_status $ac_retval
2325
2326} # ac_fn_cxx_try_compile
2327
cristy8b350f62009-11-15 23:12:43 +00002328# ac_fn_c_try_link LINENO
2329# -----------------------
2330# Try to link conftest.$ac_ext, and return whether this succeeded.
2331ac_fn_c_try_link ()
2332{
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 rm -f conftest.$ac_objext conftest$ac_exeext
2335 if { { ac_try="$ac_link"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2341$as_echo "$ac_try_echo"; } >&5
2342 (eval "$ac_link") 2>conftest.err
2343 ac_status=$?
2344 if test -s conftest.err; then
2345 grep -v '^ *+' conftest.err >conftest.er1
2346 cat conftest.er1 >&5
2347 mv -f conftest.er1 conftest.err
2348 fi
2349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2350 test $ac_status = 0; } && {
2351 test -z "$ac_c_werror_flag" ||
2352 test ! -s conftest.err
2353 } && test -s conftest$ac_exeext && {
2354 test "$cross_compiling" = yes ||
2355 $as_test_x conftest$ac_exeext
2356 }; then :
2357 ac_retval=0
2358else
2359 $as_echo "$as_me: failed program was:" >&5
2360sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 ac_retval=1
2363fi
2364 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2365 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2366 # interfere with the next link command; also delete a directory that is
2367 # left behind by Apple's compiler. We do this before executing the actions.
2368 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002370 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002371
2372} # ac_fn_c_try_link
2373
cristy73bd4a52010-10-05 11:24:23 +00002374# ac_fn_c_check_func LINENO FUNC VAR
2375# ----------------------------------
2376# Tests whether FUNC exists, setting the cache variable VAR accordingly
2377ac_fn_c_check_func ()
2378{
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002382if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002383 $as_echo_n "(cached) " >&6
2384else
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386/* end confdefs.h. */
2387/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2389#define $2 innocuous_$2
2390
2391/* System header to define __stub macros and hopefully few prototypes,
2392 which can conflict with char $2 (); below.
2393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2394 <limits.h> exists even on freestanding compilers. */
2395
2396#ifdef __STDC__
2397# include <limits.h>
2398#else
2399# include <assert.h>
2400#endif
2401
2402#undef $2
2403
2404/* Override any GCC internal prototype to avoid an error.
2405 Use char because int might match the return type of a GCC
2406 builtin and then its argument prototype would still apply. */
2407#ifdef __cplusplus
2408extern "C"
2409#endif
2410char $2 ();
2411/* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414#if defined __stub_$2 || defined __stub___$2
2415choke me
2416#endif
2417
2418int
2419main ()
2420{
2421return $2 ();
2422 ;
2423 return 0;
2424}
2425_ACEOF
2426if ac_fn_c_try_link "$LINENO"; then :
2427 eval "$3=yes"
2428else
2429 eval "$3=no"
2430fi
2431rm -f core conftest.err conftest.$ac_objext \
2432 conftest$ac_exeext conftest.$ac_ext
2433fi
2434eval ac_res=\$$3
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002438
2439} # ac_fn_c_check_func
2440
2441# ac_fn_cxx_try_cpp LINENO
2442# ------------------------
2443# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2444ac_fn_cxx_try_cpp ()
2445{
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 if { { ac_try="$ac_cpp conftest.$ac_ext"
2448case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451esac
2452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453$as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2455 ac_status=$?
2456 if test -s conftest.err; then
2457 grep -v '^ *+' conftest.err >conftest.er1
2458 cat conftest.er1 >&5
2459 mv -f conftest.er1 conftest.err
2460 fi
2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002462 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002463 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2464 test ! -s conftest.err
2465 }; then :
2466 ac_retval=0
2467else
2468 $as_echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 ac_retval=1
2472fi
cristyda16f162011-02-19 23:52:17 +00002473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002474 as_fn_set_status $ac_retval
2475
2476} # ac_fn_cxx_try_cpp
2477
2478# ac_fn_cxx_try_link LINENO
2479# -------------------------
2480# Try to link conftest.$ac_ext, and return whether this succeeded.
2481ac_fn_cxx_try_link ()
2482{
2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2484 rm -f conftest.$ac_objext conftest$ac_exeext
2485 if { { ac_try="$ac_link"
2486case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491$as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_link") 2>conftest.err
2493 ac_status=$?
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2498 fi
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } && {
2501 test -z "$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 } && test -s conftest$ac_exeext && {
2504 test "$cross_compiling" = yes ||
2505 $as_test_x conftest$ac_exeext
2506 }; then :
2507 ac_retval=0
2508else
2509 $as_echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 ac_retval=1
2513fi
2514 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2515 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2516 # interfere with the next link command; also delete a directory that is
2517 # left behind by Apple's compiler. We do this before executing the actions.
2518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002520 as_fn_set_status $ac_retval
2521
2522} # ac_fn_cxx_try_link
2523
cristy98dddb52010-11-04 00:30:15 +00002524# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2525# ---------------------------------------------
2526# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2527# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002528ac_fn_c_check_decl ()
2529{
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002531 as_decl_name=`echo $2|sed 's/ *(.*//'`
2532 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2534$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002535if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002536 $as_echo_n "(cached) " >&6
2537else
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539/* end confdefs.h. */
2540$4
2541int
2542main ()
2543{
cristy98dddb52010-11-04 00:30:15 +00002544#ifndef $as_decl_name
2545#ifdef __cplusplus
2546 (void) $as_decl_use;
2547#else
2548 (void) $as_decl_name;
2549#endif
cristy73bd4a52010-10-05 11:24:23 +00002550#endif
2551
2552 ;
2553 return 0;
2554}
2555_ACEOF
2556if ac_fn_c_try_compile "$LINENO"; then :
2557 eval "$3=yes"
2558else
2559 eval "$3=no"
2560fi
2561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562fi
2563eval ac_res=\$$3
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2565$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002566 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002567
2568} # ac_fn_c_check_decl
2569
cristy8b350f62009-11-15 23:12:43 +00002570# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2571# -------------------------------------------
2572# Tests whether TYPE exists after having included INCLUDES, setting cache
2573# variable VAR accordingly.
2574ac_fn_c_check_type ()
2575{
2576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002579if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002580 $as_echo_n "(cached) " >&6
2581else
2582 eval "$3=no"
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int
2587main ()
2588{
2589if (sizeof ($2))
2590 return 0;
2591 ;
2592 return 0;
2593}
2594_ACEOF
2595if ac_fn_c_try_compile "$LINENO"; then :
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597/* end confdefs.h. */
2598$4
2599int
2600main ()
2601{
2602if (sizeof (($2)))
2603 return 0;
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608if ac_fn_c_try_compile "$LINENO"; then :
2609
2610else
2611 eval "$3=yes"
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616fi
2617eval ac_res=\$$3
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002621
2622} # ac_fn_c_check_type
2623
cristy92703d82010-04-26 00:18:18 +00002624# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625# ----------------------------------------------------
2626# Tries to find if the field MEMBER exists in type AGGR, after including
2627# INCLUDES, setting cache variable VAR accordingly.
2628ac_fn_c_check_member ()
2629{
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002633if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002634 $as_echo_n "(cached) " >&6
2635else
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637/* end confdefs.h. */
2638$5
2639int
2640main ()
2641{
2642static $2 ac_aggr;
2643if (ac_aggr.$3)
2644return 0;
2645 ;
2646 return 0;
2647}
2648_ACEOF
2649if ac_fn_c_try_compile "$LINENO"; then :
2650 eval "$4=yes"
2651else
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653/* end confdefs.h. */
2654$5
2655int
2656main ()
2657{
2658static $2 ac_aggr;
2659if (sizeof ac_aggr.$3)
2660return 0;
2661 ;
2662 return 0;
2663}
2664_ACEOF
2665if ac_fn_c_try_compile "$LINENO"; then :
2666 eval "$4=yes"
2667else
2668 eval "$4=no"
2669fi
2670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673fi
2674eval ac_res=\$$4
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002678
2679} # ac_fn_c_check_member
2680
cristy501c8042011-05-26 17:46:28 +00002681# ac_fn_c_find_intX_t LINENO BITS VAR
2682# -----------------------------------
2683# Finds a signed integer type with width BITS, setting cache variable VAR
2684# accordingly.
2685ac_fn_c_find_intX_t ()
2686{
2687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2689$as_echo_n "checking for int$2_t... " >&6; }
2690if eval \${$3+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 eval "$3=no"
2694 # Order is important - never check a type that is potentially smaller
2695 # than half of the expected target width.
2696 for ac_type in int$2_t 'int' 'long int' \
2697 'long long int' 'short int' 'signed char'; do
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699/* end confdefs.h. */
2700$ac_includes_default
2701 enum { N = $2 / 2 - 1 };
2702int
2703main ()
2704{
2705static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2706test_array [0] = 0
2707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$ac_includes_default
2716 enum { N = $2 / 2 - 1 };
2717int
2718main ()
2719{
2720static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2721 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2722test_array [0] = 0
2723
2724 ;
2725 return 0;
2726}
2727_ACEOF
2728if ac_fn_c_try_compile "$LINENO"; then :
2729
2730else
2731 case $ac_type in #(
2732 int$2_t) :
2733 eval "$3=yes" ;; #(
2734 *) :
2735 eval "$3=\$ac_type" ;;
2736esac
2737fi
2738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 if eval test \"x\$"$3"\" = x"no"; then :
2742
2743else
2744 break
2745fi
2746 done
2747fi
2748eval ac_res=\$$3
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750$as_echo "$ac_res" >&6; }
2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752
2753} # ac_fn_c_find_intX_t
2754
2755# ac_fn_c_find_uintX_t LINENO BITS VAR
2756# ------------------------------------
2757# Finds an unsigned integer type with width BITS, setting cache variable VAR
2758# accordingly.
2759ac_fn_c_find_uintX_t ()
2760{
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2763$as_echo_n "checking for uint$2_t... " >&6; }
2764if eval \${$3+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 eval "$3=no"
2768 # Order is important - never check a type that is potentially smaller
2769 # than half of the expected target width.
2770 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2771 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773/* end confdefs.h. */
2774$ac_includes_default
2775int
2776main ()
2777{
2778static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2779test_array [0] = 0
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785if ac_fn_c_try_compile "$LINENO"; then :
2786 case $ac_type in #(
2787 uint$2_t) :
2788 eval "$3=yes" ;; #(
2789 *) :
2790 eval "$3=\$ac_type" ;;
2791esac
2792fi
2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2794 if eval test \"x\$"$3"\" = x"no"; then :
2795
2796else
2797 break
2798fi
2799 done
2800fi
2801eval ac_res=\$$3
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803$as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2805
2806} # ac_fn_c_find_uintX_t
2807
cristy8b350f62009-11-15 23:12:43 +00002808# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2809# --------------------------------------------
2810# Tries to find the compile-time value of EXPR in a program that includes
2811# INCLUDES, setting VAR accordingly. Returns whether the value could be
2812# computed
2813ac_fn_c_compute_int ()
2814{
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 if test "$cross_compiling" = yes; then
2817 # Depending upon the size, compute the lo and hi bounds.
2818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819/* end confdefs.h. */
2820$4
2821int
2822main ()
2823{
2824static int test_array [1 - 2 * !(($2) >= 0)];
2825test_array [0] = 0
2826
2827 ;
2828 return 0;
2829}
2830_ACEOF
2831if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_lo=0 ac_mid=0
2833 while :; do
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835/* end confdefs.h. */
2836$4
2837int
2838main ()
2839{
2840static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2841test_array [0] = 0
2842
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847if ac_fn_c_try_compile "$LINENO"; then :
2848 ac_hi=$ac_mid; break
2849else
2850 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2851 if test $ac_lo -le $ac_mid; then
2852 ac_lo= ac_hi=
2853 break
2854 fi
2855 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2856fi
2857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858 done
2859else
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862$4
2863int
2864main ()
2865{
2866static int test_array [1 - 2 * !(($2) < 0)];
2867test_array [0] = 0
2868
2869 ;
2870 return 0;
2871}
2872_ACEOF
2873if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_hi=-1 ac_mid=-1
2875 while :; do
2876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2877/* end confdefs.h. */
2878$4
2879int
2880main ()
2881{
2882static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2883test_array [0] = 0
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889if ac_fn_c_try_compile "$LINENO"; then :
2890 ac_lo=$ac_mid; break
2891else
2892 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2893 if test $ac_mid -le $ac_hi; then
2894 ac_lo= ac_hi=
2895 break
2896 fi
2897 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2898fi
2899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 done
2901else
2902 ac_lo= ac_hi=
2903fi
2904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905fi
2906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2907# Binary search between lo and hi bounds.
2908while test "x$ac_lo" != "x$ac_hi"; do
2909 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2917test_array [0] = 0
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_hi=$ac_mid
2925else
2926 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929done
2930case $ac_lo in #((
2931?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2932'') ac_retval=1 ;;
2933esac
2934 else
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936/* end confdefs.h. */
2937$4
2938static long int longval () { return $2; }
2939static unsigned long int ulongval () { return $2; }
2940#include <stdio.h>
2941#include <stdlib.h>
2942int
2943main ()
2944{
2945
2946 FILE *f = fopen ("conftest.val", "w");
2947 if (! f)
2948 return 1;
2949 if (($2) < 0)
2950 {
2951 long int i = longval ();
2952 if (i != ($2))
2953 return 1;
2954 fprintf (f, "%ld", i);
2955 }
2956 else
2957 {
2958 unsigned long int i = ulongval ();
2959 if (i != ($2))
2960 return 1;
2961 fprintf (f, "%lu", i);
2962 }
2963 /* Do not output a trailing newline, as this causes \r\n confusion
2964 on some platforms. */
2965 return ferror (f) || fclose (f) != 0;
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971if ac_fn_c_try_run "$LINENO"; then :
2972 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2973else
2974 ac_retval=1
2975fi
2976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2977 conftest.$ac_objext conftest.beam conftest.$ac_ext
2978rm -f conftest.val
2979
2980 fi
cristyda16f162011-02-19 23:52:17 +00002981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002982 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002983
2984} # ac_fn_c_compute_int
2985
2986# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2987# ---------------------------------------------------------
2988# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2989# the include files in INCLUDES and setting the cache variable VAR
2990# accordingly.
2991ac_fn_cxx_check_header_mongrel ()
2992{
2993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002994 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2996$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002997if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002998 $as_echo_n "(cached) " >&6
2999fi
3000eval ac_res=\$$3
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3002$as_echo "$ac_res" >&6; }
3003else
3004 # Is the header compilable?
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3006$as_echo_n "checking $2 usability... " >&6; }
3007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
3009$4
3010#include <$2>
3011_ACEOF
3012if ac_fn_cxx_try_compile "$LINENO"; then :
3013 ac_header_compiler=yes
3014else
3015 ac_header_compiler=no
3016fi
3017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3019$as_echo "$ac_header_compiler" >&6; }
3020
3021# Is the header present?
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3023$as_echo_n "checking $2 presence... " >&6; }
3024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025/* end confdefs.h. */
3026#include <$2>
3027_ACEOF
3028if ac_fn_cxx_try_cpp "$LINENO"; then :
3029 ac_header_preproc=yes
3030else
3031 ac_header_preproc=no
3032fi
cristyda16f162011-02-19 23:52:17 +00003033rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3035$as_echo "$ac_header_preproc" >&6; }
3036
3037# So? What about this header?
3038case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3039 yes:no: )
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3041$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3043$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3044 ;;
3045 no:yes:* )
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3047$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3049$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3051$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3053$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3055$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003056( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003057## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003058## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003059 ) | sed "s/^/$as_me: WARNING: /" >&2
3060 ;;
3061esac
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3063$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003064if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003065 $as_echo_n "(cached) " >&6
3066else
3067 eval "$3=\$ac_header_compiler"
3068fi
3069eval ac_res=\$$3
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3071$as_echo "$ac_res" >&6; }
3072fi
cristyda16f162011-02-19 23:52:17 +00003073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003074
3075} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003076cat >config.log <<_ACEOF
3077This file contains any messages produced by compilers while
3078running configure, to aid debugging if configure makes a mistake.
3079
cristy29eb34e2011-10-16 00:46:08 +00003080It was created by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +00003081generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003082
3083 $ $0 $@
3084
3085_ACEOF
3086exec 5>>config.log
3087{
3088cat <<_ASUNAME
3089## --------- ##
3090## Platform. ##
3091## --------- ##
3092
3093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3094uname -m = `(uname -m) 2>/dev/null || echo unknown`
3095uname -r = `(uname -r) 2>/dev/null || echo unknown`
3096uname -s = `(uname -s) 2>/dev/null || echo unknown`
3097uname -v = `(uname -v) 2>/dev/null || echo unknown`
3098
3099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3101
3102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3109
3110_ASUNAME
3111
3112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003117 $as_echo "PATH: $as_dir"
3118 done
cristy3ed852e2009-09-05 21:47:34 +00003119IFS=$as_save_IFS
3120
3121} >&5
3122
3123cat >&5 <<_ACEOF
3124
3125
3126## ----------- ##
3127## Core tests. ##
3128## ----------- ##
3129
3130_ACEOF
3131
3132
3133# Keep a trace of the command line.
3134# Strip out --no-create and --no-recursion so they do not pile up.
3135# Strip out --silent because we don't want to record it for future runs.
3136# Also quote any args containing shell meta-characters.
3137# Make two passes to allow for proper duplicate-argument suppression.
3138ac_configure_args=
3139ac_configure_args0=
3140ac_configure_args1=
3141ac_must_keep_next=false
3142for ac_pass in 1 2
3143do
3144 for ac_arg
3145 do
3146 case $ac_arg in
3147 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3149 | -silent | --silent | --silen | --sile | --sil)
3150 continue ;;
3151 *\'*)
3152 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3153 esac
3154 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003155 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003156 2)
cristy8b350f62009-11-15 23:12:43 +00003157 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003158 if test $ac_must_keep_next = true; then
3159 ac_must_keep_next=false # Got value, back to normal.
3160 else
3161 case $ac_arg in
3162 *=* | --config-cache | -C | -disable-* | --disable-* \
3163 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3164 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3165 | -with-* | --with-* | -without-* | --without-* | --x)
3166 case "$ac_configure_args0 " in
3167 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3168 esac
3169 ;;
3170 -* ) ac_must_keep_next=true ;;
3171 esac
3172 fi
cristy8b350f62009-11-15 23:12:43 +00003173 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003174 ;;
3175 esac
3176 done
3177done
cristy8b350f62009-11-15 23:12:43 +00003178{ ac_configure_args0=; unset ac_configure_args0;}
3179{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003180
3181# When interrupted or exit'd, cleanup temporary files, and complete
3182# config.log. We remove comments because anyway the quotes in there
3183# would cause problems or look ugly.
3184# WARNING: Use '\'' to represent an apostrophe within the trap.
3185# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3186trap 'exit_status=$?
3187 # Save into config.log some information that might help in debugging.
3188 {
3189 echo
3190
cristy98dddb52010-11-04 00:30:15 +00003191 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003192## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003193## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003194 echo
3195 # The following way of writing the cache mishandles newlines in values,
3196(
3197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3198 eval ac_val=\$$ac_var
3199 case $ac_val in #(
3200 *${as_nl}*)
3201 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3204 esac
3205 case $ac_var in #(
3206 _ | IFS | as_nl) ;; #(
3207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003208 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003209 esac ;;
3210 esac
3211 done
3212 (set) 2>&1 |
3213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3214 *${as_nl}ac_space=\ *)
3215 sed -n \
3216 "s/'\''/'\''\\\\'\'''\''/g;
3217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3218 ;; #(
3219 *)
3220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3221 ;;
3222 esac |
3223 sort
3224)
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 for ac_var in $ac_subst_vars
3232 do
3233 eval ac_val=\$$ac_var
3234 case $ac_val in
3235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3236 esac
3237 $as_echo "$ac_var='\''$ac_val'\''"
3238 done | sort
3239 echo
3240
3241 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003242 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003243## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003244## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003245 echo
3246 for ac_var in $ac_subst_files
3247 do
3248 eval ac_val=\$$ac_var
3249 case $ac_val in
3250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3251 esac
3252 $as_echo "$ac_var='\''$ac_val'\''"
3253 done | sort
3254 echo
3255 fi
3256
3257 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003258 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003259## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003260## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003261 echo
3262 cat confdefs.h
3263 echo
3264 fi
3265 test "$ac_signal" != 0 &&
3266 $as_echo "$as_me: caught signal $ac_signal"
3267 $as_echo "$as_me: exit $exit_status"
3268 } >&5
3269 rm -f core *.core core.conftest.* &&
3270 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3271 exit $exit_status
3272' 0
3273for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003274 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003275done
3276ac_signal=0
3277
3278# confdefs.h avoids OS command line length limits that DEFS can exceed.
3279rm -f -r conftest* confdefs.h
3280
cristy8b350f62009-11-15 23:12:43 +00003281$as_echo "/* confdefs.h */" > confdefs.h
3282
cristy3ed852e2009-09-05 21:47:34 +00003283# Predefined preprocessor variables.
3284
3285cat >>confdefs.h <<_ACEOF
3286#define PACKAGE_NAME "$PACKAGE_NAME"
3287_ACEOF
3288
cristy3ed852e2009-09-05 21:47:34 +00003289cat >>confdefs.h <<_ACEOF
3290#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3291_ACEOF
3292
cristy3ed852e2009-09-05 21:47:34 +00003293cat >>confdefs.h <<_ACEOF
3294#define PACKAGE_VERSION "$PACKAGE_VERSION"
3295_ACEOF
3296
cristy3ed852e2009-09-05 21:47:34 +00003297cat >>confdefs.h <<_ACEOF
3298#define PACKAGE_STRING "$PACKAGE_STRING"
3299_ACEOF
3300
cristy3ed852e2009-09-05 21:47:34 +00003301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3303_ACEOF
3304
cristy8b350f62009-11-15 23:12:43 +00003305cat >>confdefs.h <<_ACEOF
3306#define PACKAGE_URL "$PACKAGE_URL"
3307_ACEOF
3308
cristy3ed852e2009-09-05 21:47:34 +00003309
3310# Let the site file select an alternate cache file if it wants to.
3311# Prefer an explicitly selected file to automatically selected ones.
3312ac_site_file1=NONE
3313ac_site_file2=NONE
3314if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003315 # We do not want a PATH search for config.site.
3316 case $CONFIG_SITE in #((
3317 -*) ac_site_file1=./$CONFIG_SITE;;
3318 */*) ac_site_file1=$CONFIG_SITE;;
3319 *) ac_site_file1=./$CONFIG_SITE;;
3320 esac
cristy3ed852e2009-09-05 21:47:34 +00003321elif test "x$prefix" != xNONE; then
3322 ac_site_file1=$prefix/share/config.site
3323 ac_site_file2=$prefix/etc/config.site
3324else
3325 ac_site_file1=$ac_default_prefix/share/config.site
3326 ac_site_file2=$ac_default_prefix/etc/config.site
3327fi
3328for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3329do
3330 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003333$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3334 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003335 . "$ac_site_file" \
3336 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error $? "failed to load site script $ac_site_file
3339See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003340 fi
3341done
3342
3343if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003344 # Some versions of bash will fail to source /dev/null (special files
3345 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003348$as_echo "$as_me: loading cache $cache_file" >&6;}
3349 case $cache_file in
3350 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3351 *) . "./$cache_file";;
3352 esac
3353 fi
3354else
cristy8b350f62009-11-15 23:12:43 +00003355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003356$as_echo "$as_me: creating cache $cache_file" >&6;}
3357 >$cache_file
3358fi
3359
cristycd4c5312009-11-22 01:19:08 +00003360as_fn_append ac_header_list " stdlib.h"
3361as_fn_append ac_header_list " unistd.h"
3362as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003363# Check that the precious variables saved in the cache have kept the same
3364# value.
3365ac_cache_corrupted=false
3366for ac_var in $ac_precious_vars; do
3367 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3368 eval ac_new_set=\$ac_env_${ac_var}_set
3369 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3370 eval ac_new_val=\$ac_env_${ac_var}_value
3371 case $ac_old_set,$ac_new_set in
3372 set,)
cristy8b350f62009-11-15 23:12:43 +00003373 { $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 +00003374$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3375 ac_cache_corrupted=: ;;
3376 ,set)
cristy8b350f62009-11-15 23:12:43 +00003377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003378$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3379 ac_cache_corrupted=: ;;
3380 ,);;
3381 *)
3382 if test "x$ac_old_val" != "x$ac_new_val"; then
3383 # differences in whitespace do not lead to failure.
3384 ac_old_val_w=`echo x $ac_old_val`
3385 ac_new_val_w=`echo x $ac_new_val`
3386 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003388$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3389 ac_cache_corrupted=:
3390 else
cristy8b350f62009-11-15 23:12:43 +00003391 { $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 +00003392$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3393 eval $ac_var=\$ac_old_val
3394 fi
cristy8b350f62009-11-15 23:12:43 +00003395 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003396$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003397 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003398$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3399 fi;;
3400 esac
3401 # Pass precious variables to config.status.
3402 if test "$ac_new_set" = set; then
3403 case $ac_new_val in
3404 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3405 *) ac_arg=$ac_var=$ac_new_val ;;
3406 esac
3407 case " $ac_configure_args " in
3408 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003409 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003410 esac
3411 fi
3412done
3413if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003417$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003418 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003419fi
cristy8b350f62009-11-15 23:12:43 +00003420## -------------------- ##
3421## Main body of script. ##
3422## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430
3431
3432ac_aux_dir=
3433for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003434 if 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/install.sh"; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/install.sh -c"
3441 break
3442 elif test -f "$ac_dir/shtool"; then
3443 ac_aux_dir=$ac_dir
3444 ac_install_sh="$ac_aux_dir/shtool install -c"
3445 break
3446 fi
cristy3ed852e2009-09-05 21:47:34 +00003447done
3448if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003450fi
3451
3452# These three variables are undocumented and unsupported,
3453# and are intended to be withdrawn in a future Autoconf release.
3454# They can cause serious problems if a builder's source tree is in a directory
3455# whose full name contains unusual characters.
3456ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3457ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3458ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3459
3460
3461
3462
3463ac_config_headers="$ac_config_headers config/config.h"
3464
cristy24fc1fe2010-10-23 21:13:01 +00003465
cristy4c08aed2011-07-01 19:47:50 +00003466ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003467
cristy4c08aed2011-07-01 19:47:50 +00003468ac_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 +00003469
3470
3471#
3472# Save initial user-tunable values
3473#
3474USER_LIBS=$LIBS
3475for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3476 eval isset=\${$var+set}
3477 if test "$isset" = 'set'; then
3478 eval val=$`echo $var`
3479 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3480 fi
3481done
3482
3483
3484CONFIGURE_ARGS="$0 ${ac_configure_args}"
3485
3486
3487# Source file containing package/library versioning information.
3488. ${srcdir}/version.sh
3489
cristy15a88782010-01-31 23:24:49 +00003490echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003491# Make sure we can run config.sub.
3492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003494
cristy8b350f62009-11-15 23:12:43 +00003495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003497if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003498 $as_echo_n "(cached) " >&6
3499else
3500 ac_build_alias=$build_alias
3501test "x$ac_build_alias" = x &&
3502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3503test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003507
3508fi
cristy8b350f62009-11-15 23:12:43 +00003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003510$as_echo "$ac_cv_build" >&6; }
3511case $ac_cv_build in
3512*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003513*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003514esac
3515build=$ac_cv_build
3516ac_save_IFS=$IFS; IFS='-'
3517set x $ac_cv_build
3518shift
3519build_cpu=$1
3520build_vendor=$2
3521shift; shift
3522# Remember, the first character of IFS is used to create $*,
3523# except with old shells:
3524build_os=$*
3525IFS=$ac_save_IFS
3526case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3527
3528
cristy8b350f62009-11-15 23:12:43 +00003529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003530$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003531if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003532 $as_echo_n "(cached) " >&6
3533else
3534 if test "x$host_alias" = x; then
3535 ac_cv_host=$ac_cv_build
3536else
3537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003539fi
3540
3541fi
cristy8b350f62009-11-15 23:12:43 +00003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$ac_cv_host" >&6; }
3544case $ac_cv_host in
3545*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003547esac
3548host=$ac_cv_host
3549ac_save_IFS=$IFS; IFS='-'
3550set x $ac_cv_host
3551shift
3552host_cpu=$1
3553host_vendor=$2
3554shift; shift
3555# Remember, the first character of IFS is used to create $*,
3556# except with old shells:
3557host_os=$*
3558IFS=$ac_save_IFS
3559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3560
3561
cristy8b350f62009-11-15 23:12:43 +00003562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003563$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003564if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003565 $as_echo_n "(cached) " >&6
3566else
3567 if test "x$target_alias" = x; then
3568 ac_cv_target=$ac_cv_host
3569else
3570 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003572fi
3573
3574fi
cristy8b350f62009-11-15 23:12:43 +00003575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003576$as_echo "$ac_cv_target" >&6; }
3577case $ac_cv_target in
3578*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003579*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003580esac
3581target=$ac_cv_target
3582ac_save_IFS=$IFS; IFS='-'
3583set x $ac_cv_target
3584shift
3585target_cpu=$1
3586target_vendor=$2
3587shift; shift
3588# Remember, the first character of IFS is used to create $*,
3589# except with old shells:
3590target_os=$*
3591IFS=$ac_save_IFS
3592case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3593
3594
3595# The aliases save the names the user supplied, while $host etc.
3596# will get canonicalized.
3597test -n "$target_alias" &&
3598 test "$program_prefix$program_suffix$program_transform_name" = \
3599 NONENONEs,x,x, &&
3600 program_prefix=${target_alias}-
3601
cristy837d6dc2010-02-27 01:16:57 +00003602
3603
3604
cristy19615b82011-04-13 20:02:01 +00003605MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003606
3607
cristy19615b82011-04-13 20:02:01 +00003608MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003609
3610
cristy19615b82011-04-13 20:02:01 +00003611MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003612
3613
cristy3ed852e2009-09-05 21:47:34 +00003614# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003615MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3616
3617MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3618
cristy37110d62012-03-01 18:38:20 +00003619MAGICK_SVN_REVISION=7001
cristyd694ca32011-03-27 21:42:54 +00003620
3621
cristy3ed852e2009-09-05 21:47:34 +00003622
3623
3624# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3626$as_echo_n "checking whether build environment is sane... " >&6; }
3627# Just in case
3628sleep 1
3629echo timestamp > conftest.file
3630# Reject unsafe characters in $srcdir or the absolute working directory
3631# name. Accept space and tab only in the latter.
3632am_lf='
3633'
3634case `pwd` in
3635 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003636 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003637esac
3638case $srcdir in
3639 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristy98dddb52010-11-04 00:30:15 +00003640 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003641esac
cristy3ed852e2009-09-05 21:47:34 +00003642
cristy73bd4a52010-10-05 11:24:23 +00003643# Do `set' in a subshell so we don't clobber the current shell's
3644# arguments. Must try -L first in case configure is actually a
3645# symlink; some systems play weird games with the mod time of symlinks
3646# (eg FreeBSD returns the mod time of the symlink's containing
3647# directory).
3648if (
3649 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3650 if test "$*" = "X"; then
3651 # -L didn't work.
3652 set X `ls -t "$srcdir/configure" conftest.file`
3653 fi
3654 rm -f conftest.file
3655 if test "$*" != "X $srcdir/configure conftest.file" \
3656 && test "$*" != "X conftest.file $srcdir/configure"; then
3657
3658 # If neither matched, then we have a broken ls. This can happen
3659 # if, for instance, CONFIG_SHELL is bash and it inherits a
3660 # broken ls alias from the environment. This has actually
3661 # happened. Such a system could not be considered "sane".
cristy98dddb52010-11-04 00:30:15 +00003662 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
cristy73bd4a52010-10-05 11:24:23 +00003663alias in your environment" "$LINENO" 5
3664 fi
3665
3666 test "$2" = conftest.file
3667 )
3668then
3669 # Ok.
3670 :
3671else
cristy98dddb52010-11-04 00:30:15 +00003672 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003673Check your system clock" "$LINENO" 5
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676$as_echo "yes" >&6; }
3677
3678am__api_version='1.11'
3679
3680# Find a good install program. We prefer a C program (faster),
3681# so one script is as good as another. But avoid the broken or
3682# incompatible versions:
3683# SysV /etc/install, /usr/sbin/install
3684# SunOS /usr/etc/install
3685# IRIX /sbin/install
3686# AIX /bin/install
3687# AmigaOS /C/install, which installs bootblocks on floppy discs
3688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3691# OS/2's system install, which has a completely different semantic
3692# ./install, which can be erroneously created by make from ./install.sh.
3693# Reject install programs that cannot install multiple files.
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3695$as_echo_n "checking for a BSD-compatible install... " >&6; }
3696if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003697if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003698 $as_echo_n "(cached) " >&6
3699else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 # Account for people who put trailing slashes in PATH elements.
3706case $as_dir/ in #((
3707 ./ | .// | /[cC]/* | \
3708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3710 /usr/ucb/* ) ;;
3711 *)
3712 # OSF1 and SCO ODT 3.0 have their own names for install.
3713 # Don't use installbsd from OSF since it installs stuff as root
3714 # by default.
3715 for ac_prog in ginstall scoinst install; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718 if test $ac_prog = install &&
3719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720 # AIX install. It has an incompatible calling convention.
3721 :
3722 elif test $ac_prog = install &&
3723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724 # program-specific install script used by HP pwplus--don't use.
3725 :
3726 else
3727 rm -rf conftest.one conftest.two conftest.dir
3728 echo one > conftest.one
3729 echo two > conftest.two
3730 mkdir conftest.dir
3731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3732 test -s conftest.one && test -s conftest.two &&
3733 test -s conftest.dir/conftest.one &&
3734 test -s conftest.dir/conftest.two
3735 then
3736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3737 break 3
3738 fi
3739 fi
3740 fi
3741 done
3742 done
3743 ;;
3744esac
3745
3746 done
3747IFS=$as_save_IFS
3748
3749rm -rf conftest.one conftest.two conftest.dir
3750
3751fi
3752 if test "${ac_cv_path_install+set}" = set; then
3753 INSTALL=$ac_cv_path_install
3754 else
3755 # As a last resort, use the slow shell script. Don't cache a
3756 # value for INSTALL within a source directory, because that will
3757 # break other packages using the cache if that directory is
3758 # removed, or if the value is a relative name.
3759 INSTALL=$ac_install_sh
3760 fi
3761fi
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3763$as_echo "$INSTALL" >&6; }
3764
3765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3766# It thinks the first close brace ends the variable substitution.
3767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3768
3769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3770
3771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3772
3773test "$program_prefix" != NONE &&
3774 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3775# Use a double $ so make ignores it.
3776test "$program_suffix" != NONE &&
3777 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3778# Double any \ or $.
3779# By default was `s,x,x', remove it if useless.
3780ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3781program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3782
3783# expand $ac_aux_dir to an absolute path
3784am_aux_dir=`cd $ac_aux_dir && pwd`
3785
3786if test x"${MISSING+set}" != xset; then
3787 case $am_aux_dir in
3788 *\ * | *\ *)
3789 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3790 *)
3791 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3792 esac
3793fi
3794# Use eval to expand $SHELL
3795if eval "$MISSING --run true"; then
3796 am_missing_run="$MISSING --run "
3797else
3798 am_missing_run=
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3800$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3801fi
3802
3803if test x"${install_sh}" != xset; then
3804 case $am_aux_dir in
3805 *\ * | *\ *)
3806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3807 *)
3808 install_sh="\${SHELL} $am_aux_dir/install-sh"
3809 esac
3810fi
3811
3812# Installed binaries are usually stripped using `strip' when the user
3813# run `make install-strip'. However `strip' might not be the right
3814# tool to use in cross-compilation environments, therefore Automake
3815# will honor the `STRIP' environment variable to overrule this program.
3816if test "$cross_compiling" != no; then
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3819set dummy ${ac_tool_prefix}strip; ac_word=$2
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003822if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003823 $as_echo_n "(cached) " >&6
3824else
3825 if test -n "$STRIP"; then
3826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839done
3840 done
3841IFS=$as_save_IFS
3842
3843fi
3844fi
3845STRIP=$ac_cv_prog_STRIP
3846if test -n "$STRIP"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3848$as_echo "$STRIP" >&6; }
3849else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
3852fi
3853
3854
3855fi
3856if test -z "$ac_cv_prog_STRIP"; then
3857 ac_ct_STRIP=$STRIP
3858 # Extract the first word of "strip", so it can be a program name with args.
3859set dummy strip; ac_word=$2
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003862if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003863 $as_echo_n "(cached) " >&6
3864else
3865 if test -n "$ac_ct_STRIP"; then
3866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3867else
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_ac_ct_STRIP="strip"
3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879done
3880 done
3881IFS=$as_save_IFS
3882
3883fi
3884fi
3885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3886if test -n "$ac_ct_STRIP"; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3888$as_echo "$ac_ct_STRIP" >&6; }
3889else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891$as_echo "no" >&6; }
3892fi
3893
3894 if test "x$ac_ct_STRIP" = x; then
3895 STRIP=":"
3896 else
3897 case $cross_compiling:$ac_tool_warned in
3898yes:)
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901ac_tool_warned=yes ;;
3902esac
3903 STRIP=$ac_ct_STRIP
3904 fi
3905else
3906 STRIP="$ac_cv_prog_STRIP"
3907fi
3908
3909fi
3910INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3911
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3913$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3914if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003915 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003916 $as_echo_n "(cached) " >&6
3917else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3920do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_prog in mkdir gmkdir; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3926 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3927 'mkdir (GNU coreutils) '* | \
3928 'mkdir (coreutils) '* | \
3929 'mkdir (fileutils) '4.1*)
3930 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3931 break 3;;
3932 esac
3933 done
3934 done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939
3940 test -d ./--version && rmdir ./--version
3941 if test "${ac_cv_path_mkdir+set}" = set; then
3942 MKDIR_P="$ac_cv_path_mkdir -p"
3943 else
3944 # As a last resort, use the slow shell script. Don't cache a
3945 # value for MKDIR_P within a source directory, because that will
3946 # break other packages using the cache if that directory is
3947 # removed, or if the value is a relative name.
3948 MKDIR_P="$ac_install_sh -d"
3949 fi
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3952$as_echo "$MKDIR_P" >&6; }
3953
3954mkdir_p="$MKDIR_P"
3955case $mkdir_p in
3956 [\\/$]* | ?:[\\/]*) ;;
3957 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3958esac
3959
3960for ac_prog in gawk mawk nawk awk
3961do
3962 # Extract the first word of "$ac_prog", so it can be a program name with args.
3963set dummy $ac_prog; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003966if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003967 $as_echo_n "(cached) " >&6
3968else
3969 if test -n "$AWK"; then
3970 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_prog_AWK="$ac_prog"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984 done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989AWK=$ac_cv_prog_AWK
3990if test -n "$AWK"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3992$as_echo "$AWK" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998
3999 test -n "$AWK" && break
4000done
4001
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4003$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4004set x ${MAKE-make}
4005ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004006if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004007 $as_echo_n "(cached) " >&6
4008else
4009 cat >conftest.make <<\_ACEOF
4010SHELL = /bin/sh
4011all:
4012 @echo '@@@%%%=$(MAKE)=@@@%%%'
4013_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004014# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004015case `${MAKE-make} -f conftest.make 2>/dev/null` in
4016 *@@@%%%=?*=@@@%%%*)
4017 eval ac_cv_prog_make_${ac_make}_set=yes;;
4018 *)
4019 eval ac_cv_prog_make_${ac_make}_set=no;;
4020esac
4021rm -f conftest.make
4022fi
4023if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025$as_echo "yes" >&6; }
4026 SET_MAKE=
4027else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
4030 SET_MAKE="MAKE=${MAKE-make}"
4031fi
4032
4033rm -rf .tst 2>/dev/null
4034mkdir .tst 2>/dev/null
4035if test -d .tst; then
4036 am__leading_dot=.
4037else
4038 am__leading_dot=_
4039fi
4040rmdir .tst 2>/dev/null
4041
cristya448bd22011-10-14 12:38:13 +00004042# Check whether --enable-silent-rules was given.
4043if test "${enable_silent_rules+set}" = set; then :
4044 enableval=$enable_silent_rules;
4045fi
4046
4047case $enable_silent_rules in
4048yes) AM_DEFAULT_VERBOSITY=0;;
4049no) AM_DEFAULT_VERBOSITY=1;;
4050*) AM_DEFAULT_VERBOSITY=1;;
4051esac
cristyc3fb77b2012-02-06 01:49:41 +00004052am_make=${MAKE-make}
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4054$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4055if ${am_cv_make_support_nested_variables+:} false; then :
4056 $as_echo_n "(cached) " >&6
4057else
4058 if $as_echo 'TRUE=$(BAR$(V))
4059BAR0=false
4060BAR1=true
4061V=1
4062am__doit:
4063 @$(TRUE)
4064.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4065 am_cv_make_support_nested_variables=yes
4066else
4067 am_cv_make_support_nested_variables=no
4068fi
4069fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4071$as_echo "$am_cv_make_support_nested_variables" >&6; }
4072if test $am_cv_make_support_nested_variables = yes; then
4073 AM_V='$(V)'
4074 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4075else
4076 AM_V=$AM_DEFAULT_VERBOSITY
4077 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4078fi
cristya448bd22011-10-14 12:38:13 +00004079AM_BACKSLASH='\'
4080
cristy73bd4a52010-10-05 11:24:23 +00004081if test "`cd $srcdir && pwd`" != "`pwd`"; then
4082 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4083 # is not polluted with repeated "-I."
4084 am__isrc=' -I$(srcdir)'
4085 # test to see if srcdir already configured
4086 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004087 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004088 fi
4089fi
4090
4091# test whether we have cygpath
4092if test -z "$CYGPATH_W"; then
4093 if (cygpath --version) >/dev/null 2>/dev/null; then
4094 CYGPATH_W='cygpath -w'
4095 else
4096 CYGPATH_W=echo
4097 fi
4098fi
4099
4100
4101# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004102 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004103 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004104
4105
cristya448bd22011-10-14 12:38:13 +00004106cat >>confdefs.h <<_ACEOF
4107#define PACKAGE "$PACKAGE"
4108_ACEOF
4109
4110
4111cat >>confdefs.h <<_ACEOF
4112#define VERSION "$VERSION"
4113_ACEOF
4114
cristy73bd4a52010-10-05 11:24:23 +00004115# Some tools Automake needs.
4116
4117ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4118
4119
4120AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4121
4122
4123AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4124
4125
4126AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4127
4128
4129MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4130
4131# We need awk for the "check" target. The system "awk" is bad on
4132# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004133# Always define AMTAR for backward compatibility. Yes, it's still used
4134# in the wild :-( We should find a proper way to deprecate it ...
4135AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004136
cristyc3fb77b2012-02-06 01:49:41 +00004137am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004138
4139
4140
4141
4142
cristy3ed852e2009-09-05 21:47:34 +00004143
4144# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004145# Check whether --enable-silent-rules was given.
4146if test "${enable_silent_rules+set}" = set; then :
4147 enableval=$enable_silent_rules;
4148fi
4149
4150case $enable_silent_rules in
4151yes) AM_DEFAULT_VERBOSITY=0;;
4152no) AM_DEFAULT_VERBOSITY=1;;
4153*) AM_DEFAULT_VERBOSITY=0;;
4154esac
cristyc3fb77b2012-02-06 01:49:41 +00004155am_make=${MAKE-make}
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4157$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4158if ${am_cv_make_support_nested_variables+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160else
4161 if $as_echo 'TRUE=$(BAR$(V))
4162BAR0=false
4163BAR1=true
4164V=1
4165am__doit:
4166 @$(TRUE)
4167.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4168 am_cv_make_support_nested_variables=yes
4169else
4170 am_cv_make_support_nested_variables=no
4171fi
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4174$as_echo "$am_cv_make_support_nested_variables" >&6; }
4175if test $am_cv_make_support_nested_variables = yes; then
4176 AM_V='$(V)'
4177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4178else
4179 AM_V=$AM_DEFAULT_VERBOSITY
4180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4181fi
cristy73bd4a52010-10-05 11:24:23 +00004182AM_BACKSLASH='\'
4183
cristy3ed852e2009-09-05 21:47:34 +00004184
4185MAGICK_LIB_VERSION="0x"
4186if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4187 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4188fi
4189MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4190if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4191 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4192fi
4193MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4194if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4195 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4196fi
4197MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4198
4199
4200# Definition used to define MagickLibVersionText in version.h
4201MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4202
4203
4204# Definition used to define MagickLibVersionNumber in version.h
4205MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4206
4207
4208# Regenerate config.status if ChangeLog or version.sh is updated.
4209CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4210
4211
4212PERLMAINCC=$CC
4213
4214MAGICK_CFLAGS=''
4215MAGICK_CPPFLAGS=$CPPFLAGS_USER
4216MAGICK_PCFLAGS=$CPPFLAGS_USER
4217MAGICK_LDFLAGS=''
4218MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004219MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004220
4221#
4222# Evaluate shell variable equivalents to Makefile directory variables
4223#
4224if test "x$prefix" = xNONE; then
4225 prefix=$ac_default_prefix
4226fi
4227# Let make expand exec_prefix.
4228if test "x$exec_prefix" = xNONE; then
4229 exec_prefix='${prefix}'
4230fi
4231
4232#
4233eval "eval PREFIX_DIR=${prefix}"
4234
4235eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4236
4237eval "eval BIN_DIR=$bindir"
4238
4239eval "eval SBIN_DIR=$sbindir"
4240
4241eval "eval LIBEXEC_DIR=$libexecdir"
4242
4243eval "eval DATA_DIR=$datadir"
4244
cristyd55889c2011-03-27 00:50:24 +00004245eval "eval DOC_DIR=$docdir"
4246
cristy3ed852e2009-09-05 21:47:34 +00004247eval "eval SYSCONF_DIR=$sysconfdir"
4248
4249eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4250
4251eval "eval LOCALSTATE_DIR=$localstatedir"
4252
4253eval "eval LIB_DIR=$libdir"
4254
4255eval "eval INCLUDE_DIR=$includedir"
4256
4257eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4258
4259eval "eval INFO_DIR=$infodir"
4260
4261eval "eval MAN_DIR=$mandir"
4262
4263
4264# Get full paths to source and build directories
4265srcdirfull="`cd $srcdir && pwd`"
4266builddir="`pwd`"
4267
4268#
4269# Compute variables useful for running uninstalled software.
4270#
4271MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4272MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4273MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4274MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4275DIRSEP=':'
4276case "${build_os}" in
4277 mingw* )
4278 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4279 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4280 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4281 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4282 DIRSEP=';'
4283 ;;
4284esac
4285case "${host_os}" in
4286 mingw* )
4287 DIRSEP=';'
4288 ;;
4289esac
4290
4291
4292
4293
4294
4295
cristya0b81c32010-01-22 02:54:33 +00004296
4297#
4298# Enable OS features.
4299#
cristy73bd4a52010-10-05 11:24:23 +00004300DEPDIR="${am__leading_dot}deps"
4301
4302ac_config_commands="$ac_config_commands depfiles"
4303
4304
4305am_make=${MAKE-make}
4306cat > confinc << 'END'
4307am__doit:
4308 @echo this is the am__doit target
4309.PHONY: am__doit
4310END
4311# If we don't find an include directive, just comment out the code.
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4313$as_echo_n "checking for style of include used by $am_make... " >&6; }
4314am__include="#"
4315am__quote=
4316_am_result=none
4317# First try GNU make style include.
4318echo "include confinc" > confmf
4319# Ignore all kinds of additional output from `make'.
4320case `$am_make -s -f confmf 2> /dev/null` in #(
4321*the\ am__doit\ target*)
4322 am__include=include
4323 am__quote=
4324 _am_result=GNU
4325 ;;
4326esac
4327# Now try BSD make style include.
4328if test "$am__include" = "#"; then
4329 echo '.include "confinc"' > confmf
4330 case `$am_make -s -f confmf 2> /dev/null` in #(
4331 *the\ am__doit\ target*)
4332 am__include=.include
4333 am__quote="\""
4334 _am_result=BSD
4335 ;;
4336 esac
4337fi
4338
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4341$as_echo "$_am_result" >&6; }
4342rm -f confinc confmf
4343
4344# Check whether --enable-dependency-tracking was given.
4345if test "${enable_dependency_tracking+set}" = set; then :
4346 enableval=$enable_dependency_tracking;
4347fi
4348
4349if test "x$enable_dependency_tracking" != xno; then
4350 am_depcomp="$ac_aux_dir/depcomp"
4351 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004352 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004353fi
4354 if test "x$enable_dependency_tracking" != xno; then
4355 AMDEP_TRUE=
4356 AMDEP_FALSE='#'
4357else
4358 AMDEP_TRUE='#'
4359 AMDEP_FALSE=
4360fi
4361
4362
cristy3ed852e2009-09-05 21:47:34 +00004363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368if test -n "$ac_tool_prefix"; then
4369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4370set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004373if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004374 $as_echo_n "(cached) " >&6
4375else
4376 if test -n "$CC"; then
4377 ac_cv_prog_CC="$CC" # Let the user override the test.
4378else
4379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380for as_dir in $PATH
4381do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004384 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004388 break 2
4389 fi
4390done
cristy8b350f62009-11-15 23:12:43 +00004391 done
cristy3ed852e2009-09-05 21:47:34 +00004392IFS=$as_save_IFS
4393
4394fi
4395fi
4396CC=$ac_cv_prog_CC
4397if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004399$as_echo "$CC" >&6; }
4400else
cristy8b350f62009-11-15 23:12:43 +00004401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004402$as_echo "no" >&6; }
4403fi
4404
4405
4406fi
4407if test -z "$ac_cv_prog_CC"; then
4408 ac_ct_CC=$CC
4409 # Extract the first word of "gcc", so it can be a program name with args.
4410set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004412$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004413if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004414 $as_echo_n "(cached) " >&6
4415else
4416 if test -n "$ac_ct_CC"; then
4417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004424 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004428 break 2
4429 fi
4430done
cristy8b350f62009-11-15 23:12:43 +00004431 done
cristy3ed852e2009-09-05 21:47:34 +00004432IFS=$as_save_IFS
4433
4434fi
4435fi
4436ac_ct_CC=$ac_cv_prog_ac_ct_CC
4437if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo "$ac_ct_CC" >&6; }
4440else
cristy8b350f62009-11-15 23:12:43 +00004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004442$as_echo "no" >&6; }
4443fi
4444
4445 if test "x$ac_ct_CC" = x; then
4446 CC=""
4447 else
4448 case $cross_compiling:$ac_tool_warned in
4449yes:)
cristy8b350f62009-11-15 23:12:43 +00004450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4452ac_tool_warned=yes ;;
4453esac
4454 CC=$ac_ct_CC
4455 fi
4456else
4457 CC="$ac_cv_prog_CC"
4458fi
4459
4460if test -z "$CC"; then
4461 if test -n "$ac_tool_prefix"; then
4462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4463set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004466if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004467 $as_echo_n "(cached) " >&6
4468else
4469 if test -n "$CC"; then
4470 ac_cv_prog_CC="$CC" # Let the user override the test.
4471else
4472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473for as_dir in $PATH
4474do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004481 break 2
4482 fi
4483done
cristy8b350f62009-11-15 23:12:43 +00004484 done
cristy3ed852e2009-09-05 21:47:34 +00004485IFS=$as_save_IFS
4486
4487fi
4488fi
4489CC=$ac_cv_prog_CC
4490if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004492$as_echo "$CC" >&6; }
4493else
cristy8b350f62009-11-15 23:12:43 +00004494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495$as_echo "no" >&6; }
4496fi
4497
4498
4499 fi
4500fi
4501if test -z "$CC"; then
4502 # Extract the first word of "cc", so it can be a program name with args.
4503set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004505$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004506if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004507 $as_echo_n "(cached) " >&6
4508else
4509 if test -n "$CC"; then
4510 ac_cv_prog_CC="$CC" # Let the user override the test.
4511else
4512 ac_prog_rejected=no
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4521 ac_prog_rejected=yes
4522 continue
4523 fi
4524 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004526 break 2
4527 fi
4528done
cristy8b350f62009-11-15 23:12:43 +00004529 done
cristy3ed852e2009-09-05 21:47:34 +00004530IFS=$as_save_IFS
4531
4532if test $ac_prog_rejected = yes; then
4533 # We found a bogon in the path, so make sure we never use it.
4534 set dummy $ac_cv_prog_CC
4535 shift
4536 if test $# != 0; then
4537 # We chose a different compiler from the bogus one.
4538 # However, it has the same basename, so the bogon will be chosen
4539 # first if we set CC to just the basename; use the full file name.
4540 shift
4541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4542 fi
4543fi
4544fi
4545fi
4546CC=$ac_cv_prog_CC
4547if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549$as_echo "$CC" >&6; }
4550else
cristy8b350f62009-11-15 23:12:43 +00004551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004552$as_echo "no" >&6; }
4553fi
4554
4555
4556fi
4557if test -z "$CC"; then
4558 if test -n "$ac_tool_prefix"; then
4559 for ac_prog in cl.exe
4560 do
4561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004564$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004565if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004566 $as_echo_n "(cached) " >&6
4567else
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4570else
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004576 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004580 break 2
4581 fi
4582done
cristy8b350f62009-11-15 23:12:43 +00004583 done
cristy3ed852e2009-09-05 21:47:34 +00004584IFS=$as_save_IFS
4585
4586fi
4587fi
4588CC=$ac_cv_prog_CC
4589if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004591$as_echo "$CC" >&6; }
4592else
cristy8b350f62009-11-15 23:12:43 +00004593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594$as_echo "no" >&6; }
4595fi
4596
4597
4598 test -n "$CC" && break
4599 done
4600fi
4601if test -z "$CC"; then
4602 ac_ct_CC=$CC
4603 for ac_prog in cl.exe
4604do
4605 # Extract the first word of "$ac_prog", so it can be a program name with args.
4606set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004609if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$ac_ct_CC"; then
4613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004620 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +00004621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004624 break 2
4625 fi
4626done
cristy8b350f62009-11-15 23:12:43 +00004627 done
cristy3ed852e2009-09-05 21:47:34 +00004628IFS=$as_save_IFS
4629
4630fi
4631fi
4632ac_ct_CC=$ac_cv_prog_ac_ct_CC
4633if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004635$as_echo "$ac_ct_CC" >&6; }
4636else
cristy8b350f62009-11-15 23:12:43 +00004637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004638$as_echo "no" >&6; }
4639fi
4640
4641
4642 test -n "$ac_ct_CC" && break
4643done
4644
4645 if test "x$ac_ct_CC" = x; then
4646 CC=""
4647 else
4648 case $cross_compiling:$ac_tool_warned in
4649yes:)
cristy8b350f62009-11-15 23:12:43 +00004650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4652ac_tool_warned=yes ;;
4653esac
4654 CC=$ac_ct_CC
4655 fi
4656fi
4657
4658fi
4659
4660
cristy8b350f62009-11-15 23:12:43 +00004661test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004663as_fn_error $? "no acceptable C compiler found in \$PATH
4664See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004665
4666# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004667$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004668set X $ac_compile
4669ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004670for ac_option in --version -v -V -qversion; do
4671 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004672case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
cristy8b350f62009-11-15 23:12:43 +00004676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677$as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004679 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004680 if test -s conftest.err; then
4681 sed '10a\
4682... rest of stderr output deleted ...
4683 10q' conftest.err >conftest.er1
4684 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004685 fi
cristycd4c5312009-11-22 01:19:08 +00004686 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4688 test $ac_status = 0; }
4689done
cristy3ed852e2009-09-05 21:47:34 +00004690
cristy8b350f62009-11-15 23:12:43 +00004691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004692/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004693
cristy3ed852e2009-09-05 21:47:34 +00004694int
4695main ()
4696{
4697
4698 ;
4699 return 0;
4700}
4701_ACEOF
4702ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004703ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004704# Try to create an executable without -o first, disregard a.out.
4705# It will help us diagnose broken compilers, and finding out an intuition
4706# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4708$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004709ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4710
4711# The possible output files:
4712ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4713
4714ac_rmfiles=
4715for ac_file in $ac_files
4716do
4717 case $ac_file in
4718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4719 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4720 esac
4721done
4722rm -f $ac_rmfiles
4723
cristy8b350f62009-11-15 23:12:43 +00004724if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
cristy8b350f62009-11-15 23:12:43 +00004729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4730$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004731 (eval "$ac_link_default") 2>&5
4732 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004735 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4736# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4737# in a Makefile. We should not override ac_cv_exeext if it was cached,
4738# so that the user can short-circuit this test for compilers unknown to
4739# Autoconf.
4740for ac_file in $ac_files ''
4741do
4742 test -f "$ac_file" || continue
4743 case $ac_file in
4744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4745 ;;
4746 [ab].out )
4747 # We found the default executable, but exeext='' is most
4748 # certainly right.
4749 break;;
4750 *.* )
cristy8b350f62009-11-15 23:12:43 +00004751 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004752 then :; else
4753 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4754 fi
4755 # We set ac_cv_exeext here because the later test for it is not
4756 # safe: cross compilers may not add the suffix if given an `-o'
4757 # argument, so we may need to know it at that point already.
4758 # Even if this section looks crufty: it has the advantage of
4759 # actually working.
4760 break;;
4761 * )
4762 break;;
4763 esac
4764done
4765test "$ac_cv_exeext" = no && ac_cv_exeext=
4766
4767else
4768 ac_file=''
4769fi
cristy8b350f62009-11-15 23:12:43 +00004770if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004774sed 's/^/| /' conftest.$ac_ext >&5
4775
cristy8b350f62009-11-15 23:12:43 +00004776{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004778as_fn_error 77 "C compiler cannot create executables
4779See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004780else
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004783fi
cristycd4c5312009-11-22 01:19:08 +00004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4785$as_echo_n "checking for C compiler default output file name... " >&6; }
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4787$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004788ac_exeext=$ac_cv_exeext
4789
cristycd4c5312009-11-22 01:19:08 +00004790rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004791ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004793$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004794if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004795case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798esac
cristy8b350f62009-11-15 23:12:43 +00004799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4800$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004801 (eval "$ac_link") 2>&5
4802 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4804 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004805 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4806# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4807# work properly (i.e., refer to `conftest.exe'), while it won't with
4808# `rm'.
4809for ac_file in conftest.exe conftest conftest.*; do
4810 test -f "$ac_file" || continue
4811 case $ac_file in
4812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4813 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4814 break;;
4815 * ) break;;
4816 esac
4817done
4818else
cristy8b350f62009-11-15 23:12:43 +00004819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004820$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004821as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4822See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004823fi
cristycd4c5312009-11-22 01:19:08 +00004824rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo "$ac_cv_exeext" >&6; }
4827
4828rm -f conftest.$ac_ext
4829EXEEXT=$ac_cv_exeext
4830ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h. */
4833#include <stdio.h>
4834int
4835main ()
4836{
4837FILE *f = fopen ("conftest.out", "w");
4838 return ferror (f) || fclose (f) != 0;
4839
4840 ;
4841 return 0;
4842}
4843_ACEOF
4844ac_clean_files="$ac_clean_files conftest.out"
4845# Check that the compiler produces executables we can run. If not, either
4846# the compiler is broken, or we cross compile.
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4848$as_echo_n "checking whether we are cross compiling... " >&6; }
4849if test "$cross_compiling" != yes; then
4850 { { ac_try="$ac_link"
4851case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854esac
4855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4856$as_echo "$ac_try_echo"; } >&5
4857 (eval "$ac_link") 2>&5
4858 ac_status=$?
4859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }
4861 if { ac_try='./conftest$ac_cv_exeext'
4862 { { case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
4866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867$as_echo "$ac_try_echo"; } >&5
4868 (eval "$ac_try") 2>&5
4869 ac_status=$?
4870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }; }; then
4872 cross_compiling=no
4873 else
4874 if test "$cross_compiling" = maybe; then
4875 cross_compiling=yes
4876 else
4877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004879as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004880If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004881See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004882 fi
4883 fi
4884fi
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4886$as_echo "$cross_compiling" >&6; }
4887
4888rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4889ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004891$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004892if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004893 $as_echo_n "(cached) " >&6
4894else
cristy8b350f62009-11-15 23:12:43 +00004895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004896/* end confdefs.h. */
4897
4898int
4899main ()
4900{
4901
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004907if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004908case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
cristy8b350f62009-11-15 23:12:43 +00004912eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004914 (eval "$ac_compile") 2>&5
4915 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4917 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004918 for ac_file in conftest.o conftest.obj conftest.*; do
4919 test -f "$ac_file" || continue;
4920 case $ac_file in
4921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4923 break;;
4924 esac
4925done
4926else
4927 $as_echo "$as_me: failed program was:" >&5
4928sed 's/^/| /' conftest.$ac_ext >&5
4929
cristy8b350f62009-11-15 23:12:43 +00004930{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004932as_fn_error $? "cannot compute suffix of object files: cannot compile
4933See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004934fi
cristy3ed852e2009-09-05 21:47:34 +00004935rm -f conftest.$ac_cv_objext conftest.$ac_ext
4936fi
cristy8b350f62009-11-15 23:12:43 +00004937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004938$as_echo "$ac_cv_objext" >&6; }
4939OBJEXT=$ac_cv_objext
4940ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004942$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004943if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004944 $as_echo_n "(cached) " >&6
4945else
cristy8b350f62009-11-15 23:12:43 +00004946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004947/* end confdefs.h. */
4948
4949int
4950main ()
4951{
4952#ifndef __GNUC__
4953 choke me
4954#endif
4955
4956 ;
4957 return 0;
4958}
4959_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004960if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004961 ac_compiler_gnu=yes
4962else
cristy8b350f62009-11-15 23:12:43 +00004963 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00004964fi
cristy3ed852e2009-09-05 21:47:34 +00004965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966ac_cv_c_compiler_gnu=$ac_compiler_gnu
4967
4968fi
cristy8b350f62009-11-15 23:12:43 +00004969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00004970$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4971if test $ac_compiler_gnu = yes; then
4972 GCC=yes
4973else
4974 GCC=
4975fi
4976ac_test_CFLAGS=${CFLAGS+set}
4977ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004980if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 $as_echo_n "(cached) " >&6
4982else
4983 ac_save_c_werror_flag=$ac_c_werror_flag
4984 ac_c_werror_flag=yes
4985 ac_cv_prog_cc_g=no
4986 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00004987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004988/* end confdefs.h. */
4989
4990int
4991main ()
4992{
4993
4994 ;
4995 return 0;
4996}
4997_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004998if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004999 ac_cv_prog_cc_g=yes
5000else
cristy8b350f62009-11-15 23:12:43 +00005001 CFLAGS=""
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005003/* end confdefs.h. */
5004
5005int
5006main ()
5007{
5008
5009 ;
5010 return 0;
5011}
5012_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005013if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005014
cristy8b350f62009-11-15 23:12:43 +00005015else
5016 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005017 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005019/* end confdefs.h. */
5020
5021int
5022main ()
5023{
5024
5025 ;
5026 return 0;
5027}
5028_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005029if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005030 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005031fi
cristy3ed852e2009-09-05 21:47:34 +00005032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033fi
cristy3ed852e2009-09-05 21:47:34 +00005034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035fi
cristy3ed852e2009-09-05 21:47:34 +00005036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 ac_c_werror_flag=$ac_save_c_werror_flag
5038fi
cristy8b350f62009-11-15 23:12:43 +00005039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005040$as_echo "$ac_cv_prog_cc_g" >&6; }
5041if test "$ac_test_CFLAGS" = set; then
5042 CFLAGS=$ac_save_CFLAGS
5043elif test $ac_cv_prog_cc_g = yes; then
5044 if test "$GCC" = yes; then
5045 CFLAGS="-g -O2"
5046 else
5047 CFLAGS="-g"
5048 fi
5049else
5050 if test "$GCC" = yes; then
5051 CFLAGS="-O2"
5052 else
5053 CFLAGS=
5054 fi
5055fi
cristy8b350f62009-11-15 23:12:43 +00005056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005057$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005058if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005059 $as_echo_n "(cached) " >&6
5060else
5061 ac_cv_prog_cc_c89=no
5062ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005064/* end confdefs.h. */
5065#include <stdarg.h>
5066#include <stdio.h>
5067#include <sys/types.h>
5068#include <sys/stat.h>
5069/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5070struct buf { int x; };
5071FILE * (*rcsopen) (struct buf *, struct stat *, int);
5072static char *e (p, i)
5073 char **p;
5074 int i;
5075{
5076 return p[i];
5077}
5078static char *f (char * (*g) (char **, int), char **p, ...)
5079{
5080 char *s;
5081 va_list v;
5082 va_start (v,p);
5083 s = g (p, va_arg (v,int));
5084 va_end (v);
5085 return s;
5086}
5087
5088/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5089 function prototypes and stuff, but not '\xHH' hex character constants.
5090 These don't provoke an error unfortunately, instead are silently treated
5091 as 'x'. The following induces an error, until -std is added to get
5092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5093 array size at least. It's necessary to write '\x00'==0 to get something
5094 that's true only with -std. */
5095int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5096
5097/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5098 inside strings and character constants. */
5099#define FOO(x) 'x'
5100int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5101
5102int test (int i, double x);
5103struct s1 {int (*f) (int a);};
5104struct s2 {int (*f) (double a);};
5105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5106int argc;
5107char **argv;
5108int
5109main ()
5110{
5111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5112 ;
5113 return 0;
5114}
5115_ACEOF
5116for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5118do
5119 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005120 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005121 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005122fi
cristy3ed852e2009-09-05 21:47:34 +00005123rm -f core conftest.err conftest.$ac_objext
5124 test "x$ac_cv_prog_cc_c89" != "xno" && break
5125done
5126rm -f conftest.$ac_ext
5127CC=$ac_save_CC
5128
5129fi
5130# AC_CACHE_VAL
5131case "x$ac_cv_prog_cc_c89" in
5132 x)
cristy8b350f62009-11-15 23:12:43 +00005133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005134$as_echo "none needed" >&6; } ;;
5135 xno)
cristy8b350f62009-11-15 23:12:43 +00005136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005137$as_echo "unsupported" >&6; } ;;
5138 *)
5139 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5142esac
cristy8b350f62009-11-15 23:12:43 +00005143if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005144
cristy8b350f62009-11-15 23:12:43 +00005145fi
cristy3ed852e2009-09-05 21:47:34 +00005146
5147ac_ext=c
5148ac_cpp='$CPP $CPPFLAGS'
5149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005152
cristy73bd4a52010-10-05 11:24:23 +00005153depcc="$CC" am_compiler_list=
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5156$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005157if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005158 $as_echo_n "(cached) " >&6
5159else
5160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5161 # We make a subdir and do the tests there. Otherwise we can end up
5162 # making bogus files that we don't know about and never remove. For
5163 # instance it was reported that on HP-UX the gcc test will end up
5164 # making a dummy file named `D' -- because `-MD' means `put the output
5165 # in D'.
cristy7247bba2012-02-05 16:37:27 +00005166 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005167 mkdir conftest.dir
5168 # Copy depcomp to subdir because otherwise we won't find it if we're
5169 # using a relative directory.
5170 cp "$am_depcomp" conftest.dir
5171 cd conftest.dir
5172 # We will build objects and dependencies in a subdirectory because
5173 # it helps to detect inapplicable dependency modes. For instance
5174 # both Tru64's cc and ICC support -MD to output dependencies as a
5175 # side effect of compilation, but ICC will put the dependencies in
5176 # the current directory while Tru64 will put them in the object
5177 # directory.
5178 mkdir sub
5179
5180 am_cv_CC_dependencies_compiler_type=none
5181 if test "$am_compiler_list" = ""; then
5182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5183 fi
5184 am__universal=false
5185 case " $depcc " in #(
5186 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5187 esac
5188
5189 for depmode in $am_compiler_list; do
5190 # Setup a source with many dependencies, because some compilers
5191 # like to wrap large dependency lists on column 80 (with \), and
5192 # we should not choose a depcomp mode which is confused by this.
5193 #
5194 # We need to recreate these files for each test, as the compiler may
5195 # overwrite some of them when testing with obscure command lines.
5196 # This happens at least with the AIX C compiler.
5197 : > sub/conftest.c
5198 for i in 1 2 3 4 5 6; do
5199 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5200 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5201 # Solaris 8's {/usr,}/bin/sh.
5202 touch sub/conftst$i.h
5203 done
5204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5205
5206 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5207 # mode. It turns out that the SunPro C++ compiler does not properly
5208 # handle `-M -o', and we need to detect this. Also, some Intel
5209 # versions had trouble with output in subdirs
5210 am__obj=sub/conftest.${OBJEXT-o}
5211 am__minus_obj="-o $am__obj"
5212 case $depmode in
5213 gcc)
5214 # This depmode causes a compiler race in universal mode.
5215 test "$am__universal" = false || continue
5216 ;;
5217 nosideeffect)
5218 # after this tag, mechanisms are not by side-effect, so they'll
5219 # only be used when explicitly requested
5220 if test "x$enable_dependency_tracking" = xyes; then
5221 continue
5222 else
5223 break
5224 fi
5225 ;;
cristy7247bba2012-02-05 16:37:27 +00005226 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00005227 # This compiler won't grok `-c -o', but also, the minuso test has
5228 # not run yet. These depmodes are late enough in the game, and
5229 # so weak that their functioning should not be impacted.
5230 am__obj=conftest.${OBJEXT-o}
5231 am__minus_obj=
5232 ;;
5233 none) break ;;
5234 esac
5235 if depmode=$depmode \
5236 source=sub/conftest.c object=$am__obj \
5237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5239 >/dev/null 2>conftest.err &&
5240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5244 # icc doesn't choke on unknown options, it will just issue warnings
5245 # or remarks (even with -Werror). So we grep stderr for any message
5246 # that says an option was ignored or not supported.
5247 # When given -MP, icc 7.0 and 7.1 complain thusly:
5248 # icc: Command line warning: ignoring option '-M'; no argument required
5249 # The diagnosis changed in icc 8.0:
5250 # icc: Command line remark: option '-MP' not supported
5251 if (grep 'ignoring option' conftest.err ||
5252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5253 am_cv_CC_dependencies_compiler_type=$depmode
5254 break
5255 fi
5256 fi
5257 done
5258
5259 cd ..
5260 rm -rf conftest.dir
5261else
5262 am_cv_CC_dependencies_compiler_type=none
5263fi
5264
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5269
5270 if
5271 test "x$enable_dependency_tracking" != xno \
5272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5273 am__fastdepCC_TRUE=
5274 am__fastdepCC_FALSE='#'
5275else
5276 am__fastdepCC_TRUE='#'
5277 am__fastdepCC_FALSE=
5278fi
5279
5280
cristy3ed852e2009-09-05 21:47:34 +00005281
cristya0b81c32010-01-22 02:54:33 +00005282ac_ext=c
5283ac_cpp='$CPP $CPPFLAGS'
5284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5288$as_echo_n "checking how to run the C preprocessor... " >&6; }
5289# On Suns, sometimes $CPP names a directory.
5290if test -n "$CPP" && test -d "$CPP"; then
5291 CPP=
5292fi
5293if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005294 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005295 $as_echo_n "(cached) " >&6
5296else
5297 # Double quotes because CPP needs to be expanded
5298 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5299 do
5300 ac_preproc_ok=false
5301for ac_c_preproc_warn_flag in '' yes
5302do
5303 # Use a header file that comes with gcc, so configuring glibc
5304 # with a fresh cross-compiler works.
5305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5306 # <limits.h> exists even on freestanding compilers.
5307 # On the NeXT, cc -E runs the code through the compiler's parser,
5308 # not just through cpp. "Syntax error" is here to catch this case.
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310/* end confdefs.h. */
5311#ifdef __STDC__
5312# include <limits.h>
5313#else
5314# include <assert.h>
5315#endif
5316 Syntax error
5317_ACEOF
5318if ac_fn_c_try_cpp "$LINENO"; then :
5319
5320else
5321 # Broken: fails on valid input.
5322continue
5323fi
cristyda16f162011-02-19 23:52:17 +00005324rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005325
5326 # OK, works on sane cases. Now check whether nonexistent headers
5327 # can be detected and how.
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329/* end confdefs.h. */
5330#include <ac_nonexistent.h>
5331_ACEOF
5332if ac_fn_c_try_cpp "$LINENO"; then :
5333 # Broken: success on invalid input.
5334continue
5335else
5336 # Passes both tests.
5337ac_preproc_ok=:
5338break
5339fi
cristyda16f162011-02-19 23:52:17 +00005340rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005341
5342done
5343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005344rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005345if $ac_preproc_ok; then :
5346 break
5347fi
5348
5349 done
5350 ac_cv_prog_CPP=$CPP
5351
5352fi
5353 CPP=$ac_cv_prog_CPP
5354else
5355 ac_cv_prog_CPP=$CPP
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5358$as_echo "$CPP" >&6; }
5359ac_preproc_ok=false
5360for ac_c_preproc_warn_flag in '' yes
5361do
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#ifdef __STDC__
5371# include <limits.h>
5372#else
5373# include <assert.h>
5374#endif
5375 Syntax error
5376_ACEOF
5377if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379else
5380 # Broken: fails on valid input.
5381continue
5382fi
cristyda16f162011-02-19 23:52:17 +00005383rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005384
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388/* end confdefs.h. */
5389#include <ac_nonexistent.h>
5390_ACEOF
5391if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5393continue
5394else
5395 # Passes both tests.
5396ac_preproc_ok=:
5397break
5398fi
cristyda16f162011-02-19 23:52:17 +00005399rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005400
5401done
5402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005403rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005404if $ac_preproc_ok; then :
5405
5406else
5407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005409as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5410See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005411fi
5412
5413ac_ext=c
5414ac_cpp='$CPP $CPPFLAGS'
5415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417ac_compiler_gnu=$ac_cv_c_compiler_gnu
5418
5419
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5421$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005422if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005423 $as_echo_n "(cached) " >&6
5424else
5425 if test -z "$GREP"; then
5426 ac_path_GREP_found=false
5427 # Loop through the user's path and test for each of PROGNAME-LIST
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_prog in grep ggrep; do
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5436 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5437# Check for GNU ac_path_GREP and select it if it is found.
5438 # Check for GNU $ac_path_GREP
5439case `"$ac_path_GREP" --version 2>&1` in
5440*GNU*)
5441 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5442*)
5443 ac_count=0
5444 $as_echo_n 0123456789 >"conftest.in"
5445 while :
5446 do
5447 cat "conftest.in" "conftest.in" >"conftest.tmp"
5448 mv "conftest.tmp" "conftest.in"
5449 cp "conftest.in" "conftest.nl"
5450 $as_echo 'GREP' >> "conftest.nl"
5451 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5453 as_fn_arith $ac_count + 1 && ac_count=$as_val
5454 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5455 # Best one so far, save it but keep looking for a better one
5456 ac_cv_path_GREP="$ac_path_GREP"
5457 ac_path_GREP_max=$ac_count
5458 fi
5459 # 10*(2^10) chars as input seems more than enough
5460 test $ac_count -gt 10 && break
5461 done
5462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5463esac
5464
5465 $ac_path_GREP_found && break 3
5466 done
5467 done
5468 done
5469IFS=$as_save_IFS
5470 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005471 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005472 fi
5473else
5474 ac_cv_path_GREP=$GREP
5475fi
5476
5477fi
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5479$as_echo "$ac_cv_path_GREP" >&6; }
5480 GREP="$ac_cv_path_GREP"
5481
5482
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5484$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005485if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005486 $as_echo_n "(cached) " >&6
5487else
5488 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5489 then ac_cv_path_EGREP="$GREP -E"
5490 else
5491 if test -z "$EGREP"; then
5492 ac_path_EGREP_found=false
5493 # Loop through the user's path and test for each of PROGNAME-LIST
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_prog in egrep; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5502 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5503# Check for GNU ac_path_EGREP and select it if it is found.
5504 # Check for GNU $ac_path_EGREP
5505case `"$ac_path_EGREP" --version 2>&1` in
5506*GNU*)
5507 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5508*)
5509 ac_count=0
5510 $as_echo_n 0123456789 >"conftest.in"
5511 while :
5512 do
5513 cat "conftest.in" "conftest.in" >"conftest.tmp"
5514 mv "conftest.tmp" "conftest.in"
5515 cp "conftest.in" "conftest.nl"
5516 $as_echo 'EGREP' >> "conftest.nl"
5517 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5519 as_fn_arith $ac_count + 1 && ac_count=$as_val
5520 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5521 # Best one so far, save it but keep looking for a better one
5522 ac_cv_path_EGREP="$ac_path_EGREP"
5523 ac_path_EGREP_max=$ac_count
5524 fi
5525 # 10*(2^10) chars as input seems more than enough
5526 test $ac_count -gt 10 && break
5527 done
5528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5529esac
5530
5531 $ac_path_EGREP_found && break 3
5532 done
5533 done
5534 done
5535IFS=$as_save_IFS
5536 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005537 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005538 fi
5539else
5540 ac_cv_path_EGREP=$EGREP
5541fi
5542
5543 fi
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5546$as_echo "$ac_cv_path_EGREP" >&6; }
5547 EGREP="$ac_cv_path_EGREP"
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5551$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005552if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005553 $as_echo_n "(cached) " >&6
5554else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h. */
5557#include <stdlib.h>
5558#include <stdarg.h>
5559#include <string.h>
5560#include <float.h>
5561
5562int
5563main ()
5564{
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5570if ac_fn_c_try_compile "$LINENO"; then :
5571 ac_cv_header_stdc=yes
5572else
5573 ac_cv_header_stdc=no
5574fi
5575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576
5577if test $ac_cv_header_stdc = yes; then
5578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h. */
5581#include <string.h>
5582
5583_ACEOF
5584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5585 $EGREP "memchr" >/dev/null 2>&1; then :
5586
5587else
5588 ac_cv_header_stdc=no
5589fi
5590rm -f conftest*
5591
5592fi
5593
5594if test $ac_cv_header_stdc = yes; then
5595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597/* end confdefs.h. */
5598#include <stdlib.h>
5599
5600_ACEOF
5601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5602 $EGREP "free" >/dev/null 2>&1; then :
5603
5604else
5605 ac_cv_header_stdc=no
5606fi
5607rm -f conftest*
5608
5609fi
5610
5611if test $ac_cv_header_stdc = yes; then
5612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5613 if test "$cross_compiling" = yes; then :
5614 :
5615else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618#include <ctype.h>
5619#include <stdlib.h>
5620#if ((' ' & 0x0FF) == 0x020)
5621# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5622# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5623#else
5624# define ISLOWER(c) \
5625 (('a' <= (c) && (c) <= 'i') \
5626 || ('j' <= (c) && (c) <= 'r') \
5627 || ('s' <= (c) && (c) <= 'z'))
5628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5629#endif
5630
5631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5632int
5633main ()
5634{
5635 int i;
5636 for (i = 0; i < 256; i++)
5637 if (XOR (islower (i), ISLOWER (i))
5638 || toupper (i) != TOUPPER (i))
5639 return 2;
5640 return 0;
5641}
5642_ACEOF
5643if ac_fn_c_try_run "$LINENO"; then :
5644
5645else
5646 ac_cv_header_stdc=no
5647fi
5648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5649 conftest.$ac_objext conftest.beam conftest.$ac_ext
5650fi
5651
5652fi
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5655$as_echo "$ac_cv_header_stdc" >&6; }
5656if test $ac_cv_header_stdc = yes; then
5657
5658$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5659
5660fi
5661
5662# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5663for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5664 inttypes.h stdint.h unistd.h
5665do :
5666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5667ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5668"
cristy98dddb52010-11-04 00:30:15 +00005669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005670 cat >>confdefs.h <<_ACEOF
5671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5672_ACEOF
5673
5674fi
5675
5676done
5677
5678
5679
5680 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 +00005681if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005682 MINIX=yes
5683else
5684 MINIX=
5685fi
5686
5687
5688 if test "$MINIX" = yes; then
5689
5690$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5691
5692
5693$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5694
5695
5696$as_echo "#define _MINIX 1" >>confdefs.h
5697
5698 fi
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5702$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005703if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005704 $as_echo_n "(cached) " >&6
5705else
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707/* end confdefs.h. */
5708
5709# define __EXTENSIONS__ 1
5710 $ac_includes_default
5711int
5712main ()
5713{
5714
5715 ;
5716 return 0;
5717}
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
5720 ac_cv_safe_to_define___extensions__=yes
5721else
5722 ac_cv_safe_to_define___extensions__=no
5723fi
5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5727$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5728 test $ac_cv_safe_to_define___extensions__ = yes &&
5729 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5730
5731 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5732
5733 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5734
5735 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5736
5737 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5738
5739
5740
5741# Check for programs
5742ac_ext=c
5743ac_cpp='$CPP $CPPFLAGS'
5744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746ac_compiler_gnu=$ac_cv_c_compiler_gnu
5747if test -n "$ac_tool_prefix"; then
5748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5749set dummy ${ac_tool_prefix}gcc; ac_word=$2
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005752if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005753 $as_echo_n "(cached) " >&6
5754else
5755 if test -n "$CC"; then
5756 ac_cv_prog_CC="$CC" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769done
5770 done
5771IFS=$as_save_IFS
5772
5773fi
5774fi
5775CC=$ac_cv_prog_CC
5776if test -n "$CC"; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5778$as_echo "$CC" >&6; }
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782fi
5783
5784
5785fi
5786if test -z "$ac_cv_prog_CC"; then
5787 ac_ct_CC=$CC
5788 # Extract the first word of "gcc", so it can be a program name with args.
5789set dummy gcc; ac_word=$2
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005792if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005793 $as_echo_n "(cached) " >&6
5794else
5795 if test -n "$ac_ct_CC"; then
5796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5805 ac_cv_prog_ac_ct_CC="gcc"
5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810 done
5811IFS=$as_save_IFS
5812
5813fi
5814fi
5815ac_ct_CC=$ac_cv_prog_ac_ct_CC
5816if test -n "$ac_ct_CC"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5818$as_echo "$ac_ct_CC" >&6; }
5819else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821$as_echo "no" >&6; }
5822fi
5823
5824 if test "x$ac_ct_CC" = x; then
5825 CC=""
5826 else
5827 case $cross_compiling:$ac_tool_warned in
5828yes:)
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5831ac_tool_warned=yes ;;
5832esac
5833 CC=$ac_ct_CC
5834 fi
5835else
5836 CC="$ac_cv_prog_CC"
5837fi
5838
5839if test -z "$CC"; then
5840 if test -n "$ac_tool_prefix"; then
5841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5842set dummy ${ac_tool_prefix}cc; ac_word=$2
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005845if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005846 $as_echo_n "(cached) " >&6
5847else
5848 if test -n "$CC"; then
5849 ac_cv_prog_CC="$CC" # Let the user override the test.
5850else
5851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852for as_dir in $PATH
5853do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_CC="${ac_tool_prefix}cc"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862done
5863 done
5864IFS=$as_save_IFS
5865
5866fi
5867fi
5868CC=$ac_cv_prog_CC
5869if test -n "$CC"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5871$as_echo "$CC" >&6; }
5872else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878 fi
5879fi
5880if test -z "$CC"; then
5881 # Extract the first word of "cc", so it can be a program name with args.
5882set dummy cc; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005885if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005886 $as_echo_n "(cached) " >&6
5887else
5888 if test -n "$CC"; then
5889 ac_cv_prog_CC="$CC" # Let the user override the test.
5890else
5891 ac_prog_rejected=no
5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893for as_dir in $PATH
5894do
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 for ac_exec_ext in '' $ac_executable_extensions; do
5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5900 ac_prog_rejected=yes
5901 continue
5902 fi
5903 ac_cv_prog_CC="cc"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908 done
5909IFS=$as_save_IFS
5910
5911if test $ac_prog_rejected = yes; then
5912 # We found a bogon in the path, so make sure we never use it.
5913 set dummy $ac_cv_prog_CC
5914 shift
5915 if test $# != 0; then
5916 # We chose a different compiler from the bogus one.
5917 # However, it has the same basename, so the bogon will be chosen
5918 # first if we set CC to just the basename; use the full file name.
5919 shift
5920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5921 fi
5922fi
5923fi
5924fi
5925CC=$ac_cv_prog_CC
5926if test -n "$CC"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5928$as_echo "$CC" >&6; }
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932fi
5933
5934
5935fi
5936if test -z "$CC"; then
5937 if test -n "$ac_tool_prefix"; then
5938 for ac_prog in cl.exe
5939 do
5940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005944if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005945 $as_echo_n "(cached) " >&6
5946else
5947 if test -n "$CC"; then
5948 ac_cv_prog_CC="$CC" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5960 fi
5961done
5962 done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967CC=$ac_cv_prog_CC
5968if test -n "$CC"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5970$as_echo "$CC" >&6; }
5971else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976
5977 test -n "$CC" && break
5978 done
5979fi
5980if test -z "$CC"; then
5981 ac_ct_CC=$CC
5982 for ac_prog in cl.exe
5983do
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985set dummy $ac_prog; ac_word=$2
5986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005988if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005989 $as_echo_n "(cached) " >&6
5990else
5991 if test -n "$ac_ct_CC"; then
5992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_CC="$ac_prog"
6002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006 done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011ac_ct_CC=$ac_cv_prog_ac_ct_CC
6012if test -n "$ac_ct_CC"; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6014$as_echo "$ac_ct_CC" >&6; }
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017$as_echo "no" >&6; }
6018fi
6019
6020
6021 test -n "$ac_ct_CC" && break
6022done
6023
6024 if test "x$ac_ct_CC" = x; then
6025 CC=""
6026 else
6027 case $cross_compiling:$ac_tool_warned in
6028yes:)
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6031ac_tool_warned=yes ;;
6032esac
6033 CC=$ac_ct_CC
6034 fi
6035fi
6036
6037fi
6038
6039
6040test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006042as_fn_error $? "no acceptable C compiler found in \$PATH
6043See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006044
6045# Provide some information about the compiler.
6046$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6047set X $ac_compile
6048ac_compiler=$2
6049for ac_option in --version -v -V -qversion; do
6050 { { ac_try="$ac_compiler $ac_option >&5"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6056$as_echo "$ac_try_echo"; } >&5
6057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6058 ac_status=$?
6059 if test -s conftest.err; then
6060 sed '10a\
6061... rest of stderr output deleted ...
6062 10q' conftest.err >conftest.er1
6063 cat conftest.er1 >&5
6064 fi
6065 rm -f conftest.er1 conftest.err
6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6067 test $ac_status = 0; }
6068done
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6071$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006072if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006073 $as_echo_n "(cached) " >&6
6074else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077
6078int
6079main ()
6080{
6081#ifndef __GNUC__
6082 choke me
6083#endif
6084
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_compile "$LINENO"; then :
6090 ac_compiler_gnu=yes
6091else
6092 ac_compiler_gnu=no
6093fi
6094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095ac_cv_c_compiler_gnu=$ac_compiler_gnu
6096
6097fi
6098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6099$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6100if test $ac_compiler_gnu = yes; then
6101 GCC=yes
6102else
6103 GCC=
6104fi
6105ac_test_CFLAGS=${CFLAGS+set}
6106ac_save_CFLAGS=$CFLAGS
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6108$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006109if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006110 $as_echo_n "(cached) " >&6
6111else
6112 ac_save_c_werror_flag=$ac_c_werror_flag
6113 ac_c_werror_flag=yes
6114 ac_cv_prog_cc_g=no
6115 CFLAGS="-g"
6116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h. */
6118
6119int
6120main ()
6121{
6122
6123 ;
6124 return 0;
6125}
6126_ACEOF
6127if ac_fn_c_try_compile "$LINENO"; then :
6128 ac_cv_prog_cc_g=yes
6129else
6130 CFLAGS=""
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h. */
6133
6134int
6135main ()
6136{
6137
6138 ;
6139 return 0;
6140}
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"; then :
6143
6144else
6145 ac_c_werror_flag=$ac_save_c_werror_flag
6146 CFLAGS="-g"
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h. */
6149
6150int
6151main ()
6152{
6153
6154 ;
6155 return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_compile "$LINENO"; then :
6159 ac_cv_prog_cc_g=yes
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162fi
6163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164fi
6165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 ac_c_werror_flag=$ac_save_c_werror_flag
6167fi
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6169$as_echo "$ac_cv_prog_cc_g" >&6; }
6170if test "$ac_test_CFLAGS" = set; then
6171 CFLAGS=$ac_save_CFLAGS
6172elif test $ac_cv_prog_cc_g = yes; then
6173 if test "$GCC" = yes; then
6174 CFLAGS="-g -O2"
6175 else
6176 CFLAGS="-g"
6177 fi
6178else
6179 if test "$GCC" = yes; then
6180 CFLAGS="-O2"
6181 else
6182 CFLAGS=
6183 fi
6184fi
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6186$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006187if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006188 $as_echo_n "(cached) " >&6
6189else
6190 ac_cv_prog_cc_c89=no
6191ac_save_CC=$CC
6192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193/* end confdefs.h. */
6194#include <stdarg.h>
6195#include <stdio.h>
6196#include <sys/types.h>
6197#include <sys/stat.h>
6198/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6199struct buf { int x; };
6200FILE * (*rcsopen) (struct buf *, struct stat *, int);
6201static char *e (p, i)
6202 char **p;
6203 int i;
6204{
6205 return p[i];
6206}
6207static char *f (char * (*g) (char **, int), char **p, ...)
6208{
6209 char *s;
6210 va_list v;
6211 va_start (v,p);
6212 s = g (p, va_arg (v,int));
6213 va_end (v);
6214 return s;
6215}
6216
6217/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6218 function prototypes and stuff, but not '\xHH' hex character constants.
6219 These don't provoke an error unfortunately, instead are silently treated
6220 as 'x'. The following induces an error, until -std is added to get
6221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6222 array size at least. It's necessary to write '\x00'==0 to get something
6223 that's true only with -std. */
6224int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6225
6226/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6227 inside strings and character constants. */
6228#define FOO(x) 'x'
6229int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6230
6231int test (int i, double x);
6232struct s1 {int (*f) (int a);};
6233struct s2 {int (*f) (double a);};
6234int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6235int argc;
6236char **argv;
6237int
6238main ()
6239{
6240return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6247do
6248 CC="$ac_save_CC $ac_arg"
6249 if ac_fn_c_try_compile "$LINENO"; then :
6250 ac_cv_prog_cc_c89=$ac_arg
6251fi
6252rm -f core conftest.err conftest.$ac_objext
6253 test "x$ac_cv_prog_cc_c89" != "xno" && break
6254done
6255rm -f conftest.$ac_ext
6256CC=$ac_save_CC
6257
6258fi
6259# AC_CACHE_VAL
6260case "x$ac_cv_prog_cc_c89" in
6261 x)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6263$as_echo "none needed" >&6; } ;;
6264 xno)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6266$as_echo "unsupported" >&6; } ;;
6267 *)
6268 CC="$CC $ac_cv_prog_cc_c89"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6270$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6271esac
6272if test "x$ac_cv_prog_cc_c89" != xno; then :
6273
6274fi
6275
6276ac_ext=c
6277ac_cpp='$CPP $CPPFLAGS'
6278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
cristy73bd4a52010-10-05 11:24:23 +00006282depcc="$CC" am_compiler_list=
6283
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6285$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006286if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006287 $as_echo_n "(cached) " >&6
6288else
6289 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6290 # We make a subdir and do the tests there. Otherwise we can end up
6291 # making bogus files that we don't know about and never remove. For
6292 # instance it was reported that on HP-UX the gcc test will end up
6293 # making a dummy file named `D' -- because `-MD' means `put the output
6294 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006295 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006296 mkdir conftest.dir
6297 # Copy depcomp to subdir because otherwise we won't find it if we're
6298 # using a relative directory.
6299 cp "$am_depcomp" conftest.dir
6300 cd conftest.dir
6301 # We will build objects and dependencies in a subdirectory because
6302 # it helps to detect inapplicable dependency modes. For instance
6303 # both Tru64's cc and ICC support -MD to output dependencies as a
6304 # side effect of compilation, but ICC will put the dependencies in
6305 # the current directory while Tru64 will put them in the object
6306 # directory.
6307 mkdir sub
6308
6309 am_cv_CC_dependencies_compiler_type=none
6310 if test "$am_compiler_list" = ""; then
6311 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6312 fi
6313 am__universal=false
6314 case " $depcc " in #(
6315 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6316 esac
6317
6318 for depmode in $am_compiler_list; do
6319 # Setup a source with many dependencies, because some compilers
6320 # like to wrap large dependency lists on column 80 (with \), and
6321 # we should not choose a depcomp mode which is confused by this.
6322 #
6323 # We need to recreate these files for each test, as the compiler may
6324 # overwrite some of them when testing with obscure command lines.
6325 # This happens at least with the AIX C compiler.
6326 : > sub/conftest.c
6327 for i in 1 2 3 4 5 6; do
6328 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6329 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6330 # Solaris 8's {/usr,}/bin/sh.
6331 touch sub/conftst$i.h
6332 done
6333 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6334
6335 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6336 # mode. It turns out that the SunPro C++ compiler does not properly
6337 # handle `-M -o', and we need to detect this. Also, some Intel
6338 # versions had trouble with output in subdirs
6339 am__obj=sub/conftest.${OBJEXT-o}
6340 am__minus_obj="-o $am__obj"
6341 case $depmode in
6342 gcc)
6343 # This depmode causes a compiler race in universal mode.
6344 test "$am__universal" = false || continue
6345 ;;
6346 nosideeffect)
6347 # after this tag, mechanisms are not by side-effect, so they'll
6348 # only be used when explicitly requested
6349 if test "x$enable_dependency_tracking" = xyes; then
6350 continue
6351 else
6352 break
6353 fi
6354 ;;
cristy7247bba2012-02-05 16:37:27 +00006355 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006356 # This compiler won't grok `-c -o', but also, the minuso test has
6357 # not run yet. These depmodes are late enough in the game, and
6358 # so weak that their functioning should not be impacted.
6359 am__obj=conftest.${OBJEXT-o}
6360 am__minus_obj=
6361 ;;
6362 none) break ;;
6363 esac
6364 if depmode=$depmode \
6365 source=sub/conftest.c object=$am__obj \
6366 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6367 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6368 >/dev/null 2>conftest.err &&
6369 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6370 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6371 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6372 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6373 # icc doesn't choke on unknown options, it will just issue warnings
6374 # or remarks (even with -Werror). So we grep stderr for any message
6375 # that says an option was ignored or not supported.
6376 # When given -MP, icc 7.0 and 7.1 complain thusly:
6377 # icc: Command line warning: ignoring option '-M'; no argument required
6378 # The diagnosis changed in icc 8.0:
6379 # icc: Command line remark: option '-MP' not supported
6380 if (grep 'ignoring option' conftest.err ||
6381 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6382 am_cv_CC_dependencies_compiler_type=$depmode
6383 break
6384 fi
6385 fi
6386 done
6387
6388 cd ..
6389 rm -rf conftest.dir
6390else
6391 am_cv_CC_dependencies_compiler_type=none
6392fi
6393
6394fi
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6396$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6397CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6398
6399 if
6400 test "x$enable_dependency_tracking" != xno \
6401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6402 am__fastdepCC_TRUE=
6403 am__fastdepCC_FALSE='#'
6404else
6405 am__fastdepCC_TRUE='#'
6406 am__fastdepCC_FALSE=
6407fi
6408
6409
cristy95646052009-11-28 23:05:30 +00006410ac_ext=cpp
6411ac_cpp='$CXXCPP $CPPFLAGS'
6412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6415if test -z "$CXX"; then
6416 if test -n "$CCC"; then
6417 CXX=$CCC
6418 else
6419 if test -n "$ac_tool_prefix"; then
6420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6421 do
6422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6423set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006426if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006427 $as_echo_n "(cached) " >&6
6428else
6429 if test -n "$CXX"; then
6430 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6431else
6432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433for as_dir in $PATH
6434do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6439 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443done
6444 done
6445IFS=$as_save_IFS
6446
6447fi
6448fi
6449CXX=$ac_cv_prog_CXX
6450if test -n "$CXX"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6452$as_echo "$CXX" >&6; }
6453else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455$as_echo "no" >&6; }
6456fi
6457
6458
6459 test -n "$CXX" && break
6460 done
6461fi
6462if test -z "$CXX"; then
6463 ac_ct_CXX=$CXX
6464 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6465do
6466 # Extract the first word of "$ac_prog", so it can be a program name with args.
6467set dummy $ac_prog; ac_word=$2
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006470if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006471 $as_echo_n "(cached) " >&6
6472else
6473 if test -n "$ac_ct_CXX"; then
6474 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6475else
6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477for as_dir in $PATH
6478do
6479 IFS=$as_save_IFS
6480 test -z "$as_dir" && as_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483 ac_cv_prog_ac_ct_CXX="$ac_prog"
6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 break 2
6486 fi
6487done
6488 done
6489IFS=$as_save_IFS
6490
6491fi
6492fi
6493ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6494if test -n "$ac_ct_CXX"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6496$as_echo "$ac_ct_CXX" >&6; }
6497else
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499$as_echo "no" >&6; }
6500fi
6501
6502
6503 test -n "$ac_ct_CXX" && break
6504done
6505
6506 if test "x$ac_ct_CXX" = x; then
6507 CXX="g++"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515 CXX=$ac_ct_CXX
6516 fi
6517fi
6518
6519 fi
6520fi
6521# Provide some information about the compiler.
6522$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6523set X $ac_compile
6524ac_compiler=$2
6525for ac_option in --version -v -V -qversion; do
6526 { { ac_try="$ac_compiler $ac_option >&5"
6527case "(($ac_try" in
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6530esac
6531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6532$as_echo "$ac_try_echo"; } >&5
6533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6534 ac_status=$?
6535 if test -s conftest.err; then
6536 sed '10a\
6537... rest of stderr output deleted ...
6538 10q' conftest.err >conftest.er1
6539 cat conftest.er1 >&5
6540 fi
6541 rm -f conftest.er1 conftest.err
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }
6544done
6545
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6547$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006548if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006549 $as_echo_n "(cached) " >&6
6550else
6551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h. */
6553
6554int
6555main ()
6556{
6557#ifndef __GNUC__
6558 choke me
6559#endif
6560
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565if ac_fn_cxx_try_compile "$LINENO"; then :
6566 ac_compiler_gnu=yes
6567else
6568 ac_compiler_gnu=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6572
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6575$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6576if test $ac_compiler_gnu = yes; then
6577 GXX=yes
6578else
6579 GXX=
6580fi
6581ac_test_CXXFLAGS=${CXXFLAGS+set}
6582ac_save_CXXFLAGS=$CXXFLAGS
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6584$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006585if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006586 $as_echo_n "(cached) " >&6
6587else
6588 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6589 ac_cxx_werror_flag=yes
6590 ac_cv_prog_cxx_g=no
6591 CXXFLAGS="-g"
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h. */
6594
6595int
6596main ()
6597{
6598
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603if ac_fn_cxx_try_compile "$LINENO"; then :
6604 ac_cv_prog_cxx_g=yes
6605else
6606 CXXFLAGS=""
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608/* end confdefs.h. */
6609
6610int
6611main ()
6612{
6613
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618if ac_fn_cxx_try_compile "$LINENO"; then :
6619
6620else
6621 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6622 CXXFLAGS="-g"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626int
6627main ()
6628{
6629
6630 ;
6631 return 0;
6632}
6633_ACEOF
6634if ac_fn_cxx_try_compile "$LINENO"; then :
6635 ac_cv_prog_cxx_g=yes
6636fi
6637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638fi
6639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6640fi
6641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6643fi
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6645$as_echo "$ac_cv_prog_cxx_g" >&6; }
6646if test "$ac_test_CXXFLAGS" = set; then
6647 CXXFLAGS=$ac_save_CXXFLAGS
6648elif test $ac_cv_prog_cxx_g = yes; then
6649 if test "$GXX" = yes; then
6650 CXXFLAGS="-g -O2"
6651 else
6652 CXXFLAGS="-g"
6653 fi
6654else
6655 if test "$GXX" = yes; then
6656 CXXFLAGS="-O2"
6657 else
6658 CXXFLAGS=
6659 fi
6660fi
6661ac_ext=c
6662ac_cpp='$CPP $CPPFLAGS'
6663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6665ac_compiler_gnu=$ac_cv_c_compiler_gnu
6666
cristy73bd4a52010-10-05 11:24:23 +00006667depcc="$CXX" am_compiler_list=
6668
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6670$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006671if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006672 $as_echo_n "(cached) " >&6
6673else
6674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6675 # We make a subdir and do the tests there. Otherwise we can end up
6676 # making bogus files that we don't know about and never remove. For
6677 # instance it was reported that on HP-UX the gcc test will end up
6678 # making a dummy file named `D' -- because `-MD' means `put the output
6679 # in D'.
cristy7247bba2012-02-05 16:37:27 +00006680 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006681 mkdir conftest.dir
6682 # Copy depcomp to subdir because otherwise we won't find it if we're
6683 # using a relative directory.
6684 cp "$am_depcomp" conftest.dir
6685 cd conftest.dir
6686 # We will build objects and dependencies in a subdirectory because
6687 # it helps to detect inapplicable dependency modes. For instance
6688 # both Tru64's cc and ICC support -MD to output dependencies as a
6689 # side effect of compilation, but ICC will put the dependencies in
6690 # the current directory while Tru64 will put them in the object
6691 # directory.
6692 mkdir sub
6693
6694 am_cv_CXX_dependencies_compiler_type=none
6695 if test "$am_compiler_list" = ""; then
6696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6697 fi
6698 am__universal=false
6699 case " $depcc " in #(
6700 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6701 esac
6702
6703 for depmode in $am_compiler_list; do
6704 # Setup a source with many dependencies, because some compilers
6705 # like to wrap large dependency lists on column 80 (with \), and
6706 # we should not choose a depcomp mode which is confused by this.
6707 #
6708 # We need to recreate these files for each test, as the compiler may
6709 # overwrite some of them when testing with obscure command lines.
6710 # This happens at least with the AIX C compiler.
6711 : > sub/conftest.c
6712 for i in 1 2 3 4 5 6; do
6713 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6714 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6715 # Solaris 8's {/usr,}/bin/sh.
6716 touch sub/conftst$i.h
6717 done
6718 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6719
6720 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6721 # mode. It turns out that the SunPro C++ compiler does not properly
6722 # handle `-M -o', and we need to detect this. Also, some Intel
6723 # versions had trouble with output in subdirs
6724 am__obj=sub/conftest.${OBJEXT-o}
6725 am__minus_obj="-o $am__obj"
6726 case $depmode in
6727 gcc)
6728 # This depmode causes a compiler race in universal mode.
6729 test "$am__universal" = false || continue
6730 ;;
6731 nosideeffect)
6732 # after this tag, mechanisms are not by side-effect, so they'll
6733 # only be used when explicitly requested
6734 if test "x$enable_dependency_tracking" = xyes; then
6735 continue
6736 else
6737 break
6738 fi
6739 ;;
cristy7247bba2012-02-05 16:37:27 +00006740 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +00006741 # This compiler won't grok `-c -o', but also, the minuso test has
6742 # not run yet. These depmodes are late enough in the game, and
6743 # so weak that their functioning should not be impacted.
6744 am__obj=conftest.${OBJEXT-o}
6745 am__minus_obj=
6746 ;;
6747 none) break ;;
6748 esac
6749 if depmode=$depmode \
6750 source=sub/conftest.c object=$am__obj \
6751 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6752 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6753 >/dev/null 2>conftest.err &&
6754 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6755 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6756 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6757 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6758 # icc doesn't choke on unknown options, it will just issue warnings
6759 # or remarks (even with -Werror). So we grep stderr for any message
6760 # that says an option was ignored or not supported.
6761 # When given -MP, icc 7.0 and 7.1 complain thusly:
6762 # icc: Command line warning: ignoring option '-M'; no argument required
6763 # The diagnosis changed in icc 8.0:
6764 # icc: Command line remark: option '-MP' not supported
6765 if (grep 'ignoring option' conftest.err ||
6766 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6767 am_cv_CXX_dependencies_compiler_type=$depmode
6768 break
6769 fi
6770 fi
6771 done
6772
6773 cd ..
6774 rm -rf conftest.dir
6775else
6776 am_cv_CXX_dependencies_compiler_type=none
6777fi
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6781$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6782CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6783
6784 if
6785 test "x$enable_dependency_tracking" != xno \
6786 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6787 am__fastdepCXX_TRUE=
6788 am__fastdepCXX_FALSE='#'
6789else
6790 am__fastdepCXX_TRUE='#'
6791 am__fastdepCXX_FALSE=
6792fi
6793
6794
cristy8b350f62009-11-15 23:12:43 +00006795 case $ac_cv_prog_cc_stdc in #(
6796 no) :
6797 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6798 *) :
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006800$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006801if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006802 $as_echo_n "(cached) " >&6
6803else
6804 ac_cv_prog_cc_c99=no
6805ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006807/* end confdefs.h. */
6808#include <stdarg.h>
6809#include <stdbool.h>
6810#include <stdlib.h>
6811#include <wchar.h>
6812#include <stdio.h>
6813
6814// Check varargs macros. These examples are taken from C99 6.10.3.5.
6815#define debug(...) fprintf (stderr, __VA_ARGS__)
6816#define showlist(...) puts (#__VA_ARGS__)
6817#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6818static void
6819test_varargs_macros (void)
6820{
6821 int x = 1234;
6822 int y = 5678;
6823 debug ("Flag");
6824 debug ("X = %d\n", x);
6825 showlist (The first, second, and third items.);
6826 report (x>y, "x is %d but y is %d", x, y);
6827}
6828
6829// Check long long types.
6830#define BIG64 18446744073709551615ull
6831#define BIG32 4294967295ul
6832#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6833#if !BIG_OK
6834 your preprocessor is broken;
6835#endif
6836#if BIG_OK
6837#else
6838 your preprocessor is broken;
6839#endif
6840static long long int bignum = -9223372036854775807LL;
6841static unsigned long long int ubignum = BIG64;
6842
6843struct incomplete_array
6844{
6845 int datasize;
6846 double data[];
6847};
6848
6849struct named_init {
6850 int number;
6851 const wchar_t *name;
6852 double average;
6853};
6854
6855typedef const char *ccp;
6856
6857static inline int
6858test_restrict (ccp restrict text)
6859{
6860 // See if C++-style comments work.
6861 // Iterate through items via the restricted pointer.
6862 // Also check for declarations in for loops.
6863 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6864 continue;
6865 return 0;
6866}
6867
6868// Check varargs and va_copy.
6869static void
6870test_varargs (const char *format, ...)
6871{
6872 va_list args;
6873 va_start (args, format);
6874 va_list args_copy;
6875 va_copy (args_copy, args);
6876
6877 const char *str;
6878 int number;
6879 float fnumber;
6880
6881 while (*format)
6882 {
6883 switch (*format++)
6884 {
6885 case 's': // string
6886 str = va_arg (args_copy, const char *);
6887 break;
6888 case 'd': // int
6889 number = va_arg (args_copy, int);
6890 break;
6891 case 'f': // float
6892 fnumber = va_arg (args_copy, double);
6893 break;
6894 default:
6895 break;
6896 }
6897 }
6898 va_end (args_copy);
6899 va_end (args);
6900}
6901
6902int
6903main ()
6904{
6905
6906 // Check bool.
6907 _Bool success = false;
6908
6909 // Check restrict.
6910 if (test_restrict ("String literal") == 0)
6911 success = true;
6912 char *restrict newvar = "Another string";
6913
6914 // Check varargs.
6915 test_varargs ("s, d' f .", "string", 65, 34.234);
6916 test_varargs_macros ();
6917
6918 // Check flexible array members.
6919 struct incomplete_array *ia =
6920 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6921 ia->datasize = 10;
6922 for (int i = 0; i < ia->datasize; ++i)
6923 ia->data[i] = i * 1.234;
6924
6925 // Check named initializers.
6926 struct named_init ni = {
6927 .number = 34,
6928 .name = L"Test wide string",
6929 .average = 543.34343,
6930 };
6931
6932 ni.number = 58;
6933
6934 int dynamic_array[ni.number];
6935 dynamic_array[ni.number - 1] = 543;
6936
6937 // work around unused variable warnings
6938 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6939 || dynamic_array[ni.number - 1] != 543);
6940
6941 ;
6942 return 0;
6943}
6944_ACEOF
6945for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6946do
6947 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006948 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006949 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006950fi
cristy3ed852e2009-09-05 21:47:34 +00006951rm -f core conftest.err conftest.$ac_objext
6952 test "x$ac_cv_prog_cc_c99" != "xno" && break
6953done
6954rm -f conftest.$ac_ext
6955CC=$ac_save_CC
6956
6957fi
6958# AC_CACHE_VAL
6959case "x$ac_cv_prog_cc_c99" in
6960 x)
cristy8b350f62009-11-15 23:12:43 +00006961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006962$as_echo "none needed" >&6; } ;;
6963 xno)
cristy8b350f62009-11-15 23:12:43 +00006964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00006965$as_echo "unsupported" >&6; } ;;
6966 *)
6967 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00006968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006969$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6970esac
cristy8b350f62009-11-15 23:12:43 +00006971if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00006972 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6973else
cristy8b350f62009-11-15 23:12:43 +00006974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00006975$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006976if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006977 $as_echo_n "(cached) " >&6
6978else
6979 ac_cv_prog_cc_c89=no
6980ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006982/* end confdefs.h. */
6983#include <stdarg.h>
6984#include <stdio.h>
6985#include <sys/types.h>
6986#include <sys/stat.h>
6987/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6988struct buf { int x; };
6989FILE * (*rcsopen) (struct buf *, struct stat *, int);
6990static char *e (p, i)
6991 char **p;
6992 int i;
6993{
6994 return p[i];
6995}
6996static char *f (char * (*g) (char **, int), char **p, ...)
6997{
6998 char *s;
6999 va_list v;
7000 va_start (v,p);
7001 s = g (p, va_arg (v,int));
7002 va_end (v);
7003 return s;
7004}
7005
7006/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7007 function prototypes and stuff, but not '\xHH' hex character constants.
7008 These don't provoke an error unfortunately, instead are silently treated
7009 as 'x'. The following induces an error, until -std is added to get
7010 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7011 array size at least. It's necessary to write '\x00'==0 to get something
7012 that's true only with -std. */
7013int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7014
7015/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7016 inside strings and character constants. */
7017#define FOO(x) 'x'
7018int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7019
7020int test (int i, double x);
7021struct s1 {int (*f) (int a);};
7022struct s2 {int (*f) (double a);};
7023int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7024int argc;
7025char **argv;
7026int
7027main ()
7028{
7029return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7030 ;
7031 return 0;
7032}
7033_ACEOF
7034for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7035 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7036do
7037 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007038 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007039 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007040fi
cristy3ed852e2009-09-05 21:47:34 +00007041rm -f core conftest.err conftest.$ac_objext
7042 test "x$ac_cv_prog_cc_c89" != "xno" && break
7043done
7044rm -f conftest.$ac_ext
7045CC=$ac_save_CC
7046
7047fi
7048# AC_CACHE_VAL
7049case "x$ac_cv_prog_cc_c89" in
7050 x)
cristy8b350f62009-11-15 23:12:43 +00007051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007052$as_echo "none needed" >&6; } ;;
7053 xno)
cristy8b350f62009-11-15 23:12:43 +00007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007055$as_echo "unsupported" >&6; } ;;
7056 *)
7057 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007059$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7060esac
cristy8b350f62009-11-15 23:12:43 +00007061if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007062 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7063else
7064 ac_cv_prog_cc_stdc=no
7065fi
7066
cristy3ed852e2009-09-05 21:47:34 +00007067fi
cristy3ed852e2009-09-05 21:47:34 +00007068 ;;
7069esac
cristy8b350f62009-11-15 23:12:43 +00007070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007071$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007072 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 $as_echo_n "(cached) " >&6
7074fi
7075
cristy8b350f62009-11-15 23:12:43 +00007076 case $ac_cv_prog_cc_stdc in #(
7077 no) :
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7079$as_echo "unsupported" >&6; } ;; #(
7080 '') :
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7082$as_echo "none needed" >&6; } ;; #(
7083 *) :
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007085$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7086esac
7087
cristy3ed852e2009-09-05 21:47:34 +00007088ac_ext=c
7089ac_cpp='$CPP $CPPFLAGS'
7090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007094$as_echo_n "checking how to run the C preprocessor... " >&6; }
7095# On Suns, sometimes $CPP names a directory.
7096if test -n "$CPP" && test -d "$CPP"; then
7097 CPP=
7098fi
7099if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007100 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007101 $as_echo_n "(cached) " >&6
7102else
7103 # Double quotes because CPP needs to be expanded
7104 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7105 do
7106 ac_preproc_ok=false
7107for ac_c_preproc_warn_flag in '' yes
7108do
7109 # Use a header file that comes with gcc, so configuring glibc
7110 # with a fresh cross-compiler works.
7111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7112 # <limits.h> exists even on freestanding compilers.
7113 # On the NeXT, cc -E runs the code through the compiler's parser,
7114 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007116/* end confdefs.h. */
7117#ifdef __STDC__
7118# include <limits.h>
7119#else
7120# include <assert.h>
7121#endif
7122 Syntax error
7123_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007124if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007125
cristy8b350f62009-11-15 23:12:43 +00007126else
cristy3ed852e2009-09-05 21:47:34 +00007127 # Broken: fails on valid input.
7128continue
7129fi
cristyda16f162011-02-19 23:52:17 +00007130rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007131
7132 # OK, works on sane cases. Now check whether nonexistent headers
7133 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007135/* end confdefs.h. */
7136#include <ac_nonexistent.h>
7137_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007138if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007139 # Broken: success on invalid input.
7140continue
7141else
cristy3ed852e2009-09-05 21:47:34 +00007142 # Passes both tests.
7143ac_preproc_ok=:
7144break
7145fi
cristyda16f162011-02-19 23:52:17 +00007146rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007147
7148done
7149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007150rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007151if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007152 break
7153fi
7154
7155 done
7156 ac_cv_prog_CPP=$CPP
7157
7158fi
7159 CPP=$ac_cv_prog_CPP
7160else
7161 ac_cv_prog_CPP=$CPP
7162fi
cristy8b350f62009-11-15 23:12:43 +00007163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007164$as_echo "$CPP" >&6; }
7165ac_preproc_ok=false
7166for ac_c_preproc_warn_flag in '' yes
7167do
7168 # Use a header file that comes with gcc, so configuring glibc
7169 # with a fresh cross-compiler works.
7170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171 # <limits.h> exists even on freestanding compilers.
7172 # On the NeXT, cc -E runs the code through the compiler's parser,
7173 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007175/* end confdefs.h. */
7176#ifdef __STDC__
7177# include <limits.h>
7178#else
7179# include <assert.h>
7180#endif
7181 Syntax error
7182_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007183if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007184
cristy8b350f62009-11-15 23:12:43 +00007185else
cristy3ed852e2009-09-05 21:47:34 +00007186 # Broken: fails on valid input.
7187continue
7188fi
cristyda16f162011-02-19 23:52:17 +00007189rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007190
7191 # OK, works on sane cases. Now check whether nonexistent headers
7192 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007194/* end confdefs.h. */
7195#include <ac_nonexistent.h>
7196_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007197if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007198 # Broken: success on invalid input.
7199continue
7200else
cristy3ed852e2009-09-05 21:47:34 +00007201 # Passes both tests.
7202ac_preproc_ok=:
7203break
7204fi
cristyda16f162011-02-19 23:52:17 +00007205rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007206
7207done
7208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007209rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007210if $ac_preproc_ok; then :
7211
cristy3ed852e2009-09-05 21:47:34 +00007212else
cristy8b350f62009-11-15 23:12:43 +00007213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007215as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7216See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007217fi
7218
7219ac_ext=c
7220ac_cpp='$CPP $CPPFLAGS'
7221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224
cristy73bd4a52010-10-05 11:24:23 +00007225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7226$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007227if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007228 $as_echo_n "(cached) " >&6
7229else
7230 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7231 for ac_i in 1 2 3 4 5 6 7; do
7232 ac_script="$ac_script$as_nl$ac_script"
7233 done
7234 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7235 { ac_script=; unset ac_script;}
7236 if test -z "$SED"; then
7237 ac_path_SED_found=false
7238 # Loop through the user's path and test for each of PROGNAME-LIST
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_prog in sed gsed; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7247 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7248# Check for GNU ac_path_SED and select it if it is found.
7249 # Check for GNU $ac_path_SED
7250case `"$ac_path_SED" --version 2>&1` in
7251*GNU*)
7252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7253*)
7254 ac_count=0
7255 $as_echo_n 0123456789 >"conftest.in"
7256 while :
7257 do
7258 cat "conftest.in" "conftest.in" >"conftest.tmp"
7259 mv "conftest.tmp" "conftest.in"
7260 cp "conftest.in" "conftest.nl"
7261 $as_echo '' >> "conftest.nl"
7262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7264 as_fn_arith $ac_count + 1 && ac_count=$as_val
7265 if test $ac_count -gt ${ac_path_SED_max-0}; then
7266 # Best one so far, save it but keep looking for a better one
7267 ac_cv_path_SED="$ac_path_SED"
7268 ac_path_SED_max=$ac_count
7269 fi
7270 # 10*(2^10) chars as input seems more than enough
7271 test $ac_count -gt 10 && break
7272 done
7273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7274esac
7275
7276 $ac_path_SED_found && break 3
7277 done
7278 done
7279 done
7280IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007282 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007283 fi
7284else
7285 ac_cv_path_SED=$SED
7286fi
7287
7288fi
7289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7290$as_echo "$ac_cv_path_SED" >&6; }
7291 SED="$ac_cv_path_SED"
7292 rm -f conftest.sed
7293
7294test -z "$SED" && SED=sed
7295Xsed="$SED -e 1s/^X//"
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7308$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007309if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007310 $as_echo_n "(cached) " >&6
7311else
7312 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7313 then ac_cv_path_FGREP="$GREP -F"
7314 else
7315 if test -z "$FGREP"; then
7316 ac_path_FGREP_found=false
7317 # Loop through the user's path and test for each of PROGNAME-LIST
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_prog in fgrep; do
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7326 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7327# Check for GNU ac_path_FGREP and select it if it is found.
7328 # Check for GNU $ac_path_FGREP
7329case `"$ac_path_FGREP" --version 2>&1` in
7330*GNU*)
7331 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7332*)
7333 ac_count=0
7334 $as_echo_n 0123456789 >"conftest.in"
7335 while :
7336 do
7337 cat "conftest.in" "conftest.in" >"conftest.tmp"
7338 mv "conftest.tmp" "conftest.in"
7339 cp "conftest.in" "conftest.nl"
7340 $as_echo 'FGREP' >> "conftest.nl"
7341 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7343 as_fn_arith $ac_count + 1 && ac_count=$as_val
7344 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7345 # Best one so far, save it but keep looking for a better one
7346 ac_cv_path_FGREP="$ac_path_FGREP"
7347 ac_path_FGREP_max=$ac_count
7348 fi
7349 # 10*(2^10) chars as input seems more than enough
7350 test $ac_count -gt 10 && break
7351 done
7352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7353esac
7354
7355 $ac_path_FGREP_found && break 3
7356 done
7357 done
7358 done
7359IFS=$as_save_IFS
7360 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007361 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007362 fi
7363else
7364 ac_cv_path_FGREP=$FGREP
7365fi
7366
7367 fi
7368fi
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7370$as_echo "$ac_cv_path_FGREP" >&6; }
7371 FGREP="$ac_cv_path_FGREP"
7372
7373
7374test -z "$GREP" && GREP=grep
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
cristy0c60a692010-11-04 01:09:47 +00007392ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7393ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7394ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7395
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7397$as_echo_n "checking how to print strings... " >&6; }
7398# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007399if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007400 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7401 ECHO='print -r --'
7402elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7403 ECHO='printf %s\n'
7404else
7405 # Use this function as a fallback that always works.
7406 func_fallback_echo ()
7407 {
7408 eval 'cat <<_LTECHO_EOF
7409$1
7410_LTECHO_EOF'
7411 }
7412 ECHO='func_fallback_echo'
7413fi
7414
7415# func_echo_all arg...
7416# Invoke $ECHO with all args, space-separated.
7417func_echo_all ()
7418{
7419 $ECHO ""
7420}
7421
7422case "$ECHO" in
7423 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7424$as_echo "printf" >&6; } ;;
7425 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7426$as_echo "print -r" >&6; } ;;
7427 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7428$as_echo "cat" >&6; } ;;
7429esac
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
cristy73bd4a52010-10-05 11:24:23 +00007444
7445
7446# Check whether --with-gnu-ld was given.
7447if test "${with_gnu_ld+set}" = set; then :
7448 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7449else
7450 with_gnu_ld=no
7451fi
7452
7453ac_prog=ld
7454if test "$GCC" = yes; then
7455 # Check if gcc -print-prog-name=ld gives a path.
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7457$as_echo_n "checking for ld used by $CC... " >&6; }
7458 case $host in
7459 *-*-mingw*)
7460 # gcc leaves a trailing carriage return which upsets mingw
7461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7462 *)
7463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7464 esac
7465 case $ac_prog in
7466 # Accept absolute paths.
7467 [\\/]* | ?:[\\/]*)
7468 re_direlt='/[^/][^/]*/\.\./'
7469 # Canonicalize the pathname of ld
7470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7473 done
7474 test -z "$LD" && LD="$ac_prog"
7475 ;;
7476 "")
7477 # If it fails, then pretend we aren't using GCC.
7478 ac_prog=ld
7479 ;;
7480 *)
7481 # If it is relative, then search for the first ld in PATH.
7482 with_gnu_ld=unknown
7483 ;;
7484 esac
7485elif test "$with_gnu_ld" = yes; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7487$as_echo_n "checking for GNU ld... " >&6; }
7488else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7490$as_echo_n "checking for non-GNU ld... " >&6; }
7491fi
cristyda16f162011-02-19 23:52:17 +00007492if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007493 $as_echo_n "(cached) " >&6
7494else
7495 if test -z "$LD"; then
7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7497 for ac_dir in $PATH; do
7498 IFS="$lt_save_ifs"
7499 test -z "$ac_dir" && ac_dir=.
7500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7501 lt_cv_path_LD="$ac_dir/$ac_prog"
7502 # Check to see if the program is GNU ld. I'd rather use --version,
7503 # but apparently some variants of GNU ld only accept -v.
7504 # Break only if it was the GNU/non-GNU ld that we prefer.
7505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7506 *GNU* | *'with BFD'*)
7507 test "$with_gnu_ld" != no && break
7508 ;;
7509 *)
7510 test "$with_gnu_ld" != yes && break
7511 ;;
7512 esac
7513 fi
7514 done
7515 IFS="$lt_save_ifs"
7516else
7517 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7518fi
7519fi
7520
7521LD="$lt_cv_path_LD"
7522if test -n "$LD"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7524$as_echo "$LD" >&6; }
7525else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528fi
cristy98dddb52010-11-04 00:30:15 +00007529test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007532if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007533 $as_echo_n "(cached) " >&6
7534else
7535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7536case `$LD -v 2>&1 </dev/null` in
7537*GNU* | *'with BFD'*)
7538 lt_cv_prog_gnu_ld=yes
7539 ;;
7540*)
7541 lt_cv_prog_gnu_ld=no
7542 ;;
7543esac
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7546$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7547with_gnu_ld=$lt_cv_prog_gnu_ld
7548
7549
7550
7551
7552
7553
7554
7555
7556
cristy3ed852e2009-09-05 21:47:34 +00007557
cristy837d6dc2010-02-27 01:16:57 +00007558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7559$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007560if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007561 $as_echo_n "(cached) " >&6
7562else
7563 ac_cv_prog_cc_c99=no
7564ac_save_CC=$CC
7565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h. */
7567#include <stdarg.h>
7568#include <stdbool.h>
7569#include <stdlib.h>
7570#include <wchar.h>
7571#include <stdio.h>
7572
7573// Check varargs macros. These examples are taken from C99 6.10.3.5.
7574#define debug(...) fprintf (stderr, __VA_ARGS__)
7575#define showlist(...) puts (#__VA_ARGS__)
7576#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7577static void
7578test_varargs_macros (void)
7579{
7580 int x = 1234;
7581 int y = 5678;
7582 debug ("Flag");
7583 debug ("X = %d\n", x);
7584 showlist (The first, second, and third items.);
7585 report (x>y, "x is %d but y is %d", x, y);
7586}
7587
7588// Check long long types.
7589#define BIG64 18446744073709551615ull
7590#define BIG32 4294967295ul
7591#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7592#if !BIG_OK
7593 your preprocessor is broken;
7594#endif
7595#if BIG_OK
7596#else
7597 your preprocessor is broken;
7598#endif
7599static long long int bignum = -9223372036854775807LL;
7600static unsigned long long int ubignum = BIG64;
7601
7602struct incomplete_array
7603{
7604 int datasize;
7605 double data[];
7606};
7607
7608struct named_init {
7609 int number;
7610 const wchar_t *name;
7611 double average;
7612};
7613
7614typedef const char *ccp;
7615
7616static inline int
7617test_restrict (ccp restrict text)
7618{
7619 // See if C++-style comments work.
7620 // Iterate through items via the restricted pointer.
7621 // Also check for declarations in for loops.
7622 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7623 continue;
7624 return 0;
7625}
7626
7627// Check varargs and va_copy.
7628static void
7629test_varargs (const char *format, ...)
7630{
7631 va_list args;
7632 va_start (args, format);
7633 va_list args_copy;
7634 va_copy (args_copy, args);
7635
7636 const char *str;
7637 int number;
7638 float fnumber;
7639
7640 while (*format)
7641 {
7642 switch (*format++)
7643 {
7644 case 's': // string
7645 str = va_arg (args_copy, const char *);
7646 break;
7647 case 'd': // int
7648 number = va_arg (args_copy, int);
7649 break;
7650 case 'f': // float
7651 fnumber = va_arg (args_copy, double);
7652 break;
7653 default:
7654 break;
7655 }
7656 }
7657 va_end (args_copy);
7658 va_end (args);
7659}
7660
7661int
7662main ()
7663{
7664
7665 // Check bool.
7666 _Bool success = false;
7667
7668 // Check restrict.
7669 if (test_restrict ("String literal") == 0)
7670 success = true;
7671 char *restrict newvar = "Another string";
7672
7673 // Check varargs.
7674 test_varargs ("s, d' f .", "string", 65, 34.234);
7675 test_varargs_macros ();
7676
7677 // Check flexible array members.
7678 struct incomplete_array *ia =
7679 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7680 ia->datasize = 10;
7681 for (int i = 0; i < ia->datasize; ++i)
7682 ia->data[i] = i * 1.234;
7683
7684 // Check named initializers.
7685 struct named_init ni = {
7686 .number = 34,
7687 .name = L"Test wide string",
7688 .average = 543.34343,
7689 };
7690
7691 ni.number = 58;
7692
7693 int dynamic_array[ni.number];
7694 dynamic_array[ni.number - 1] = 543;
7695
7696 // work around unused variable warnings
7697 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7698 || dynamic_array[ni.number - 1] != 543);
7699
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7705do
7706 CC="$ac_save_CC $ac_arg"
7707 if ac_fn_c_try_compile "$LINENO"; then :
7708 ac_cv_prog_cc_c99=$ac_arg
7709fi
7710rm -f core conftest.err conftest.$ac_objext
7711 test "x$ac_cv_prog_cc_c99" != "xno" && break
7712done
7713rm -f conftest.$ac_ext
7714CC=$ac_save_CC
7715
7716fi
7717# AC_CACHE_VAL
7718case "x$ac_cv_prog_cc_c99" in
7719 x)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7721$as_echo "none needed" >&6; } ;;
7722 xno)
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7724$as_echo "unsupported" >&6; } ;;
7725 *)
7726 CC="$CC $ac_cv_prog_cc_c99"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7728$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7729esac
7730if test "x$ac_cv_prog_cc_c99" != xno; then :
7731
7732fi
7733
7734
cristy73bd4a52010-10-05 11:24:23 +00007735if test "x$CC" != xcc; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7737$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7740$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7741fi
7742set dummy $CC; ac_cc=`$as_echo "$2" |
7743 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007744if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007745 $as_echo_n "(cached) " >&6
7746else
cristy73bd4a52010-10-05 11:24:23 +00007747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h. */
7749
7750int
7751main ()
7752{
7753
7754 ;
7755 return 0;
7756}
7757_ACEOF
7758# Make sure it works both with $CC and with simple cc.
7759# We do the test twice because some compilers refuse to overwrite an
7760# existing .o file with -o, though they will create one.
7761ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7762rm -f conftest2.*
7763if { { case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766esac
7767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7768$as_echo "$ac_try_echo"; } >&5
7769 (eval "$ac_try") 2>&5
7770 ac_status=$?
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; } &&
7773 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7776esac
7777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7778$as_echo "$ac_try_echo"; } >&5
7779 (eval "$ac_try") 2>&5
7780 ac_status=$?
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; };
7783then
7784 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7785 if test "x$CC" != xcc; then
7786 # Test first that cc exists at all.
7787 if { ac_try='cc -c conftest.$ac_ext >&5'
7788 { { case "(($ac_try" in
7789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790 *) ac_try_echo=$ac_try;;
7791esac
7792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7793$as_echo "$ac_try_echo"; } >&5
7794 (eval "$ac_try") 2>&5
7795 ac_status=$?
7796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797 test $ac_status = 0; }; }; then
7798 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7799 rm -f conftest2.*
7800 if { { case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7805$as_echo "$ac_try_echo"; } >&5
7806 (eval "$ac_try") 2>&5
7807 ac_status=$?
7808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; } &&
7810 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
7814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7815$as_echo "$ac_try_echo"; } >&5
7816 (eval "$ac_try") 2>&5
7817 ac_status=$?
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; };
7820 then
7821 # cc works too.
7822 :
7823 else
7824 # cc exists but doesn't like -o.
7825 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7826 fi
7827 fi
7828 fi
7829else
7830 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7831fi
7832rm -f core conftest*
7833
7834fi
7835if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837$as_echo "yes" >&6; }
7838else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
7841
7842$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7843
7844fi
7845
7846# FIXME: we rely on the cache variable name because
7847# there is no other way.
7848set dummy $CC
7849am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7850eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7851if test "$am_t" != yes; then
7852 # Losing compiler, so override with the script.
7853 # FIXME: It is wrong to rewrite CC.
7854 # But if we don't then we get into trouble of one sort or another.
7855 # A longer-term fix would be to have automake use am__CC in this case,
7856 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7857 CC="$am_aux_dir/compile $CC"
7858fi
7859
7860
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7862$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007863if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007864 $as_echo_n "(cached) " >&6
7865else
7866 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007867 ac_ext=c
7868ac_cpp='$CPP $CPPFLAGS'
7869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871ac_compiler_gnu=$ac_cv_c_compiler_gnu
7872
7873 ac_save_CFLAGS="$CFLAGS"
7874for 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" #
7875do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h. */
7878
7879int
7880main ()
7881{
cristy24fc1fe2010-10-23 21:13:01 +00007882
cristy73bd4a52010-10-05 11:24:23 +00007883 ;
7884 return 0;
7885}
7886_ACEOF
7887if ac_fn_c_try_compile "$LINENO"; then :
7888 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7889fi
7890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891done
7892 CFLAGS="$ac_save_CFLAGS"
7893 ac_ext=c
7894ac_cpp='$CPP $CPPFLAGS'
7895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899
7900fi
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7902$as_echo "$ac_cv_cflags_warn_all" >&6; }
7903case ".$ac_cv_cflags_warn_all" in
7904 .ok|.ok,*) ;;
7905 .|.no|.no,*)
7906 ;;
7907 *)
7908 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7909 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7910 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7911 ac_status=$?
7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913 test $ac_status = 0; }
7914 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7915 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7916 ac_status=$?
7917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7918 test $ac_status = 0; }
7919 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7920 fi
7921 ;;
nicolas6237c462010-10-05 06:11:49 +00007922esac
cristy3ed852e2009-09-05 21:47:34 +00007923
cristya0b81c32010-01-22 02:54:33 +00007924
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7926$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7927set x ${MAKE-make}
7928ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00007929if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00007930 $as_echo_n "(cached) " >&6
7931else
7932 cat >conftest.make <<\_ACEOF
7933SHELL = /bin/sh
7934all:
7935 @echo '@@@%%%=$(MAKE)=@@@%%%'
7936_ACEOF
cristy98dddb52010-11-04 00:30:15 +00007937# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00007938case `${MAKE-make} -f conftest.make 2>/dev/null` in
7939 *@@@%%%=?*=@@@%%%*)
7940 eval ac_cv_prog_make_${ac_make}_set=yes;;
7941 *)
7942 eval ac_cv_prog_make_${ac_make}_set=no;;
7943esac
7944rm -f conftest.make
7945fi
7946if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7948$as_echo "yes" >&6; }
7949 SET_MAKE=
7950else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
7953 SET_MAKE="MAKE=${MAKE-make}"
7954fi
7955
cristy8b350f62009-11-15 23:12:43 +00007956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00007957$as_echo_n "checking whether ln -s works... " >&6; }
7958LN_S=$as_ln_s
7959if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00007960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00007961$as_echo "yes" >&6; }
7962else
cristy8b350f62009-11-15 23:12:43 +00007963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00007964$as_echo "no, using $LN_S" >&6; }
7965fi
7966
cristy73bd4a52010-10-05 11:24:23 +00007967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7968$as_echo_n "checking if malloc debugging is wanted... " >&6; }
7969
7970# Check whether --with-dmalloc was given.
7971if test "${with_dmalloc+set}" = set; then :
7972 withval=$with_dmalloc; if test "$withval" = yes; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7974$as_echo "yes" >&6; }
7975
7976$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7977
7978 LIBS="$LIBS -ldmalloc"
7979 LDFLAGS="$LDFLAGS -g"
7980else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
7983fi
7984else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987fi
7988
7989
7990
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7992$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007993if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007994 $as_echo_n "(cached) " >&6
7995else
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h. */
7998#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00007999 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008000 static void
8001 foo(void) {
8002 exit(1);
8003 }
8004
8005int
8006main ()
8007{
8008
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014 ax_cv___attribute__=yes
8015else
8016 ax_cv___attribute__=no
8017
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8023$as_echo "$ax_cv___attribute__" >&6; }
8024 if test "$ax_cv___attribute__" = "yes"; then
8025
8026$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8027
8028 fi
8029
8030
8031
cristy37110d62012-03-01 18:38:20 +00008032
8033
8034# Check whether --with-gcc-arch was given.
8035if test "${with_gcc_arch+set}" = set; then :
8036 withval=$with_gcc_arch; ax_gcc_arch=$withval
8037else
8038 ax_gcc_arch=yes
8039fi
8040
8041
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8043$as_echo_n "checking for gcc architecture flag... " >&6; }
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8045$as_echo "" >&6; }
8046if ${ax_cv_gcc_archflag+:} false; then :
8047 $as_echo_n "(cached) " >&6
8048else
8049
8050ax_cv_gcc_archflag="unknown"
8051
8052if test "$GCC" = yes; then
8053
8054if test "x$ax_gcc_arch" = xyes; then
8055ax_gcc_arch=""
8056if test "$cross_compiling" = no; then
8057case $host_cpu in
8058 i[3456]86*|x86_64*) # use cpuid codes
8059
8060ac_ext=c
8061ac_cpp='$CPP $CPPFLAGS'
8062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064ac_compiler_gnu=$ac_cv_c_compiler_gnu
8065
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8067$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8068if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070else
8071 if test "$cross_compiling" = yes; then :
8072 ax_cv_gcc_x86_cpuid_0=unknown
8073else
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h. */
8076#include <stdio.h>
8077int
8078main ()
8079{
8080
8081 int op = 0, eax, ebx, ecx, edx;
8082 FILE *f;
8083 __asm__("cpuid"
8084 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8085 : "a" (op));
8086 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8087 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8088 fclose(f);
8089 return 0;
8090
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095if ac_fn_c_try_run "$LINENO"; then :
8096 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8097else
8098 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8099fi
8100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101 conftest.$ac_objext conftest.beam conftest.$ac_ext
8102fi
8103
8104fi
8105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8106$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8107ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114
8115ac_ext=c
8116ac_cpp='$CPP $CPPFLAGS'
8117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8122$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8123if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125else
8126 if test "$cross_compiling" = yes; then :
8127 ax_cv_gcc_x86_cpuid_1=unknown
8128else
8129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8130/* end confdefs.h. */
8131#include <stdio.h>
8132int
8133main ()
8134{
8135
8136 int op = 1, eax, ebx, ecx, edx;
8137 FILE *f;
8138 __asm__("cpuid"
8139 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8140 : "a" (op));
8141 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8142 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8143 fclose(f);
8144 return 0;
8145
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150if ac_fn_c_try_run "$LINENO"; then :
8151 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8152else
8153 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8154fi
8155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8156 conftest.$ac_objext conftest.beam conftest.$ac_ext
8157fi
8158
8159fi
8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8161$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8162ac_ext=c
8163ac_cpp='$CPP $CPPFLAGS'
8164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8166ac_compiler_gnu=$ac_cv_c_compiler_gnu
8167
8168
8169 case $ax_cv_gcc_x86_cpuid_0 in
8170 *:756e6547:*:*) # Intel
8171 case $ax_cv_gcc_x86_cpuid_1 in
8172 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8173 *5??:*:*:*) ax_gcc_arch=pentium ;;
8174 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8175 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8176 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8177 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8178 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8179 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8180 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8181 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8182 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8183 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8184 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8185 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8186 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8187 case $host_cpu in
8188 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8189 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8190 esac ;;
8191 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8192 esac ;;
8193 *:68747541:*:*) # AMD
8194 case $ax_cv_gcc_x86_cpuid_1 in
8195 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8196 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8197 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8198 *60?:*:*:*) ax_gcc_arch=k7 ;;
8199 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8200 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8201 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8202 *6[68a]?:*:*:*)
8203
8204ac_ext=c
8205ac_cpp='$CPP $CPPFLAGS'
8206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8208ac_compiler_gnu=$ac_cv_c_compiler_gnu
8209
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8211$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8212if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214else
8215 if test "$cross_compiling" = yes; then :
8216 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8217else
8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h. */
8220#include <stdio.h>
8221int
8222main ()
8223{
8224
8225 int op = 0x80000006, eax, ebx, ecx, edx;
8226 FILE *f;
8227 __asm__("cpuid"
8228 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8229 : "a" (op));
8230 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8231 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8232 fclose(f);
8233 return 0;
8234
8235 ;
8236 return 0;
8237}
8238_ACEOF
8239if ac_fn_c_try_run "$LINENO"; then :
8240 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8241else
8242 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8243fi
8244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8245 conftest.$ac_objext conftest.beam conftest.$ac_ext
8246fi
8247
8248fi
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8250$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8251ac_ext=c
8252ac_cpp='$CPP $CPPFLAGS'
8253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8255ac_compiler_gnu=$ac_cv_c_compiler_gnu
8256
8257 # L2 cache size
8258 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8259 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8260 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8261 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8262 esac ;;
8263 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8264 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8265 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8266 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8267 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8268 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8269 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8270 esac ;;
8271 *:746e6543:*:*) # IDT
8272 case $ax_cv_gcc_x86_cpuid_1 in
8273 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8274 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8275 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8276 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8277 esac ;;
8278 esac
8279 if test x"$ax_gcc_arch" = x; then # fallback
8280 case $host_cpu in
8281 i586*) ax_gcc_arch=pentium ;;
8282 i686*) ax_gcc_arch=pentiumpro ;;
8283 esac
8284 fi
8285 ;;
8286
8287 sparc*)
8288 # Extract the first word of "prtdiag", so it can be a program name with args.
8289set dummy prtdiag; ac_word=$2
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291$as_echo_n "checking for $ac_word... " >&6; }
8292if ${ac_cv_path_PRTDIAG+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294else
8295 case $PRTDIAG in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8298 ;;
8299 *)
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8302for as_dir in $as_dummy
8303do
8304 IFS=$as_save_IFS
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312done
8313 done
8314IFS=$as_save_IFS
8315
8316 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8317 ;;
8318esac
8319fi
8320PRTDIAG=$ac_cv_path_PRTDIAG
8321if test -n "$PRTDIAG"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8323$as_echo "$PRTDIAG" >&6; }
8324else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326$as_echo "no" >&6; }
8327fi
8328
8329
8330 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8331 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8332 case $cputype in
8333 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8334 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8335 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8336 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8337 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8338 *cypress*) ax_gcc_arch=cypress ;;
8339 esac ;;
8340
8341 alphaev5) ax_gcc_arch=ev5 ;;
8342 alphaev56) ax_gcc_arch=ev56 ;;
8343 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8344 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8345 alphaev6) ax_gcc_arch=ev6 ;;
8346 alphaev67) ax_gcc_arch=ev67 ;;
8347 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8348 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8349 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8350 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8351
8352 powerpc*)
8353 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8354 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8355 case $cputype in
8356 *750*) ax_gcc_arch="750 G3" ;;
8357 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8358 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8359 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8360 *970*) ax_gcc_arch="970 G5 power4";;
8361 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8362 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8363 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8364 *) ax_gcc_arch=$cputype ;;
8365 esac
8366 ax_gcc_arch="$ax_gcc_arch powerpc"
8367 ;;
8368esac
8369fi # not cross-compiling
8370fi # guess arch
8371
8372if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8373for arch in $ax_gcc_arch; do
8374 if test "xyes" = xyes; then # if we require portable code
8375 flags="-mtune=$arch"
8376 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8377 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8378 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8379 else
8380 flags="-march=$arch -mcpu=$arch -m$arch"
8381 fi
8382 for flag in $flags; do
8383 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8385$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8386if eval \${$as_CACHEVAR+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388else
8389
8390 ax_check_save_flags=$CFLAGS
8391 CFLAGS="$CFLAGS $flag"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h. */
8394
8395int
8396main ()
8397{
8398
8399 ;
8400 return 0;
8401}
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"; then :
8404 eval "$as_CACHEVAR=yes"
8405else
8406 eval "$as_CACHEVAR=no"
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409 CFLAGS=$ax_check_save_flags
8410fi
8411eval ac_res=\$$as_CACHEVAR
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8413$as_echo "$ac_res" >&6; }
8414if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8415 ax_cv_gcc_archflag=$flag; break
8416else
8417 :
8418fi
8419
8420 done
8421 test "x$ax_cv_gcc_archflag" = xunknown || break
8422done
8423fi
8424
8425fi # $GCC=yes
8426
8427fi
8428
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8430$as_echo_n "checking for gcc architecture flag... " >&6; }
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8432$as_echo "$ax_cv_gcc_archflag" >&6; }
8433if test "x$ax_cv_gcc_archflag" = xunknown; then
8434 :
8435else
8436 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8437fi
8438
8439
8440
cristy73bd4a52010-10-05 11:24:23 +00008441if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8444set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008447if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008448 $as_echo_n "(cached) " >&6
8449else
8450 case $PKG_CONFIG in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8453 ;;
8454 *)
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456for as_dir in $PATH
8457do
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8465 fi
8466done
8467 done
8468IFS=$as_save_IFS
8469
8470 ;;
8471esac
8472fi
8473PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8474if test -n "$PKG_CONFIG"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8476$as_echo "$PKG_CONFIG" >&6; }
8477else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479$as_echo "no" >&6; }
8480fi
8481
8482
8483fi
8484if test -z "$ac_cv_path_PKG_CONFIG"; then
8485 ac_pt_PKG_CONFIG=$PKG_CONFIG
8486 # Extract the first word of "pkg-config", so it can be a program name with args.
8487set dummy pkg-config; ac_word=$2
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008490if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008491 $as_echo_n "(cached) " >&6
8492else
8493 case $ac_pt_PKG_CONFIG in
8494 [\\/]* | ?:[\\/]*)
8495 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8496 ;;
8497 *)
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499for as_dir in $PATH
8500do
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8508 fi
8509done
8510 done
8511IFS=$as_save_IFS
8512
8513 ;;
8514esac
8515fi
8516ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8517if test -n "$ac_pt_PKG_CONFIG"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8519$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8520else
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
8523fi
8524
8525 if test "x$ac_pt_PKG_CONFIG" = x; then
8526 PKG_CONFIG=""
8527 else
8528 case $cross_compiling:$ac_tool_warned in
8529yes:)
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8532ac_tool_warned=yes ;;
8533esac
8534 PKG_CONFIG=$ac_pt_PKG_CONFIG
8535 fi
8536else
8537 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8538fi
8539
8540fi
8541if test -n "$PKG_CONFIG"; then
8542 _pkg_min_version=0.9.0
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8544$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8545 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8547$as_echo "yes" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550$as_echo "no" >&6; }
8551 PKG_CONFIG=""
8552 fi
8553
8554fi
cristy3ed852e2009-09-05 21:47:34 +00008555
8556#
cristy3ed852e2009-09-05 21:47:34 +00008557# Enable run-time checking.
8558#
8559# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008560if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008561 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8562else
8563 enable_bounds_checking='no'
8564fi
8565
8566
8567if test "$enable_bounds_checking" = yes; then
8568
cristy8b350f62009-11-15 23:12:43 +00008569$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008570
8571fi
8572
8573#
8574# Tests for Windows
8575#
8576
8577
cristy73bd4a52010-10-05 11:24:23 +00008578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8579$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008580if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008581 $as_echo_n "(cached) " >&6
8582else
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h. */
8585
8586int
8587main ()
8588{
8589#ifndef _MSC_VER
8590 choke me
8591#endif
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597if ac_fn_c_try_compile "$LINENO"; then :
8598 ax_compiler_ms=yes
8599else
8600 ax_compiler_ms=no
8601fi
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603ax_cv_c_compiler_ms=$ax_compiler_ms
8604
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8607$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00008608
8609GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008610native_win32_build='no'
8611cygwin_build='no'
8612case "${host_os}" in
8613 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008614 cygwin_build='yes'
8615 GDI32_LIBS='-lgdi32'
8616 ;;
8617 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008618 native_win32_build='yes'
8619 GDI32_LIBS='-lgdi32'
8620 ;;
8621esac
8622if test "${GDI32_LIBS}x" != 'x'; then
8623
cristy8b350f62009-11-15 23:12:43 +00008624$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008625
8626fi
8627
cristy73bd4a52010-10-05 11:24:23 +00008628 if test "${GDI32_LIBS}x" != 'x' ; then
8629 WINGDI32_DELEGATE_TRUE=
8630 WINGDI32_DELEGATE_FALSE='#'
8631else
8632 WINGDI32_DELEGATE_TRUE='#'
8633 WINGDI32_DELEGATE_FALSE=
8634fi
8635
8636 if test "${native_win32_build}" = 'yes' ; then
8637 WIN32_NATIVE_BUILD_TRUE=
8638 WIN32_NATIVE_BUILD_FALSE='#'
8639else
8640 WIN32_NATIVE_BUILD_TRUE='#'
8641 WIN32_NATIVE_BUILD_FALSE=
8642fi
8643
8644 if test "${cygwin_build}" = 'yes' ; then
8645 CYGWIN_BUILD_TRUE=
8646 CYGWIN_BUILD_FALSE='#'
8647else
8648 CYGWIN_BUILD_TRUE='#'
8649 CYGWIN_BUILD_FALSE=
8650fi
8651
8652 if test "x${CC}" = 'xcl.exe' ; then
8653 USING_CL_TRUE=
8654 USING_CL_FALSE='#'
8655else
8656 USING_CL_TRUE='#'
8657 USING_CL_FALSE=
8658fi
8659
cristy3ed852e2009-09-05 21:47:34 +00008660
8661WinPathScript="${srcdirfull}/winpath.sh"
8662
8663
8664#
8665# Compiler flags tweaks
8666#
8667if test "${GCC}" != "yes"; then
8668 case "${host}" in
8669 *-*-hpux* )
8670 # aCC: HP ANSI C++ B3910B A.03.34
8671 CFLAGS="${CFLAGS} -Wp,-H30000"
8672 if test -n "${CXXFLAGS}"; then
8673 CXXFLAGS='-AA'
8674 else
8675 CXXFLAGS="${CXXFLAGS} -AA"
8676 fi
8677 ;;
8678 *-dec-osf5.* )
8679 # Compaq alphaev68-dec-osf5.1 compiler
8680 if test -n "${CXXFLAGS}"; then
8681 CXXFLAGS='-std strict_ansi -noimplicit_include'
8682 else
8683 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8684 fi
8685 esac
8686fi
8687
8688# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008690$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008691if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008692 $as_echo_n "(cached) " >&6
8693else
8694
8695im_cv_ld_lazyload='none'
8696case "${host}" in
8697 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8698 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8699 im_cv_ld_lazyload='-Wl,-zlazyload'
8700 fi
8701 ;;
8702esac
8703
8704fi
cristy8b350f62009-11-15 23:12:43 +00008705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008706$as_echo "$im_cv_ld_lazyload" >&6; }
8707if test "${im_cv_ld_lazyload}" != 'none' ; then
8708 if test -z "${LDFLAGS}" ; then
8709 LDFLAGS="${im_cv_ld_lazyload}"
8710 else
8711 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8712 fi
8713fi
8714
8715case "$host" in
8716*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008717 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008718if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008719 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8720else
8721 build_osxuniversal=no
8722fi
8723
8724
8725 if test "${build_osxuniversal}" != no ; then
8726 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008727 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008728Please re-run configure with these options:
8729 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008730 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008731 fi
8732 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8733 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8734 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8735 fi
8736 ;;
8737esac
8738
cristy0151ae12011-10-28 16:32:29 +00008739#
8740# ARCH specific include directory
8741#
8742
cristy670aa3c2011-11-03 00:54:00 +00008743# Check whether --with-includearch-dir was given.
8744if test "${with_includearch_dir+set}" = set; then :
8745 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008746else
cristy670aa3c2011-11-03 00:54:00 +00008747 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008748fi
8749
8750
cristy670aa3c2011-11-03 00:54:00 +00008751eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008752
cristy0151ae12011-10-28 16:32:29 +00008753
8754#
8755# ARCH specific configuration directory
8756#
8757
cristy670aa3c2011-11-03 00:54:00 +00008758# Check whether --with-sharearch-dir was given.
8759if test "${with_sharearch_dir+set}" = set; then :
8760 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008761else
cristy408ebcd2011-11-14 01:36:57 +00008762 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008763fi
8764
8765
cristy670aa3c2011-11-03 00:54:00 +00008766eval "eval SHAREARCH_DIR=$sharearch_dir"
8767SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008768
cristy0151ae12011-10-28 16:32:29 +00008769
8770#
cristy3ed852e2009-09-05 21:47:34 +00008771# Enable support for threads
8772
8773# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008774if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008775 withval=$with_threads; with_threads=$withval
8776else
8777 with_threads='yes'
8778fi
8779
8780
8781have_threads=no
8782if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008783
8784
cristy73bd4a52010-10-05 11:24:23 +00008785ac_ext=c
8786ac_cpp='$CPP $CPPFLAGS'
8787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8789ac_compiler_gnu=$ac_cv_c_compiler_gnu
8790
8791ax_pthread_ok=no
8792
8793# We used to check for pthread.h first, but this fails if pthread.h
8794# requires special compiler flags (e.g. on True64 or Sequent).
8795# It gets checked for in the link test anyway.
8796
8797# First of all, check if the user has set any of the PTHREAD_LIBS,
8798# etcetera environment variables, and if threads linking works using
8799# them:
8800if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8801 save_CFLAGS="$CFLAGS"
8802 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8803 save_LIBS="$LIBS"
8804 LIBS="$PTHREAD_LIBS $LIBS"
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8806$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8808/* end confdefs.h. */
8809
8810/* Override any GCC internal prototype to avoid an error.
8811 Use char because int might match the return type of a GCC
8812 builtin and then its argument prototype would still apply. */
8813#ifdef __cplusplus
8814extern "C"
8815#endif
8816char pthread_join ();
8817int
8818main ()
8819{
8820return pthread_join ();
8821 ;
8822 return 0;
8823}
8824_ACEOF
8825if ac_fn_c_try_link "$LINENO"; then :
8826 ax_pthread_ok=yes
8827fi
8828rm -f core conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8831$as_echo "$ax_pthread_ok" >&6; }
8832 if test x"$ax_pthread_ok" = xno; then
8833 PTHREAD_LIBS=""
8834 PTHREAD_CFLAGS=""
8835 fi
8836 LIBS="$save_LIBS"
8837 CFLAGS="$save_CFLAGS"
8838fi
8839
8840# We must check for the threads library under a number of different
8841# names; the ordering is very important because some systems
8842# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8843# libraries is broken (non-POSIX).
8844
8845# Create a list of thread flags to try. Items starting with a "-" are
8846# C compiler flags, and other items are library names, except for "none"
8847# which indicates that we try without any flags at all, and "pthread-config"
8848# which is a program returning the flags for the Pth emulation library.
8849
cristy18307f12011-12-30 01:20:16 +00008850ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008851
8852# The ordering *is* (sometimes) important. Some notes on the
8853# individual items follow:
8854
8855# pthreads: AIX (must check this before -lpthread)
8856# none: in case threads are in libc; should be tried before -Kthread and
8857# other compiler flags to prevent continual compiler warnings
8858# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8859# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8860# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8861# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8862# -pthreads: Solaris/gcc
8863# -mthreads: Mingw32/gcc, Lynx/gcc
8864# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8865# doesn't hurt to check since this sometimes defines pthreads too;
8866# also defines -D_REENTRANT)
8867# ... -mt is also the pthreads flag for HP/aCC
8868# pthread: Linux, etcetera
8869# --thread-safe: KAI C++
8870# pthread-config: use pthread-config program (for GNU Pth library)
8871
8872case "${host_cpu}-${host_os}" in
8873 *solaris*)
8874
8875 # On Solaris (at least, for some versions), libc contains stubbed
8876 # (non-functional) versions of the pthreads routines, so link-based
8877 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8878 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8879 # a function called by this macro, so we could check for that, but
8880 # who knows whether they'll stub that too in a future libc.) So,
8881 # we'll just look for -pthreads and -lpthread first:
8882
8883 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8884 ;;
8885
cristya316db12011-10-24 00:49:45 +00008886 *-darwin*)
8887 ax_pthread_flags="-pthread $ax_pthread_flags"
8888 ;;
cristy73bd4a52010-10-05 11:24:23 +00008889esac
8890
8891if test x"$ax_pthread_ok" = xno; then
8892for flag in $ax_pthread_flags; do
8893
8894 case $flag in
8895 none)
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8897$as_echo_n "checking whether pthreads work without any flags... " >&6; }
8898 ;;
8899
8900 -*)
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8902$as_echo_n "checking whether pthreads work with $flag... " >&6; }
8903 PTHREAD_CFLAGS="$flag"
8904 ;;
8905
cristya316db12011-10-24 00:49:45 +00008906 pthread-config)
8907 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00008908set dummy pthread-config; ac_word=$2
8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008911if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008912 $as_echo_n "(cached) " >&6
8913else
8914 if test -n "$ax_pthread_config"; then
8915 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8916else
8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8918for as_dir in $PATH
8919do
8920 IFS=$as_save_IFS
8921 test -z "$as_dir" && as_dir=.
8922 for ac_exec_ext in '' $ac_executable_extensions; do
8923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8924 ac_cv_prog_ax_pthread_config="yes"
8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8926 break 2
8927 fi
8928done
8929 done
8930IFS=$as_save_IFS
8931
8932 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8933fi
8934fi
8935ax_pthread_config=$ac_cv_prog_ax_pthread_config
8936if test -n "$ax_pthread_config"; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8938$as_echo "$ax_pthread_config" >&6; }
8939else
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941$as_echo "no" >&6; }
8942fi
8943
8944
cristya316db12011-10-24 00:49:45 +00008945 if test x"$ax_pthread_config" = xno; then continue; fi
8946 PTHREAD_CFLAGS="`pthread-config --cflags`"
8947 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8948 ;;
cristy73bd4a52010-10-05 11:24:23 +00008949
8950 *)
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8952$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8953 PTHREAD_LIBS="-l$flag"
8954 ;;
8955 esac
8956
8957 save_LIBS="$LIBS"
8958 save_CFLAGS="$CFLAGS"
8959 LIBS="$PTHREAD_LIBS $LIBS"
8960 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8961
8962 # Check for various functions. We must include pthread.h,
8963 # since some functions may be macros. (On the Sequent, we
8964 # need a special flag -Kthread to make this header compile.)
8965 # We check for pthread_join because it is in -lpthread on IRIX
8966 # while pthread_create is in libc. We check for pthread_attr_init
8967 # due to DEC craziness with -lpthreads. We check for
8968 # pthread_cleanup_push because it is one of the few pthread
8969 # functions on Solaris that doesn't have a non-functional libc stub.
8970 # We try pthread_create on general principles.
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972/* end confdefs.h. */
8973#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00008974 static void routine(void *a) { a = 0; }
8975 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00008976int
8977main ()
8978{
8979pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00008980 pthread_create(&th, 0, start_routine, 0);
8981 pthread_join(th, 0);
8982 pthread_attr_init(&attr);
8983 pthread_cleanup_push(routine, 0);
8984 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00008985 ;
8986 return 0;
8987}
8988_ACEOF
8989if ac_fn_c_try_link "$LINENO"; then :
8990 ax_pthread_ok=yes
8991fi
8992rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994
8995 LIBS="$save_LIBS"
8996 CFLAGS="$save_CFLAGS"
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8999$as_echo "$ax_pthread_ok" >&6; }
9000 if test "x$ax_pthread_ok" = xyes; then
9001 break;
9002 fi
9003
9004 PTHREAD_LIBS=""
9005 PTHREAD_CFLAGS=""
9006done
9007fi
9008
9009# Various other checks:
9010if test "x$ax_pthread_ok" = xyes; then
9011 save_LIBS="$LIBS"
9012 LIBS="$PTHREAD_LIBS $LIBS"
9013 save_CFLAGS="$CFLAGS"
9014 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9015
9016 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009018$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009019 attr_name=unknown
9020 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009022/* end confdefs.h. */
9023#include <pthread.h>
9024int
9025main ()
9026{
cristya316db12011-10-24 00:49:45 +00009027int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009028 ;
9029 return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_link "$LINENO"; then :
9033 attr_name=$attr; break
9034fi
9035rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009037 done
cristy73bd4a52010-10-05 11:24:23 +00009038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9039$as_echo "$attr_name" >&6; }
9040 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9041
9042cat >>confdefs.h <<_ACEOF
9043#define PTHREAD_CREATE_JOINABLE $attr_name
9044_ACEOF
9045
9046 fi
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9049$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9050 flag=no
9051 case "${host_cpu}-${host_os}" in
9052 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9053 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9054 esac
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9056$as_echo "${flag}" >&6; }
9057 if test "x$flag" != xno; then
9058 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9059 fi
9060
cristya316db12011-10-24 00:49:45 +00009061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9062$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9063if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065else
9066
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068/* end confdefs.h. */
9069
9070 #include <pthread.h>
9071int
9072main ()
9073{
9074int i = PTHREAD_PRIO_INHERIT;
9075 ;
9076 return 0;
9077}
9078_ACEOF
9079if ac_fn_c_try_link "$LINENO"; then :
9080 ax_cv_PTHREAD_PRIO_INHERIT=yes
9081else
9082 ax_cv_PTHREAD_PRIO_INHERIT=no
9083fi
9084rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9086
9087fi
9088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9089$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9090 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9091
9092$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9093
9094fi
9095
cristy73bd4a52010-10-05 11:24:23 +00009096 LIBS="$save_LIBS"
9097 CFLAGS="$save_CFLAGS"
9098
9099 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009100 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009101 for ac_prog in xlc_r cc_r
9102do
9103 # Extract the first word of "$ac_prog", so it can be a program name with args.
9104set dummy $ac_prog; ac_word=$2
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009107if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009108 $as_echo_n "(cached) " >&6
9109else
9110 if test -n "$PTHREAD_CC"; then
9111 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9112else
9113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114for as_dir in $PATH
9115do
9116 IFS=$as_save_IFS
9117 test -z "$as_dir" && as_dir=.
9118 for ac_exec_ext in '' $ac_executable_extensions; do
9119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9120 ac_cv_prog_PTHREAD_CC="$ac_prog"
9121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 break 2
9123 fi
9124done
9125 done
9126IFS=$as_save_IFS
9127
9128fi
9129fi
9130PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9131if test -n "$PTHREAD_CC"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9133$as_echo "$PTHREAD_CC" >&6; }
9134else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136$as_echo "no" >&6; }
9137fi
9138
9139
9140 test -n "$PTHREAD_CC" && break
9141done
9142test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9143
9144 else
9145 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009146 fi
cristy73bd4a52010-10-05 11:24:23 +00009147else
9148 PTHREAD_CC="$CC"
9149fi
9150
9151
9152
9153
9154
9155# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9156if test x"$ax_pthread_ok" = xyes; then
9157
9158$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9159
9160 :
9161else
9162 ax_pthread_ok=no
9163
9164fi
9165ac_ext=c
9166ac_cpp='$CPP $CPPFLAGS'
9167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9169ac_compiler_gnu=$ac_cv_c_compiler_gnu
9170
9171
cristy7acf8fb2010-09-23 19:58:53 +00009172 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009173 have_threads=yes
9174 DEF_THREAD="$PTHREAD_CFLAGS"
9175 CFLAGS="$CFLAGS $DEF_THREAD"
9176 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9177 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009178 { $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 +00009179$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9180 CC="$PTHREAD_CC"
9181 fi
cristy55bf91c2010-09-24 00:29:41 +00009182
9183$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9184
cristy3ed852e2009-09-05 21:47:34 +00009185 fi
9186fi
9187
9188# Enable support for OpenMP
9189if test "$have_threads" != 'yes'; then
9190 ac_cv_prog_c_openmp=unsupported
9191fi
9192
9193 OPENMP_CFLAGS=
9194 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009195if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009196 enableval=$enable_openmp;
9197fi
9198
9199 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009201$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009202if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009203 $as_echo_n "(cached) " >&6
9204else
cristy8b350f62009-11-15 23:12:43 +00009205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009207
9208#ifndef _OPENMP
9209 choke me
9210#endif
9211#include <omp.h>
9212int main () { return omp_get_num_threads (); }
9213
9214_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009216 ac_cv_prog_c_openmp='none needed'
9217else
cristy8b350f62009-11-15 23:12:43 +00009218 ac_cv_prog_c_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +00009219 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
9220 ac_save_CFLAGS=$CFLAGS
9221 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9223/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009224
9225#ifndef _OPENMP
9226 choke me
9227#endif
9228#include <omp.h>
9229int main () { return omp_get_num_threads (); }
9230
9231_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009232if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009233 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009234fi
cristy8b350f62009-11-15 23:12:43 +00009235rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009237 CFLAGS=$ac_save_CFLAGS
9238 if test "$ac_cv_prog_c_openmp" != unsupported; then
9239 break
9240 fi
9241 done
9242fi
cristy8b350f62009-11-15 23:12:43 +00009243rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009245fi
cristy8b350f62009-11-15 23:12:43 +00009246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009247$as_echo "$ac_cv_prog_c_openmp" >&6; }
9248 case $ac_cv_prog_c_openmp in #(
9249 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009250 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009251 *)
cristy8b350f62009-11-15 23:12:43 +00009252 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009253 esac
9254 fi
9255
9256
9257CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9258MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9259
cristy391f1ce2010-09-09 17:23:28 +00009260if test "$enable_openmp" != no; then
9261 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9262 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9263 fi
9264fi
cristy3ed852e2009-09-05 21:47:34 +00009265
cristy736173a2009-09-20 21:18:22 +00009266# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009267
9268
cristy73bd4a52010-10-05 11:24:23 +00009269ac_ext=c
9270ac_cpp='$CPP $CPPFLAGS'
9271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9273ac_compiler_gnu=$ac_cv_c_compiler_gnu
9274
9275ax_pthread_ok=no
9276
9277# We used to check for pthread.h first, but this fails if pthread.h
9278# requires special compiler flags (e.g. on True64 or Sequent).
9279# It gets checked for in the link test anyway.
9280
9281# First of all, check if the user has set any of the PTHREAD_LIBS,
9282# etcetera environment variables, and if threads linking works using
9283# them:
9284if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9285 save_CFLAGS="$CFLAGS"
9286 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9287 save_LIBS="$LIBS"
9288 LIBS="$PTHREAD_LIBS $LIBS"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9290$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h. */
9293
9294/* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
9297#ifdef __cplusplus
9298extern "C"
9299#endif
9300char pthread_join ();
9301int
9302main ()
9303{
9304return pthread_join ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309if ac_fn_c_try_link "$LINENO"; then :
9310 ax_pthread_ok=yes
9311fi
9312rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9315$as_echo "$ax_pthread_ok" >&6; }
9316 if test x"$ax_pthread_ok" = xno; then
9317 PTHREAD_LIBS=""
9318 PTHREAD_CFLAGS=""
9319 fi
9320 LIBS="$save_LIBS"
9321 CFLAGS="$save_CFLAGS"
9322fi
9323
9324# We must check for the threads library under a number of different
9325# names; the ordering is very important because some systems
9326# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9327# libraries is broken (non-POSIX).
9328
9329# Create a list of thread flags to try. Items starting with a "-" are
9330# C compiler flags, and other items are library names, except for "none"
9331# which indicates that we try without any flags at all, and "pthread-config"
9332# which is a program returning the flags for the Pth emulation library.
9333
cristy18307f12011-12-30 01:20:16 +00009334ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009335
9336# The ordering *is* (sometimes) important. Some notes on the
9337# individual items follow:
9338
9339# pthreads: AIX (must check this before -lpthread)
9340# none: in case threads are in libc; should be tried before -Kthread and
9341# other compiler flags to prevent continual compiler warnings
9342# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9343# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9344# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9345# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9346# -pthreads: Solaris/gcc
9347# -mthreads: Mingw32/gcc, Lynx/gcc
9348# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9349# doesn't hurt to check since this sometimes defines pthreads too;
9350# also defines -D_REENTRANT)
9351# ... -mt is also the pthreads flag for HP/aCC
9352# pthread: Linux, etcetera
9353# --thread-safe: KAI C++
9354# pthread-config: use pthread-config program (for GNU Pth library)
9355
9356case "${host_cpu}-${host_os}" in
9357 *solaris*)
9358
9359 # On Solaris (at least, for some versions), libc contains stubbed
9360 # (non-functional) versions of the pthreads routines, so link-based
9361 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9362 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9363 # a function called by this macro, so we could check for that, but
9364 # who knows whether they'll stub that too in a future libc.) So,
9365 # we'll just look for -pthreads and -lpthread first:
9366
9367 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9368 ;;
9369
cristya316db12011-10-24 00:49:45 +00009370 *-darwin*)
9371 ax_pthread_flags="-pthread $ax_pthread_flags"
9372 ;;
cristy73bd4a52010-10-05 11:24:23 +00009373esac
9374
9375if test x"$ax_pthread_ok" = xno; then
9376for flag in $ax_pthread_flags; do
9377
9378 case $flag in
9379 none)
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9381$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9382 ;;
9383
9384 -*)
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9386$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9387 PTHREAD_CFLAGS="$flag"
9388 ;;
9389
cristya316db12011-10-24 00:49:45 +00009390 pthread-config)
9391 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009392set dummy pthread-config; ac_word=$2
9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009395if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009396 $as_echo_n "(cached) " >&6
9397else
9398 if test -n "$ax_pthread_config"; then
9399 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9400else
9401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402for as_dir in $PATH
9403do
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_prog_ax_pthread_config="yes"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9411 fi
9412done
9413 done
9414IFS=$as_save_IFS
9415
9416 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9417fi
9418fi
9419ax_pthread_config=$ac_cv_prog_ax_pthread_config
9420if test -n "$ax_pthread_config"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9422$as_echo "$ax_pthread_config" >&6; }
9423else
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
9426fi
9427
9428
cristya316db12011-10-24 00:49:45 +00009429 if test x"$ax_pthread_config" = xno; then continue; fi
9430 PTHREAD_CFLAGS="`pthread-config --cflags`"
9431 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9432 ;;
cristy73bd4a52010-10-05 11:24:23 +00009433
9434 *)
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9436$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9437 PTHREAD_LIBS="-l$flag"
9438 ;;
9439 esac
9440
9441 save_LIBS="$LIBS"
9442 save_CFLAGS="$CFLAGS"
9443 LIBS="$PTHREAD_LIBS $LIBS"
9444 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9445
9446 # Check for various functions. We must include pthread.h,
9447 # since some functions may be macros. (On the Sequent, we
9448 # need a special flag -Kthread to make this header compile.)
9449 # We check for pthread_join because it is in -lpthread on IRIX
9450 # while pthread_create is in libc. We check for pthread_attr_init
9451 # due to DEC craziness with -lpthreads. We check for
9452 # pthread_cleanup_push because it is one of the few pthread
9453 # functions on Solaris that doesn't have a non-functional libc stub.
9454 # We try pthread_create on general principles.
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h. */
9457#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009458 static void routine(void *a) { a = 0; }
9459 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009460int
9461main ()
9462{
9463pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009464 pthread_create(&th, 0, start_routine, 0);
9465 pthread_join(th, 0);
9466 pthread_attr_init(&attr);
9467 pthread_cleanup_push(routine, 0);
9468 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009469 ;
9470 return 0;
9471}
9472_ACEOF
9473if ac_fn_c_try_link "$LINENO"; then :
9474 ax_pthread_ok=yes
9475fi
9476rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478
9479 LIBS="$save_LIBS"
9480 CFLAGS="$save_CFLAGS"
9481
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9483$as_echo "$ax_pthread_ok" >&6; }
9484 if test "x$ax_pthread_ok" = xyes; then
9485 break;
9486 fi
9487
9488 PTHREAD_LIBS=""
9489 PTHREAD_CFLAGS=""
9490done
9491fi
9492
9493# Various other checks:
9494if test "x$ax_pthread_ok" = xyes; then
9495 save_LIBS="$LIBS"
9496 LIBS="$PTHREAD_LIBS $LIBS"
9497 save_CFLAGS="$CFLAGS"
9498 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9499
9500 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009502$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009503 attr_name=unknown
9504 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009506/* end confdefs.h. */
9507#include <pthread.h>
9508int
9509main ()
9510{
cristya316db12011-10-24 00:49:45 +00009511int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009512 ;
9513 return 0;
9514}
9515_ACEOF
9516if ac_fn_c_try_link "$LINENO"; then :
9517 attr_name=$attr; break
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009521 done
cristy73bd4a52010-10-05 11:24:23 +00009522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9523$as_echo "$attr_name" >&6; }
9524 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9525
9526cat >>confdefs.h <<_ACEOF
9527#define PTHREAD_CREATE_JOINABLE $attr_name
9528_ACEOF
9529
9530 fi
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9533$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9534 flag=no
9535 case "${host_cpu}-${host_os}" in
9536 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9537 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9538 esac
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9540$as_echo "${flag}" >&6; }
9541 if test "x$flag" != xno; then
9542 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9543 fi
9544
cristya316db12011-10-24 00:49:45 +00009545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9546$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9547if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549else
9550
9551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9552/* end confdefs.h. */
9553
9554 #include <pthread.h>
9555int
9556main ()
9557{
9558int i = PTHREAD_PRIO_INHERIT;
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563if ac_fn_c_try_link "$LINENO"; then :
9564 ax_cv_PTHREAD_PRIO_INHERIT=yes
9565else
9566 ax_cv_PTHREAD_PRIO_INHERIT=no
9567fi
9568rm -f core conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9573$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9574 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9575
9576$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9577
9578fi
9579
cristy73bd4a52010-10-05 11:24:23 +00009580 LIBS="$save_LIBS"
9581 CFLAGS="$save_CFLAGS"
9582
9583 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009584 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009585 for ac_prog in xlc_r cc_r
9586do
9587 # Extract the first word of "$ac_prog", so it can be a program name with args.
9588set dummy $ac_prog; ac_word=$2
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009591if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009592 $as_echo_n "(cached) " >&6
9593else
9594 if test -n "$PTHREAD_CC"; then
9595 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9596else
9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9604 ac_cv_prog_PTHREAD_CC="$ac_prog"
9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9606 break 2
9607 fi
9608done
9609 done
9610IFS=$as_save_IFS
9611
9612fi
9613fi
9614PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9615if test -n "$PTHREAD_CC"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9617$as_echo "$PTHREAD_CC" >&6; }
9618else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620$as_echo "no" >&6; }
9621fi
9622
9623
9624 test -n "$PTHREAD_CC" && break
9625done
9626test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9627
9628 else
9629 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009630 fi
cristy73bd4a52010-10-05 11:24:23 +00009631else
9632 PTHREAD_CC="$CC"
9633fi
9634
9635
9636
9637
9638
9639# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9640if test x"$ax_pthread_ok" = xyes; then
9641
9642$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9643
9644 :
9645else
9646 ax_pthread_ok=no
9647
9648fi
9649ac_ext=c
9650ac_cpp='$CPP $CPPFLAGS'
9651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9653ac_compiler_gnu=$ac_cv_c_compiler_gnu
9654
9655
9656
9657# Check whether --enable-opencl was given.
9658if test "${enable_opencl+set}" = set; then :
9659 enableval=$enable_opencl; disable_opencl=$enableval
9660else
9661 disable_opencl='yes'
9662fi
9663
9664
9665if test "$disable_opencl" = 'yes'; then
9666 ac_ext=c
9667ac_cpp='$CPP $CPPFLAGS'
9668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9670ac_compiler_gnu=$ac_cv_c_compiler_gnu
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9673$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009674if ${ax_cv_c_compiler_ms+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009675 $as_echo_n "(cached) " >&6
9676else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678/* end confdefs.h. */
9679
9680int
9681main ()
9682{
9683#ifndef _MSC_VER
9684 choke me
9685#endif
9686
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_compile "$LINENO"; then :
9692 ax_compiler_ms=yes
9693else
9694 ax_compiler_ms=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697ax_cv_c_compiler_ms=$ax_compiler_ms
9698
9699fi
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9701$as_echo "$ax_cv_c_compiler_ms" >&6; }
9702 if test X$ax_compiler_ms = Xno; then :
9703 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9704fi
9705
9706 ax_save_CPPFLAGS=$CPPFLAGS
9707 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9708 for ac_header in CL/cl.h OpenCL/cl.h
9709do :
9710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009712if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009713 cat >>confdefs.h <<_ACEOF
9714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9715_ACEOF
9716
9717fi
9718
9719done
9720
9721 CPPFLAGS=$ax_save_CPPFLAGS
9722
9723 for ac_header in windows.h
9724do :
9725 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009726if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009727 cat >>confdefs.h <<_ACEOF
9728#define HAVE_WINDOWS_H 1
9729_ACEOF
9730
9731fi
9732
9733done
9734
9735
9736
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9739$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009740if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009741 $as_echo_n "(cached) " >&6
9742else
9743 ax_cv_check_cl_libcl=no
9744 case $host_cpu in
9745 x86_64) ax_check_cl_libdir=lib64 ;;
9746 *) ax_check_cl_libdir=lib ;;
9747 esac
9748 ax_save_CPPFLAGS=$CPPFLAGS
9749 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9750 ax_save_LIBS=$LIBS
9751 LIBS=""
9752 ax_check_libs="-lOpenCL -lCL -lclparser"
9753 for ax_lib in $ax_check_libs; do
9754 if test X$ax_compiler_ms = Xyes; then :
9755 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9756else
9757 ax_try_lib=$ax_lib
9758fi
9759 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761/* end confdefs.h. */
9762
9763 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9764 # include <windows.h>
9765 # endif
9766 # ifdef HAVE_CL_CL_H
9767 # include <CL/cl.h>
9768 # elif defined(HAVE_OPENCL_CL_H)
9769 # include <OpenCL/cl.h>
9770 # else
9771 # error no CL.h
9772 # endif
9773int
9774main ()
9775{
9776clCreateContextFromType(0,0,0,0,0)
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_link "$LINENO"; then :
9782 ax_cv_check_cl_libcl=$ax_try_lib; break
9783else
9784 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"
9785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9786/* end confdefs.h. */
9787
9788 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9789 # include <windows.h>
9790 # endif
9791 # ifdef HAVE_CL_CL_H
9792 # include <CL/cl.h>
9793 # elif defined(HAVE_OPENCL_CL_H)
9794 # include <OpenCL/cl.h>
9795 # else
9796 # error no CL.h
9797 # endif
9798int
9799main ()
9800{
9801clCreateContextFromType(0,0,0,0,0)
9802 ;
9803 return 0;
9804}
9805_ACEOF
9806if ac_fn_c_try_link "$LINENO"; then :
9807 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9808else
cristy78c5a0c2010-12-04 20:00:59 +00009809 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 +00009810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812
9813 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9814 # include <windows.h>
9815 # endif
9816 # ifdef HAVE_CL_CL_H
9817 # include <CL/cl.h>
9818 # elif defined(HAVE_OPENCL_CL_H)
9819 # include <OpenCL/cl.h>
9820 # else
9821 # error no CL.h
9822 # endif
9823int
9824main ()
9825{
9826clCreateContextFromType(0,0,0,0,0)
9827 ;
9828 return 0;
9829}
9830_ACEOF
9831if ac_fn_c_try_link "$LINENO"; then :
9832 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9833fi
9834rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext conftest.$ac_ext
9836fi
9837rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839fi
9840rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 done
9843
cristyc3f8b8e2011-12-22 14:55:16 +00009844 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009845 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847/* end confdefs.h. */
9848
9849 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9850 # include <windows.h>
9851 # endif
9852 # ifdef HAVE_CL_CL_H
9853 # include <CL/cl.h>
9854 # elif defined(HAVE_OPENCL_CL_H)
9855 # include <OpenCL/cl.h>
9856 # else
9857 # error no CL.h
9858 # endif
9859int
9860main ()
9861{
9862clCreateContextFromType(0,0,0,0,0)
9863 ;
9864 return 0;
9865}
9866_ACEOF
9867if ac_fn_c_try_link "$LINENO"; then :
9868 ax_cv_check_cl_libcl=$LIBS
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext conftest.$ac_ext
9872fi
9873
9874 LIBS=$ax_save_LIBS
9875 CPPFLAGS=$ax_save_CPPFLAGS
9876fi
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9878$as_echo "$ax_cv_check_cl_libcl" >&6; }
9879
9880 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9881 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9882else
9883 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9884$as_echo "#define _OPENCL 1" >>confdefs.h
9885
9886fi
9887 ac_ext=c
9888ac_cpp='$CPP $CPPFLAGS'
9889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9891ac_compiler_gnu=$ac_cv_c_compiler_gnu
9892
9893fi
9894
9895
9896
9897
cristyc7083c12009-10-14 03:16:55 +00009898CFLAGS="$CL_CFLAGS $CFLAGS"
9899LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00009900
cristy391f1ce2010-09-09 17:23:28 +00009901if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +00009902 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +00009903 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9904 fi
cristyfd9dcd42010-08-08 18:07:02 +00009905fi
cristy2e8b51d2009-10-17 18:26:15 +00009906
cristy3ed852e2009-09-05 21:47:34 +00009907########
9908#
9909# Check for large file support
9910#
9911########
9912# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +00009913if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009914 enableval=$enable_largefile;
9915fi
9916
9917if test "$enable_largefile" != no; then
9918
cristy8b350f62009-11-15 23:12:43 +00009919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009920$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009921if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009922 $as_echo_n "(cached) " >&6
9923else
9924 ac_cv_sys_largefile_CC=no
9925 if test "$GCC" != yes; then
9926 ac_save_CC=$CC
9927 while :; do
9928 # IRIX 6.2 and later do not support large files by default,
9929 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +00009930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009931/* end confdefs.h. */
9932#include <sys/types.h>
9933 /* Check that off_t can represent 2**63 - 1 correctly.
9934 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9935 since some C++ compilers masquerading as C compilers
9936 incorrectly reject 9223372036854775807. */
9937#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9938 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9939 && LARGE_OFF_T % 2147483647 == 1)
9940 ? 1 : -1];
9941int
9942main ()
9943{
9944
9945 ;
9946 return 0;
9947}
9948_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009949 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009950 break
cristy3ed852e2009-09-05 21:47:34 +00009951fi
cristy3ed852e2009-09-05 21:47:34 +00009952rm -f core conftest.err conftest.$ac_objext
9953 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +00009954 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009955 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +00009956fi
cristy3ed852e2009-09-05 21:47:34 +00009957rm -f core conftest.err conftest.$ac_objext
9958 break
9959 done
9960 CC=$ac_save_CC
9961 rm -f conftest.$ac_ext
9962 fi
9963fi
cristy8b350f62009-11-15 23:12:43 +00009964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00009965$as_echo "$ac_cv_sys_largefile_CC" >&6; }
9966 if test "$ac_cv_sys_largefile_CC" != no; then
9967 CC=$CC$ac_cv_sys_largefile_CC
9968 fi
9969
cristy8b350f62009-11-15 23:12:43 +00009970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +00009971$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009972if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009973 $as_echo_n "(cached) " >&6
9974else
9975 while :; do
cristy8b350f62009-11-15 23:12:43 +00009976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009977/* end confdefs.h. */
9978#include <sys/types.h>
9979 /* Check that off_t can represent 2**63 - 1 correctly.
9980 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9981 since some C++ compilers masquerading as C compilers
9982 incorrectly reject 9223372036854775807. */
9983#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9984 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9985 && LARGE_OFF_T % 2147483647 == 1)
9986 ? 1 : -1];
9987int
9988main ()
9989{
9990
9991 ;
9992 return 0;
9993}
9994_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009995if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009996 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +00009997fi
cristy3ed852e2009-09-05 21:47:34 +00009998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00009999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010000/* end confdefs.h. */
10001#define _FILE_OFFSET_BITS 64
10002#include <sys/types.h>
10003 /* Check that off_t can represent 2**63 - 1 correctly.
10004 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10005 since some C++ compilers masquerading as C compilers
10006 incorrectly reject 9223372036854775807. */
10007#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10008 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10009 && LARGE_OFF_T % 2147483647 == 1)
10010 ? 1 : -1];
10011int
10012main ()
10013{
10014
10015 ;
10016 return 0;
10017}
10018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010019if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010020 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010021fi
cristy3ed852e2009-09-05 21:47:34 +000010022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10023 ac_cv_sys_file_offset_bits=unknown
10024 break
10025done
10026fi
cristy8b350f62009-11-15 23:12:43 +000010027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010028$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10029case $ac_cv_sys_file_offset_bits in #(
10030 no | unknown) ;;
10031 *)
10032cat >>confdefs.h <<_ACEOF
10033#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10034_ACEOF
10035;;
10036esac
10037rm -rf conftest*
10038 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010040$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010041if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010042 $as_echo_n "(cached) " >&6
10043else
10044 while :; do
cristy8b350f62009-11-15 23:12:43 +000010045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010046/* end confdefs.h. */
10047#include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10055 ? 1 : -1];
10056int
10057main ()
10058{
10059
10060 ;
10061 return 0;
10062}
10063_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010064if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010065 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010066fi
cristy3ed852e2009-09-05 21:47:34 +000010067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010069/* end confdefs.h. */
10070#define _LARGE_FILES 1
10071#include <sys/types.h>
10072 /* Check that off_t can represent 2**63 - 1 correctly.
10073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10074 since some C++ compilers masquerading as C compilers
10075 incorrectly reject 9223372036854775807. */
10076#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10078 && LARGE_OFF_T % 2147483647 == 1)
10079 ? 1 : -1];
10080int
10081main ()
10082{
10083
10084 ;
10085 return 0;
10086}
10087_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010088if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010089 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010090fi
cristy3ed852e2009-09-05 21:47:34 +000010091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 ac_cv_sys_large_files=unknown
10093 break
10094done
10095fi
cristy8b350f62009-11-15 23:12:43 +000010096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010097$as_echo "$ac_cv_sys_large_files" >&6; }
10098case $ac_cv_sys_large_files in #(
10099 no | unknown) ;;
10100 *)
10101cat >>confdefs.h <<_ACEOF
10102#define _LARGE_FILES $ac_cv_sys_large_files
10103_ACEOF
10104;;
10105esac
10106rm -rf conftest*
10107 fi
10108fi
10109
cristy8b350f62009-11-15 23:12:43 +000010110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010111$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010112if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010113 $as_echo_n "(cached) " >&6
10114else
10115 while :; do
cristy8b350f62009-11-15 23:12:43 +000010116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010117/* end confdefs.h. */
10118#include <sys/types.h> /* for off_t */
10119 #include <stdio.h>
10120int
10121main ()
10122{
10123int (*fp) (FILE *, off_t, int) = fseeko;
10124 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10125 ;
10126 return 0;
10127}
10128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010129if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010130 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010131fi
cristy8b350f62009-11-15 23:12:43 +000010132rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010135/* end confdefs.h. */
10136#define _LARGEFILE_SOURCE 1
10137#include <sys/types.h> /* for off_t */
10138 #include <stdio.h>
10139int
10140main ()
10141{
10142int (*fp) (FILE *, off_t, int) = fseeko;
10143 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10144 ;
10145 return 0;
10146}
10147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010148if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010149 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010150fi
cristy8b350f62009-11-15 23:12:43 +000010151rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010153 ac_cv_sys_largefile_source=unknown
10154 break
10155done
10156fi
cristy8b350f62009-11-15 23:12:43 +000010157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010158$as_echo "$ac_cv_sys_largefile_source" >&6; }
10159case $ac_cv_sys_largefile_source in #(
10160 no | unknown) ;;
10161 *)
10162cat >>confdefs.h <<_ACEOF
10163#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10164_ACEOF
10165;;
10166esac
10167rm -rf conftest*
10168
10169# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10170# in glibc 2.1.3, but that breaks too many other things.
10171# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10172if test $ac_cv_sys_largefile_source != unknown; then
10173
cristy8b350f62009-11-15 23:12:43 +000010174$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010175
10176fi
10177
10178LFS_CPPFLAGS=''
10179if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010180 case $ac_cv_sys_file_offset_bits in
10181 no)
10182 # nothing to do here as the host supports LFS fine
10183 ;;
10184 unknown)
cristy8b350f62009-11-15 23:12:43 +000010185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010186$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010187 if test "$cross_compiling" = yes; then :
10188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010190as_fn_error $? "cannot run test program while cross compiling
10191See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010192else
cristy8b350f62009-11-15 23:12:43 +000010193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010195#include <unistd.h>
10196 main () {
10197 exit(!(sizeof(off_t) == 8));
10198 }
cristyda16f162011-02-19 23:52:17 +000010199int
10200main ()
10201{
10202
10203 ;
10204 return 0;
10205}
cristy3ed852e2009-09-05 21:47:34 +000010206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010207if ac_fn_c_try_run "$LINENO"; then :
10208 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010209
cristy09b53e12011-10-14 12:47:22 +000010210 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10211$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010212else
cristy09b53e12011-10-14 12:47:22 +000010213 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10214$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010215fi
cristy8b350f62009-11-15 23:12:43 +000010216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10217 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010218fi
10219
cristyc1e0cc12011-09-21 16:41:16 +000010220 ;;
10221 *)
10222 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10223 ;;
10224 esac
cristy3ed852e2009-09-05 21:47:34 +000010225 if test "$ac_cv_sys_large_files" != 'no'; then
10226 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10227 fi
10228 if test "$ac_cv_sys_largefile_source" != 'no'; then
10229 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10230 fi
10231fi
10232
10233
cristy3ed852e2009-09-05 21:47:34 +000010234# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010235enable_dlopen=yes
10236
10237
10238
10239case `pwd` in
10240 *\ * | *\ *)
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10242$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10243esac
10244
10245
10246
cristy99bd5232011-12-07 14:38:20 +000010247macro_version='2.4.2'
10248macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262ltmain="$ac_aux_dir/ltmain.sh"
10263
cristy0c60a692010-11-04 01:09:47 +000010264# Backslashify metacharacters that are still active within
10265# double-quoted strings.
10266sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10267
10268# Same as above, but do not quote variable references.
10269double_quote_subst='s/\(["`\\]\)/\\\1/g'
10270
10271# Sed substitution to delay expansion of an escaped shell variable in a
10272# double_quote_subst'ed string.
10273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10274
10275# Sed substitution to delay expansion of an escaped single quote.
10276delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10277
10278# Sed substitution to avoid accidental globbing in evaled expressions
10279no_glob_subst='s/\*/\\\*/g'
10280
cristy73bd4a52010-10-05 11:24:23 +000010281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10282$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010283if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010284 $as_echo_n "(cached) " >&6
10285else
10286 if test -n "$NM"; then
10287 # Let the user override the test.
10288 lt_cv_path_NM="$NM"
10289else
10290 lt_nm_to_check="${ac_tool_prefix}nm"
10291 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10292 lt_nm_to_check="$lt_nm_to_check nm"
10293 fi
10294 for lt_tmp_nm in $lt_nm_to_check; do
10295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10296 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10297 IFS="$lt_save_ifs"
10298 test -z "$ac_dir" && ac_dir=.
10299 tmp_nm="$ac_dir/$lt_tmp_nm"
10300 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10301 # Check to see if the nm accepts a BSD-compat flag.
10302 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10303 # nm: unknown option "B" ignored
10304 # Tru64's nm complains that /dev/null is an invalid object file
10305 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10306 */dev/null* | *'Invalid file or object type'*)
10307 lt_cv_path_NM="$tmp_nm -B"
10308 break
10309 ;;
10310 *)
10311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10312 */dev/null*)
10313 lt_cv_path_NM="$tmp_nm -p"
10314 break
10315 ;;
10316 *)
10317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10318 continue # so that we can try to find one that supports BSD flags
10319 ;;
10320 esac
10321 ;;
10322 esac
10323 fi
10324 done
10325 IFS="$lt_save_ifs"
10326 done
10327 : ${lt_cv_path_NM=no}
10328fi
10329fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10331$as_echo "$lt_cv_path_NM" >&6; }
10332if test "$lt_cv_path_NM" != "no"; then
10333 NM="$lt_cv_path_NM"
10334else
10335 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010336 if test -n "$DUMPBIN"; then :
10337 # Let the user override the test.
10338 else
10339 if test -n "$ac_tool_prefix"; then
10340 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010341 do
10342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010346if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010347 $as_echo_n "(cached) " >&6
10348else
10349 if test -n "$DUMPBIN"; then
10350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 break 2
10362 fi
10363done
10364 done
10365IFS=$as_save_IFS
10366
10367fi
10368fi
10369DUMPBIN=$ac_cv_prog_DUMPBIN
10370if test -n "$DUMPBIN"; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10372$as_echo "$DUMPBIN" >&6; }
10373else
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
10376fi
10377
10378
10379 test -n "$DUMPBIN" && break
10380 done
10381fi
10382if test -z "$DUMPBIN"; then
10383 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010384 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010385do
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387set dummy $ac_prog; 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_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010391 $as_echo_n "(cached) " >&6
10392else
10393 if test -n "$ac_ct_DUMPBIN"; then
10394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$ac_prog"
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
10413ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10414if test -n "$ac_ct_DUMPBIN"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10416$as_echo "$ac_ct_DUMPBIN" >&6; }
10417else
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
10420fi
10421
10422
10423 test -n "$ac_ct_DUMPBIN" && break
10424done
10425
10426 if test "x$ac_ct_DUMPBIN" = x; then
10427 DUMPBIN=":"
10428 else
10429 case $cross_compiling:$ac_tool_warned in
10430yes:)
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10433ac_tool_warned=yes ;;
10434esac
10435 DUMPBIN=$ac_ct_DUMPBIN
10436 fi
10437fi
10438
cristy0c60a692010-11-04 01:09:47 +000010439 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10440 *COFF*)
10441 DUMPBIN="$DUMPBIN -symbols"
10442 ;;
10443 *)
10444 DUMPBIN=:
10445 ;;
10446 esac
10447 fi
cristy73bd4a52010-10-05 11:24:23 +000010448
10449 if test "$DUMPBIN" != ":"; then
10450 NM="$DUMPBIN"
10451 fi
10452fi
10453test -z "$NM" && NM=nm
10454
10455
10456
10457
10458
10459
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10461$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010462if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010463 $as_echo_n "(cached) " >&6
10464else
10465 lt_cv_nm_interface="BSD nm"
10466 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010468 (eval "$ac_compile" 2>conftest.err)
10469 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10472 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010473 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010474 cat conftest.out >&5
10475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10476 lt_cv_nm_interface="MS dumpbin"
10477 fi
10478 rm -f conftest*
10479fi
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10481$as_echo "$lt_cv_nm_interface" >&6; }
10482
10483# find the maximum length of command line arguments
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10485$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010486if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010487 $as_echo_n "(cached) " >&6
10488else
10489 i=0
10490 teststring="ABCD"
10491
10492 case $build_os in
10493 msdosdjgpp*)
10494 # On DJGPP, this test can blow up pretty badly due to problems in libc
10495 # (any single argument exceeding 2000 bytes causes a buffer overrun
10496 # during glob expansion). Even if it were fixed, the result of this
10497 # check would be larger than it should be.
10498 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10499 ;;
10500
10501 gnu*)
10502 # Under GNU Hurd, this test is not required because there is
10503 # no limit to the length of command line arguments.
10504 # Libtool will interpret -1 as no limit whatsoever
10505 lt_cv_sys_max_cmd_len=-1;
10506 ;;
10507
10508 cygwin* | mingw* | cegcc*)
10509 # On Win9x/ME, this test blows up -- it succeeds, but takes
10510 # about 5 minutes as the teststring grows exponentially.
10511 # Worse, since 9x/ME are not pre-emptively multitasking,
10512 # you end up with a "frozen" computer, even though with patience
10513 # the test eventually succeeds (with a max line length of 256k).
10514 # Instead, let's just punt: use the minimum linelength reported by
10515 # all of the supported platforms: 8192 (on NT/2K/XP).
10516 lt_cv_sys_max_cmd_len=8192;
10517 ;;
10518
cristy0c60a692010-11-04 01:09:47 +000010519 mint*)
10520 # On MiNT this can take a long time and run out of memory.
10521 lt_cv_sys_max_cmd_len=8192;
10522 ;;
10523
cristy73bd4a52010-10-05 11:24:23 +000010524 amigaos*)
10525 # On AmigaOS with pdksh, this test takes hours, literally.
10526 # So we just punt and use a minimum line length of 8192.
10527 lt_cv_sys_max_cmd_len=8192;
10528 ;;
10529
10530 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10531 # This has been around since 386BSD, at least. Likely further.
10532 if test -x /sbin/sysctl; then
10533 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10534 elif test -x /usr/sbin/sysctl; then
10535 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10536 else
10537 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10538 fi
10539 # And add a safety zone
10540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10541 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10542 ;;
10543
10544 interix*)
10545 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10546 lt_cv_sys_max_cmd_len=196608
10547 ;;
10548
cristy99bd5232011-12-07 14:38:20 +000010549 os2*)
10550 # The test takes a long time on OS/2.
10551 lt_cv_sys_max_cmd_len=8192
10552 ;;
10553
cristy73bd4a52010-10-05 11:24:23 +000010554 osf*)
10555 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10556 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10557 # nice to cause kernel panics so lets avoid the loop below.
10558 # First set a reasonable default.
10559 lt_cv_sys_max_cmd_len=16384
10560 #
10561 if test -x /sbin/sysconfig; then
10562 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10563 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10564 esac
10565 fi
10566 ;;
10567 sco3.2v5*)
10568 lt_cv_sys_max_cmd_len=102400
10569 ;;
10570 sysv5* | sco5v6* | sysv4.2uw2*)
10571 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10572 if test -n "$kargmax"; then
10573 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10574 else
10575 lt_cv_sys_max_cmd_len=32768
10576 fi
10577 ;;
10578 *)
10579 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10580 if test -n "$lt_cv_sys_max_cmd_len"; then
10581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10583 else
10584 # Make teststring a little bigger before we do anything with it.
10585 # a 1K string should be a reasonable start.
10586 for i in 1 2 3 4 5 6 7 8 ; do
10587 teststring=$teststring$teststring
10588 done
10589 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10590 # If test is not a shell built-in, we'll probably end up computing a
10591 # maximum length that is only half of the actual maximum length, but
10592 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010593 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010594 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010595 test $i != 17 # 1/2 MB should be enough
10596 do
10597 i=`expr $i + 1`
10598 teststring=$teststring$teststring
10599 done
10600 # Only check the string length outside the loop.
10601 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10602 teststring=
10603 # Add a significant safety factor because C++ compilers can tack on
10604 # massive amounts of additional arguments before passing them to the
10605 # linker. It appears as though 1/2 is a usable value.
10606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10607 fi
10608 ;;
10609 esac
10610
10611fi
10612
10613if test -n $lt_cv_sys_max_cmd_len ; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10615$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10616else
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10618$as_echo "none" >&6; }
10619fi
10620max_cmd_len=$lt_cv_sys_max_cmd_len
10621
10622
10623
10624
10625
10626
10627: ${CP="cp -f"}
10628: ${MV="mv -f"}
10629: ${RM="rm -f"}
10630
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10632$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10633# Try some XSI features
10634xsi_shell=no
10635( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010636 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10637 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010638 && eval 'test $(( 1 + 1 )) -eq 2 \
10639 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10640 && xsi_shell=yes
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10642$as_echo "$xsi_shell" >&6; }
10643
10644
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10646$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10647lt_shell_append=no
10648( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10649 >/dev/null 2>&1 \
10650 && lt_shell_append=yes
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10652$as_echo "$lt_shell_append" >&6; }
10653
10654
10655if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10656 lt_unset=unset
10657else
10658 lt_unset=false
10659fi
10660
10661
10662
10663
10664
10665# test EBCDIC or ASCII
10666case `echo X|tr X '\101'` in
10667 A) # ASCII based system
10668 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10669 lt_SP2NL='tr \040 \012'
10670 lt_NL2SP='tr \015\012 \040\040'
10671 ;;
10672 *) # EBCDIC based system
10673 lt_SP2NL='tr \100 \n'
10674 lt_NL2SP='tr \r\n \100\100'
10675 ;;
10676esac
10677
10678
10679
10680
10681
10682
10683
10684
10685
cristyda16f162011-02-19 23:52:17 +000010686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10687$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10688if ${lt_cv_to_host_file_cmd+:} false; then :
10689 $as_echo_n "(cached) " >&6
10690else
10691 case $host in
10692 *-*-mingw* )
10693 case $build in
10694 *-*-mingw* ) # actually msys
10695 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10696 ;;
10697 *-*-cygwin* )
10698 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10699 ;;
10700 * ) # otherwise, assume *nix
10701 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10702 ;;
10703 esac
10704 ;;
10705 *-*-cygwin* )
10706 case $build in
10707 *-*-mingw* ) # actually msys
10708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10709 ;;
10710 *-*-cygwin* )
10711 lt_cv_to_host_file_cmd=func_convert_file_noop
10712 ;;
10713 * ) # otherwise, assume *nix
10714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10715 ;;
10716 esac
10717 ;;
10718 * ) # unhandled hosts (and "normal" native builds)
10719 lt_cv_to_host_file_cmd=func_convert_file_noop
10720 ;;
10721esac
10722
10723fi
10724
10725to_host_file_cmd=$lt_cv_to_host_file_cmd
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10727$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10728
10729
10730
10731
10732
10733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10734$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10735if ${lt_cv_to_tool_file_cmd+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737else
10738 #assume ordinary cross tools, or native build.
10739lt_cv_to_tool_file_cmd=func_convert_file_noop
10740case $host in
10741 *-*-mingw* )
10742 case $build in
10743 *-*-mingw* ) # actually msys
10744 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10745 ;;
10746 esac
10747 ;;
10748esac
10749
10750fi
10751
10752to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10754$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10755
10756
10757
10758
10759
cristy73bd4a52010-10-05 11:24:23 +000010760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10761$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010762if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010763 $as_echo_n "(cached) " >&6
10764else
10765 lt_cv_ld_reload_flag='-r'
10766fi
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10768$as_echo "$lt_cv_ld_reload_flag" >&6; }
10769reload_flag=$lt_cv_ld_reload_flag
10770case $reload_flag in
10771"" | " "*) ;;
10772*) reload_flag=" $reload_flag" ;;
10773esac
10774reload_cmds='$LD$reload_flag -o $output$reload_objs'
10775case $host_os in
cristyda16f162011-02-19 23:52:17 +000010776 cygwin* | mingw* | pw32* | cegcc*)
10777 if test "$GCC" != yes; then
10778 reload_cmds=false
10779 fi
10780 ;;
cristy73bd4a52010-10-05 11:24:23 +000010781 darwin*)
10782 if test "$GCC" = yes; then
10783 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10784 else
10785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10786 fi
10787 ;;
10788esac
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798if test -n "$ac_tool_prefix"; then
10799 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10800set dummy ${ac_tool_prefix}objdump; ac_word=$2
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010803if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010804 $as_echo_n "(cached) " >&6
10805else
10806 if test -n "$OBJDUMP"; then
10807 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10808else
10809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821 done
10822IFS=$as_save_IFS
10823
10824fi
10825fi
10826OBJDUMP=$ac_cv_prog_OBJDUMP
10827if test -n "$OBJDUMP"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10829$as_echo "$OBJDUMP" >&6; }
10830else
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10832$as_echo "no" >&6; }
10833fi
10834
10835
10836fi
10837if test -z "$ac_cv_prog_OBJDUMP"; then
10838 ac_ct_OBJDUMP=$OBJDUMP
10839 # Extract the first word of "objdump", so it can be a program name with args.
10840set dummy objdump; ac_word=$2
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010843if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010844 $as_echo_n "(cached) " >&6
10845else
10846 if test -n "$ac_ct_OBJDUMP"; then
10847 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10848else
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10858 break 2
10859 fi
10860done
10861 done
10862IFS=$as_save_IFS
10863
10864fi
10865fi
10866ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10867if test -n "$ac_ct_OBJDUMP"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10869$as_echo "$ac_ct_OBJDUMP" >&6; }
10870else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872$as_echo "no" >&6; }
10873fi
10874
10875 if test "x$ac_ct_OBJDUMP" = x; then
10876 OBJDUMP="false"
10877 else
10878 case $cross_compiling:$ac_tool_warned in
10879yes:)
10880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10882ac_tool_warned=yes ;;
10883esac
10884 OBJDUMP=$ac_ct_OBJDUMP
10885 fi
10886else
10887 OBJDUMP="$ac_cv_prog_OBJDUMP"
10888fi
10889
10890test -z "$OBJDUMP" && OBJDUMP=objdump
10891
10892
10893
10894
10895
10896
10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10898$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010899if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010900 $as_echo_n "(cached) " >&6
10901else
10902 lt_cv_file_magic_cmd='$MAGIC_CMD'
10903lt_cv_file_magic_test_file=
10904lt_cv_deplibs_check_method='unknown'
10905# Need to set the preceding variable on all platforms that support
10906# interlibrary dependencies.
10907# 'none' -- dependencies not supported.
10908# `unknown' -- same as none, but documents that we really don't know.
10909# 'pass_all' -- all dependencies passed with no checks.
10910# 'test_compile' -- check by making test program.
10911# 'file_magic [[regex]]' -- check by looking for files in library path
10912# which responds to the $file_magic_cmd with a given extended regex.
10913# If you have `file' or equivalent on your system and you're not sure
10914# whether `pass_all' will *always* work, you probably want this one.
10915
10916case $host_os in
10917aix[4-9]*)
10918 lt_cv_deplibs_check_method=pass_all
10919 ;;
10920
10921beos*)
10922 lt_cv_deplibs_check_method=pass_all
10923 ;;
10924
10925bsdi[45]*)
10926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10927 lt_cv_file_magic_cmd='/usr/bin/file -L'
10928 lt_cv_file_magic_test_file=/shlib/libc.so
10929 ;;
10930
10931cygwin*)
10932 # func_win32_libid is a shell function defined in ltmain.sh
10933 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10934 lt_cv_file_magic_cmd='func_win32_libid'
10935 ;;
10936
10937mingw* | pw32*)
10938 # Base MSYS/MinGW do not provide the 'file' command needed by
10939 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10940 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000010941 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10942 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000010943 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10944 lt_cv_file_magic_cmd='func_win32_libid'
10945 else
cristy0c60a692010-11-04 01:09:47 +000010946 # Keep this pattern in sync with the one in func_win32_libid.
10947 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 +000010948 lt_cv_file_magic_cmd='$OBJDUMP -f'
10949 fi
10950 ;;
10951
cristy0c60a692010-11-04 01:09:47 +000010952cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000010953 # use the weaker test based on 'objdump'. See mingw*.
10954 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10955 lt_cv_file_magic_cmd='$OBJDUMP -f'
10956 ;;
10957
10958darwin* | rhapsody*)
10959 lt_cv_deplibs_check_method=pass_all
10960 ;;
10961
10962freebsd* | dragonfly*)
10963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10964 case $host_cpu in
10965 i*86 )
10966 # Not sure whether the presence of OpenBSD here was a mistake.
10967 # Let's accept both of them until this is cleared up.
10968 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10969 lt_cv_file_magic_cmd=/usr/bin/file
10970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10971 ;;
10972 esac
10973 else
10974 lt_cv_deplibs_check_method=pass_all
10975 fi
10976 ;;
10977
10978gnu*)
10979 lt_cv_deplibs_check_method=pass_all
10980 ;;
10981
cristy0c60a692010-11-04 01:09:47 +000010982haiku*)
10983 lt_cv_deplibs_check_method=pass_all
10984 ;;
10985
cristy73bd4a52010-10-05 11:24:23 +000010986hpux10.20* | hpux11*)
10987 lt_cv_file_magic_cmd=/usr/bin/file
10988 case $host_cpu in
10989 ia64*)
10990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10992 ;;
10993 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000010994 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 +000010995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10996 ;;
10997 *)
cristy0c60a692010-11-04 01:09:47 +000010998 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 +000010999 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11000 ;;
11001 esac
11002 ;;
11003
11004interix[3-9]*)
11005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11007 ;;
11008
11009irix5* | irix6* | nonstopux*)
11010 case $LD in
11011 *-32|*"-32 ") libmagic=32-bit;;
11012 *-n32|*"-n32 ") libmagic=N32;;
11013 *-64|*"-64 ") libmagic=64-bit;;
11014 *) libmagic=never-match;;
11015 esac
11016 lt_cv_deplibs_check_method=pass_all
11017 ;;
11018
cristy99bd5232011-12-07 14:38:20 +000011019# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011020linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011021 lt_cv_deplibs_check_method=pass_all
11022 ;;
11023
11024netbsd*)
11025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11027 else
11028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11029 fi
11030 ;;
11031
11032newos6*)
11033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11034 lt_cv_file_magic_cmd=/usr/bin/file
11035 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11036 ;;
11037
11038*nto* | *qnx*)
11039 lt_cv_deplibs_check_method=pass_all
11040 ;;
11041
11042openbsd*)
11043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11045 else
11046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11047 fi
11048 ;;
11049
11050osf3* | osf4* | osf5*)
11051 lt_cv_deplibs_check_method=pass_all
11052 ;;
11053
11054rdos*)
11055 lt_cv_deplibs_check_method=pass_all
11056 ;;
11057
11058solaris*)
11059 lt_cv_deplibs_check_method=pass_all
11060 ;;
11061
11062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11063 lt_cv_deplibs_check_method=pass_all
11064 ;;
11065
11066sysv4 | sysv4.3*)
11067 case $host_vendor in
11068 motorola)
11069 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]'
11070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11071 ;;
11072 ncr)
11073 lt_cv_deplibs_check_method=pass_all
11074 ;;
11075 sequent)
11076 lt_cv_file_magic_cmd='/bin/file'
11077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11078 ;;
11079 sni)
11080 lt_cv_file_magic_cmd='/bin/file'
11081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11082 lt_cv_file_magic_test_file=/lib/libc.so
11083 ;;
11084 siemens)
11085 lt_cv_deplibs_check_method=pass_all
11086 ;;
11087 pc)
11088 lt_cv_deplibs_check_method=pass_all
11089 ;;
11090 esac
11091 ;;
11092
11093tpf*)
11094 lt_cv_deplibs_check_method=pass_all
11095 ;;
11096esac
11097
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11100$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011101
11102file_magic_glob=
11103want_nocaseglob=no
11104if test "$build" = "$host"; then
11105 case $host_os in
11106 mingw* | pw32*)
11107 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11108 want_nocaseglob=yes
11109 else
11110 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11111 fi
11112 ;;
11113 esac
11114fi
11115
cristy73bd4a52010-10-05 11:24:23 +000011116file_magic_cmd=$lt_cv_file_magic_cmd
11117deplibs_check_method=$lt_cv_deplibs_check_method
11118test -z "$deplibs_check_method" && deplibs_check_method=unknown
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
cristyda16f162011-02-19 23:52:17 +000011131
11132
11133
11134
11135
11136
11137
11138
11139
11140
cristy73bd4a52010-10-05 11:24:23 +000011141if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011142 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11143set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011146if ${ac_cv_prog_DLLTOOL+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148else
11149 if test -n "$DLLTOOL"; then
11150 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11151else
11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $PATH
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11159 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11162 fi
11163done
11164 done
11165IFS=$as_save_IFS
11166
11167fi
11168fi
11169DLLTOOL=$ac_cv_prog_DLLTOOL
11170if test -n "$DLLTOOL"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11172$as_echo "$DLLTOOL" >&6; }
11173else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
11176fi
11177
11178
11179fi
11180if test -z "$ac_cv_prog_DLLTOOL"; then
11181 ac_ct_DLLTOOL=$DLLTOOL
11182 # Extract the first word of "dlltool", so it can be a program name with args.
11183set dummy dlltool; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188else
11189 if test -n "$ac_ct_DLLTOOL"; then
11190 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195 IFS=$as_save_IFS
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201 break 2
11202 fi
11203done
11204 done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11210if test -n "$ac_ct_DLLTOOL"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11212$as_echo "$ac_ct_DLLTOOL" >&6; }
11213else
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218 if test "x$ac_ct_DLLTOOL" = x; then
11219 DLLTOOL="false"
11220 else
11221 case $cross_compiling:$ac_tool_warned in
11222yes:)
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11225ac_tool_warned=yes ;;
11226esac
11227 DLLTOOL=$ac_ct_DLLTOOL
11228 fi
11229else
11230 DLLTOOL="$ac_cv_prog_DLLTOOL"
11231fi
11232
11233test -z "$DLLTOOL" && DLLTOOL=dlltool
11234
11235
11236
11237
11238
11239
11240
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11242$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11243if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11244 $as_echo_n "(cached) " >&6
11245else
11246 lt_cv_sharedlib_from_linklib_cmd='unknown'
11247
11248case $host_os in
11249cygwin* | mingw* | pw32* | cegcc*)
11250 # two different shell functions defined in ltmain.sh
11251 # decide which to use based on capabilities of $DLLTOOL
11252 case `$DLLTOOL --help 2>&1` in
11253 *--identify-strict*)
11254 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11255 ;;
11256 *)
11257 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11258 ;;
11259 esac
11260 ;;
11261*)
11262 # fallback: assume linklib IS sharedlib
11263 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11264 ;;
11265esac
11266
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11269$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11270sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11271test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11272
11273
11274
11275
11276
11277
11278
11279if test -n "$ac_tool_prefix"; then
11280 for ac_prog in ar
11281 do
11282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285$as_echo_n "checking for $ac_word... " >&6; }
11286if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011287 $as_echo_n "(cached) " >&6
11288else
11289 if test -n "$AR"; then
11290 ac_cv_prog_AR="$AR" # Let the user override the test.
11291else
11292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293for as_dir in $PATH
11294do
11295 IFS=$as_save_IFS
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 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 +000011299 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 break 2
11302 fi
11303done
11304 done
11305IFS=$as_save_IFS
11306
11307fi
11308fi
11309AR=$ac_cv_prog_AR
11310if test -n "$AR"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11312$as_echo "$AR" >&6; }
11313else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315$as_echo "no" >&6; }
11316fi
11317
11318
cristyda16f162011-02-19 23:52:17 +000011319 test -n "$AR" && break
11320 done
cristy73bd4a52010-10-05 11:24:23 +000011321fi
cristyda16f162011-02-19 23:52:17 +000011322if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011323 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011324 for ac_prog in ar
11325do
11326 # Extract the first word of "$ac_prog", so it can be a program name with args.
11327set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011330if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011331 $as_echo_n "(cached) " >&6
11332else
11333 if test -n "$ac_ct_AR"; then
11334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 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 +000011343 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347done
11348 done
11349IFS=$as_save_IFS
11350
11351fi
11352fi
11353ac_ct_AR=$ac_cv_prog_ac_ct_AR
11354if test -n "$ac_ct_AR"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11356$as_echo "$ac_ct_AR" >&6; }
11357else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360fi
11361
cristyda16f162011-02-19 23:52:17 +000011362
11363 test -n "$ac_ct_AR" && break
11364done
11365
cristy73bd4a52010-10-05 11:24:23 +000011366 if test "x$ac_ct_AR" = x; then
11367 AR="false"
11368 else
11369 case $cross_compiling:$ac_tool_warned in
11370yes:)
11371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11373ac_tool_warned=yes ;;
11374esac
11375 AR=$ac_ct_AR
11376 fi
cristy73bd4a52010-10-05 11:24:23 +000011377fi
11378
cristyda16f162011-02-19 23:52:17 +000011379: ${AR=ar}
11380: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
cristyda16f162011-02-19 23:52:17 +000011392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11393$as_echo_n "checking for archiver @FILE support... " >&6; }
11394if ${lt_cv_ar_at_file+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396else
11397 lt_cv_ar_at_file=no
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399/* end confdefs.h. */
11400
11401int
11402main ()
11403{
11404
11405 ;
11406 return 0;
11407}
11408_ACEOF
11409if ac_fn_c_try_compile "$LINENO"; then :
11410 echo conftest.$ac_objext > conftest.lst
11411 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11413 (eval $lt_ar_try) 2>&5
11414 ac_status=$?
11415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11416 test $ac_status = 0; }
11417 if test "$ac_status" -eq 0; then
11418 # Ensure the archiver fails upon bogus file names.
11419 rm -f conftest.$ac_objext libconftest.a
11420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11421 (eval $lt_ar_try) 2>&5
11422 ac_status=$?
11423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424 test $ac_status = 0; }
11425 if test "$ac_status" -ne 0; then
11426 lt_cv_ar_at_file=@
11427 fi
11428 fi
11429 rm -f conftest.* libconftest.a
11430
11431fi
11432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11433
11434fi
11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11436$as_echo "$lt_cv_ar_at_file" >&6; }
11437
11438if test "x$lt_cv_ar_at_file" = xno; then
11439 archiver_list_spec=
11440else
11441 archiver_list_spec=$lt_cv_ar_at_file
11442fi
11443
11444
11445
11446
11447
11448
11449
cristy73bd4a52010-10-05 11:24:23 +000011450if test -n "$ac_tool_prefix"; then
11451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11452set dummy ${ac_tool_prefix}strip; ac_word=$2
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011455if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011456 $as_echo_n "(cached) " >&6
11457else
11458 if test -n "$STRIP"; then
11459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11460else
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472done
11473 done
11474IFS=$as_save_IFS
11475
11476fi
11477fi
11478STRIP=$ac_cv_prog_STRIP
11479if test -n "$STRIP"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11481$as_echo "$STRIP" >&6; }
11482else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
11485fi
11486
11487
11488fi
11489if test -z "$ac_cv_prog_STRIP"; then
11490 ac_ct_STRIP=$STRIP
11491 # Extract the first word of "strip", so it can be a program name with args.
11492set dummy strip; ac_word=$2
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011495if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011496 $as_echo_n "(cached) " >&6
11497else
11498 if test -n "$ac_ct_STRIP"; then
11499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11500else
11501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502for as_dir in $PATH
11503do
11504 IFS=$as_save_IFS
11505 test -z "$as_dir" && as_dir=.
11506 for ac_exec_ext in '' $ac_executable_extensions; do
11507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11508 ac_cv_prog_ac_ct_STRIP="strip"
11509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510 break 2
11511 fi
11512done
11513 done
11514IFS=$as_save_IFS
11515
11516fi
11517fi
11518ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11519if test -n "$ac_ct_STRIP"; then
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11521$as_echo "$ac_ct_STRIP" >&6; }
11522else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524$as_echo "no" >&6; }
11525fi
11526
11527 if test "x$ac_ct_STRIP" = x; then
11528 STRIP=":"
11529 else
11530 case $cross_compiling:$ac_tool_warned in
11531yes:)
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11534ac_tool_warned=yes ;;
11535esac
11536 STRIP=$ac_ct_STRIP
11537 fi
11538else
11539 STRIP="$ac_cv_prog_STRIP"
11540fi
11541
11542test -z "$STRIP" && STRIP=:
11543
11544
11545
11546
11547
11548
11549if test -n "$ac_tool_prefix"; then
11550 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11551set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011554if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011555 $as_echo_n "(cached) " >&6
11556else
11557 if test -n "$RANLIB"; then
11558 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11559else
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11567 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11570 fi
11571done
11572 done
11573IFS=$as_save_IFS
11574
11575fi
11576fi
11577RANLIB=$ac_cv_prog_RANLIB
11578if test -n "$RANLIB"; then
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11580$as_echo "$RANLIB" >&6; }
11581else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
11584fi
11585
11586
11587fi
11588if test -z "$ac_cv_prog_RANLIB"; then
11589 ac_ct_RANLIB=$RANLIB
11590 # Extract the first word of "ranlib", so it can be a program name with args.
11591set dummy ranlib; ac_word=$2
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011594if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011595 $as_echo_n "(cached) " >&6
11596else
11597 if test -n "$ac_ct_RANLIB"; then
11598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11599else
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11607 ac_cv_prog_ac_ct_RANLIB="ranlib"
11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 break 2
11610 fi
11611done
11612 done
11613IFS=$as_save_IFS
11614
11615fi
11616fi
11617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11618if test -n "$ac_ct_RANLIB"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11620$as_echo "$ac_ct_RANLIB" >&6; }
11621else
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
11624fi
11625
11626 if test "x$ac_ct_RANLIB" = x; then
11627 RANLIB=":"
11628 else
11629 case $cross_compiling:$ac_tool_warned in
11630yes:)
11631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11633ac_tool_warned=yes ;;
11634esac
11635 RANLIB=$ac_ct_RANLIB
11636 fi
11637else
11638 RANLIB="$ac_cv_prog_RANLIB"
11639fi
11640
11641test -z "$RANLIB" && RANLIB=:
11642
11643
11644
11645
11646
11647
11648# Determine commands to create old-style static archives.
11649old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11650old_postinstall_cmds='chmod 644 $oldlib'
11651old_postuninstall_cmds=
11652
11653if test -n "$RANLIB"; then
11654 case $host_os in
11655 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011657 ;;
11658 *)
cristy99bd5232011-12-07 14:38:20 +000011659 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011660 ;;
11661 esac
cristy99bd5232011-12-07 14:38:20 +000011662 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011663fi
11664
cristy0c60a692010-11-04 01:09:47 +000011665case $host_os in
11666 darwin*)
11667 lock_old_archive_extraction=yes ;;
11668 *)
11669 lock_old_archive_extraction=no ;;
11670esac
11671
11672
11673
11674
11675
11676
cristy73bd4a52010-10-05 11:24:23 +000011677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710# If no C compiler was specified, use CC.
11711LTCC=${LTCC-"$CC"}
11712
11713# If no C compiler flags were specified, use CFLAGS.
11714LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11715
11716# Allow CC to be a program name with arguments.
11717compiler=$CC
11718
11719
11720# Check for command to grab the raw symbol name followed by C symbol from nm.
11721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11722$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011723if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011724 $as_echo_n "(cached) " >&6
11725else
11726
11727# These are sane defaults that work on at least a few old systems.
11728# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11729
11730# Character class describing NM global symbol codes.
11731symcode='[BCDEGRST]'
11732
11733# Regexp to match symbols that can be accessed directly from C.
11734sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11735
11736# Define system-specific variables.
11737case $host_os in
11738aix*)
11739 symcode='[BCDT]'
11740 ;;
11741cygwin* | mingw* | pw32* | cegcc*)
11742 symcode='[ABCDGISTW]'
11743 ;;
11744hpux*)
11745 if test "$host_cpu" = ia64; then
11746 symcode='[ABCDEGRST]'
11747 fi
11748 ;;
11749irix* | nonstopux*)
11750 symcode='[BCDEGRST]'
11751 ;;
11752osf*)
11753 symcode='[BCDEGQRST]'
11754 ;;
11755solaris*)
11756 symcode='[BDRT]'
11757 ;;
11758sco3.2v5*)
11759 symcode='[DT]'
11760 ;;
11761sysv4.2uw2*)
11762 symcode='[DT]'
11763 ;;
11764sysv5* | sco5v6* | unixware* | OpenUNIX*)
11765 symcode='[ABDT]'
11766 ;;
11767sysv4)
11768 symcode='[DFNSTU]'
11769 ;;
11770esac
11771
11772# If we're using GNU nm, then use its standard symbol codes.
11773case `$NM -V 2>&1` in
11774*GNU* | *'with BFD'*)
11775 symcode='[ABCDGIRSTW]' ;;
11776esac
11777
11778# Transform an extracted symbol line into a proper C declaration.
11779# Some systems (esp. on ia64) link data and code symbols differently,
11780# so use this general approach.
11781lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11782
11783# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011784lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11785lt_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 +000011786
11787# Handle CRLF in mingw tool chain
11788opt_cr=
11789case $build_os in
11790mingw*)
11791 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11792 ;;
11793esac
11794
11795# Try without a prefix underscore, then with it.
11796for ac_symprfx in "" "_"; do
11797
11798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11799 symxfrm="\\1 $ac_symprfx\\2 \\2"
11800
11801 # Write the raw and C identifiers.
11802 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11803 # Fake it for dumpbin and say T for any non-static function
11804 # and D for any global variable.
11805 # Also find C++ and __fastcall symbols from MSVC++,
11806 # which start with @ or ?.
11807 lt_cv_sys_global_symbol_pipe="$AWK '"\
11808" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011809" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011810" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11811" \$ 0!~/External *\|/{next};"\
11812" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11813" {if(hide[section]) next};"\
11814" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11815" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11816" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11817" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11818" ' prfx=^$ac_symprfx"
11819 else
11820 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11821 fi
cristyda16f162011-02-19 23:52:17 +000011822 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011823
11824 # Check to see that the pipe works correctly.
11825 pipe_works=no
11826
11827 rm -f conftest*
11828 cat > conftest.$ac_ext <<_LT_EOF
11829#ifdef __cplusplus
11830extern "C" {
11831#endif
11832char nm_test_var;
11833void nm_test_func(void);
11834void nm_test_func(void){}
11835#ifdef __cplusplus
11836}
11837#endif
11838int main(){nm_test_var='a';nm_test_func();return(0);}
11839_LT_EOF
11840
11841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11842 (eval $ac_compile) 2>&5
11843 ac_status=$?
11844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11845 test $ac_status = 0; }; then
11846 # Now try to grab the symbols.
11847 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11849 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011850 ac_status=$?
11851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11852 test $ac_status = 0; } && test -s "$nlist"; then
11853 # Try sorting and uniquifying the output.
11854 if sort "$nlist" | uniq > "$nlist"T; then
11855 mv -f "$nlist"T "$nlist"
11856 else
11857 rm -f "$nlist"T
11858 fi
11859
11860 # Make sure that we snagged all the symbols we need.
11861 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11862 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11863 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011864/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11865#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11866/* DATA imports from DLLs on WIN32 con't be const, because runtime
11867 relocations are performed -- see ld's documentation on pseudo-relocs. */
11868# define LT_DLSYM_CONST
11869#elif defined(__osf__)
11870/* This system does not cope well with relocations in const data. */
11871# define LT_DLSYM_CONST
11872#else
11873# define LT_DLSYM_CONST const
11874#endif
11875
cristy73bd4a52010-10-05 11:24:23 +000011876#ifdef __cplusplus
11877extern "C" {
11878#endif
11879
11880_LT_EOF
11881 # Now generate the symbol file.
11882 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11883
11884 cat <<_LT_EOF >> conftest.$ac_ext
11885
11886/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000011887LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000011888 const char *name;
11889 void *address;
11890}
11891lt__PROGRAM__LTX_preloaded_symbols[] =
11892{
11893 { "@PROGRAM@", (void *) 0 },
11894_LT_EOF
11895 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11896 cat <<\_LT_EOF >> conftest.$ac_ext
11897 {0, (void *) 0}
11898};
11899
11900/* This works around a problem in FreeBSD linker */
11901#ifdef FREEBSD_WORKAROUND
11902static const void *lt_preloaded_setup() {
11903 return lt__PROGRAM__LTX_preloaded_symbols;
11904}
11905#endif
11906
11907#ifdef __cplusplus
11908}
11909#endif
11910_LT_EOF
11911 # Now try linking the two files.
11912 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000011913 lt_globsym_save_LIBS=$LIBS
11914 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011915 LIBS="conftstm.$ac_objext"
11916 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11918 (eval $ac_link) 2>&5
11919 ac_status=$?
11920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11922 pipe_works=yes
11923 fi
cristyda16f162011-02-19 23:52:17 +000011924 LIBS=$lt_globsym_save_LIBS
11925 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000011926 else
11927 echo "cannot find nm_test_func in $nlist" >&5
11928 fi
11929 else
11930 echo "cannot find nm_test_var in $nlist" >&5
11931 fi
11932 else
11933 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11934 fi
11935 else
11936 echo "$progname: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 fi
11939 rm -rf conftest* conftst*
11940
11941 # Do not use the global_symbol_pipe unless it works.
11942 if test "$pipe_works" = yes; then
11943 break
11944 else
11945 lt_cv_sys_global_symbol_pipe=
11946 fi
11947done
11948
11949fi
11950
11951if test -z "$lt_cv_sys_global_symbol_pipe"; then
11952 lt_cv_sys_global_symbol_to_cdecl=
11953fi
11954if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11956$as_echo "failed" >&6; }
11957else
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11959$as_echo "ok" >&6; }
11960fi
11961
cristyda16f162011-02-19 23:52:17 +000011962# Response file support.
11963if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11964 nm_file_list_spec='@'
11965elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11966 nm_file_list_spec='@'
11967fi
cristy73bd4a52010-10-05 11:24:23 +000011968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
cristyda16f162011-02-19 23:52:17 +000011989
11990
11991
11992
11993
11994
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11996$as_echo_n "checking for sysroot... " >&6; }
11997
11998# Check whether --with-sysroot was given.
11999if test "${with_sysroot+set}" = set; then :
12000 withval=$with_sysroot;
12001else
12002 with_sysroot=no
12003fi
12004
12005
12006lt_sysroot=
12007case ${with_sysroot} in #(
12008 yes)
12009 if test "$GCC" = yes; then
12010 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12011 fi
12012 ;; #(
12013 /*)
12014 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12015 ;; #(
12016 no|'')
12017 ;; #(
12018 *)
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12020$as_echo "${with_sysroot}" >&6; }
12021 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12022 ;;
12023esac
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12026$as_echo "${lt_sysroot:-no}" >&6; }
12027
12028
12029
12030
12031
cristy73bd4a52010-10-05 11:24:23 +000012032# Check whether --enable-libtool-lock was given.
12033if test "${enable_libtool_lock+set}" = set; then :
12034 enableval=$enable_libtool_lock;
12035fi
12036
12037test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12038
12039# Some flags need to be propagated to the compiler or linker for good
12040# libtool support.
12041case $host in
12042ia64-*-hpux*)
12043 # Find out which ABI we are using.
12044 echo 'int i;' > conftest.$ac_ext
12045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12046 (eval $ac_compile) 2>&5
12047 ac_status=$?
12048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12049 test $ac_status = 0; }; then
12050 case `/usr/bin/file conftest.$ac_objext` in
12051 *ELF-32*)
12052 HPUX_IA64_MODE="32"
12053 ;;
12054 *ELF-64*)
12055 HPUX_IA64_MODE="64"
12056 ;;
12057 esac
12058 fi
12059 rm -rf conftest*
12060 ;;
12061*-*-irix6*)
12062 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012063 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12065 (eval $ac_compile) 2>&5
12066 ac_status=$?
12067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068 test $ac_status = 0; }; then
12069 if test "$lt_cv_prog_gnu_ld" = yes; then
12070 case `/usr/bin/file conftest.$ac_objext` in
12071 *32-bit*)
12072 LD="${LD-ld} -melf32bsmip"
12073 ;;
12074 *N32*)
12075 LD="${LD-ld} -melf32bmipn32"
12076 ;;
12077 *64-bit*)
12078 LD="${LD-ld} -melf64bmip"
12079 ;;
12080 esac
12081 else
12082 case `/usr/bin/file conftest.$ac_objext` in
12083 *32-bit*)
12084 LD="${LD-ld} -32"
12085 ;;
12086 *N32*)
12087 LD="${LD-ld} -n32"
12088 ;;
12089 *64-bit*)
12090 LD="${LD-ld} -64"
12091 ;;
12092 esac
12093 fi
12094 fi
12095 rm -rf conftest*
12096 ;;
12097
12098x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12099s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12100 # Find out which ABI we are using.
12101 echo 'int i;' > conftest.$ac_ext
12102 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12103 (eval $ac_compile) 2>&5
12104 ac_status=$?
12105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12106 test $ac_status = 0; }; then
12107 case `/usr/bin/file conftest.o` in
12108 *32-bit*)
12109 case $host in
12110 x86_64-*kfreebsd*-gnu)
12111 LD="${LD-ld} -m elf_i386_fbsd"
12112 ;;
12113 x86_64-*linux*)
12114 LD="${LD-ld} -m elf_i386"
12115 ;;
12116 ppc64-*linux*|powerpc64-*linux*)
12117 LD="${LD-ld} -m elf32ppclinux"
12118 ;;
12119 s390x-*linux*)
12120 LD="${LD-ld} -m elf_s390"
12121 ;;
12122 sparc64-*linux*)
12123 LD="${LD-ld} -m elf32_sparc"
12124 ;;
12125 esac
12126 ;;
12127 *64-bit*)
12128 case $host in
12129 x86_64-*kfreebsd*-gnu)
12130 LD="${LD-ld} -m elf_x86_64_fbsd"
12131 ;;
12132 x86_64-*linux*)
12133 LD="${LD-ld} -m elf_x86_64"
12134 ;;
12135 ppc*-*linux*|powerpc*-*linux*)
12136 LD="${LD-ld} -m elf64ppc"
12137 ;;
12138 s390*-*linux*|s390*-*tpf*)
12139 LD="${LD-ld} -m elf64_s390"
12140 ;;
12141 sparc*-*linux*)
12142 LD="${LD-ld} -m elf64_sparc"
12143 ;;
12144 esac
12145 ;;
12146 esac
12147 fi
12148 rm -rf conftest*
12149 ;;
12150
12151*-*-sco3.2v5*)
12152 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12153 SAVE_CFLAGS="$CFLAGS"
12154 CFLAGS="$CFLAGS -belf"
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12156$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012157if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012158 $as_echo_n "(cached) " >&6
12159else
12160 ac_ext=c
12161ac_cpp='$CPP $CPPFLAGS'
12162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164ac_compiler_gnu=$ac_cv_c_compiler_gnu
12165
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177if ac_fn_c_try_link "$LINENO"; then :
12178 lt_cv_cc_needs_belf=yes
12179else
12180 lt_cv_cc_needs_belf=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 ac_ext=c
12185ac_cpp='$CPP $CPPFLAGS'
12186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188ac_compiler_gnu=$ac_cv_c_compiler_gnu
12189
12190fi
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12192$as_echo "$lt_cv_cc_needs_belf" >&6; }
12193 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12194 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12195 CFLAGS="$SAVE_CFLAGS"
12196 fi
12197 ;;
cristy99bd5232011-12-07 14:38:20 +000012198*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012199 # Find out which ABI we are using.
12200 echo 'int i;' > conftest.$ac_ext
12201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12202 (eval $ac_compile) 2>&5
12203 ac_status=$?
12204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12205 test $ac_status = 0; }; then
12206 case `/usr/bin/file conftest.o` in
12207 *64-bit*)
12208 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012209 yes*)
12210 case $host in
12211 i?86-*-solaris*)
12212 LD="${LD-ld} -m elf_x86_64"
12213 ;;
12214 sparc*-*-solaris*)
12215 LD="${LD-ld} -m elf64_sparc"
12216 ;;
12217 esac
12218 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12219 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12220 LD="${LD-ld}_sol2"
12221 fi
12222 ;;
cristy73bd4a52010-10-05 11:24:23 +000012223 *)
12224 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12225 LD="${LD-ld} -64"
12226 fi
12227 ;;
12228 esac
12229 ;;
12230 esac
12231 fi
12232 rm -rf conftest*
12233 ;;
12234esac
12235
12236need_locks="$enable_libtool_lock"
12237
cristyda16f162011-02-19 23:52:17 +000012238if test -n "$ac_tool_prefix"; then
12239 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12240set dummy ${ac_tool_prefix}mt; ac_word=$2
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242$as_echo_n "checking for $ac_word... " >&6; }
12243if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245else
12246 if test -n "$MANIFEST_TOOL"; then
12247 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12248else
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12256 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 break 2
12259 fi
12260done
12261 done
12262IFS=$as_save_IFS
12263
12264fi
12265fi
12266MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12267if test -n "$MANIFEST_TOOL"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12269$as_echo "$MANIFEST_TOOL" >&6; }
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276fi
12277if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12278 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12279 # Extract the first word of "mt", so it can be a program name with args.
12280set dummy mt; ac_word=$2
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12282$as_echo_n "checking for $ac_word... " >&6; }
12283if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285else
12286 if test -n "$ac_ct_MANIFEST_TOOL"; then
12287 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12288else
12289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12290for as_dir in $PATH
12291do
12292 IFS=$as_save_IFS
12293 test -z "$as_dir" && as_dir=.
12294 for ac_exec_ext in '' $ac_executable_extensions; do
12295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12296 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 break 2
12299 fi
12300done
12301 done
12302IFS=$as_save_IFS
12303
12304fi
12305fi
12306ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12307if test -n "$ac_ct_MANIFEST_TOOL"; then
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12309$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12310else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312$as_echo "no" >&6; }
12313fi
12314
12315 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12316 MANIFEST_TOOL=":"
12317 else
12318 case $cross_compiling:$ac_tool_warned in
12319yes:)
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12322ac_tool_warned=yes ;;
12323esac
12324 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12325 fi
12326else
12327 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12328fi
12329
12330test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12332$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12333if ${lt_cv_path_mainfest_tool+:} false; then :
12334 $as_echo_n "(cached) " >&6
12335else
12336 lt_cv_path_mainfest_tool=no
12337 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12338 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12339 cat conftest.err >&5
12340 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12341 lt_cv_path_mainfest_tool=yes
12342 fi
12343 rm -f conftest*
12344fi
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12346$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12347if test "x$lt_cv_path_mainfest_tool" != xyes; then
12348 MANIFEST_TOOL=:
12349fi
12350
12351
12352
12353
12354
cristy73bd4a52010-10-05 11:24:23 +000012355
12356 case $host_os in
12357 rhapsody* | darwin*)
12358 if test -n "$ac_tool_prefix"; then
12359 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12360set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12362$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012363if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012364 $as_echo_n "(cached) " >&6
12365else
12366 if test -n "$DSYMUTIL"; then
12367 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12368else
12369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370for as_dir in $PATH
12371do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 break 2
12379 fi
12380done
12381 done
12382IFS=$as_save_IFS
12383
12384fi
12385fi
12386DSYMUTIL=$ac_cv_prog_DSYMUTIL
12387if test -n "$DSYMUTIL"; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12389$as_echo "$DSYMUTIL" >&6; }
12390else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
12393fi
12394
12395
12396fi
12397if test -z "$ac_cv_prog_DSYMUTIL"; then
12398 ac_ct_DSYMUTIL=$DSYMUTIL
12399 # Extract the first word of "dsymutil", so it can be a program name with args.
12400set dummy dsymutil; ac_word=$2
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012403if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012404 $as_echo_n "(cached) " >&6
12405else
12406 if test -n "$ac_ct_DSYMUTIL"; then
12407 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12408else
12409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12418 break 2
12419 fi
12420done
12421 done
12422IFS=$as_save_IFS
12423
12424fi
12425fi
12426ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12427if test -n "$ac_ct_DSYMUTIL"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12429$as_echo "$ac_ct_DSYMUTIL" >&6; }
12430else
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
12433fi
12434
12435 if test "x$ac_ct_DSYMUTIL" = x; then
12436 DSYMUTIL=":"
12437 else
12438 case $cross_compiling:$ac_tool_warned in
12439yes:)
12440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12442ac_tool_warned=yes ;;
12443esac
12444 DSYMUTIL=$ac_ct_DSYMUTIL
12445 fi
12446else
12447 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12448fi
12449
12450 if test -n "$ac_tool_prefix"; then
12451 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12452set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012455if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012456 $as_echo_n "(cached) " >&6
12457else
12458 if test -n "$NMEDIT"; then
12459 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12471 fi
12472done
12473 done
12474IFS=$as_save_IFS
12475
12476fi
12477fi
12478NMEDIT=$ac_cv_prog_NMEDIT
12479if test -n "$NMEDIT"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12481$as_echo "$NMEDIT" >&6; }
12482else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487
12488fi
12489if test -z "$ac_cv_prog_NMEDIT"; then
12490 ac_ct_NMEDIT=$NMEDIT
12491 # Extract the first word of "nmedit", so it can be a program name with args.
12492set dummy nmedit; ac_word=$2
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012495if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012496 $as_echo_n "(cached) " >&6
12497else
12498 if test -n "$ac_ct_NMEDIT"; then
12499 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12500else
12501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502for as_dir in $PATH
12503do
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12508 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12511 fi
12512done
12513 done
12514IFS=$as_save_IFS
12515
12516fi
12517fi
12518ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12519if test -n "$ac_ct_NMEDIT"; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12521$as_echo "$ac_ct_NMEDIT" >&6; }
12522else
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12524$as_echo "no" >&6; }
12525fi
12526
12527 if test "x$ac_ct_NMEDIT" = x; then
12528 NMEDIT=":"
12529 else
12530 case $cross_compiling:$ac_tool_warned in
12531yes:)
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12534ac_tool_warned=yes ;;
12535esac
12536 NMEDIT=$ac_ct_NMEDIT
12537 fi
12538else
12539 NMEDIT="$ac_cv_prog_NMEDIT"
12540fi
12541
12542 if test -n "$ac_tool_prefix"; then
12543 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12544set dummy ${ac_tool_prefix}lipo; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012547if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012548 $as_echo_n "(cached) " >&6
12549else
12550 if test -n "$LIPO"; then
12551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12552else
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12560 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564done
12565 done
12566IFS=$as_save_IFS
12567
12568fi
12569fi
12570LIPO=$ac_cv_prog_LIPO
12571if test -n "$LIPO"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12573$as_echo "$LIPO" >&6; }
12574else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
12577fi
12578
12579
12580fi
12581if test -z "$ac_cv_prog_LIPO"; then
12582 ac_ct_LIPO=$LIPO
12583 # Extract the first word of "lipo", so it can be a program name with args.
12584set dummy lipo; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012587if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012588 $as_echo_n "(cached) " >&6
12589else
12590 if test -n "$ac_ct_LIPO"; then
12591 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12592else
12593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_prog_ac_ct_LIPO="lipo"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608fi
12609fi
12610ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12611if test -n "$ac_ct_LIPO"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12613$as_echo "$ac_ct_LIPO" >&6; }
12614else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619 if test "x$ac_ct_LIPO" = x; then
12620 LIPO=":"
12621 else
12622 case $cross_compiling:$ac_tool_warned in
12623yes:)
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12626ac_tool_warned=yes ;;
12627esac
12628 LIPO=$ac_ct_LIPO
12629 fi
12630else
12631 LIPO="$ac_cv_prog_LIPO"
12632fi
12633
12634 if test -n "$ac_tool_prefix"; then
12635 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12636set dummy ${ac_tool_prefix}otool; ac_word=$2
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012639if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012640 $as_echo_n "(cached) " >&6
12641else
12642 if test -n "$OTOOL"; then
12643 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12644else
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656done
12657 done
12658IFS=$as_save_IFS
12659
12660fi
12661fi
12662OTOOL=$ac_cv_prog_OTOOL
12663if test -n "$OTOOL"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12665$as_echo "$OTOOL" >&6; }
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670
12671
12672fi
12673if test -z "$ac_cv_prog_OTOOL"; then
12674 ac_ct_OTOOL=$OTOOL
12675 # Extract the first word of "otool", so it can be a program name with args.
12676set dummy otool; ac_word=$2
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012679if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012680 $as_echo_n "(cached) " >&6
12681else
12682 if test -n "$ac_ct_OTOOL"; then
12683 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12684else
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12692 ac_cv_prog_ac_ct_OTOOL="otool"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696done
12697 done
12698IFS=$as_save_IFS
12699
12700fi
12701fi
12702ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12703if test -n "$ac_ct_OTOOL"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12705$as_echo "$ac_ct_OTOOL" >&6; }
12706else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709fi
12710
12711 if test "x$ac_ct_OTOOL" = x; then
12712 OTOOL=":"
12713 else
12714 case $cross_compiling:$ac_tool_warned in
12715yes:)
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12718ac_tool_warned=yes ;;
12719esac
12720 OTOOL=$ac_ct_OTOOL
12721 fi
12722else
12723 OTOOL="$ac_cv_prog_OTOOL"
12724fi
12725
12726 if test -n "$ac_tool_prefix"; then
12727 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12728set dummy ${ac_tool_prefix}otool64; ac_word=$2
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012731if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012732 $as_echo_n "(cached) " >&6
12733else
12734 if test -n "$OTOOL64"; then
12735 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12736else
12737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738for as_dir in $PATH
12739do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
12743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12744 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748done
12749 done
12750IFS=$as_save_IFS
12751
12752fi
12753fi
12754OTOOL64=$ac_cv_prog_OTOOL64
12755if test -n "$OTOOL64"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12757$as_echo "$OTOOL64" >&6; }
12758else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764fi
12765if test -z "$ac_cv_prog_OTOOL64"; then
12766 ac_ct_OTOOL64=$OTOOL64
12767 # Extract the first word of "otool64", so it can be a program name with args.
12768set dummy otool64; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012771if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012772 $as_echo_n "(cached) " >&6
12773else
12774 if test -n "$ac_ct_OTOOL64"; then
12775 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
12783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12784 ac_cv_prog_ac_ct_OTOOL64="otool64"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789 done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12795if test -n "$ac_ct_OTOOL64"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12797$as_echo "$ac_ct_OTOOL64" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803 if test "x$ac_ct_OTOOL64" = x; then
12804 OTOOL64=":"
12805 else
12806 case $cross_compiling:$ac_tool_warned in
12807yes:)
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12810ac_tool_warned=yes ;;
12811esac
12812 OTOOL64=$ac_ct_OTOOL64
12813 fi
12814else
12815 OTOOL64="$ac_cv_prog_OTOOL64"
12816fi
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12845$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012846if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012847 $as_echo_n "(cached) " >&6
12848else
12849 lt_cv_apple_cc_single_mod=no
12850 if test -z "${LT_MULTI_MODULE}"; then
12851 # By default we will add the -single_module flag. You can override
12852 # by either setting the environment variable LT_MULTI_MODULE
12853 # non-empty at configure time, or by adding -multi_module to the
12854 # link flags.
12855 rm -rf libconftest.dylib*
12856 echo "int foo(void){return 1;}" > conftest.c
12857 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12858-dynamiclib -Wl,-single_module conftest.c" >&5
12859 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12860 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12861 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012862 # If there is a non-empty error log, and "single_module"
12863 # appears in it, assume the flag caused a linker warning
12864 if test -s conftest.err && $GREP single_module conftest.err; then
12865 cat conftest.err >&5
12866 # Otherwise, if the output was created with a 0 exit code from
12867 # the compiler, it worked.
12868 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000012869 lt_cv_apple_cc_single_mod=yes
12870 else
12871 cat conftest.err >&5
12872 fi
12873 rm -rf libconftest.dylib*
12874 rm -f conftest.*
12875 fi
12876fi
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12878$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012879
cristy73bd4a52010-10-05 11:24:23 +000012880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12881$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012882if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012883 $as_echo_n "(cached) " >&6
12884else
12885 lt_cv_ld_exported_symbols_list=no
12886 save_LDFLAGS=$LDFLAGS
12887 echo "_main" > conftest.sym
12888 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890/* end confdefs.h. */
12891
12892int
12893main ()
12894{
12895
12896 ;
12897 return 0;
12898}
12899_ACEOF
12900if ac_fn_c_try_link "$LINENO"; then :
12901 lt_cv_ld_exported_symbols_list=yes
12902else
12903 lt_cv_ld_exported_symbols_list=no
12904fi
12905rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LDFLAGS="$save_LDFLAGS"
12908
12909fi
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12911$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000012912
cristy0c60a692010-11-04 01:09:47 +000012913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12914$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012915if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000012916 $as_echo_n "(cached) " >&6
12917else
12918 lt_cv_ld_force_load=no
12919 cat > conftest.c << _LT_EOF
12920int forced_loaded() { return 2;}
12921_LT_EOF
12922 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12923 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12924 echo "$AR cru libconftest.a conftest.o" >&5
12925 $AR cru libconftest.a conftest.o 2>&5
12926 echo "$RANLIB libconftest.a" >&5
12927 $RANLIB libconftest.a 2>&5
12928 cat > conftest.c << _LT_EOF
12929int main() { return 0;}
12930_LT_EOF
12931 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12932 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12933 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012934 if test -s conftest.err && $GREP force_load conftest.err; then
12935 cat conftest.err >&5
12936 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000012937 lt_cv_ld_force_load=yes
12938 else
12939 cat conftest.err >&5
12940 fi
12941 rm -f conftest.err libconftest.a conftest conftest.c
12942 rm -rf conftest.dSYM
12943
12944fi
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12946$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012947 case $host_os in
12948 rhapsody* | darwin1.[012])
12949 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12950 darwin1.*)
12951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12952 darwin*) # darwin 5.x on
12953 # if running on 10.5 or later, the deployment target defaults
12954 # to the OS version, if on x86, and 10.4, the deployment
12955 # target defaults to 10.4. Don't you love it?
12956 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12957 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12958 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12959 10.[012]*)
12960 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12961 10.*)
12962 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12963 esac
12964 ;;
12965 esac
12966 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12967 _lt_dar_single_mod='$single_module'
12968 fi
12969 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12970 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12971 else
12972 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12973 fi
cristy0c60a692010-11-04 01:09:47 +000012974 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000012975 _lt_dsymutil='~$DSYMUTIL $lib || :'
12976 else
12977 _lt_dsymutil=
12978 fi
12979 ;;
12980 esac
12981
12982for ac_header in dlfcn.h
12983do :
12984 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12985"
cristyda16f162011-02-19 23:52:17 +000012986if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012987 cat >>confdefs.h <<_ACEOF
12988#define HAVE_DLFCN_H 1
12989_ACEOF
12990
12991fi
12992
12993done
12994
12995
12996
cristy73bd4a52010-10-05 11:24:23 +000012997
cristyda16f162011-02-19 23:52:17 +000012998func_stripname_cnf ()
12999{
13000 case ${2} in
13001 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13002 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13003 esac
13004} # func_stripname_cnf
13005
13006
13007
cristy73bd4a52010-10-05 11:24:23 +000013008
13009
13010# Set options
13011enable_win32_dll=yes
13012
13013case $host in
cristy0c60a692010-11-04 01:09:47 +000013014*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013015 if test -n "$ac_tool_prefix"; then
13016 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13017set dummy ${ac_tool_prefix}as; ac_word=$2
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013020if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013021 $as_echo_n "(cached) " >&6
13022else
13023 if test -n "$AS"; then
13024 ac_cv_prog_AS="$AS" # Let the user override the test.
13025else
13026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027for as_dir in $PATH
13028do
13029 IFS=$as_save_IFS
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_AS="${ac_tool_prefix}as"
13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13035 break 2
13036 fi
13037done
13038 done
13039IFS=$as_save_IFS
13040
13041fi
13042fi
13043AS=$ac_cv_prog_AS
13044if test -n "$AS"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13046$as_echo "$AS" >&6; }
13047else
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049$as_echo "no" >&6; }
13050fi
13051
13052
13053fi
13054if test -z "$ac_cv_prog_AS"; then
13055 ac_ct_AS=$AS
13056 # Extract the first word of "as", so it can be a program name with args.
13057set dummy as; ac_word=$2
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013060if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013061 $as_echo_n "(cached) " >&6
13062else
13063 if test -n "$ac_ct_AS"; then
13064 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13065else
13066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13067for as_dir in $PATH
13068do
13069 IFS=$as_save_IFS
13070 test -z "$as_dir" && as_dir=.
13071 for ac_exec_ext in '' $ac_executable_extensions; do
13072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13073 ac_cv_prog_ac_ct_AS="as"
13074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13075 break 2
13076 fi
13077done
13078 done
13079IFS=$as_save_IFS
13080
13081fi
13082fi
13083ac_ct_AS=$ac_cv_prog_ac_ct_AS
13084if test -n "$ac_ct_AS"; then
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13086$as_echo "$ac_ct_AS" >&6; }
13087else
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089$as_echo "no" >&6; }
13090fi
13091
13092 if test "x$ac_ct_AS" = x; then
13093 AS="false"
13094 else
13095 case $cross_compiling:$ac_tool_warned in
13096yes:)
13097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13099ac_tool_warned=yes ;;
13100esac
13101 AS=$ac_ct_AS
13102 fi
13103else
13104 AS="$ac_cv_prog_AS"
13105fi
13106
13107 if test -n "$ac_tool_prefix"; then
13108 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13109set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013112if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013113 $as_echo_n "(cached) " >&6
13114else
13115 if test -n "$DLLTOOL"; then
13116 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13117else
13118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13128 fi
13129done
13130 done
13131IFS=$as_save_IFS
13132
13133fi
13134fi
13135DLLTOOL=$ac_cv_prog_DLLTOOL
13136if test -n "$DLLTOOL"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13138$as_echo "$DLLTOOL" >&6; }
13139else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
13142fi
13143
13144
13145fi
13146if test -z "$ac_cv_prog_DLLTOOL"; then
13147 ac_ct_DLLTOOL=$DLLTOOL
13148 # Extract the first word of "dlltool", so it can be a program name with args.
13149set dummy dlltool; ac_word=$2
13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013152if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013153 $as_echo_n "(cached) " >&6
13154else
13155 if test -n "$ac_ct_DLLTOOL"; then
13156 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13157else
13158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13159for as_dir in $PATH
13160do
13161 IFS=$as_save_IFS
13162 test -z "$as_dir" && as_dir=.
13163 for ac_exec_ext in '' $ac_executable_extensions; do
13164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13165 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13167 break 2
13168 fi
13169done
13170 done
13171IFS=$as_save_IFS
13172
13173fi
13174fi
13175ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13176if test -n "$ac_ct_DLLTOOL"; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13178$as_echo "$ac_ct_DLLTOOL" >&6; }
13179else
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13181$as_echo "no" >&6; }
13182fi
13183
13184 if test "x$ac_ct_DLLTOOL" = x; then
13185 DLLTOOL="false"
13186 else
13187 case $cross_compiling:$ac_tool_warned in
13188yes:)
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13191ac_tool_warned=yes ;;
13192esac
13193 DLLTOOL=$ac_ct_DLLTOOL
13194 fi
13195else
13196 DLLTOOL="$ac_cv_prog_DLLTOOL"
13197fi
13198
13199 if test -n "$ac_tool_prefix"; then
13200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13201set dummy ${ac_tool_prefix}objdump; ac_word=$2
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013204if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013205 $as_echo_n "(cached) " >&6
13206else
13207 if test -n "$OBJDUMP"; then
13208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222 done
13223IFS=$as_save_IFS
13224
13225fi
13226fi
13227OBJDUMP=$ac_cv_prog_OBJDUMP
13228if test -n "$OBJDUMP"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13230$as_echo "$OBJDUMP" >&6; }
13231else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233$as_echo "no" >&6; }
13234fi
13235
13236
13237fi
13238if test -z "$ac_cv_prog_OBJDUMP"; then
13239 ac_ct_OBJDUMP=$OBJDUMP
13240 # Extract the first word of "objdump", so it can be a program name with args.
13241set dummy objdump; ac_word=$2
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013244if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013245 $as_echo_n "(cached) " >&6
13246else
13247 if test -n "$ac_ct_OBJDUMP"; then
13248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13249else
13250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $PATH
13252do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13260 fi
13261done
13262 done
13263IFS=$as_save_IFS
13264
13265fi
13266fi
13267ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13268if test -n "$ac_ct_OBJDUMP"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13270$as_echo "$ac_ct_OBJDUMP" >&6; }
13271else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274fi
13275
13276 if test "x$ac_ct_OBJDUMP" = x; then
13277 OBJDUMP="false"
13278 else
13279 case $cross_compiling:$ac_tool_warned in
13280yes:)
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13283ac_tool_warned=yes ;;
13284esac
13285 OBJDUMP=$ac_ct_OBJDUMP
13286 fi
13287else
13288 OBJDUMP="$ac_cv_prog_OBJDUMP"
13289fi
13290
13291 ;;
13292esac
13293
13294test -z "$AS" && AS=as
13295
13296
13297
13298
13299
13300test -z "$DLLTOOL" && DLLTOOL=dlltool
13301
13302
13303
13304
13305
13306test -z "$OBJDUMP" && OBJDUMP=objdump
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316 # Check whether --enable-shared was given.
13317if test "${enable_shared+set}" = set; then :
13318 enableval=$enable_shared; p=${PACKAGE-default}
13319 case $enableval in
13320 yes) enable_shared=yes ;;
13321 no) enable_shared=no ;;
13322 *)
13323 enable_shared=no
13324 # Look at the argument we got. We use all the common list separators.
13325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13326 for pkg in $enableval; do
13327 IFS="$lt_save_ifs"
13328 if test "X$pkg" = "X$p"; then
13329 enable_shared=yes
13330 fi
13331 done
13332 IFS="$lt_save_ifs"
13333 ;;
13334 esac
13335else
13336 enable_shared=yes
13337fi
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347 # Check whether --enable-static was given.
13348if test "${enable_static+set}" = set; then :
13349 enableval=$enable_static; p=${PACKAGE-default}
13350 case $enableval in
13351 yes) enable_static=yes ;;
13352 no) enable_static=no ;;
13353 *)
13354 enable_static=no
13355 # Look at the argument we got. We use all the common list separators.
13356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13357 for pkg in $enableval; do
13358 IFS="$lt_save_ifs"
13359 if test "X$pkg" = "X$p"; then
13360 enable_static=yes
13361 fi
13362 done
13363 IFS="$lt_save_ifs"
13364 ;;
13365 esac
13366else
13367 enable_static=yes
13368fi
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379# Check whether --with-pic was given.
13380if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013381 withval=$with_pic; lt_p=${PACKAGE-default}
13382 case $withval in
13383 yes|no) pic_mode=$withval ;;
13384 *)
13385 pic_mode=default
13386 # Look at the argument we got. We use all the common list separators.
13387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13388 for lt_pkg in $withval; do
13389 IFS="$lt_save_ifs"
13390 if test "X$lt_pkg" = "X$lt_p"; then
13391 pic_mode=yes
13392 fi
13393 done
13394 IFS="$lt_save_ifs"
13395 ;;
13396 esac
cristy73bd4a52010-10-05 11:24:23 +000013397else
13398 pic_mode=default
13399fi
13400
13401
13402test -z "$pic_mode" && pic_mode=default
13403
13404
13405
13406
13407
13408
13409
13410 # Check whether --enable-fast-install was given.
13411if test "${enable_fast_install+set}" = set; then :
13412 enableval=$enable_fast_install; p=${PACKAGE-default}
13413 case $enableval in
13414 yes) enable_fast_install=yes ;;
13415 no) enable_fast_install=no ;;
13416 *)
13417 enable_fast_install=no
13418 # Look at the argument we got. We use all the common list separators.
13419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13420 for pkg in $enableval; do
13421 IFS="$lt_save_ifs"
13422 if test "X$pkg" = "X$p"; then
13423 enable_fast_install=yes
13424 fi
13425 done
13426 IFS="$lt_save_ifs"
13427 ;;
13428 esac
13429else
13430 enable_fast_install=yes
13431fi
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443# This can be used to rebuild libtool when needed
13444LIBTOOL_DEPS="$ltmain"
13445
13446# Always use our own libtool.
13447LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
cristy0c60a692010-11-04 01:09:47 +000013473
cristy99bd5232011-12-07 14:38:20 +000013474
13475
13476
13477
cristy73bd4a52010-10-05 11:24:23 +000013478test -z "$LN_S" && LN_S="ln -s"
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493if test -n "${ZSH_VERSION+set}" ; then
13494 setopt NO_GLOB_SUBST
13495fi
13496
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13498$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013499if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013500 $as_echo_n "(cached) " >&6
13501else
13502 rm -f .libs 2>/dev/null
13503mkdir .libs 2>/dev/null
13504if test -d .libs; then
13505 lt_cv_objdir=.libs
13506else
13507 # MS-DOS does not allow filenames that begin with a dot.
13508 lt_cv_objdir=_libs
13509fi
13510rmdir .libs 2>/dev/null
13511fi
13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13513$as_echo "$lt_cv_objdir" >&6; }
13514objdir=$lt_cv_objdir
13515
13516
13517
13518
13519
13520cat >>confdefs.h <<_ACEOF
13521#define LT_OBJDIR "$lt_cv_objdir/"
13522_ACEOF
13523
13524
13525
13526
cristy73bd4a52010-10-05 11:24:23 +000013527case $host_os in
13528aix3*)
13529 # AIX sometimes has problems with the GCC collect2 program. For some
13530 # reason, if we set the COLLECT_NAMES environment variable, the problems
13531 # vanish in a puff of smoke.
13532 if test "X${COLLECT_NAMES+set}" != Xset; then
13533 COLLECT_NAMES=
13534 export COLLECT_NAMES
13535 fi
13536 ;;
13537esac
13538
cristy73bd4a52010-10-05 11:24:23 +000013539# Global variables:
13540ofile=libtool
13541can_build_shared=yes
13542
13543# All known linkers require a `.a' archive for static linking (except MSVC,
13544# which needs '.lib').
13545libext=a
13546
13547with_gnu_ld="$lt_cv_prog_gnu_ld"
13548
13549old_CC="$CC"
13550old_CFLAGS="$CFLAGS"
13551
13552# Set sane defaults for various variables
13553test -z "$CC" && CC=cc
13554test -z "$LTCC" && LTCC=$CC
13555test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13556test -z "$LD" && LD=ld
13557test -z "$ac_objext" && ac_objext=o
13558
13559for cc_temp in $compiler""; do
13560 case $cc_temp in
13561 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13562 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13563 \-*) ;;
13564 *) break;;
13565 esac
13566done
cristy0c60a692010-11-04 01:09:47 +000013567cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013568
13569
13570# Only perform the check for file, if the check method requires it
13571test -z "$MAGIC_CMD" && MAGIC_CMD=file
13572case $deplibs_check_method in
13573file_magic*)
13574 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13576$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013577if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013578 $as_echo_n "(cached) " >&6
13579else
13580 case $MAGIC_CMD in
13581[\\/*] | ?:[\\/]*)
13582 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13583 ;;
13584*)
13585 lt_save_MAGIC_CMD="$MAGIC_CMD"
13586 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13587 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13588 for ac_dir in $ac_dummy; do
13589 IFS="$lt_save_ifs"
13590 test -z "$ac_dir" && ac_dir=.
13591 if test -f $ac_dir/${ac_tool_prefix}file; then
13592 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13593 if test -n "$file_magic_test_file"; then
13594 case $deplibs_check_method in
13595 "file_magic "*)
13596 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13598 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13599 $EGREP "$file_magic_regex" > /dev/null; then
13600 :
13601 else
13602 cat <<_LT_EOF 1>&2
13603
13604*** Warning: the command libtool uses to detect shared libraries,
13605*** $file_magic_cmd, produces output that libtool cannot recognize.
13606*** The result is that libtool may fail to recognize shared libraries
13607*** as such. This will affect the creation of libtool libraries that
13608*** depend on shared libraries, but programs linked with such libtool
13609*** libraries will work regardless of this problem. Nevertheless, you
13610*** may want to report the problem to your system manager and/or to
13611*** bug-libtool@gnu.org
13612
13613_LT_EOF
13614 fi ;;
13615 esac
13616 fi
13617 break
13618 fi
13619 done
13620 IFS="$lt_save_ifs"
13621 MAGIC_CMD="$lt_save_MAGIC_CMD"
13622 ;;
13623esac
13624fi
13625
13626MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13627if test -n "$MAGIC_CMD"; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13629$as_echo "$MAGIC_CMD" >&6; }
13630else
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
13633fi
13634
13635
13636
13637
13638
13639if test -z "$lt_cv_path_MAGIC_CMD"; then
13640 if test -n "$ac_tool_prefix"; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13642$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013643if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013644 $as_echo_n "(cached) " >&6
13645else
13646 case $MAGIC_CMD in
13647[\\/*] | ?:[\\/]*)
13648 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13649 ;;
13650*)
13651 lt_save_MAGIC_CMD="$MAGIC_CMD"
13652 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13654 for ac_dir in $ac_dummy; do
13655 IFS="$lt_save_ifs"
13656 test -z "$ac_dir" && ac_dir=.
13657 if test -f $ac_dir/file; then
13658 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13659 if test -n "$file_magic_test_file"; then
13660 case $deplibs_check_method in
13661 "file_magic "*)
13662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13663 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13665 $EGREP "$file_magic_regex" > /dev/null; then
13666 :
13667 else
13668 cat <<_LT_EOF 1>&2
13669
13670*** Warning: the command libtool uses to detect shared libraries,
13671*** $file_magic_cmd, produces output that libtool cannot recognize.
13672*** The result is that libtool may fail to recognize shared libraries
13673*** as such. This will affect the creation of libtool libraries that
13674*** depend on shared libraries, but programs linked with such libtool
13675*** libraries will work regardless of this problem. Nevertheless, you
13676*** may want to report the problem to your system manager and/or to
13677*** bug-libtool@gnu.org
13678
13679_LT_EOF
13680 fi ;;
13681 esac
13682 fi
13683 break
13684 fi
13685 done
13686 IFS="$lt_save_ifs"
13687 MAGIC_CMD="$lt_save_MAGIC_CMD"
13688 ;;
13689esac
13690fi
13691
13692MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13693if test -n "$MAGIC_CMD"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13695$as_echo "$MAGIC_CMD" >&6; }
13696else
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698$as_echo "no" >&6; }
13699fi
13700
13701
13702 else
13703 MAGIC_CMD=:
13704 fi
13705fi
13706
13707 fi
13708 ;;
13709esac
13710
13711# Use C for the default configuration in the libtool script
13712
13713lt_save_CC="$CC"
13714ac_ext=c
13715ac_cpp='$CPP $CPPFLAGS'
13716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13718ac_compiler_gnu=$ac_cv_c_compiler_gnu
13719
13720
13721# Source file extension for C test sources.
13722ac_ext=c
13723
13724# Object file extension for compiled C test sources.
13725objext=o
13726objext=$objext
13727
13728# Code to be used in simple compile tests
13729lt_simple_compile_test_code="int some_variable = 0;"
13730
13731# Code to be used in simple link tests
13732lt_simple_link_test_code='int main(){return(0);}'
13733
13734
13735
13736
13737
13738
13739
13740# If no C compiler was specified, use CC.
13741LTCC=${LTCC-"$CC"}
13742
13743# If no C compiler flags were specified, use CFLAGS.
13744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13745
13746# Allow CC to be a program name with arguments.
13747compiler=$CC
13748
13749# Save the default compiler, since it gets overwritten when the other
13750# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13751compiler_DEFAULT=$CC
13752
13753# save warnings/boilerplate of simple test code
13754ac_outfile=conftest.$ac_objext
13755echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13756eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13757_lt_compiler_boilerplate=`cat conftest.err`
13758$RM conftest*
13759
13760ac_outfile=conftest.$ac_objext
13761echo "$lt_simple_link_test_code" >conftest.$ac_ext
13762eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13763_lt_linker_boilerplate=`cat conftest.err`
13764$RM -r conftest*
13765
13766
13767## CAVEAT EMPTOR:
13768## There is no encapsulation within the following macros, do not change
13769## the running order or otherwise move them around unless you know exactly
13770## what you are doing...
13771if test -n "$compiler"; then
13772
13773lt_prog_compiler_no_builtin_flag=
13774
13775if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013776 case $cc_basename in
13777 nvcc*)
13778 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13779 *)
13780 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13781 esac
cristy73bd4a52010-10-05 11:24:23 +000013782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13784$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013785if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013786 $as_echo_n "(cached) " >&6
13787else
13788 lt_cv_prog_compiler_rtti_exceptions=no
13789 ac_outfile=conftest.$ac_objext
13790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13791 lt_compiler_flag="-fno-rtti -fno-exceptions"
13792 # Insert the option either (1) after the last *FLAGS variable, or
13793 # (2) before a word containing "conftest.", or (3) at the end.
13794 # Note that $ac_compile itself does not contain backslashes and begins
13795 # with a dollar sign (not a hyphen), so the echo should work correctly.
13796 # The option is referenced via a variable to avoid confusing sed.
13797 lt_compile=`echo "$ac_compile" | $SED \
13798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13800 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013802 (eval "$lt_compile" 2>conftest.err)
13803 ac_status=$?
13804 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013806 if (exit $ac_status) && test -s "$ac_outfile"; then
13807 # The compiler can only warn and ignore the option if not recognized
13808 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013809 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13811 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13812 lt_cv_prog_compiler_rtti_exceptions=yes
13813 fi
13814 fi
13815 $RM conftest*
13816
13817fi
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13819$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13820
13821if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13822 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13823else
13824 :
13825fi
13826
13827fi
13828
13829
13830
13831
13832
13833
13834 lt_prog_compiler_wl=
13835lt_prog_compiler_pic=
13836lt_prog_compiler_static=
13837
cristy73bd4a52010-10-05 11:24:23 +000013838
13839 if test "$GCC" = yes; then
13840 lt_prog_compiler_wl='-Wl,'
13841 lt_prog_compiler_static='-static'
13842
13843 case $host_os in
13844 aix*)
13845 # All AIX code is PIC.
13846 if test "$host_cpu" = ia64; then
13847 # AIX 5 now supports IA64 processor
13848 lt_prog_compiler_static='-Bstatic'
13849 fi
13850 ;;
13851
13852 amigaos*)
13853 case $host_cpu in
13854 powerpc)
13855 # see comment about AmigaOS4 .so support
13856 lt_prog_compiler_pic='-fPIC'
13857 ;;
13858 m68k)
13859 # FIXME: we need at least 68020 code to build shared libraries, but
13860 # adding the `-m68020' flag to GCC prevents building anything better,
13861 # like `-m68040'.
13862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13863 ;;
13864 esac
13865 ;;
13866
13867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13868 # PIC is the default for these OSes.
13869 ;;
13870
13871 mingw* | cygwin* | pw32* | os2* | cegcc*)
13872 # This hack is so that the source file can tell whether it is being
13873 # built for inclusion in a dll (and should export symbols for example).
13874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13875 # (--disable-auto-import) libraries
13876 lt_prog_compiler_pic='-DDLL_EXPORT'
13877 ;;
13878
13879 darwin* | rhapsody*)
13880 # PIC is the default on this platform
13881 # Common symbols not allowed in MH_DYLIB files
13882 lt_prog_compiler_pic='-fno-common'
13883 ;;
13884
cristy0c60a692010-11-04 01:09:47 +000013885 haiku*)
13886 # PIC is the default for Haiku.
13887 # The "-static" flag exists, but is broken.
13888 lt_prog_compiler_static=
13889 ;;
13890
cristy73bd4a52010-10-05 11:24:23 +000013891 hpux*)
13892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13894 # sets the default TLS model and affects inlining.
13895 case $host_cpu in
13896 hppa*64*)
13897 # +Z the default
13898 ;;
13899 *)
13900 lt_prog_compiler_pic='-fPIC'
13901 ;;
13902 esac
13903 ;;
13904
13905 interix[3-9]*)
13906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13907 # Instead, we relocate shared libraries at runtime.
13908 ;;
13909
13910 msdosdjgpp*)
13911 # Just because we use GCC doesn't mean we suddenly get shared libraries
13912 # on systems that don't support them.
13913 lt_prog_compiler_can_build_shared=no
13914 enable_shared=no
13915 ;;
13916
13917 *nto* | *qnx*)
13918 # QNX uses GNU C++, but need to define -shared option too, otherwise
13919 # it will coredump.
13920 lt_prog_compiler_pic='-fPIC -shared'
13921 ;;
13922
13923 sysv4*MP*)
13924 if test -d /usr/nec; then
13925 lt_prog_compiler_pic=-Kconform_pic
13926 fi
13927 ;;
13928
13929 *)
13930 lt_prog_compiler_pic='-fPIC'
13931 ;;
13932 esac
cristy0c60a692010-11-04 01:09:47 +000013933
13934 case $cc_basename in
13935 nvcc*) # Cuda Compiler Driver 2.2
13936 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000013937 if test -n "$lt_prog_compiler_pic"; then
13938 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13939 fi
cristy0c60a692010-11-04 01:09:47 +000013940 ;;
13941 esac
cristy73bd4a52010-10-05 11:24:23 +000013942 else
13943 # PORTME Check for flag to pass linker flags through the system compiler.
13944 case $host_os in
13945 aix*)
13946 lt_prog_compiler_wl='-Wl,'
13947 if test "$host_cpu" = ia64; then
13948 # AIX 5 now supports IA64 processor
13949 lt_prog_compiler_static='-Bstatic'
13950 else
13951 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13952 fi
13953 ;;
13954
13955 mingw* | cygwin* | pw32* | os2* | cegcc*)
13956 # This hack is so that the source file can tell whether it is being
13957 # built for inclusion in a dll (and should export symbols for example).
13958 lt_prog_compiler_pic='-DDLL_EXPORT'
13959 ;;
13960
13961 hpux9* | hpux10* | hpux11*)
13962 lt_prog_compiler_wl='-Wl,'
13963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13964 # not for PA HP-UX.
13965 case $host_cpu in
13966 hppa*64*|ia64*)
13967 # +Z the default
13968 ;;
13969 *)
13970 lt_prog_compiler_pic='+Z'
13971 ;;
13972 esac
13973 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13974 lt_prog_compiler_static='${wl}-a ${wl}archive'
13975 ;;
13976
13977 irix5* | irix6* | nonstopux*)
13978 lt_prog_compiler_wl='-Wl,'
13979 # PIC (with -KPIC) is the default.
13980 lt_prog_compiler_static='-non_shared'
13981 ;;
13982
cristy0c60a692010-11-04 01:09:47 +000013983 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000013984 case $cc_basename in
13985 # old Intel for x86_64 which still supported -KPIC.
13986 ecc*)
13987 lt_prog_compiler_wl='-Wl,'
13988 lt_prog_compiler_pic='-KPIC'
13989 lt_prog_compiler_static='-static'
13990 ;;
13991 # icc used to be incompatible with GCC.
13992 # ICC 10 doesn't accept -KPIC any more.
13993 icc* | ifort*)
13994 lt_prog_compiler_wl='-Wl,'
13995 lt_prog_compiler_pic='-fPIC'
13996 lt_prog_compiler_static='-static'
13997 ;;
13998 # Lahey Fortran 8.1.
13999 lf95*)
14000 lt_prog_compiler_wl='-Wl,'
14001 lt_prog_compiler_pic='--shared'
14002 lt_prog_compiler_static='--static'
14003 ;;
cristyda16f162011-02-19 23:52:17 +000014004 nagfor*)
14005 # NAG Fortran compiler
14006 lt_prog_compiler_wl='-Wl,-Wl,,'
14007 lt_prog_compiler_pic='-PIC'
14008 lt_prog_compiler_static='-Bstatic'
14009 ;;
cristy0c60a692010-11-04 01:09:47 +000014010 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014011 # Portland Group compilers (*not* the Pentium gcc compiler,
14012 # which looks to be a dead project)
14013 lt_prog_compiler_wl='-Wl,'
14014 lt_prog_compiler_pic='-fpic'
14015 lt_prog_compiler_static='-Bstatic'
14016 ;;
14017 ccc*)
14018 lt_prog_compiler_wl='-Wl,'
14019 # All Alpha code is PIC.
14020 lt_prog_compiler_static='-non_shared'
14021 ;;
cristy0c60a692010-11-04 01:09:47 +000014022 xl* | bgxl* | bgf* | mpixl*)
14023 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014024 lt_prog_compiler_wl='-Wl,'
14025 lt_prog_compiler_pic='-qpic'
14026 lt_prog_compiler_static='-qstaticlink'
14027 ;;
14028 *)
14029 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014030 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14032 lt_prog_compiler_pic='-KPIC'
14033 lt_prog_compiler_static='-Bstatic'
14034 lt_prog_compiler_wl=''
14035 ;;
cristy99bd5232011-12-07 14:38:20 +000014036 *Sun\ F* | *Sun*Fortran*)
14037 lt_prog_compiler_pic='-KPIC'
14038 lt_prog_compiler_static='-Bstatic'
14039 lt_prog_compiler_wl='-Qoption ld '
14040 ;;
cristy73bd4a52010-10-05 11:24:23 +000014041 *Sun\ C*)
14042 # Sun C 5.9
14043 lt_prog_compiler_pic='-KPIC'
14044 lt_prog_compiler_static='-Bstatic'
14045 lt_prog_compiler_wl='-Wl,'
14046 ;;
cristy99bd5232011-12-07 14:38:20 +000014047 *Intel*\ [CF]*Compiler*)
14048 lt_prog_compiler_wl='-Wl,'
14049 lt_prog_compiler_pic='-fPIC'
14050 lt_prog_compiler_static='-static'
14051 ;;
14052 *Portland\ Group*)
14053 lt_prog_compiler_wl='-Wl,'
14054 lt_prog_compiler_pic='-fpic'
14055 lt_prog_compiler_static='-Bstatic'
14056 ;;
cristy73bd4a52010-10-05 11:24:23 +000014057 esac
14058 ;;
14059 esac
14060 ;;
14061
14062 newsos6)
14063 lt_prog_compiler_pic='-KPIC'
14064 lt_prog_compiler_static='-Bstatic'
14065 ;;
14066
14067 *nto* | *qnx*)
14068 # QNX uses GNU C++, but need to define -shared option too, otherwise
14069 # it will coredump.
14070 lt_prog_compiler_pic='-fPIC -shared'
14071 ;;
14072
14073 osf3* | osf4* | osf5*)
14074 lt_prog_compiler_wl='-Wl,'
14075 # All OSF/1 code is PIC.
14076 lt_prog_compiler_static='-non_shared'
14077 ;;
14078
14079 rdos*)
14080 lt_prog_compiler_static='-non_shared'
14081 ;;
14082
14083 solaris*)
14084 lt_prog_compiler_pic='-KPIC'
14085 lt_prog_compiler_static='-Bstatic'
14086 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014087 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014088 lt_prog_compiler_wl='-Qoption ld ';;
14089 *)
14090 lt_prog_compiler_wl='-Wl,';;
14091 esac
14092 ;;
14093
14094 sunos4*)
14095 lt_prog_compiler_wl='-Qoption ld '
14096 lt_prog_compiler_pic='-PIC'
14097 lt_prog_compiler_static='-Bstatic'
14098 ;;
14099
14100 sysv4 | sysv4.2uw2* | sysv4.3*)
14101 lt_prog_compiler_wl='-Wl,'
14102 lt_prog_compiler_pic='-KPIC'
14103 lt_prog_compiler_static='-Bstatic'
14104 ;;
14105
14106 sysv4*MP*)
14107 if test -d /usr/nec ;then
14108 lt_prog_compiler_pic='-Kconform_pic'
14109 lt_prog_compiler_static='-Bstatic'
14110 fi
14111 ;;
14112
14113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14114 lt_prog_compiler_wl='-Wl,'
14115 lt_prog_compiler_pic='-KPIC'
14116 lt_prog_compiler_static='-Bstatic'
14117 ;;
14118
14119 unicos*)
14120 lt_prog_compiler_wl='-Wl,'
14121 lt_prog_compiler_can_build_shared=no
14122 ;;
14123
14124 uts4*)
14125 lt_prog_compiler_pic='-pic'
14126 lt_prog_compiler_static='-Bstatic'
14127 ;;
14128
14129 *)
14130 lt_prog_compiler_can_build_shared=no
14131 ;;
14132 esac
14133 fi
14134
14135case $host_os in
14136 # For platforms which do not support PIC, -DPIC is meaningless:
14137 *djgpp*)
14138 lt_prog_compiler_pic=
14139 ;;
14140 *)
14141 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14142 ;;
14143esac
cristy73bd4a52010-10-05 11:24:23 +000014144
cristyda16f162011-02-19 23:52:17 +000014145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14146$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14147if ${lt_cv_prog_compiler_pic+:} false; then :
14148 $as_echo_n "(cached) " >&6
14149else
14150 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14153$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14154lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014155
14156#
14157# Check to make sure the PIC flag actually works.
14158#
14159if test -n "$lt_prog_compiler_pic"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14161$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014162if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014163 $as_echo_n "(cached) " >&6
14164else
14165 lt_cv_prog_compiler_pic_works=no
14166 ac_outfile=conftest.$ac_objext
14167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14168 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14169 # Insert the option either (1) after the last *FLAGS variable, or
14170 # (2) before a word containing "conftest.", or (3) at the end.
14171 # Note that $ac_compile itself does not contain backslashes and begins
14172 # with a dollar sign (not a hyphen), so the echo should work correctly.
14173 # The option is referenced via a variable to avoid confusing sed.
14174 lt_compile=`echo "$ac_compile" | $SED \
14175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14177 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014179 (eval "$lt_compile" 2>conftest.err)
14180 ac_status=$?
14181 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014183 if (exit $ac_status) && test -s "$ac_outfile"; then
14184 # The compiler can only warn and ignore the option if not recognized
14185 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14188 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14189 lt_cv_prog_compiler_pic_works=yes
14190 fi
14191 fi
14192 $RM conftest*
14193
14194fi
14195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14196$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14197
14198if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14199 case $lt_prog_compiler_pic in
14200 "" | " "*) ;;
14201 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14202 esac
14203else
14204 lt_prog_compiler_pic=
14205 lt_prog_compiler_can_build_shared=no
14206fi
14207
14208fi
14209
14210
14211
14212
14213
14214
cristyda16f162011-02-19 23:52:17 +000014215
14216
14217
14218
14219
cristy73bd4a52010-10-05 11:24:23 +000014220#
14221# Check to make sure the static flag actually works.
14222#
14223wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14225$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014226if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014227 $as_echo_n "(cached) " >&6
14228else
14229 lt_cv_prog_compiler_static_works=no
14230 save_LDFLAGS="$LDFLAGS"
14231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14234 # The linker can only warn and ignore the option if not recognized
14235 # So say no if there are warnings
14236 if test -s conftest.err; then
14237 # Append any errors to the config.log.
14238 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014239 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14241 if diff conftest.exp conftest.er2 >/dev/null; then
14242 lt_cv_prog_compiler_static_works=yes
14243 fi
14244 else
14245 lt_cv_prog_compiler_static_works=yes
14246 fi
14247 fi
14248 $RM -r conftest*
14249 LDFLAGS="$save_LDFLAGS"
14250
14251fi
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14253$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14254
14255if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14256 :
14257else
14258 lt_prog_compiler_static=
14259fi
14260
14261
14262
14263
14264
14265
14266
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14268$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014269if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014270 $as_echo_n "(cached) " >&6
14271else
14272 lt_cv_prog_compiler_c_o=no
14273 $RM -r conftest 2>/dev/null
14274 mkdir conftest
14275 cd conftest
14276 mkdir out
14277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14278
14279 lt_compiler_flag="-o out/conftest2.$ac_objext"
14280 # Insert the option either (1) after the last *FLAGS variable, or
14281 # (2) before a word containing "conftest.", or (3) at the end.
14282 # Note that $ac_compile itself does not contain backslashes and begins
14283 # with a dollar sign (not a hyphen), so the echo should work correctly.
14284 lt_compile=`echo "$ac_compile" | $SED \
14285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14287 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014289 (eval "$lt_compile" 2>out/conftest.err)
14290 ac_status=$?
14291 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014293 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14294 then
14295 # The compiler can only warn and ignore the option if not recognized
14296 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014297 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014298 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14299 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14300 lt_cv_prog_compiler_c_o=yes
14301 fi
14302 fi
14303 chmod u+w . 2>&5
14304 $RM conftest*
14305 # SGI C++ compiler will create directory out/ii_files/ for
14306 # template instantiation
14307 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14308 $RM out/* && rmdir out
14309 cd ..
14310 $RM -r conftest
14311 $RM conftest*
14312
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14315$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14316
14317
14318
14319
14320
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14323$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014324if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014325 $as_echo_n "(cached) " >&6
14326else
14327 lt_cv_prog_compiler_c_o=no
14328 $RM -r conftest 2>/dev/null
14329 mkdir conftest
14330 cd conftest
14331 mkdir out
14332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14333
14334 lt_compiler_flag="-o out/conftest2.$ac_objext"
14335 # Insert the option either (1) after the last *FLAGS variable, or
14336 # (2) before a word containing "conftest.", or (3) at the end.
14337 # Note that $ac_compile itself does not contain backslashes and begins
14338 # with a dollar sign (not a hyphen), so the echo should work correctly.
14339 lt_compile=`echo "$ac_compile" | $SED \
14340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14342 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014344 (eval "$lt_compile" 2>out/conftest.err)
14345 ac_status=$?
14346 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14349 then
14350 # The compiler can only warn and ignore the option if not recognized
14351 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14355 lt_cv_prog_compiler_c_o=yes
14356 fi
14357 fi
14358 chmod u+w . 2>&5
14359 $RM conftest*
14360 # SGI C++ compiler will create directory out/ii_files/ for
14361 # template instantiation
14362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14363 $RM out/* && rmdir out
14364 cd ..
14365 $RM -r conftest
14366 $RM conftest*
14367
14368fi
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14370$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14371
14372
14373
14374
14375hard_links="nottested"
14376if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14377 # do not overwrite the value of need_locks provided by the user
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14379$as_echo_n "checking if we can lock with hard links... " >&6; }
14380 hard_links=yes
14381 $RM conftest*
14382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14383 touch conftest.a
14384 ln conftest.a conftest.b 2>&5 || hard_links=no
14385 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14387$as_echo "$hard_links" >&6; }
14388 if test "$hard_links" = no; then
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14390$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14391 need_locks=warn
14392 fi
14393else
14394 need_locks=no
14395fi
14396
14397
14398
14399
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14403$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14404
14405 runpath_var=
14406 allow_undefined_flag=
14407 always_export_symbols=no
14408 archive_cmds=
14409 archive_expsym_cmds=
14410 compiler_needs_object=no
14411 enable_shared_with_static_runtimes=no
14412 export_dynamic_flag_spec=
14413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14414 hardcode_automatic=no
14415 hardcode_direct=no
14416 hardcode_direct_absolute=no
14417 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014418 hardcode_libdir_separator=
14419 hardcode_minus_L=no
14420 hardcode_shlibpath_var=unsupported
14421 inherit_rpath=no
14422 link_all_deplibs=unknown
14423 module_cmds=
14424 module_expsym_cmds=
14425 old_archive_from_new_cmds=
14426 old_archive_from_expsyms_cmds=
14427 thread_safe_flag_spec=
14428 whole_archive_flag_spec=
14429 # include_expsyms should be a list of space-separated symbols to be *always*
14430 # included in the symbol list
14431 include_expsyms=
14432 # exclude_expsyms can be an extended regexp of symbols to exclude
14433 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14434 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14435 # as well as any symbol that contains `d'.
14436 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14437 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14438 # platforms (ab)use it in PIC code, but their linkers get confused if
14439 # the symbol is explicitly referenced. Since portable code cannot
14440 # rely on this symbol name, it's probably fine to never include it in
14441 # preloaded symbol tables.
14442 # Exclude shared library initialization/finalization symbols.
14443 extract_expsyms_cmds=
14444
14445 case $host_os in
14446 cygwin* | mingw* | pw32* | cegcc*)
14447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14448 # When not using gcc, we currently assume that we are using
14449 # Microsoft Visual C++.
14450 if test "$GCC" != yes; then
14451 with_gnu_ld=no
14452 fi
14453 ;;
14454 interix*)
14455 # we just hope/assume this is gcc and not c89 (= MSVC++)
14456 with_gnu_ld=yes
14457 ;;
14458 openbsd*)
14459 with_gnu_ld=no
14460 ;;
14461 esac
14462
14463 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014464
14465 # On some targets, GNU ld is compatible enough with the native linker
14466 # that we're better off using the native interface for both.
14467 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014468 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014469 case $host_os in
14470 aix*)
14471 # The AIX port of GNU ld has always aspired to compatibility
14472 # with the native linker. However, as the warning in the GNU ld
14473 # block says, versions before 2.19.5* couldn't really create working
14474 # shared libraries, regardless of the interface used.
14475 case `$LD -v 2>&1` in
14476 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14477 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14478 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14479 *)
14480 lt_use_gnu_ld_interface=yes
14481 ;;
14482 esac
14483 ;;
14484 *)
14485 lt_use_gnu_ld_interface=yes
14486 ;;
14487 esac
14488 fi
14489
14490 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014491 # If archive_cmds runs LD, not CC, wlarc should be empty
14492 wlarc='${wl}'
14493
14494 # Set some defaults for GNU ld with shared library support. These
14495 # are reset later if shared libraries are not supported. Putting them
14496 # here allows them to be overridden if necessary.
14497 runpath_var=LD_RUN_PATH
14498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14499 export_dynamic_flag_spec='${wl}--export-dynamic'
14500 # ancient GNU ld didn't support --whole-archive et. al.
14501 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14502 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14503 else
14504 whole_archive_flag_spec=
14505 fi
14506 supports_anon_versioning=no
14507 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014508 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014509 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14510 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14511 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14512 *\ 2.11.*) ;; # other 2.11 versions
14513 *) supports_anon_versioning=yes ;;
14514 esac
14515
14516 # See if GNU ld supports shared libraries.
14517 case $host_os in
14518 aix[3-9]*)
14519 # On AIX/PPC, the GNU linker is very broken
14520 if test "$host_cpu" != ia64; then
14521 ld_shlibs=no
14522 cat <<_LT_EOF 1>&2
14523
cristy0c60a692010-11-04 01:09:47 +000014524*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014525*** to be unable to reliably create shared libraries on AIX.
14526*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014527*** really care for shared libraries, you may want to install binutils
14528*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14529*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014530
14531_LT_EOF
14532 fi
14533 ;;
14534
14535 amigaos*)
14536 case $host_cpu in
14537 powerpc)
14538 # see comment about AmigaOS4 .so support
14539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14540 archive_expsym_cmds=''
14541 ;;
14542 m68k)
14543 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)'
14544 hardcode_libdir_flag_spec='-L$libdir'
14545 hardcode_minus_L=yes
14546 ;;
14547 esac
14548 ;;
14549
14550 beos*)
14551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14552 allow_undefined_flag=unsupported
14553 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14554 # support --undefined. This deserves some investigation. FIXME
14555 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14556 else
14557 ld_shlibs=no
14558 fi
14559 ;;
14560
14561 cygwin* | mingw* | pw32* | cegcc*)
14562 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14563 # as there is no search path for DLLs.
14564 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014565 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014566 allow_undefined_flag=unsupported
14567 always_export_symbols=no
14568 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014569 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'
14570 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 +000014571
14572 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14574 # If the export-symbols file already is a .def file (1st line
14575 # is EXPORTS), use it as is; otherwise, prepend...
14576 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14577 cp $export_symbols $output_objdir/$soname.def;
14578 else
14579 echo EXPORTS > $output_objdir/$soname.def;
14580 cat $export_symbols >> $output_objdir/$soname.def;
14581 fi~
14582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14583 else
14584 ld_shlibs=no
14585 fi
14586 ;;
14587
cristy0c60a692010-11-04 01:09:47 +000014588 haiku*)
14589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14590 link_all_deplibs=yes
14591 ;;
14592
cristy73bd4a52010-10-05 11:24:23 +000014593 interix[3-9]*)
14594 hardcode_direct=no
14595 hardcode_shlibpath_var=no
14596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14597 export_dynamic_flag_spec='${wl}-E'
14598 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14599 # Instead, shared libraries are loaded at an image base (0x10000000 by
14600 # default) and relocated if they conflict, which is a slow very memory
14601 # consuming and fragmenting process. To avoid this, we pick a random,
14602 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14603 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14604 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14605 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'
14606 ;;
14607
cristy0c60a692010-11-04 01:09:47 +000014608 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014609 tmp_diet=no
14610 if test "$host_os" = linux-dietlibc; then
14611 case $cc_basename in
14612 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14613 esac
14614 fi
14615 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14616 && test "$tmp_diet" = no
14617 then
cristyda16f162011-02-19 23:52:17 +000014618 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014619 tmp_sharedflag='-shared'
14620 case $cc_basename,$host_cpu in
14621 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014622 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 +000014623 tmp_addflag=' $pic_flag'
14624 ;;
cristy0c60a692010-11-04 01:09:47 +000014625 pgf77* | pgf90* | pgf95* | pgfortran*)
14626 # Portland Group f77 and f90 compilers
14627 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 +000014628 tmp_addflag=' $pic_flag -Mnomain' ;;
14629 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14630 tmp_addflag=' -i_dynamic' ;;
14631 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14632 tmp_addflag=' -i_dynamic -nofor_main' ;;
14633 ifc* | ifort*) # Intel Fortran compiler
14634 tmp_addflag=' -nofor_main' ;;
14635 lf95*) # Lahey Fortran 8.1
14636 whole_archive_flag_spec=
14637 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014638 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014639 tmp_sharedflag='-qmkshrobj'
14640 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014641 nvcc*) # Cuda Compiler Driver 2.2
14642 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'
14643 compiler_needs_object=yes
14644 ;;
cristy73bd4a52010-10-05 11:24:23 +000014645 esac
14646 case `$CC -V 2>&1 | sed 5q` in
14647 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014648 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 +000014649 compiler_needs_object=yes
14650 tmp_sharedflag='-G' ;;
14651 *Sun\ F*) # Sun Fortran 8.3
14652 tmp_sharedflag='-G' ;;
14653 esac
14654 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14655
14656 if test "x$supports_anon_versioning" = xyes; then
14657 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14659 echo "local: *; };" >> $output_objdir/$libname.ver~
14660 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14661 fi
14662
14663 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014664 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014665 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14666 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014668 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014669 if test "x$supports_anon_versioning" = xyes; then
14670 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14672 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014673 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014674 fi
14675 ;;
14676 esac
14677 else
14678 ld_shlibs=no
14679 fi
14680 ;;
14681
14682 netbsd*)
14683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14684 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14685 wlarc=
14686 else
cristyda16f162011-02-19 23:52:17 +000014687 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14688 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 +000014689 fi
14690 ;;
14691
14692 solaris*)
14693 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14694 ld_shlibs=no
14695 cat <<_LT_EOF 1>&2
14696
14697*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14698*** create shared libraries on Solaris systems. Therefore, libtool
14699*** is disabling shared libraries support. We urge you to upgrade GNU
14700*** binutils to release 2.9.1 or newer. Another option is to modify
14701*** your PATH or compiler configuration so that the native linker is
14702*** used, and then restart.
14703
14704_LT_EOF
14705 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014706 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14707 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 +000014708 else
14709 ld_shlibs=no
14710 fi
14711 ;;
14712
14713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14714 case `$LD -v 2>&1` in
14715 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14716 ld_shlibs=no
14717 cat <<_LT_EOF 1>&2
14718
14719*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14720*** reliably create shared libraries on SCO systems. Therefore, libtool
14721*** is disabling shared libraries support. We urge you to upgrade GNU
14722*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14723*** your PATH or compiler configuration so that the native linker is
14724*** used, and then restart.
14725
14726_LT_EOF
14727 ;;
14728 *)
14729 # For security reasons, it is highly recommended that you always
14730 # use absolute paths for naming shared libraries, and exclude the
14731 # DT_RUNPATH tag from executables and libraries. But doing so
14732 # requires that you compile everything twice, which is a pain.
14733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14736 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14737 else
14738 ld_shlibs=no
14739 fi
14740 ;;
14741 esac
14742 ;;
14743
14744 sunos4*)
14745 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14746 wlarc=
14747 hardcode_direct=yes
14748 hardcode_shlibpath_var=no
14749 ;;
14750
14751 *)
14752 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14754 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 +000014755 else
14756 ld_shlibs=no
14757 fi
14758 ;;
14759 esac
14760
14761 if test "$ld_shlibs" = no; then
14762 runpath_var=
14763 hardcode_libdir_flag_spec=
14764 export_dynamic_flag_spec=
14765 whole_archive_flag_spec=
14766 fi
14767 else
14768 # PORTME fill in a description of your system's linker (not GNU ld)
14769 case $host_os in
14770 aix3*)
14771 allow_undefined_flag=unsupported
14772 always_export_symbols=yes
14773 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'
14774 # Note: this linker hardcodes the directories in LIBPATH if there
14775 # are no directories specified by -L.
14776 hardcode_minus_L=yes
14777 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14778 # Neither direct hardcoding nor static linking is supported with a
14779 # broken collect2.
14780 hardcode_direct=unsupported
14781 fi
14782 ;;
14783
14784 aix[4-9]*)
14785 if test "$host_cpu" = ia64; then
14786 # On IA64, the linker does run time linking by default, so we don't
14787 # have to do anything special.
14788 aix_use_runtimelinking=no
14789 exp_sym_flag='-Bexport'
14790 no_entry_flag=""
14791 else
14792 # If we're using GNU nm, then we don't want the "-C" option.
14793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014794 # Also, AIX nm treats weak defined symbols like other global
14795 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014797 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 +000014798 else
14799 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'
14800 fi
14801 aix_use_runtimelinking=no
14802
14803 # Test if we are trying to use run time linking or normal
14804 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14805 # need to do runtime linking.
14806 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14807 for ld_flag in $LDFLAGS; do
14808 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14809 aix_use_runtimelinking=yes
14810 break
14811 fi
14812 done
14813 ;;
14814 esac
14815
14816 exp_sym_flag='-bexport'
14817 no_entry_flag='-bnoentry'
14818 fi
14819
14820 # When large executables or shared objects are built, AIX ld can
14821 # have problems creating the table of contents. If linking a library
14822 # or program results in "error TOC overflow" add -mminimal-toc to
14823 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14824 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14825
14826 archive_cmds=''
14827 hardcode_direct=yes
14828 hardcode_direct_absolute=yes
14829 hardcode_libdir_separator=':'
14830 link_all_deplibs=yes
14831 file_list_spec='${wl}-f,'
14832
14833 if test "$GCC" = yes; then
14834 case $host_os in aix4.[012]|aix4.[012].*)
14835 # We only want to do this on AIX 4.2 and lower, the check
14836 # below for broken collect2 doesn't work under 4.3+
14837 collect2name=`${CC} -print-prog-name=collect2`
14838 if test -f "$collect2name" &&
14839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14840 then
14841 # We have reworked collect2
14842 :
14843 else
14844 # We have old collect2
14845 hardcode_direct=unsupported
14846 # It fails to find uninstalled libraries when the uninstalled
14847 # path is not listed in the libpath. Setting hardcode_minus_L
14848 # to unsupported forces relinking
14849 hardcode_minus_L=yes
14850 hardcode_libdir_flag_spec='-L$libdir'
14851 hardcode_libdir_separator=
14852 fi
14853 ;;
14854 esac
14855 shared_flag='-shared'
14856 if test "$aix_use_runtimelinking" = yes; then
14857 shared_flag="$shared_flag "'${wl}-G'
14858 fi
14859 else
14860 # not using gcc
14861 if test "$host_cpu" = ia64; then
14862 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14863 # chokes on -Wl,-G. The following line is correct:
14864 shared_flag='-G'
14865 else
14866 if test "$aix_use_runtimelinking" = yes; then
14867 shared_flag='${wl}-G'
14868 else
14869 shared_flag='${wl}-bM:SRE'
14870 fi
14871 fi
14872 fi
14873
14874 export_dynamic_flag_spec='${wl}-bexpall'
14875 # It seems that -bexpall does not export symbols beginning with
14876 # underscore (_), so it is better to generate a list of symbols to export.
14877 always_export_symbols=yes
14878 if test "$aix_use_runtimelinking" = yes; then
14879 # Warning - without using the other runtime loading flags (-brtl),
14880 # -berok will link without error, but may produce a broken library.
14881 allow_undefined_flag='-berok'
14882 # Determine the default libpath from the value encoded in an
14883 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014884 if test "${lt_cv_aix_libpath+set}" = set; then
14885 aix_libpath=$lt_cv_aix_libpath
14886else
14887 if ${lt_cv_aix_libpath_+:} false; then :
14888 $as_echo_n "(cached) " >&6
14889else
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014891/* end confdefs.h. */
14892
14893int
14894main ()
14895{
14896
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901if ac_fn_c_try_link "$LINENO"; then :
14902
cristyda16f162011-02-19 23:52:17 +000014903 lt_aix_libpath_sed='
14904 /Import File Strings/,/^$/ {
14905 /^0/ {
14906 s/^0 *\([^ ]*\) *$/\1/
14907 p
14908 }
14909 }'
14910 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14911 # Check for a 64-bit object if we didn't find anything.
14912 if test -z "$lt_cv_aix_libpath_"; then
14913 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14914 fi
cristy73bd4a52010-10-05 11:24:23 +000014915fi
14916rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014918 if test -z "$lt_cv_aix_libpath_"; then
14919 lt_cv_aix_libpath_="/usr/lib:/lib"
14920 fi
14921
14922fi
14923
14924 aix_libpath=$lt_cv_aix_libpath_
14925fi
cristy73bd4a52010-10-05 11:24:23 +000014926
14927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000014928 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 +000014929 else
14930 if test "$host_cpu" = ia64; then
14931 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14932 allow_undefined_flag="-z nodefs"
14933 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"
14934 else
14935 # Determine the default libpath from the value encoded in an
14936 # empty executable.
cristyda16f162011-02-19 23:52:17 +000014937 if test "${lt_cv_aix_libpath+set}" = set; then
14938 aix_libpath=$lt_cv_aix_libpath
14939else
14940 if ${lt_cv_aix_libpath_+:} false; then :
14941 $as_echo_n "(cached) " >&6
14942else
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014944/* end confdefs.h. */
14945
14946int
14947main ()
14948{
14949
14950 ;
14951 return 0;
14952}
14953_ACEOF
14954if ac_fn_c_try_link "$LINENO"; then :
14955
cristyda16f162011-02-19 23:52:17 +000014956 lt_aix_libpath_sed='
14957 /Import File Strings/,/^$/ {
14958 /^0/ {
14959 s/^0 *\([^ ]*\) *$/\1/
14960 p
14961 }
14962 }'
14963 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14964 # Check for a 64-bit object if we didn't find anything.
14965 if test -z "$lt_cv_aix_libpath_"; then
14966 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14967 fi
cristy73bd4a52010-10-05 11:24:23 +000014968fi
14969rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014971 if test -z "$lt_cv_aix_libpath_"; then
14972 lt_cv_aix_libpath_="/usr/lib:/lib"
14973 fi
14974
14975fi
14976
14977 aix_libpath=$lt_cv_aix_libpath_
14978fi
cristy73bd4a52010-10-05 11:24:23 +000014979
14980 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14981 # Warning - without using the other run time loading flags,
14982 # -berok will link without error, but may produce a broken library.
14983 no_undefined_flag=' ${wl}-bernotok'
14984 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000014985 if test "$with_gnu_ld" = yes; then
14986 # We only use this code for GNU lds that support --whole-archive.
14987 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14988 else
14989 # Exported symbols can be pulled into shared objects from archives
14990 whole_archive_flag_spec='$convenience'
14991 fi
cristy73bd4a52010-10-05 11:24:23 +000014992 archive_cmds_need_lc=yes
14993 # This is similar to how AIX traditionally builds its shared libraries.
14994 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'
14995 fi
14996 fi
14997 ;;
14998
14999 amigaos*)
15000 case $host_cpu in
15001 powerpc)
15002 # see comment about AmigaOS4 .so support
15003 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004 archive_expsym_cmds=''
15005 ;;
15006 m68k)
15007 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)'
15008 hardcode_libdir_flag_spec='-L$libdir'
15009 hardcode_minus_L=yes
15010 ;;
15011 esac
15012 ;;
15013
15014 bsdi[45]*)
15015 export_dynamic_flag_spec=-rdynamic
15016 ;;
15017
15018 cygwin* | mingw* | pw32* | cegcc*)
15019 # When not using gcc, we currently assume that we are using
15020 # Microsoft Visual C++.
15021 # hardcode_libdir_flag_spec is actually meaningless, as there is
15022 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015023 case $cc_basename in
15024 cl*)
15025 # Native MSVC
15026 hardcode_libdir_flag_spec=' '
15027 allow_undefined_flag=unsupported
15028 always_export_symbols=yes
15029 file_list_spec='@'
15030 # Tell ltmain to make .lib files, not .a files.
15031 libext=lib
15032 # Tell ltmain to make .dll files, not .so files.
15033 shrext_cmds=".dll"
15034 # FIXME: Setting linknames here is a bad hack.
15035 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15036 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15037 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15038 else
15039 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15040 fi~
15041 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15042 linknames='
15043 # The linker will not automatically build a static lib if we build a DLL.
15044 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15045 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015046 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15048 # Don't use ranlib
15049 old_postinstall_cmds='chmod 644 $oldlib'
15050 postlink_cmds='lt_outputfile="@OUTPUT@"~
15051 lt_tool_outputfile="@TOOL_OUTPUT@"~
15052 case $lt_outputfile in
15053 *.exe|*.EXE) ;;
15054 *)
15055 lt_outputfile="$lt_outputfile.exe"
15056 lt_tool_outputfile="$lt_tool_outputfile.exe"
15057 ;;
15058 esac~
15059 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15060 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15061 $RM "$lt_outputfile.manifest";
15062 fi'
15063 ;;
15064 *)
15065 # Assume MSVC wrapper
15066 hardcode_libdir_flag_spec=' '
15067 allow_undefined_flag=unsupported
15068 # Tell ltmain to make .lib files, not .a files.
15069 libext=lib
15070 # Tell ltmain to make .dll files, not .so files.
15071 shrext_cmds=".dll"
15072 # FIXME: Setting linknames here is a bad hack.
15073 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15074 # The linker will automatically build a .lib file if we build a DLL.
15075 old_archive_from_new_cmds='true'
15076 # FIXME: Should let the user specify the lib program.
15077 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15078 enable_shared_with_static_runtimes=yes
15079 ;;
15080 esac
cristy73bd4a52010-10-05 11:24:23 +000015081 ;;
15082
15083 darwin* | rhapsody*)
15084
15085
15086 archive_cmds_need_lc=no
15087 hardcode_direct=no
15088 hardcode_automatic=yes
15089 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015090 if test "$lt_cv_ld_force_load" = "yes"; then
15091 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 +000015092
cristy0c60a692010-11-04 01:09:47 +000015093 else
15094 whole_archive_flag_spec=''
15095 fi
cristy73bd4a52010-10-05 11:24:23 +000015096 link_all_deplibs=yes
15097 allow_undefined_flag="$_lt_dar_allow_undefined"
15098 case $cc_basename in
15099 ifort*) _lt_dar_can_shared=yes ;;
15100 *) _lt_dar_can_shared=$GCC ;;
15101 esac
15102 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015103 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015104 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15105 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15106 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}"
15107 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}"
15108
15109 else
15110 ld_shlibs=no
15111 fi
15112
15113 ;;
15114
15115 dgux*)
15116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15117 hardcode_libdir_flag_spec='-L$libdir'
15118 hardcode_shlibpath_var=no
15119 ;;
15120
cristy73bd4a52010-10-05 11:24:23 +000015121 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15122 # support. Future versions do this automatically, but an explicit c++rt0.o
15123 # does not break anything, and helps significantly (at the cost of a little
15124 # extra space).
15125 freebsd2.2*)
15126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15127 hardcode_libdir_flag_spec='-R$libdir'
15128 hardcode_direct=yes
15129 hardcode_shlibpath_var=no
15130 ;;
15131
15132 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015133 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15135 hardcode_direct=yes
15136 hardcode_minus_L=yes
15137 hardcode_shlibpath_var=no
15138 ;;
15139
15140 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15141 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015143 hardcode_libdir_flag_spec='-R$libdir'
15144 hardcode_direct=yes
15145 hardcode_shlibpath_var=no
15146 ;;
15147
15148 hpux9*)
15149 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015150 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 +000015151 else
15152 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'
15153 fi
15154 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15155 hardcode_libdir_separator=:
15156 hardcode_direct=yes
15157
15158 # hardcode_minus_L: Not really in the search PATH,
15159 # but as the default location of the library.
15160 hardcode_minus_L=yes
15161 export_dynamic_flag_spec='${wl}-E'
15162 ;;
15163
15164 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015165 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015166 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 +000015167 else
15168 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15169 fi
15170 if test "$with_gnu_ld" = no; then
15171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015172 hardcode_libdir_separator=:
15173 hardcode_direct=yes
15174 hardcode_direct_absolute=yes
15175 export_dynamic_flag_spec='${wl}-E'
15176 # hardcode_minus_L: Not really in the search PATH,
15177 # but as the default location of the library.
15178 hardcode_minus_L=yes
15179 fi
15180 ;;
15181
15182 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015184 case $host_cpu in
15185 hppa*64*)
15186 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187 ;;
15188 ia64*)
cristyda16f162011-02-19 23:52:17 +000015189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015190 ;;
15191 *)
cristyda16f162011-02-19 23:52:17 +000015192 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 +000015193 ;;
15194 esac
15195 else
15196 case $host_cpu in
15197 hppa*64*)
15198 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15199 ;;
15200 ia64*)
15201 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15202 ;;
15203 *)
cristy0c60a692010-11-04 01:09:47 +000015204
15205 # Older versions of the 11.00 compiler do not understand -b yet
15206 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15208$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015209if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015210 $as_echo_n "(cached) " >&6
15211else
15212 lt_cv_prog_compiler__b=no
15213 save_LDFLAGS="$LDFLAGS"
15214 LDFLAGS="$LDFLAGS -b"
15215 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15216 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15217 # The linker can only warn and ignore the option if not recognized
15218 # So say no if there are warnings
15219 if test -s conftest.err; then
15220 # Append any errors to the config.log.
15221 cat conftest.err 1>&5
15222 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15224 if diff conftest.exp conftest.er2 >/dev/null; then
15225 lt_cv_prog_compiler__b=yes
15226 fi
15227 else
15228 lt_cv_prog_compiler__b=yes
15229 fi
15230 fi
15231 $RM -r conftest*
15232 LDFLAGS="$save_LDFLAGS"
15233
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15236$as_echo "$lt_cv_prog_compiler__b" >&6; }
15237
15238if test x"$lt_cv_prog_compiler__b" = xyes; then
15239 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15240else
15241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15242fi
15243
cristy73bd4a52010-10-05 11:24:23 +000015244 ;;
15245 esac
15246 fi
15247 if test "$with_gnu_ld" = no; then
15248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15249 hardcode_libdir_separator=:
15250
15251 case $host_cpu in
15252 hppa*64*|ia64*)
15253 hardcode_direct=no
15254 hardcode_shlibpath_var=no
15255 ;;
15256 *)
15257 hardcode_direct=yes
15258 hardcode_direct_absolute=yes
15259 export_dynamic_flag_spec='${wl}-E'
15260
15261 # hardcode_minus_L: Not really in the search PATH,
15262 # but as the default location of the library.
15263 hardcode_minus_L=yes
15264 ;;
15265 esac
15266 fi
15267 ;;
15268
15269 irix5* | irix6* | nonstopux*)
15270 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015271 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 +000015272 # Try to use the -exported_symbol ld option, if it does not
15273 # work, assume that -exports_file does not work either and
15274 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015275 # This should be the same for all languages, so no per-tag cache variable.
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15277$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15278if ${lt_cv_irix_exported_symbol+:} false; then :
15279 $as_echo_n "(cached) " >&6
15280else
15281 save_LDFLAGS="$LDFLAGS"
15282 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015284/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015285int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015288 lt_cv_irix_exported_symbol=yes
15289else
15290 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015291fi
15292rm -f core conftest.err conftest.$ac_objext \
15293 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015294 LDFLAGS="$save_LDFLAGS"
15295fi
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15297$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15298 if test "$lt_cv_irix_exported_symbol" = yes; then
15299 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'
15300 fi
cristy73bd4a52010-10-05 11:24:23 +000015301 else
cristy0c60a692010-11-04 01:09:47 +000015302 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'
15303 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 +000015304 fi
15305 archive_cmds_need_lc='no'
15306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15307 hardcode_libdir_separator=:
15308 inherit_rpath=yes
15309 link_all_deplibs=yes
15310 ;;
15311
15312 netbsd*)
15313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15315 else
15316 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15317 fi
15318 hardcode_libdir_flag_spec='-R$libdir'
15319 hardcode_direct=yes
15320 hardcode_shlibpath_var=no
15321 ;;
15322
15323 newsos6)
15324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15325 hardcode_direct=yes
15326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15327 hardcode_libdir_separator=:
15328 hardcode_shlibpath_var=no
15329 ;;
15330
15331 *nto* | *qnx*)
15332 ;;
15333
15334 openbsd*)
15335 if test -f /usr/libexec/ld.so; then
15336 hardcode_direct=yes
15337 hardcode_shlibpath_var=no
15338 hardcode_direct_absolute=yes
15339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15340 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15341 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15342 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15343 export_dynamic_flag_spec='${wl}-E'
15344 else
15345 case $host_os in
15346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15347 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15348 hardcode_libdir_flag_spec='-R$libdir'
15349 ;;
15350 *)
15351 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15352 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15353 ;;
15354 esac
15355 fi
15356 else
15357 ld_shlibs=no
15358 fi
15359 ;;
15360
15361 os2*)
15362 hardcode_libdir_flag_spec='-L$libdir'
15363 hardcode_minus_L=yes
15364 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015365 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 +000015366 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15367 ;;
15368
15369 osf3*)
15370 if test "$GCC" = yes; then
15371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015372 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 +000015373 else
15374 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015375 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 +000015376 fi
15377 archive_cmds_need_lc='no'
15378 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15379 hardcode_libdir_separator=:
15380 ;;
15381
15382 osf4* | osf5*) # as osf3* with the addition of -msym flag
15383 if test "$GCC" = yes; then
15384 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015385 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 +000015386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15387 else
15388 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015389 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 +000015390 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 +000015391 $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 +000015392
15393 # Both c and cxx compiler support -rpath directly
15394 hardcode_libdir_flag_spec='-rpath $libdir'
15395 fi
15396 archive_cmds_need_lc='no'
15397 hardcode_libdir_separator=:
15398 ;;
15399
15400 solaris*)
15401 no_undefined_flag=' -z defs'
15402 if test "$GCC" = yes; then
15403 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015404 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 +000015405 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 +000015406 $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 +000015407 else
15408 case `$CC -V 2>&1` in
15409 *"Compilers 5.0"*)
15410 wlarc=''
15411 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15413 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15414 ;;
15415 *)
15416 wlarc='${wl}'
15417 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15418 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15419 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15420 ;;
15421 esac
15422 fi
15423 hardcode_libdir_flag_spec='-R$libdir'
15424 hardcode_shlibpath_var=no
15425 case $host_os in
15426 solaris2.[0-5] | solaris2.[0-5].*) ;;
15427 *)
15428 # The compiler driver will combine and reorder linker options,
15429 # but understands `-z linker_flag'. GCC discards it without `$wl',
15430 # but is careful enough not to reorder.
15431 # Supported since Solaris 2.6 (maybe 2.5.1?)
15432 if test "$GCC" = yes; then
15433 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15434 else
15435 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15436 fi
15437 ;;
15438 esac
15439 link_all_deplibs=yes
15440 ;;
15441
15442 sunos4*)
15443 if test "x$host_vendor" = xsequent; then
15444 # Use $CC to link under sequent, because it throws in some extra .o
15445 # files that make .init and .fini sections work.
15446 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15447 else
15448 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15449 fi
15450 hardcode_libdir_flag_spec='-L$libdir'
15451 hardcode_direct=yes
15452 hardcode_minus_L=yes
15453 hardcode_shlibpath_var=no
15454 ;;
15455
15456 sysv4)
15457 case $host_vendor in
15458 sni)
15459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct=yes # is this really true???
15461 ;;
15462 siemens)
15463 ## LD is ld it makes a PLAMLIB
15464 ## CC just makes a GrossModule.
15465 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15466 reload_cmds='$CC -r -o $output$reload_objs'
15467 hardcode_direct=no
15468 ;;
15469 motorola)
15470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15472 ;;
15473 esac
15474 runpath_var='LD_RUN_PATH'
15475 hardcode_shlibpath_var=no
15476 ;;
15477
15478 sysv4.3*)
15479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_shlibpath_var=no
15481 export_dynamic_flag_spec='-Bexport'
15482 ;;
15483
15484 sysv4*MP*)
15485 if test -d /usr/nec; then
15486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_shlibpath_var=no
15488 runpath_var=LD_RUN_PATH
15489 hardcode_runpath_var=yes
15490 ld_shlibs=yes
15491 fi
15492 ;;
15493
15494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15495 no_undefined_flag='${wl}-z,text'
15496 archive_cmds_need_lc=no
15497 hardcode_shlibpath_var=no
15498 runpath_var='LD_RUN_PATH'
15499
15500 if test "$GCC" = yes; then
15501 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15503 else
15504 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15506 fi
15507 ;;
15508
15509 sysv5* | sco3.2v5* | sco5v6*)
15510 # Note: We can NOT use -z defs as we might desire, because we do not
15511 # link with -lc, and that would cause any symbols used from libc to
15512 # always be unresolved, which means just about no library would
15513 # ever link correctly. If we're not using GNU ld we use -z text
15514 # though, which does catch some bad symbols but isn't as heavy-handed
15515 # as -z defs.
15516 no_undefined_flag='${wl}-z,text'
15517 allow_undefined_flag='${wl}-z,nodefs'
15518 archive_cmds_need_lc=no
15519 hardcode_shlibpath_var=no
15520 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15521 hardcode_libdir_separator=':'
15522 link_all_deplibs=yes
15523 export_dynamic_flag_spec='${wl}-Bexport'
15524 runpath_var='LD_RUN_PATH'
15525
15526 if test "$GCC" = yes; then
15527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 else
15530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 fi
15533 ;;
15534
15535 uts4*)
15536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_libdir_flag_spec='-L$libdir'
15538 hardcode_shlibpath_var=no
15539 ;;
15540
15541 *)
15542 ld_shlibs=no
15543 ;;
15544 esac
15545
15546 if test x$host_vendor = xsni; then
15547 case $host in
15548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15549 export_dynamic_flag_spec='${wl}-Blargedynsym'
15550 ;;
15551 esac
15552 fi
15553 fi
15554
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15556$as_echo "$ld_shlibs" >&6; }
15557test "$ld_shlibs" = no && can_build_shared=no
15558
15559with_gnu_ld=$with_gnu_ld
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575#
15576# Do we need to explicitly link libc?
15577#
15578case "x$archive_cmds_need_lc" in
15579x|xyes)
15580 # Assume -lc should be added
15581 archive_cmds_need_lc=yes
15582
15583 if test "$enable_shared" = yes && test "$GCC" = yes; then
15584 case $archive_cmds in
15585 *'~'*)
15586 # FIXME: we may have to deal with multi-command sequences.
15587 ;;
15588 '$CC '*)
15589 # Test whether the compiler implicitly links with -lc since on some
15590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15591 # to ld, don't add -lc before -lgcc.
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15593$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015594if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015595 $as_echo_n "(cached) " >&6
15596else
15597 $RM conftest*
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015599
cristy0c60a692010-11-04 01:09:47 +000015600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015601 (eval $ac_compile) 2>&5
15602 ac_status=$?
15603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15604 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015605 soname=conftest
15606 lib=conftest
15607 libobjs=conftest.$ac_objext
15608 deplibs=
15609 wl=$lt_prog_compiler_wl
15610 pic_flag=$lt_prog_compiler_pic
15611 compiler_flags=-v
15612 linker_flags=-v
15613 verstring=
15614 output_objdir=.
15615 libname=conftest
15616 lt_save_allow_undefined_flag=$allow_undefined_flag
15617 allow_undefined_flag=
15618 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 +000015619 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15620 ac_status=$?
15621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15622 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015623 then
15624 lt_cv_archive_cmds_need_lc=no
15625 else
15626 lt_cv_archive_cmds_need_lc=yes
15627 fi
15628 allow_undefined_flag=$lt_save_allow_undefined_flag
15629 else
15630 cat conftest.err 1>&5
15631 fi
15632 $RM conftest*
15633
15634fi
15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15636$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15637 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015638 ;;
15639 esac
15640 fi
15641 ;;
15642esac
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
cristy73bd4a52010-10-05 11:24:23 +000015795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15796$as_echo_n "checking dynamic linker characteristics... " >&6; }
15797
15798if test "$GCC" = yes; then
15799 case $host_os in
15800 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15801 *) lt_awk_arg="/^libraries:/" ;;
15802 esac
cristy0c60a692010-11-04 01:09:47 +000015803 case $host_os in
15804 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15805 *) lt_sed_strip_eq="s,=/,/,g" ;;
15806 esac
15807 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15808 case $lt_search_path_spec in
15809 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015810 # if the path contains ";" then we assume it to be the separator
15811 # otherwise default to the standard path separator (i.e. ":") - it is
15812 # assumed that no part of a normal pathname contains ";" but that should
15813 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015814 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15815 ;;
15816 *)
15817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15818 ;;
15819 esac
cristy73bd4a52010-10-05 11:24:23 +000015820 # Ok, now we have the path, separated by spaces, we can step through it
15821 # and add multilib dir if necessary.
15822 lt_tmp_lt_search_path_spec=
15823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15824 for lt_sys_path in $lt_search_path_spec; do
15825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15827 else
15828 test -d "$lt_sys_path" && \
15829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15830 fi
15831 done
cristy0c60a692010-11-04 01:09:47 +000015832 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015833BEGIN {RS=" "; FS="/|\n";} {
15834 lt_foo="";
15835 lt_count=0;
15836 for (lt_i = NF; lt_i > 0; lt_i--) {
15837 if ($lt_i != "" && $lt_i != ".") {
15838 if ($lt_i == "..") {
15839 lt_count++;
15840 } else {
15841 if (lt_count == 0) {
15842 lt_foo="/" $lt_i lt_foo;
15843 } else {
15844 lt_count--;
15845 }
15846 }
15847 }
15848 }
15849 if (lt_foo != "") { lt_freq[lt_foo]++; }
15850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15851}'`
cristy0c60a692010-11-04 01:09:47 +000015852 # AWK program above erroneously prepends '/' to C:/dos/paths
15853 # for these hosts.
15854 case $host_os in
15855 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15856 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15857 esac
15858 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015859else
15860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15861fi
15862library_names_spec=
15863libname_spec='lib$name'
15864soname_spec=
15865shrext_cmds=".so"
15866postinstall_cmds=
15867postuninstall_cmds=
15868finish_cmds=
15869finish_eval=
15870shlibpath_var=
15871shlibpath_overrides_runpath=unknown
15872version_type=none
15873dynamic_linker="$host_os ld.so"
15874sys_lib_dlsearch_path_spec="/lib /usr/lib"
15875need_lib_prefix=unknown
15876hardcode_into_libs=no
15877
15878# when you set need_version to no, make sure it does not cause -set_version
15879# flags to be left without arguments
15880need_version=unknown
15881
15882case $host_os in
15883aix3*)
cristy99bd5232011-12-07 14:38:20 +000015884 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15886 shlibpath_var=LIBPATH
15887
15888 # AIX 3 has no versioning support, so we append a major version to the name.
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 ;;
15891
15892aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000015893 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015894 need_lib_prefix=no
15895 need_version=no
15896 hardcode_into_libs=yes
15897 if test "$host_cpu" = ia64; then
15898 # AIX 5 supports IA64
15899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15900 shlibpath_var=LD_LIBRARY_PATH
15901 else
15902 # With GCC up to 2.95.x, collect2 would create an import file
15903 # for dependence libraries. The import file would start with
15904 # the line `#! .'. This would cause the generated library to
15905 # depend on `.', always an invalid library. This was fixed in
15906 # development snapshots of GCC prior to 3.0.
15907 case $host_os in
15908 aix4 | aix4.[01] | aix4.[01].*)
15909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15910 echo ' yes '
15911 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15912 :
15913 else
15914 can_build_shared=no
15915 fi
15916 ;;
15917 esac
15918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15919 # soname into executable. Probably we can add versioning support to
15920 # collect2, so additional links can be useful in future.
15921 if test "$aix_use_runtimelinking" = yes; then
15922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15923 # instead of lib<name>.a to let people know that these are not
15924 # typical AIX shared libraries.
15925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926 else
15927 # We preserve .a as extension for shared libraries through AIX4.2
15928 # and later when we are not doing run time linking.
15929 library_names_spec='${libname}${release}.a $libname.a'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 fi
15932 shlibpath_var=LIBPATH
15933 fi
15934 ;;
15935
15936amigaos*)
15937 case $host_cpu in
15938 powerpc)
15939 # Since July 2007 AmigaOS4 officially supports .so libraries.
15940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 ;;
15943 m68k)
15944 library_names_spec='$libname.ixlibrary $libname.a'
15945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000015946 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 +000015947 ;;
15948 esac
15949 ;;
15950
15951beos*)
15952 library_names_spec='${libname}${shared_ext}'
15953 dynamic_linker="$host_os ld.so"
15954 shlibpath_var=LIBRARY_PATH
15955 ;;
15956
15957bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000015958 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000015959 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15966 # the default ld.so.conf also contains /usr/contrib/lib and
15967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15968 # libtool to hard-code these into programs
15969 ;;
15970
15971cygwin* | mingw* | pw32* | cegcc*)
15972 version_type=windows
15973 shrext_cmds=".dll"
15974 need_version=no
15975 need_lib_prefix=no
15976
cristyda16f162011-02-19 23:52:17 +000015977 case $GCC,$cc_basename in
15978 yes,*)
15979 # gcc
cristy73bd4a52010-10-05 11:24:23 +000015980 library_names_spec='$libname.dll.a'
15981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15982 postinstall_cmds='base_file=`basename \${file}`~
15983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15984 dldir=$destdir/`dirname \$dlpath`~
15985 test -d \$dldir || mkdir -p \$dldir~
15986 $install_prog $dir/$dlname \$dldir/$dlname~
15987 chmod a+x \$dldir/$dlname~
15988 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15989 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15990 fi'
15991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15992 dlpath=$dir/\$dldll~
15993 $RM \$dlpath'
15994 shlibpath_overrides_runpath=yes
15995
15996 case $host_os in
15997 cygwin*)
15998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016000
16001 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016002 ;;
16003 mingw* | cegcc*)
16004 # MinGW DLLs use traditional 'lib' prefix
16005 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016006 ;;
16007 pw32*)
16008 # pw32 DLLs use 'pw' prefix rather than 'lib'
16009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16010 ;;
16011 esac
cristyda16f162011-02-19 23:52:17 +000016012 dynamic_linker='Win32 ld.exe'
16013 ;;
16014
16015 *,cl*)
16016 # Native MSVC
16017 libname_spec='$name'
16018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16019 library_names_spec='${libname}.dll.lib'
16020
16021 case $build_os in
16022 mingw*)
16023 sys_lib_search_path_spec=
16024 lt_save_ifs=$IFS
16025 IFS=';'
16026 for lt_path in $LIB
16027 do
16028 IFS=$lt_save_ifs
16029 # Let DOS variable expansion print the short 8.3 style file name.
16030 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16031 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16032 done
16033 IFS=$lt_save_ifs
16034 # Convert to MSYS style.
16035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16036 ;;
16037 cygwin*)
16038 # Convert to unix form, then to dos form, then back to unix form
16039 # but this time dos style (no spaces!) so that the unix form looks
16040 # like /cygdrive/c/PROGRA~1:/cygdr...
16041 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16042 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16043 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16044 ;;
16045 *)
16046 sys_lib_search_path_spec="$LIB"
16047 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16048 # It is most probably a Windows format PATH.
16049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16050 else
16051 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16052 fi
16053 # FIXME: find the short name or the path components, as spaces are
16054 # common. (e.g. "Program Files" -> "PROGRA~1")
16055 ;;
16056 esac
16057
16058 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16059 postinstall_cmds='base_file=`basename \${file}`~
16060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16061 dldir=$destdir/`dirname \$dlpath`~
16062 test -d \$dldir || mkdir -p \$dldir~
16063 $install_prog $dir/$dlname \$dldir/$dlname'
16064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16065 dlpath=$dir/\$dldll~
16066 $RM \$dlpath'
16067 shlibpath_overrides_runpath=yes
16068 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016069 ;;
16070
16071 *)
cristyda16f162011-02-19 23:52:17 +000016072 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016074 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016075 ;;
16076 esac
cristy73bd4a52010-10-05 11:24:23 +000016077 # FIXME: first we should search . and the directory the executable is in
16078 shlibpath_var=PATH
16079 ;;
16080
16081darwin* | rhapsody*)
16082 dynamic_linker="$host_os dyld"
16083 version_type=darwin
16084 need_lib_prefix=no
16085 need_version=no
16086 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16087 soname_spec='${libname}${release}${major}$shared_ext'
16088 shlibpath_overrides_runpath=yes
16089 shlibpath_var=DYLD_LIBRARY_PATH
16090 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16091
16092 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16093 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16094 ;;
16095
16096dgux*)
cristy99bd5232011-12-07 14:38:20 +000016097 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016098 need_lib_prefix=no
16099 need_version=no
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 ;;
16104
cristy73bd4a52010-10-05 11:24:23 +000016105freebsd* | dragonfly*)
16106 # DragonFly does not have aout. When/if they implement a new
16107 # versioning mechanism, adjust this.
16108 if test -x /usr/bin/objformat; then
16109 objformat=`/usr/bin/objformat`
16110 else
16111 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016112 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016113 *) objformat=elf ;;
16114 esac
16115 fi
16116 version_type=freebsd-$objformat
16117 case $version_type in
16118 freebsd-elf*)
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16120 need_version=no
16121 need_lib_prefix=no
16122 ;;
16123 freebsd-*)
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16125 need_version=yes
16126 ;;
16127 esac
16128 shlibpath_var=LD_LIBRARY_PATH
16129 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016130 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016131 shlibpath_overrides_runpath=yes
16132 ;;
16133 freebsd3.[01]* | freebsdelf3.[01]*)
16134 shlibpath_overrides_runpath=yes
16135 hardcode_into_libs=yes
16136 ;;
16137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16139 shlibpath_overrides_runpath=no
16140 hardcode_into_libs=yes
16141 ;;
16142 *) # from 4.6 on, and DragonFly
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 ;;
16146 esac
16147 ;;
16148
16149gnu*)
cristy99bd5232011-12-07 14:38:20 +000016150 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016156 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016157 hardcode_into_libs=yes
16158 ;;
16159
cristy0c60a692010-11-04 01:09:47 +000016160haiku*)
cristy99bd5232011-12-07 14:38:20 +000016161 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016162 need_lib_prefix=no
16163 need_version=no
16164 dynamic_linker="$host_os runtime_loader"
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes
16169 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16170 hardcode_into_libs=yes
16171 ;;
16172
cristy73bd4a52010-10-05 11:24:23 +000016173hpux9* | hpux10* | hpux11*)
16174 # Give a soname corresponding to the major version so that dld.sl refuses to
16175 # link against other versions.
16176 version_type=sunos
16177 need_lib_prefix=no
16178 need_version=no
16179 case $host_cpu in
16180 ia64*)
16181 shrext_cmds='.so'
16182 hardcode_into_libs=yes
16183 dynamic_linker="$host_os dld.so"
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 if test "X$HPUX_IA64_MODE" = X32; then
16189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16190 else
16191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16192 fi
16193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16194 ;;
16195 hppa*64*)
16196 shrext_cmds='.sl'
16197 hardcode_into_libs=yes
16198 dynamic_linker="$host_os dld.sl"
16199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202 soname_spec='${libname}${release}${shared_ext}$major'
16203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16205 ;;
16206 *)
16207 shrext_cmds='.sl'
16208 dynamic_linker="$host_os dld.sl"
16209 shlibpath_var=SHLIB_PATH
16210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16212 soname_spec='${libname}${release}${shared_ext}$major'
16213 ;;
16214 esac
cristy0c60a692010-11-04 01:09:47 +000016215 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016216 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016217 # or fails outright, so override atomically:
16218 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016219 ;;
16220
16221interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016222 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=no
16230 hardcode_into_libs=yes
16231 ;;
16232
16233irix5* | irix6* | nonstopux*)
16234 case $host_os in
16235 nonstopux*) version_type=nonstopux ;;
16236 *)
16237 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016238 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016239 else
16240 version_type=irix
16241 fi ;;
16242 esac
16243 need_lib_prefix=no
16244 need_version=no
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16247 case $host_os in
16248 irix5* | nonstopux*)
16249 libsuff= shlibsuff=
16250 ;;
16251 *)
16252 case $LD in # libtool.m4 will add one of these switches to LD
16253 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16254 libsuff= shlibsuff= libmagic=32-bit;;
16255 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16256 libsuff=32 shlibsuff=N32 libmagic=N32;;
16257 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16258 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16259 *) libsuff= shlibsuff= libmagic=never-match;;
16260 esac
16261 ;;
16262 esac
16263 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16264 shlibpath_overrides_runpath=no
16265 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16266 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16267 hardcode_into_libs=yes
16268 ;;
16269
16270# No shared lib support for Linux oldld, aout, or coff.
16271linux*oldld* | linux*aout* | linux*coff*)
16272 dynamic_linker=no
16273 ;;
16274
cristy99bd5232011-12-07 14:38:20 +000016275# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016276linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016277 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016278 need_lib_prefix=no
16279 need_version=no
16280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281 soname_spec='${libname}${release}${shared_ext}$major'
16282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16283 shlibpath_var=LD_LIBRARY_PATH
16284 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016285
cristy73bd4a52010-10-05 11:24:23 +000016286 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016287 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016288 $as_echo_n "(cached) " >&6
16289else
16290 lt_cv_shlibpath_overrides_runpath=no
16291 save_LDFLAGS=$LDFLAGS
16292 save_libdir=$libdir
16293 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16294 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016296/* end confdefs.h. */
16297
16298int
16299main ()
16300{
16301
16302 ;
16303 return 0;
16304}
16305_ACEOF
16306if ac_fn_c_try_link "$LINENO"; then :
16307 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016308 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016309fi
16310fi
16311rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016313 LDFLAGS=$save_LDFLAGS
16314 libdir=$save_libdir
16315
16316fi
16317
16318 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016319
16320 # This implies no fast_install, which is unacceptable.
16321 # Some rework will be needed to allow for fast_install
16322 # before this can be enabled.
16323 hardcode_into_libs=yes
16324
16325 # Add ABI-specific directories to the system library path.
16326 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16327
16328 # Append ld.so.conf contents to the search path
16329 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016330 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 +000016331 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016332
cristy73bd4a52010-10-05 11:24:23 +000016333 fi
16334
16335 # We used to test for /lib/ld.so.1 and disable shared libraries on
16336 # powerpc, because MkLinux only supported shared libraries with the
16337 # GNU dynamic linker. Since this was broken with cross compilers,
16338 # most powerpc-linux boxes support dynamic linking these days and
16339 # people can always --disable-shared, the test was removed, and we
16340 # assume the GNU/Linux dynamic linker is in use.
16341 dynamic_linker='GNU/Linux ld.so'
16342 ;;
16343
16344netbsd*)
16345 version_type=sunos
16346 need_lib_prefix=no
16347 need_version=no
16348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16351 dynamic_linker='NetBSD (a.out) ld.so'
16352 else
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 dynamic_linker='NetBSD ld.elf_so'
16356 fi
16357 shlibpath_var=LD_LIBRARY_PATH
16358 shlibpath_overrides_runpath=yes
16359 hardcode_into_libs=yes
16360 ;;
16361
16362newsos6)
cristy99bd5232011-12-07 14:38:20 +000016363 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=yes
16367 ;;
16368
16369*nto* | *qnx*)
16370 version_type=qnx
16371 need_lib_prefix=no
16372 need_version=no
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 shlibpath_var=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath=no
16377 hardcode_into_libs=yes
16378 dynamic_linker='ldqnx.so'
16379 ;;
16380
16381openbsd*)
16382 version_type=sunos
16383 sys_lib_dlsearch_path_spec="/usr/lib"
16384 need_lib_prefix=no
16385 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16386 case $host_os in
16387 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16388 *) need_version=no ;;
16389 esac
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16394 case $host_os in
16395 openbsd2.[89] | openbsd2.[89].*)
16396 shlibpath_overrides_runpath=no
16397 ;;
16398 *)
16399 shlibpath_overrides_runpath=yes
16400 ;;
16401 esac
16402 else
16403 shlibpath_overrides_runpath=yes
16404 fi
16405 ;;
16406
16407os2*)
16408 libname_spec='$name'
16409 shrext_cmds=".dll"
16410 need_lib_prefix=no
16411 library_names_spec='$libname${shared_ext} $libname.a'
16412 dynamic_linker='OS/2 ld.exe'
16413 shlibpath_var=LIBPATH
16414 ;;
16415
16416osf3* | osf4* | osf5*)
16417 version_type=osf
16418 need_lib_prefix=no
16419 need_version=no
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16425 ;;
16426
16427rdos*)
16428 dynamic_linker=no
16429 ;;
16430
16431solaris*)
cristy99bd5232011-12-07 14:38:20 +000016432 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016433 need_lib_prefix=no
16434 need_version=no
16435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436 soname_spec='${libname}${release}${shared_ext}$major'
16437 shlibpath_var=LD_LIBRARY_PATH
16438 shlibpath_overrides_runpath=yes
16439 hardcode_into_libs=yes
16440 # ldd complains unless libraries are executable
16441 postinstall_cmds='chmod +x $lib'
16442 ;;
16443
16444sunos4*)
16445 version_type=sunos
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16448 shlibpath_var=LD_LIBRARY_PATH
16449 shlibpath_overrides_runpath=yes
16450 if test "$with_gnu_ld" = yes; then
16451 need_lib_prefix=no
16452 fi
16453 need_version=yes
16454 ;;
16455
16456sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016457 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16459 soname_spec='${libname}${release}${shared_ext}$major'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 case $host_vendor in
16462 sni)
16463 shlibpath_overrides_runpath=no
16464 need_lib_prefix=no
16465 runpath_var=LD_RUN_PATH
16466 ;;
16467 siemens)
16468 need_lib_prefix=no
16469 ;;
16470 motorola)
16471 need_lib_prefix=no
16472 need_version=no
16473 shlibpath_overrides_runpath=no
16474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16475 ;;
16476 esac
16477 ;;
16478
16479sysv4*MP*)
16480 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016481 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16483 soname_spec='$libname${shared_ext}.$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 fi
16486 ;;
16487
16488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16489 version_type=freebsd-elf
16490 need_lib_prefix=no
16491 need_version=no
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 if test "$with_gnu_ld" = yes; then
16498 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16499 else
16500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16501 case $host_os in
16502 sco3.2v5*)
16503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16504 ;;
16505 esac
16506 fi
16507 sys_lib_dlsearch_path_spec='/usr/lib'
16508 ;;
16509
16510tpf*)
16511 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016512 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016513 need_lib_prefix=no
16514 need_version=no
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=no
16518 hardcode_into_libs=yes
16519 ;;
16520
16521uts4*)
cristy99bd5232011-12-07 14:38:20 +000016522 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524 soname_spec='${libname}${release}${shared_ext}$major'
16525 shlibpath_var=LD_LIBRARY_PATH
16526 ;;
16527
16528*)
16529 dynamic_linker=no
16530 ;;
16531esac
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16533$as_echo "$dynamic_linker" >&6; }
16534test "$dynamic_linker" = no && can_build_shared=no
16535
16536variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16537if test "$GCC" = yes; then
16538 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16539fi
16540
16541if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16542 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16543fi
16544if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16546fi
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
cristy0c60a692010-11-04 01:09:47 +000016634
16635
16636
16637
16638
cristy73bd4a52010-10-05 11:24:23 +000016639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16640$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16641hardcode_action=
16642if test -n "$hardcode_libdir_flag_spec" ||
16643 test -n "$runpath_var" ||
16644 test "X$hardcode_automatic" = "Xyes" ; then
16645
16646 # We can hardcode non-existent directories.
16647 if test "$hardcode_direct" != no &&
16648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16649 # have to relink, otherwise we might link with an installed library
16650 # when we should be linking with a yet-to-be-installed one
16651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16652 test "$hardcode_minus_L" != no; then
16653 # Linking always hardcodes the temporary library directory.
16654 hardcode_action=relink
16655 else
16656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16657 hardcode_action=immediate
16658 fi
16659else
16660 # We cannot hardcode anything, or else we can only hardcode existing
16661 # directories.
16662 hardcode_action=unsupported
16663fi
16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16665$as_echo "$hardcode_action" >&6; }
16666
16667if test "$hardcode_action" = relink ||
16668 test "$inherit_rpath" = yes; then
16669 # Fast installation is not supported
16670 enable_fast_install=no
16671elif test "$shlibpath_overrides_runpath" = yes ||
16672 test "$enable_shared" = no; then
16673 # Fast installation is not necessary
16674 enable_fast_install=needless
16675fi
16676
16677
16678
16679
16680
16681
16682 if test "x$enable_dlopen" != xyes; then
16683 enable_dlopen=unknown
16684 enable_dlopen_self=unknown
16685 enable_dlopen_self_static=unknown
16686else
16687 lt_cv_dlopen=no
16688 lt_cv_dlopen_libs=
16689
16690 case $host_os in
16691 beos*)
16692 lt_cv_dlopen="load_add_on"
16693 lt_cv_dlopen_libs=
16694 lt_cv_dlopen_self=yes
16695 ;;
16696
16697 mingw* | pw32* | cegcc*)
16698 lt_cv_dlopen="LoadLibrary"
16699 lt_cv_dlopen_libs=
16700 ;;
16701
16702 cygwin*)
16703 lt_cv_dlopen="dlopen"
16704 lt_cv_dlopen_libs=
16705 ;;
16706
16707 darwin*)
16708 # if libdl is installed we need to link against it
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16710$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016711if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016712 $as_echo_n "(cached) " >&6
16713else
16714 ac_check_lib_save_LIBS=$LIBS
16715LIBS="-ldl $LIBS"
16716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16717/* end confdefs.h. */
16718
16719/* Override any GCC internal prototype to avoid an error.
16720 Use char because int might match the return type of a GCC
16721 builtin and then its argument prototype would still apply. */
16722#ifdef __cplusplus
16723extern "C"
16724#endif
16725char dlopen ();
16726int
16727main ()
16728{
16729return dlopen ();
16730 ;
16731 return 0;
16732}
16733_ACEOF
16734if ac_fn_c_try_link "$LINENO"; then :
16735 ac_cv_lib_dl_dlopen=yes
16736else
16737 ac_cv_lib_dl_dlopen=no
16738fi
16739rm -f core conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741LIBS=$ac_check_lib_save_LIBS
16742fi
16743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16744$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016745if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16747else
16748
16749 lt_cv_dlopen="dyld"
16750 lt_cv_dlopen_libs=
16751 lt_cv_dlopen_self=yes
16752
16753fi
16754
16755 ;;
16756
16757 *)
16758 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016759if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016760 lt_cv_dlopen="shl_load"
16761else
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16763$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016764if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016765 $as_echo_n "(cached) " >&6
16766else
16767 ac_check_lib_save_LIBS=$LIBS
16768LIBS="-ldld $LIBS"
16769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16770/* end confdefs.h. */
16771
16772/* Override any GCC internal prototype to avoid an error.
16773 Use char because int might match the return type of a GCC
16774 builtin and then its argument prototype would still apply. */
16775#ifdef __cplusplus
16776extern "C"
16777#endif
16778char shl_load ();
16779int
16780main ()
16781{
16782return shl_load ();
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787if ac_fn_c_try_link "$LINENO"; then :
16788 ac_cv_lib_dld_shl_load=yes
16789else
16790 ac_cv_lib_dld_shl_load=no
16791fi
16792rm -f core conftest.err conftest.$ac_objext \
16793 conftest$ac_exeext conftest.$ac_ext
16794LIBS=$ac_check_lib_save_LIBS
16795fi
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16797$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016798if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016799 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16800else
16801 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016802if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016803 lt_cv_dlopen="dlopen"
16804else
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16806$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016807if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016808 $as_echo_n "(cached) " >&6
16809else
16810 ac_check_lib_save_LIBS=$LIBS
16811LIBS="-ldl $LIBS"
16812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813/* end confdefs.h. */
16814
16815/* Override any GCC internal prototype to avoid an error.
16816 Use char because int might match the return type of a GCC
16817 builtin and then its argument prototype would still apply. */
16818#ifdef __cplusplus
16819extern "C"
16820#endif
16821char dlopen ();
16822int
16823main ()
16824{
16825return dlopen ();
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830if ac_fn_c_try_link "$LINENO"; then :
16831 ac_cv_lib_dl_dlopen=yes
16832else
16833 ac_cv_lib_dl_dlopen=no
16834fi
16835rm -f core conftest.err conftest.$ac_objext \
16836 conftest$ac_exeext conftest.$ac_ext
16837LIBS=$ac_check_lib_save_LIBS
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16840$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016841if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16843else
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16845$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016846if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016847 $as_echo_n "(cached) " >&6
16848else
16849 ac_check_lib_save_LIBS=$LIBS
16850LIBS="-lsvld $LIBS"
16851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h. */
16853
16854/* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857#ifdef __cplusplus
16858extern "C"
16859#endif
16860char dlopen ();
16861int
16862main ()
16863{
16864return dlopen ();
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_lib_svld_dlopen=yes
16871else
16872 ac_cv_lib_svld_dlopen=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876LIBS=$ac_check_lib_save_LIBS
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16879$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016880if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16882else
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16884$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016885if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016886 $as_echo_n "(cached) " >&6
16887else
16888 ac_check_lib_save_LIBS=$LIBS
16889LIBS="-ldld $LIBS"
16890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h. */
16892
16893/* Override any GCC internal prototype to avoid an error.
16894 Use char because int might match the return type of a GCC
16895 builtin and then its argument prototype would still apply. */
16896#ifdef __cplusplus
16897extern "C"
16898#endif
16899char dld_link ();
16900int
16901main ()
16902{
16903return dld_link ();
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908if ac_fn_c_try_link "$LINENO"; then :
16909 ac_cv_lib_dld_dld_link=yes
16910else
16911 ac_cv_lib_dld_dld_link=no
16912fi
16913rm -f core conftest.err conftest.$ac_objext \
16914 conftest$ac_exeext conftest.$ac_ext
16915LIBS=$ac_check_lib_save_LIBS
16916fi
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16918$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000016919if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016920 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16921fi
16922
16923
16924fi
16925
16926
16927fi
16928
16929
16930fi
16931
16932
16933fi
16934
16935
16936fi
16937
16938 ;;
16939 esac
16940
16941 if test "x$lt_cv_dlopen" != xno; then
16942 enable_dlopen=yes
16943 else
16944 enable_dlopen=no
16945 fi
16946
16947 case $lt_cv_dlopen in
16948 dlopen)
16949 save_CPPFLAGS="$CPPFLAGS"
16950 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16951
16952 save_LDFLAGS="$LDFLAGS"
16953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16954
16955 save_LIBS="$LIBS"
16956 LIBS="$lt_cv_dlopen_libs $LIBS"
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16959$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016960if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016961 $as_echo_n "(cached) " >&6
16962else
16963 if test "$cross_compiling" = yes; then :
16964 lt_cv_dlopen_self=cross
16965else
16966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16967 lt_status=$lt_dlunknown
16968 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000016969#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000016970#include "confdefs.h"
16971
16972#if HAVE_DLFCN_H
16973#include <dlfcn.h>
16974#endif
16975
16976#include <stdio.h>
16977
16978#ifdef RTLD_GLOBAL
16979# define LT_DLGLOBAL RTLD_GLOBAL
16980#else
16981# ifdef DL_GLOBAL
16982# define LT_DLGLOBAL DL_GLOBAL
16983# else
16984# define LT_DLGLOBAL 0
16985# endif
16986#endif
16987
16988/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16989 find out it does not work in some platform. */
16990#ifndef LT_DLLAZY_OR_NOW
16991# ifdef RTLD_LAZY
16992# define LT_DLLAZY_OR_NOW RTLD_LAZY
16993# else
16994# ifdef DL_LAZY
16995# define LT_DLLAZY_OR_NOW DL_LAZY
16996# else
16997# ifdef RTLD_NOW
16998# define LT_DLLAZY_OR_NOW RTLD_NOW
16999# else
17000# ifdef DL_NOW
17001# define LT_DLLAZY_OR_NOW DL_NOW
17002# else
17003# define LT_DLLAZY_OR_NOW 0
17004# endif
17005# endif
17006# endif
17007# endif
17008#endif
17009
cristy0c60a692010-11-04 01:09:47 +000017010/* When -fvisbility=hidden is used, assume the code has been annotated
17011 correspondingly for the symbols needed. */
17012#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017013int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017014#endif
17015
cristyda16f162011-02-19 23:52:17 +000017016int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017017int main ()
17018{
17019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17020 int status = $lt_dlunknown;
17021
17022 if (self)
17023 {
17024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017025 else
17026 {
17027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17028 else puts (dlerror ());
17029 }
cristy73bd4a52010-10-05 11:24:23 +000017030 /* dlclose (self); */
17031 }
17032 else
17033 puts (dlerror ());
17034
17035 return status;
17036}
17037_LT_EOF
17038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17039 (eval $ac_link) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17043 (./conftest; exit; ) >&5 2>/dev/null
17044 lt_status=$?
17045 case x$lt_status in
17046 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17047 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17048 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17049 esac
17050 else :
17051 # compilation failed
17052 lt_cv_dlopen_self=no
17053 fi
17054fi
17055rm -fr conftest*
17056
17057
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17060$as_echo "$lt_cv_dlopen_self" >&6; }
17061
17062 if test "x$lt_cv_dlopen_self" = xyes; then
17063 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17065$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017066if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017067 $as_echo_n "(cached) " >&6
17068else
17069 if test "$cross_compiling" = yes; then :
17070 lt_cv_dlopen_self_static=cross
17071else
17072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17073 lt_status=$lt_dlunknown
17074 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017075#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017076#include "confdefs.h"
17077
17078#if HAVE_DLFCN_H
17079#include <dlfcn.h>
17080#endif
17081
17082#include <stdio.h>
17083
17084#ifdef RTLD_GLOBAL
17085# define LT_DLGLOBAL RTLD_GLOBAL
17086#else
17087# ifdef DL_GLOBAL
17088# define LT_DLGLOBAL DL_GLOBAL
17089# else
17090# define LT_DLGLOBAL 0
17091# endif
17092#endif
17093
17094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17095 find out it does not work in some platform. */
17096#ifndef LT_DLLAZY_OR_NOW
17097# ifdef RTLD_LAZY
17098# define LT_DLLAZY_OR_NOW RTLD_LAZY
17099# else
17100# ifdef DL_LAZY
17101# define LT_DLLAZY_OR_NOW DL_LAZY
17102# else
17103# ifdef RTLD_NOW
17104# define LT_DLLAZY_OR_NOW RTLD_NOW
17105# else
17106# ifdef DL_NOW
17107# define LT_DLLAZY_OR_NOW DL_NOW
17108# else
17109# define LT_DLLAZY_OR_NOW 0
17110# endif
17111# endif
17112# endif
17113# endif
17114#endif
17115
cristy0c60a692010-11-04 01:09:47 +000017116/* When -fvisbility=hidden is used, assume the code has been annotated
17117 correspondingly for the symbols needed. */
17118#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017119int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017120#endif
17121
cristyda16f162011-02-19 23:52:17 +000017122int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017123int main ()
17124{
17125 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17126 int status = $lt_dlunknown;
17127
17128 if (self)
17129 {
17130 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017131 else
17132 {
17133 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17134 else puts (dlerror ());
17135 }
cristy73bd4a52010-10-05 11:24:23 +000017136 /* dlclose (self); */
17137 }
17138 else
17139 puts (dlerror ());
17140
17141 return status;
17142}
17143_LT_EOF
17144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17145 (eval $ac_link) 2>&5
17146 ac_status=$?
17147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17148 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17149 (./conftest; exit; ) >&5 2>/dev/null
17150 lt_status=$?
17151 case x$lt_status in
17152 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17153 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17154 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17155 esac
17156 else :
17157 # compilation failed
17158 lt_cv_dlopen_self_static=no
17159 fi
17160fi
17161rm -fr conftest*
17162
17163
17164fi
17165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17166$as_echo "$lt_cv_dlopen_self_static" >&6; }
17167 fi
17168
17169 CPPFLAGS="$save_CPPFLAGS"
17170 LDFLAGS="$save_LDFLAGS"
17171 LIBS="$save_LIBS"
17172 ;;
17173 esac
17174
17175 case $lt_cv_dlopen_self in
17176 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17177 *) enable_dlopen_self=unknown ;;
17178 esac
17179
17180 case $lt_cv_dlopen_self_static in
17181 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17182 *) enable_dlopen_self_static=unknown ;;
17183 esac
17184fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202striplib=
17203old_striplib=
17204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17205$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17206if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17210$as_echo "yes" >&6; }
17211else
17212# FIXME - insert some real tests, host_os isn't really good enough
17213 case $host_os in
17214 darwin*)
17215 if test -n "$STRIP" ; then
17216 striplib="$STRIP -x"
17217 old_striplib="$STRIP -S"
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17219$as_echo "yes" >&6; }
17220 else
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222$as_echo "no" >&6; }
17223 fi
17224 ;;
17225 *)
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17227$as_echo "no" >&6; }
17228 ;;
17229 esac
17230fi
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243 # Report which library types will actually be built
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17245$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17247$as_echo "$can_build_shared" >&6; }
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17250$as_echo_n "checking whether to build shared libraries... " >&6; }
17251 test "$can_build_shared" = "no" && enable_shared=no
17252
17253 # On AIX, shared libraries and static libraries use the same namespace, and
17254 # are all built from PIC.
17255 case $host_os in
17256 aix3*)
17257 test "$enable_shared" = yes && enable_static=no
17258 if test -n "$RANLIB"; then
17259 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17260 postinstall_cmds='$RANLIB $lib'
17261 fi
17262 ;;
17263
17264 aix[4-9]*)
17265 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17266 test "$enable_shared" = yes && enable_static=no
17267 fi
17268 ;;
17269 esac
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17271$as_echo "$enable_shared" >&6; }
17272
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17274$as_echo_n "checking whether to build static libraries... " >&6; }
17275 # Make sure either enable_shared or enable_static is yes.
17276 test "$enable_shared" = yes || enable_static=yes
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17278$as_echo "$enable_static" >&6; }
17279
17280
17281
17282
17283fi
17284ac_ext=c
17285ac_cpp='$CPP $CPPFLAGS'
17286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17288ac_compiler_gnu=$ac_cv_c_compiler_gnu
17289
17290CC="$lt_save_CC"
17291
cristy0c60a692010-11-04 01:09:47 +000017292 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17293 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17294 (test "X$CXX" != "Xg++"))) ; then
17295 ac_ext=cpp
17296ac_cpp='$CXXCPP $CPPFLAGS'
17297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17301$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17302if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017303 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017304 $as_echo_n "(cached) " >&6
17305else
17306 # Double quotes because CXXCPP needs to be expanded
17307 for CXXCPP in "$CXX -E" "/lib/cpp"
17308 do
17309 ac_preproc_ok=false
17310for ac_cxx_preproc_warn_flag in '' yes
17311do
17312 # Use a header file that comes with gcc, so configuring glibc
17313 # with a fresh cross-compiler works.
17314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 # <limits.h> exists even on freestanding compilers.
17316 # On the NeXT, cc -E runs the code through the compiler's parser,
17317 # not just through cpp. "Syntax error" is here to catch this case.
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319/* end confdefs.h. */
17320#ifdef __STDC__
17321# include <limits.h>
17322#else
17323# include <assert.h>
17324#endif
17325 Syntax error
17326_ACEOF
17327if ac_fn_cxx_try_cpp "$LINENO"; then :
17328
17329else
17330 # Broken: fails on valid input.
17331continue
17332fi
cristyda16f162011-02-19 23:52:17 +000017333rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017334
17335 # OK, works on sane cases. Now check whether nonexistent headers
17336 # can be detected and how.
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h. */
17339#include <ac_nonexistent.h>
17340_ACEOF
17341if ac_fn_cxx_try_cpp "$LINENO"; then :
17342 # Broken: success on invalid input.
17343continue
17344else
17345 # Passes both tests.
17346ac_preproc_ok=:
17347break
17348fi
cristyda16f162011-02-19 23:52:17 +000017349rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017350
17351done
17352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017353rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017354if $ac_preproc_ok; then :
17355 break
17356fi
17357
17358 done
17359 ac_cv_prog_CXXCPP=$CXXCPP
17360
17361fi
17362 CXXCPP=$ac_cv_prog_CXXCPP
17363else
17364 ac_cv_prog_CXXCPP=$CXXCPP
17365fi
17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17367$as_echo "$CXXCPP" >&6; }
17368ac_preproc_ok=false
17369for ac_cxx_preproc_warn_flag in '' yes
17370do
17371 # Use a header file that comes with gcc, so configuring glibc
17372 # with a fresh cross-compiler works.
17373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17374 # <limits.h> exists even on freestanding compilers.
17375 # On the NeXT, cc -E runs the code through the compiler's parser,
17376 # not just through cpp. "Syntax error" is here to catch this case.
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378/* end confdefs.h. */
17379#ifdef __STDC__
17380# include <limits.h>
17381#else
17382# include <assert.h>
17383#endif
17384 Syntax error
17385_ACEOF
17386if ac_fn_cxx_try_cpp "$LINENO"; then :
17387
17388else
17389 # Broken: fails on valid input.
17390continue
17391fi
cristyda16f162011-02-19 23:52:17 +000017392rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017393
17394 # OK, works on sane cases. Now check whether nonexistent headers
17395 # can be detected and how.
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h. */
17398#include <ac_nonexistent.h>
17399_ACEOF
17400if ac_fn_cxx_try_cpp "$LINENO"; then :
17401 # Broken: success on invalid input.
17402continue
17403else
17404 # Passes both tests.
17405ac_preproc_ok=:
17406break
17407fi
cristyda16f162011-02-19 23:52:17 +000017408rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017409
17410done
17411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017412rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017413if $ac_preproc_ok; then :
17414
17415else
17416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17418as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17419See \`config.log' for more details" "$LINENO" 5; }
17420fi
17421
17422ac_ext=c
17423ac_cpp='$CPP $CPPFLAGS'
17424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17426ac_compiler_gnu=$ac_cv_c_compiler_gnu
17427
17428else
17429 _lt_caught_CXX_error=yes
17430fi
cristy73bd4a52010-10-05 11:24:23 +000017431
17432ac_ext=cpp
17433ac_cpp='$CXXCPP $CPPFLAGS'
17434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17437
17438archive_cmds_need_lc_CXX=no
17439allow_undefined_flag_CXX=
17440always_export_symbols_CXX=no
17441archive_expsym_cmds_CXX=
17442compiler_needs_object_CXX=no
17443export_dynamic_flag_spec_CXX=
17444hardcode_direct_CXX=no
17445hardcode_direct_absolute_CXX=no
17446hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017447hardcode_libdir_separator_CXX=
17448hardcode_minus_L_CXX=no
17449hardcode_shlibpath_var_CXX=unsupported
17450hardcode_automatic_CXX=no
17451inherit_rpath_CXX=no
17452module_cmds_CXX=
17453module_expsym_cmds_CXX=
17454link_all_deplibs_CXX=unknown
17455old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017456reload_flag_CXX=$reload_flag
17457reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017458no_undefined_flag_CXX=
17459whole_archive_flag_spec_CXX=
17460enable_shared_with_static_runtimes_CXX=no
17461
17462# Source file extension for C++ test sources.
17463ac_ext=cpp
17464
17465# Object file extension for compiled C++ test sources.
17466objext=o
17467objext_CXX=$objext
17468
17469# No sense in running all these tests if we already determined that
17470# the CXX compiler isn't working. Some variables (like enable_shared)
17471# are currently assumed to apply to all compilers on this platform,
17472# and will be corrupted by setting them based on a non-working compiler.
17473if test "$_lt_caught_CXX_error" != yes; then
17474 # Code to be used in simple compile tests
17475 lt_simple_compile_test_code="int some_variable = 0;"
17476
17477 # Code to be used in simple link tests
17478 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17479
17480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17481
17482
17483
17484
17485
17486
17487# If no C compiler was specified, use CC.
17488LTCC=${LTCC-"$CC"}
17489
17490# If no C compiler flags were specified, use CFLAGS.
17491LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17492
17493# Allow CC to be a program name with arguments.
17494compiler=$CC
17495
17496
17497 # save warnings/boilerplate of simple test code
17498 ac_outfile=conftest.$ac_objext
17499echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17500eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17501_lt_compiler_boilerplate=`cat conftest.err`
17502$RM conftest*
17503
17504 ac_outfile=conftest.$ac_objext
17505echo "$lt_simple_link_test_code" >conftest.$ac_ext
17506eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17507_lt_linker_boilerplate=`cat conftest.err`
17508$RM -r conftest*
17509
17510
17511 # Allow CC to be a program name with arguments.
17512 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017513 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017514 lt_save_LD=$LD
17515 lt_save_GCC=$GCC
17516 GCC=$GXX
17517 lt_save_with_gnu_ld=$with_gnu_ld
17518 lt_save_path_LD=$lt_cv_path_LD
17519 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17520 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17521 else
17522 $as_unset lt_cv_prog_gnu_ld
17523 fi
17524 if test -n "${lt_cv_path_LDCXX+set}"; then
17525 lt_cv_path_LD=$lt_cv_path_LDCXX
17526 else
17527 $as_unset lt_cv_path_LD
17528 fi
17529 test -z "${LDCXX+set}" || LD=$LDCXX
17530 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017531 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017532 compiler=$CC
17533 compiler_CXX=$CC
17534 for cc_temp in $compiler""; do
17535 case $cc_temp in
17536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17538 \-*) ;;
17539 *) break;;
17540 esac
17541done
cristy0c60a692010-11-04 01:09:47 +000017542cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017543
17544
17545 if test -n "$compiler"; then
17546 # We don't want -fno-exception when compiling C++ code, so set the
17547 # no_builtin_flag separately
17548 if test "$GXX" = yes; then
17549 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17550 else
17551 lt_prog_compiler_no_builtin_flag_CXX=
17552 fi
17553
17554 if test "$GXX" = yes; then
17555 # Set up default GNU C++ configuration
17556
17557
17558
17559# Check whether --with-gnu-ld was given.
17560if test "${with_gnu_ld+set}" = set; then :
17561 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17562else
17563 with_gnu_ld=no
17564fi
17565
17566ac_prog=ld
17567if test "$GCC" = yes; then
17568 # Check if gcc -print-prog-name=ld gives a path.
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17570$as_echo_n "checking for ld used by $CC... " >&6; }
17571 case $host in
17572 *-*-mingw*)
17573 # gcc leaves a trailing carriage return which upsets mingw
17574 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17575 *)
17576 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17577 esac
17578 case $ac_prog in
17579 # Accept absolute paths.
17580 [\\/]* | ?:[\\/]*)
17581 re_direlt='/[^/][^/]*/\.\./'
17582 # Canonicalize the pathname of ld
17583 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17584 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17585 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17586 done
17587 test -z "$LD" && LD="$ac_prog"
17588 ;;
17589 "")
17590 # If it fails, then pretend we aren't using GCC.
17591 ac_prog=ld
17592 ;;
17593 *)
17594 # If it is relative, then search for the first ld in PATH.
17595 with_gnu_ld=unknown
17596 ;;
17597 esac
17598elif test "$with_gnu_ld" = yes; then
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17600$as_echo_n "checking for GNU ld... " >&6; }
17601else
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17603$as_echo_n "checking for non-GNU ld... " >&6; }
17604fi
cristyda16f162011-02-19 23:52:17 +000017605if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017606 $as_echo_n "(cached) " >&6
17607else
17608 if test -z "$LD"; then
17609 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17610 for ac_dir in $PATH; do
17611 IFS="$lt_save_ifs"
17612 test -z "$ac_dir" && ac_dir=.
17613 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17614 lt_cv_path_LD="$ac_dir/$ac_prog"
17615 # Check to see if the program is GNU ld. I'd rather use --version,
17616 # but apparently some variants of GNU ld only accept -v.
17617 # Break only if it was the GNU/non-GNU ld that we prefer.
17618 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17619 *GNU* | *'with BFD'*)
17620 test "$with_gnu_ld" != no && break
17621 ;;
17622 *)
17623 test "$with_gnu_ld" != yes && break
17624 ;;
17625 esac
17626 fi
17627 done
17628 IFS="$lt_save_ifs"
17629else
17630 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17631fi
17632fi
17633
17634LD="$lt_cv_path_LD"
17635if test -n "$LD"; then
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17637$as_echo "$LD" >&6; }
17638else
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640$as_echo "no" >&6; }
17641fi
cristy98dddb52010-11-04 00:30:15 +000017642test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17644$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017645if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017646 $as_echo_n "(cached) " >&6
17647else
17648 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17649case `$LD -v 2>&1 </dev/null` in
17650*GNU* | *'with BFD'*)
17651 lt_cv_prog_gnu_ld=yes
17652 ;;
17653*)
17654 lt_cv_prog_gnu_ld=no
17655 ;;
17656esac
17657fi
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17659$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17660with_gnu_ld=$lt_cv_prog_gnu_ld
17661
17662
17663
17664
17665
17666
17667
17668 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17669 # archiving commands below assume that GNU ld is being used.
17670 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017671 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17672 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 +000017673
17674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17675 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17676
17677 # If archive_cmds runs LD, not CC, wlarc should be empty
17678 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17679 # investigate it a little bit more. (MM)
17680 wlarc='${wl}'
17681
17682 # ancient GNU ld didn't support --whole-archive et. al.
17683 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17684 $GREP 'no-whole-archive' > /dev/null; then
17685 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17686 else
17687 whole_archive_flag_spec_CXX=
17688 fi
17689 else
17690 with_gnu_ld=no
17691 wlarc=
17692
17693 # A generic and very simple default shared library creation
17694 # command for GNU C++ for the case where it uses the native
17695 # linker, instead of GNU ld. If possible, this setting should
17696 # overridden to take advantage of the native linker features on
17697 # the platform it is being used on.
17698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17699 fi
17700
17701 # Commands to make compiler produce verbose output that lists
17702 # what "hidden" libraries, object files and flags are used when
17703 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017705
17706 else
17707 GXX=no
17708 with_gnu_ld=no
17709 wlarc=
17710 fi
17711
17712 # PORTME: fill in a description of your system's C++ link characteristics
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17714$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17715 ld_shlibs_CXX=yes
17716 case $host_os in
17717 aix3*)
17718 # FIXME: insert proper C++ library support
17719 ld_shlibs_CXX=no
17720 ;;
17721 aix[4-9]*)
17722 if test "$host_cpu" = ia64; then
17723 # On IA64, the linker does run time linking by default, so we don't
17724 # have to do anything special.
17725 aix_use_runtimelinking=no
17726 exp_sym_flag='-Bexport'
17727 no_entry_flag=""
17728 else
17729 aix_use_runtimelinking=no
17730
17731 # Test if we are trying to use run time linking or normal
17732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17733 # need to do runtime linking.
17734 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17735 for ld_flag in $LDFLAGS; do
17736 case $ld_flag in
17737 *-brtl*)
17738 aix_use_runtimelinking=yes
17739 break
17740 ;;
17741 esac
17742 done
17743 ;;
17744 esac
17745
17746 exp_sym_flag='-bexport'
17747 no_entry_flag='-bnoentry'
17748 fi
17749
17750 # When large executables or shared objects are built, AIX ld can
17751 # have problems creating the table of contents. If linking a library
17752 # or program results in "error TOC overflow" add -mminimal-toc to
17753 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17754 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17755
17756 archive_cmds_CXX=''
17757 hardcode_direct_CXX=yes
17758 hardcode_direct_absolute_CXX=yes
17759 hardcode_libdir_separator_CXX=':'
17760 link_all_deplibs_CXX=yes
17761 file_list_spec_CXX='${wl}-f,'
17762
17763 if test "$GXX" = yes; then
17764 case $host_os in aix4.[012]|aix4.[012].*)
17765 # We only want to do this on AIX 4.2 and lower, the check
17766 # below for broken collect2 doesn't work under 4.3+
17767 collect2name=`${CC} -print-prog-name=collect2`
17768 if test -f "$collect2name" &&
17769 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17770 then
17771 # We have reworked collect2
17772 :
17773 else
17774 # We have old collect2
17775 hardcode_direct_CXX=unsupported
17776 # It fails to find uninstalled libraries when the uninstalled
17777 # path is not listed in the libpath. Setting hardcode_minus_L
17778 # to unsupported forces relinking
17779 hardcode_minus_L_CXX=yes
17780 hardcode_libdir_flag_spec_CXX='-L$libdir'
17781 hardcode_libdir_separator_CXX=
17782 fi
17783 esac
17784 shared_flag='-shared'
17785 if test "$aix_use_runtimelinking" = yes; then
17786 shared_flag="$shared_flag "'${wl}-G'
17787 fi
17788 else
17789 # not using gcc
17790 if test "$host_cpu" = ia64; then
17791 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17792 # chokes on -Wl,-G. The following line is correct:
17793 shared_flag='-G'
17794 else
17795 if test "$aix_use_runtimelinking" = yes; then
17796 shared_flag='${wl}-G'
17797 else
17798 shared_flag='${wl}-bM:SRE'
17799 fi
17800 fi
17801 fi
17802
17803 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17804 # It seems that -bexpall does not export symbols beginning with
17805 # underscore (_), so it is better to generate a list of symbols to
17806 # export.
17807 always_export_symbols_CXX=yes
17808 if test "$aix_use_runtimelinking" = yes; then
17809 # Warning - without using the other runtime loading flags (-brtl),
17810 # -berok will link without error, but may produce a broken library.
17811 allow_undefined_flag_CXX='-berok'
17812 # Determine the default libpath from the value encoded in an empty
17813 # executable.
cristyda16f162011-02-19 23:52:17 +000017814 if test "${lt_cv_aix_libpath+set}" = set; then
17815 aix_libpath=$lt_cv_aix_libpath
17816else
17817 if ${lt_cv_aix_libpath__CXX+:} false; then :
17818 $as_echo_n "(cached) " >&6
17819else
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017821/* end confdefs.h. */
17822
17823int
17824main ()
17825{
17826
17827 ;
17828 return 0;
17829}
17830_ACEOF
17831if ac_fn_cxx_try_link "$LINENO"; then :
17832
cristyda16f162011-02-19 23:52:17 +000017833 lt_aix_libpath_sed='
17834 /Import File Strings/,/^$/ {
17835 /^0/ {
17836 s/^0 *\([^ ]*\) *$/\1/
17837 p
17838 }
17839 }'
17840 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17841 # Check for a 64-bit object if we didn't find anything.
17842 if test -z "$lt_cv_aix_libpath__CXX"; then
17843 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17844 fi
cristy73bd4a52010-10-05 11:24:23 +000017845fi
17846rm -f core conftest.err conftest.$ac_objext \
17847 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017848 if test -z "$lt_cv_aix_libpath__CXX"; then
17849 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17850 fi
17851
17852fi
17853
17854 aix_libpath=$lt_cv_aix_libpath__CXX
17855fi
cristy73bd4a52010-10-05 11:24:23 +000017856
17857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17858
cristy0c60a692010-11-04 01:09:47 +000017859 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 +000017860 else
17861 if test "$host_cpu" = ia64; then
17862 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17863 allow_undefined_flag_CXX="-z nodefs"
17864 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"
17865 else
17866 # Determine the default libpath from the value encoded in an
17867 # empty executable.
cristyda16f162011-02-19 23:52:17 +000017868 if test "${lt_cv_aix_libpath+set}" = set; then
17869 aix_libpath=$lt_cv_aix_libpath
17870else
17871 if ${lt_cv_aix_libpath__CXX+:} false; then :
17872 $as_echo_n "(cached) " >&6
17873else
17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017875/* end confdefs.h. */
17876
17877int
17878main ()
17879{
17880
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885if ac_fn_cxx_try_link "$LINENO"; then :
17886
cristyda16f162011-02-19 23:52:17 +000017887 lt_aix_libpath_sed='
17888 /Import File Strings/,/^$/ {
17889 /^0/ {
17890 s/^0 *\([^ ]*\) *$/\1/
17891 p
17892 }
17893 }'
17894 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17895 # Check for a 64-bit object if we didn't find anything.
17896 if test -z "$lt_cv_aix_libpath__CXX"; then
17897 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 fi
cristy73bd4a52010-10-05 11:24:23 +000017899fi
17900rm -f core conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017902 if test -z "$lt_cv_aix_libpath__CXX"; then
17903 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17904 fi
17905
17906fi
17907
17908 aix_libpath=$lt_cv_aix_libpath__CXX
17909fi
cristy73bd4a52010-10-05 11:24:23 +000017910
17911 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17912 # Warning - without using the other run time loading flags,
17913 # -berok will link without error, but may produce a broken library.
17914 no_undefined_flag_CXX=' ${wl}-bernotok'
17915 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000017916 if test "$with_gnu_ld" = yes; then
17917 # We only use this code for GNU lds that support --whole-archive.
17918 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17919 else
17920 # Exported symbols can be pulled into shared objects from archives
17921 whole_archive_flag_spec_CXX='$convenience'
17922 fi
cristy73bd4a52010-10-05 11:24:23 +000017923 archive_cmds_need_lc_CXX=yes
17924 # This is similar to how AIX traditionally builds its shared
17925 # libraries.
17926 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'
17927 fi
17928 fi
17929 ;;
17930
17931 beos*)
17932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17933 allow_undefined_flag_CXX=unsupported
17934 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17935 # support --undefined. This deserves some investigation. FIXME
17936 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17937 else
17938 ld_shlibs_CXX=no
17939 fi
17940 ;;
17941
17942 chorus*)
17943 case $cc_basename in
17944 *)
17945 # FIXME: insert proper C++ library support
17946 ld_shlibs_CXX=no
17947 ;;
17948 esac
17949 ;;
17950
17951 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000017952 case $GXX,$cc_basename in
17953 ,cl* | no,cl*)
17954 # Native MSVC
17955 # hardcode_libdir_flag_spec is actually meaningless, as there is
17956 # no search path for DLLs.
17957 hardcode_libdir_flag_spec_CXX=' '
17958 allow_undefined_flag_CXX=unsupported
17959 always_export_symbols_CXX=yes
17960 file_list_spec_CXX='@'
17961 # Tell ltmain to make .lib files, not .a files.
17962 libext=lib
17963 # Tell ltmain to make .dll files, not .so files.
17964 shrext_cmds=".dll"
17965 # FIXME: Setting linknames here is a bad hack.
17966 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17967 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17968 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17969 else
17970 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17971 fi~
17972 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17973 linknames='
17974 # The linker will not automatically build a static lib if we build a DLL.
17975 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17976 enable_shared_with_static_runtimes_CXX=yes
17977 # Don't use ranlib
17978 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17979 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17980 lt_tool_outputfile="@TOOL_OUTPUT@"~
17981 case $lt_outputfile in
17982 *.exe|*.EXE) ;;
17983 *)
17984 lt_outputfile="$lt_outputfile.exe"
17985 lt_tool_outputfile="$lt_tool_outputfile.exe"
17986 ;;
17987 esac~
17988 func_to_tool_file "$lt_outputfile"~
17989 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17990 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17991 $RM "$lt_outputfile.manifest";
17992 fi'
17993 ;;
17994 *)
17995 # g++
17996 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17997 # as there is no search path for DLLs.
17998 hardcode_libdir_flag_spec_CXX='-L$libdir'
17999 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18000 allow_undefined_flag_CXX=unsupported
18001 always_export_symbols_CXX=no
18002 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018003
cristyda16f162011-02-19 23:52:17 +000018004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18005 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'
18006 # If the export-symbols file already is a .def file (1st line
18007 # is EXPORTS), use it as is; otherwise, prepend...
18008 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18009 cp $export_symbols $output_objdir/$soname.def;
18010 else
18011 echo EXPORTS > $output_objdir/$soname.def;
18012 cat $export_symbols >> $output_objdir/$soname.def;
18013 fi~
18014 $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'
18015 else
18016 ld_shlibs_CXX=no
18017 fi
18018 ;;
18019 esac
18020 ;;
cristy73bd4a52010-10-05 11:24:23 +000018021 darwin* | rhapsody*)
18022
18023
18024 archive_cmds_need_lc_CXX=no
18025 hardcode_direct_CXX=no
18026 hardcode_automatic_CXX=yes
18027 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018028 if test "$lt_cv_ld_force_load" = "yes"; then
18029 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 +000018030
cristy0c60a692010-11-04 01:09:47 +000018031 else
18032 whole_archive_flag_spec_CXX=''
18033 fi
cristy73bd4a52010-10-05 11:24:23 +000018034 link_all_deplibs_CXX=yes
18035 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18036 case $cc_basename in
18037 ifort*) _lt_dar_can_shared=yes ;;
18038 *) _lt_dar_can_shared=$GCC ;;
18039 esac
18040 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018041 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018042 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}"
18043 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18044 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}"
18045 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}"
18046 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18047 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}"
18048 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}"
18049 fi
18050
18051 else
18052 ld_shlibs_CXX=no
18053 fi
18054
18055 ;;
18056
18057 dgux*)
18058 case $cc_basename in
18059 ec++*)
18060 # FIXME: insert proper C++ library support
18061 ld_shlibs_CXX=no
18062 ;;
18063 ghcx*)
18064 # Green Hills C++ Compiler
18065 # FIXME: insert proper C++ library support
18066 ld_shlibs_CXX=no
18067 ;;
18068 *)
18069 # FIXME: insert proper C++ library support
18070 ld_shlibs_CXX=no
18071 ;;
18072 esac
18073 ;;
18074
cristy99bd5232011-12-07 14:38:20 +000018075 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018076 # C++ shared libraries reported to be fairly broken before
18077 # switch to ELF
18078 ld_shlibs_CXX=no
18079 ;;
18080
18081 freebsd-elf*)
18082 archive_cmds_need_lc_CXX=no
18083 ;;
18084
18085 freebsd* | dragonfly*)
18086 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18087 # conventions
18088 ld_shlibs_CXX=yes
18089 ;;
18090
18091 gnu*)
18092 ;;
18093
cristy0c60a692010-11-04 01:09:47 +000018094 haiku*)
18095 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18096 link_all_deplibs_CXX=yes
18097 ;;
18098
cristy73bd4a52010-10-05 11:24:23 +000018099 hpux9*)
18100 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18101 hardcode_libdir_separator_CXX=:
18102 export_dynamic_flag_spec_CXX='${wl}-E'
18103 hardcode_direct_CXX=yes
18104 hardcode_minus_L_CXX=yes # Not in the search PATH,
18105 # but as the default
18106 # location of the library.
18107
18108 case $cc_basename in
18109 CC*)
18110 # FIXME: insert proper C++ library support
18111 ld_shlibs_CXX=no
18112 ;;
18113 aCC*)
18114 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'
18115 # Commands to make compiler produce verbose output that lists
18116 # what "hidden" libraries, object files and flags are used when
18117 # linking a shared library.
18118 #
18119 # There doesn't appear to be a way to prevent this compiler from
18120 # explicitly linking system object files so we need to strip them
18121 # from the output so that they don't get included in the library
18122 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018123 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 +000018124 ;;
18125 *)
18126 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018127 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 +000018128 else
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 fi
18132 ;;
18133 esac
18134 ;;
18135
18136 hpux10*|hpux11*)
18137 if test $with_gnu_ld = no; then
18138 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18139 hardcode_libdir_separator_CXX=:
18140
18141 case $host_cpu in
18142 hppa*64*|ia64*)
18143 ;;
18144 *)
18145 export_dynamic_flag_spec_CXX='${wl}-E'
18146 ;;
18147 esac
18148 fi
18149 case $host_cpu in
18150 hppa*64*|ia64*)
18151 hardcode_direct_CXX=no
18152 hardcode_shlibpath_var_CXX=no
18153 ;;
18154 *)
18155 hardcode_direct_CXX=yes
18156 hardcode_direct_absolute_CXX=yes
18157 hardcode_minus_L_CXX=yes # Not in the search PATH,
18158 # but as the default
18159 # location of the library.
18160 ;;
18161 esac
18162
18163 case $cc_basename in
18164 CC*)
18165 # FIXME: insert proper C++ library support
18166 ld_shlibs_CXX=no
18167 ;;
18168 aCC*)
18169 case $host_cpu in
18170 hppa*64*)
18171 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18172 ;;
18173 ia64*)
18174 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18175 ;;
18176 *)
18177 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18178 ;;
18179 esac
18180 # Commands to make compiler produce verbose output that lists
18181 # what "hidden" libraries, object files and flags are used when
18182 # linking a shared library.
18183 #
18184 # There doesn't appear to be a way to prevent this compiler from
18185 # explicitly linking system object files so we need to strip them
18186 # from the output so that they don't get included in the library
18187 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018188 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 +000018189 ;;
18190 *)
18191 if test "$GXX" = yes; then
18192 if test $with_gnu_ld = no; then
18193 case $host_cpu in
18194 hppa*64*)
18195 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18196 ;;
18197 ia64*)
cristyda16f162011-02-19 23:52:17 +000018198 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 +000018199 ;;
18200 *)
cristyda16f162011-02-19 23:52:17 +000018201 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 +000018202 ;;
18203 esac
18204 fi
18205 else
18206 # FIXME: insert proper C++ library support
18207 ld_shlibs_CXX=no
18208 fi
18209 ;;
18210 esac
18211 ;;
18212
18213 interix[3-9]*)
18214 hardcode_direct_CXX=no
18215 hardcode_shlibpath_var_CXX=no
18216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18217 export_dynamic_flag_spec_CXX='${wl}-E'
18218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18219 # Instead, shared libraries are loaded at an image base (0x10000000 by
18220 # default) and relocated if they conflict, which is a slow very memory
18221 # consuming and fragmenting process. To avoid this, we pick a random,
18222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18224 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'
18225 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'
18226 ;;
18227 irix5* | irix6*)
18228 case $cc_basename in
18229 CC*)
18230 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018231 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 +000018232
18233 # Archives containing C++ object files must be created using
18234 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18235 # necessary to make sure instantiated templates are included
18236 # in the archive.
18237 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18238 ;;
18239 *)
18240 if test "$GXX" = yes; then
18241 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018242 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 +000018243 else
cristyda16f162011-02-19 23:52:17 +000018244 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 +000018245 fi
18246 fi
18247 link_all_deplibs_CXX=yes
18248 ;;
18249 esac
18250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18251 hardcode_libdir_separator_CXX=:
18252 inherit_rpath_CXX=yes
18253 ;;
18254
cristy0c60a692010-11-04 01:09:47 +000018255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018256 case $cc_basename in
18257 KCC*)
18258 # Kuck and Associates, Inc. (KAI) C++ Compiler
18259
18260 # KCC will only create a shared library if the output file
18261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18262 # to its proper name (with version) after linking.
18263 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'
18264 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'
18265 # Commands to make compiler produce verbose output that lists
18266 # what "hidden" libraries, object files and flags are used when
18267 # linking a shared library.
18268 #
18269 # There doesn't appear to be a way to prevent this compiler from
18270 # explicitly linking system object files so we need to strip them
18271 # from the output so that they don't get included in the library
18272 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018273 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 +000018274
18275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18277
18278 # Archives containing C++ object files must be created using
18279 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18280 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18281 ;;
18282 icpc* | ecpc* )
18283 # Intel C++
18284 with_gnu_ld=yes
18285 # version 8.0 and above of icpc choke on multiply defined symbols
18286 # if we add $predep_objects and $postdep_objects, however 7.1 and
18287 # earlier do not add the objects themselves.
18288 case `$CC -V 2>&1` in
18289 *"Version 7."*)
18290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18291 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'
18292 ;;
18293 *) # Version 8.0 or newer
18294 tmp_idyn=
18295 case $host_cpu in
18296 ia64*) tmp_idyn=' -i_dynamic';;
18297 esac
18298 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18299 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'
18300 ;;
18301 esac
18302 archive_cmds_need_lc_CXX=no
18303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18305 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18306 ;;
18307 pgCC* | pgcpp*)
18308 # Portland Group C++ compiler
18309 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018310 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018311 prelink_cmds_CXX='tpldir=Template.dir~
18312 rm -rf $tpldir~
18313 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018314 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018315 old_archive_cmds_CXX='tpldir=Template.dir~
18316 rm -rf $tpldir~
18317 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018318 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018319 $RANLIB $oldlib'
18320 archive_cmds_CXX='tpldir=Template.dir~
18321 rm -rf $tpldir~
18322 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018323 $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 +000018324 archive_expsym_cmds_CXX='tpldir=Template.dir~
18325 rm -rf $tpldir~
18326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018327 $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 +000018328 ;;
cristy0c60a692010-11-04 01:09:47 +000018329 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018330 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18331 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'
18332 ;;
18333 esac
18334
18335 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018337 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 +000018338 ;;
18339 cxx*)
18340 # Compaq C++
18341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18342 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'
18343
18344 runpath_var=LD_RUN_PATH
18345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18346 hardcode_libdir_separator_CXX=:
18347
18348 # Commands to make compiler produce verbose output that lists
18349 # what "hidden" libraries, object files and flags are used when
18350 # linking a shared library.
18351 #
18352 # There doesn't appear to be a way to prevent this compiler from
18353 # explicitly linking system object files so we need to strip them
18354 # from the output so that they don't get included in the library
18355 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018356 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 +000018357 ;;
cristy0c60a692010-11-04 01:09:47 +000018358 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018359 # IBM XL 8.0 on PPC, with GNU ld
18360 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18362 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18363 if test "x$supports_anon_versioning" = xyes; then
18364 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18366 echo "local: *; };" >> $output_objdir/$libname.ver~
18367 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18368 fi
18369 ;;
18370 *)
18371 case `$CC -V 2>&1 | sed 5q` in
18372 *Sun\ C*)
18373 # Sun C++ 5.9
18374 no_undefined_flag_CXX=' -zdefs'
18375 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18376 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'
18377 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018378 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 +000018379 compiler_needs_object_CXX=yes
18380
18381 # Not sure whether something based on
18382 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18383 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018384 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018385
18386 # Archives containing C++ object files must be created using
18387 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18388 # necessary to make sure instantiated templates are included
18389 # in the archive.
18390 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18391 ;;
18392 esac
18393 ;;
18394 esac
18395 ;;
18396
18397 lynxos*)
18398 # FIXME: insert proper C++ library support
18399 ld_shlibs_CXX=no
18400 ;;
18401
18402 m88k*)
18403 # FIXME: insert proper C++ library support
18404 ld_shlibs_CXX=no
18405 ;;
18406
18407 mvs*)
18408 case $cc_basename in
18409 cxx*)
18410 # FIXME: insert proper C++ library support
18411 ld_shlibs_CXX=no
18412 ;;
18413 *)
18414 # FIXME: insert proper C++ library support
18415 ld_shlibs_CXX=no
18416 ;;
18417 esac
18418 ;;
18419
18420 netbsd*)
18421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18422 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18423 wlarc=
18424 hardcode_libdir_flag_spec_CXX='-R$libdir'
18425 hardcode_direct_CXX=yes
18426 hardcode_shlibpath_var_CXX=no
18427 fi
18428 # Workaround some broken pre-1.5 toolchains
18429 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18430 ;;
18431
18432 *nto* | *qnx*)
18433 ld_shlibs_CXX=yes
18434 ;;
18435
18436 openbsd2*)
18437 # C++ shared libraries are fairly broken
18438 ld_shlibs_CXX=no
18439 ;;
18440
18441 openbsd*)
18442 if test -f /usr/libexec/ld.so; then
18443 hardcode_direct_CXX=yes
18444 hardcode_shlibpath_var_CXX=no
18445 hardcode_direct_absolute_CXX=yes
18446 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18447 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18449 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18450 export_dynamic_flag_spec_CXX='${wl}-E'
18451 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18452 fi
cristy0c60a692010-11-04 01:09:47 +000018453 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018454 else
18455 ld_shlibs_CXX=no
18456 fi
18457 ;;
18458
18459 osf3* | osf4* | osf5*)
18460 case $cc_basename in
18461 KCC*)
18462 # Kuck and Associates, Inc. (KAI) C++ Compiler
18463
18464 # KCC will only create a shared library if the output file
18465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18466 # to its proper name (with version) after linking.
18467 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'
18468
18469 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18470 hardcode_libdir_separator_CXX=:
18471
18472 # Archives containing C++ object files must be created using
18473 # the KAI C++ compiler.
18474 case $host in
18475 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18476 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18477 esac
18478 ;;
18479 RCC*)
18480 # Rational C++ 2.4.1
18481 # FIXME: insert proper C++ library support
18482 ld_shlibs_CXX=no
18483 ;;
18484 cxx*)
18485 case $host in
18486 osf3*)
18487 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018488 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 +000018489 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18490 ;;
18491 *)
18492 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018493 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 +000018494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18495 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018496 $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 +000018497 $RM $lib.exp'
18498 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18499 ;;
18500 esac
18501
18502 hardcode_libdir_separator_CXX=:
18503
18504 # Commands to make compiler produce verbose output that lists
18505 # what "hidden" libraries, object files and flags are used when
18506 # linking a shared library.
18507 #
18508 # There doesn't appear to be a way to prevent this compiler from
18509 # explicitly linking system object files so we need to strip them
18510 # from the output so that they don't get included in the library
18511 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018512 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 +000018513 ;;
18514 *)
18515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18517 case $host in
18518 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018519 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 +000018520 ;;
18521 *)
cristyda16f162011-02-19 23:52:17 +000018522 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 +000018523 ;;
18524 esac
18525
18526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18527 hardcode_libdir_separator_CXX=:
18528
18529 # Commands to make compiler produce verbose output that lists
18530 # what "hidden" libraries, object files and flags are used when
18531 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018532 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018533
18534 else
18535 # FIXME: insert proper C++ library support
18536 ld_shlibs_CXX=no
18537 fi
18538 ;;
18539 esac
18540 ;;
18541
18542 psos*)
18543 # FIXME: insert proper C++ library support
18544 ld_shlibs_CXX=no
18545 ;;
18546
18547 sunos4*)
18548 case $cc_basename in
18549 CC*)
18550 # Sun C++ 4.x
18551 # FIXME: insert proper C++ library support
18552 ld_shlibs_CXX=no
18553 ;;
18554 lcc*)
18555 # Lucid
18556 # FIXME: insert proper C++ library support
18557 ld_shlibs_CXX=no
18558 ;;
18559 *)
18560 # FIXME: insert proper C++ library support
18561 ld_shlibs_CXX=no
18562 ;;
18563 esac
18564 ;;
18565
18566 solaris*)
18567 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018568 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018569 # Sun C++ 4.2, 5.x and Centerline C++
18570 archive_cmds_need_lc_CXX=yes
18571 no_undefined_flag_CXX=' -zdefs'
18572 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18573 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18574 $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'
18575
18576 hardcode_libdir_flag_spec_CXX='-R$libdir'
18577 hardcode_shlibpath_var_CXX=no
18578 case $host_os in
18579 solaris2.[0-5] | solaris2.[0-5].*) ;;
18580 *)
18581 # The compiler driver will combine and reorder linker options,
18582 # but understands `-z linker_flag'.
18583 # Supported since Solaris 2.6 (maybe 2.5.1?)
18584 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18585 ;;
18586 esac
18587 link_all_deplibs_CXX=yes
18588
cristy0c60a692010-11-04 01:09:47 +000018589 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018590
18591 # Archives containing C++ object files must be created using
18592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18593 # necessary to make sure instantiated templates are included
18594 # in the archive.
18595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18596 ;;
18597 gcx*)
18598 # Green Hills C++ Compiler
18599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18600
18601 # The C++ compiler must be used to create the archive.
18602 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18603 ;;
18604 *)
18605 # GNU C++ compiler with Solaris linker
18606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18607 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18608 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018609 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 +000018610 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 +000018611 $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 +000018612
18613 # Commands to make compiler produce verbose output that lists
18614 # what "hidden" libraries, object files and flags are used when
18615 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018617 else
18618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18619 # platform.
18620 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18621 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18623
18624 # Commands to make compiler produce verbose output that lists
18625 # what "hidden" libraries, object files and flags are used when
18626 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018627 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018628 fi
18629
18630 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18631 case $host_os in
18632 solaris2.[0-5] | solaris2.[0-5].*) ;;
18633 *)
18634 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18635 ;;
18636 esac
18637 fi
18638 ;;
18639 esac
18640 ;;
18641
18642 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18643 no_undefined_flag_CXX='${wl}-z,text'
18644 archive_cmds_need_lc_CXX=no
18645 hardcode_shlibpath_var_CXX=no
18646 runpath_var='LD_RUN_PATH'
18647
18648 case $cc_basename in
18649 CC*)
18650 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18651 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18652 ;;
18653 *)
18654 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18655 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 ;;
18657 esac
18658 ;;
18659
18660 sysv5* | sco3.2v5* | sco5v6*)
18661 # Note: We can NOT use -z defs as we might desire, because we do not
18662 # link with -lc, and that would cause any symbols used from libc to
18663 # always be unresolved, which means just about no library would
18664 # ever link correctly. If we're not using GNU ld we use -z text
18665 # though, which does catch some bad symbols but isn't as heavy-handed
18666 # as -z defs.
18667 no_undefined_flag_CXX='${wl}-z,text'
18668 allow_undefined_flag_CXX='${wl}-z,nodefs'
18669 archive_cmds_need_lc_CXX=no
18670 hardcode_shlibpath_var_CXX=no
18671 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18672 hardcode_libdir_separator_CXX=':'
18673 link_all_deplibs_CXX=yes
18674 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18675 runpath_var='LD_RUN_PATH'
18676
18677 case $cc_basename in
18678 CC*)
18679 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 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 +000018681 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18682 '"$old_archive_cmds_CXX"
18683 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18684 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018685 ;;
18686 *)
18687 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18688 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18689 ;;
18690 esac
18691 ;;
18692
18693 tandem*)
18694 case $cc_basename in
18695 NCC*)
18696 # NonStop-UX NCC 3.20
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
18700 *)
18701 # FIXME: insert proper C++ library support
18702 ld_shlibs_CXX=no
18703 ;;
18704 esac
18705 ;;
18706
18707 vxworks*)
18708 # FIXME: insert proper C++ library support
18709 ld_shlibs_CXX=no
18710 ;;
18711
18712 *)
18713 # FIXME: insert proper C++ library support
18714 ld_shlibs_CXX=no
18715 ;;
18716 esac
18717
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18719$as_echo "$ld_shlibs_CXX" >&6; }
18720 test "$ld_shlibs_CXX" = no && can_build_shared=no
18721
18722 GCC_CXX="$GXX"
18723 LD_CXX="$LD"
18724
18725 ## CAVEAT EMPTOR:
18726 ## There is no encapsulation within the following macros, do not change
18727 ## the running order or otherwise move them around unless you know exactly
18728 ## what you are doing...
18729 # Dependencies to place before and after the object being linked:
18730predep_objects_CXX=
18731postdep_objects_CXX=
18732predeps_CXX=
18733postdeps_CXX=
18734compiler_lib_search_path_CXX=
18735
18736cat > conftest.$ac_ext <<_LT_EOF
18737class Foo
18738{
18739public:
18740 Foo (void) { a = 0; }
18741private:
18742 int a;
18743};
18744_LT_EOF
18745
cristyda16f162011-02-19 23:52:17 +000018746
18747_lt_libdeps_save_CFLAGS=$CFLAGS
18748case "$CC $CFLAGS " in #(
18749*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18750*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018751*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018752esac
18753
cristy73bd4a52010-10-05 11:24:23 +000018754if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18755 (eval $ac_compile) 2>&5
18756 ac_status=$?
18757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18758 test $ac_status = 0; }; then
18759 # Parse the compiler output and extract the necessary
18760 # objects, libraries and library flags.
18761
18762 # Sentinel used to keep track of whether or not we are before
18763 # the conftest object file.
18764 pre_test_object_deps_done=no
18765
18766 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018767 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018768
18769 -L* | -R* | -l*)
18770 # Some compilers place space between "-{L,R}" and the path.
18771 # Remove the space.
18772 if test $p = "-L" ||
18773 test $p = "-R"; then
18774 prev=$p
18775 continue
cristy73bd4a52010-10-05 11:24:23 +000018776 fi
18777
cristyda16f162011-02-19 23:52:17 +000018778 # Expand the sysroot to ease extracting the directories later.
18779 if test -z "$prev"; then
18780 case $p in
18781 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18782 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18783 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18784 esac
18785 fi
18786 case $p in
18787 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18788 esac
cristy73bd4a52010-10-05 11:24:23 +000018789 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018790 case ${prev} in
18791 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018792 # Internal compiler library paths should come after those
18793 # provided the user. The postdeps already come after the
18794 # user supplied libs so there is no need to process them.
18795 if test -z "$compiler_lib_search_path_CXX"; then
18796 compiler_lib_search_path_CXX="${prev}${p}"
18797 else
18798 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18799 fi
18800 ;;
18801 # The "-l" case would never come before the object being
18802 # linked, so don't bother handling this case.
18803 esac
18804 else
18805 if test -z "$postdeps_CXX"; then
18806 postdeps_CXX="${prev}${p}"
18807 else
18808 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18809 fi
18810 fi
cristyda16f162011-02-19 23:52:17 +000018811 prev=
cristy73bd4a52010-10-05 11:24:23 +000018812 ;;
18813
cristyda16f162011-02-19 23:52:17 +000018814 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018815 *.$objext)
18816 # This assumes that the test object file only shows up
18817 # once in the compiler output.
18818 if test "$p" = "conftest.$objext"; then
18819 pre_test_object_deps_done=yes
18820 continue
18821 fi
18822
18823 if test "$pre_test_object_deps_done" = no; then
18824 if test -z "$predep_objects_CXX"; then
18825 predep_objects_CXX="$p"
18826 else
18827 predep_objects_CXX="$predep_objects_CXX $p"
18828 fi
18829 else
18830 if test -z "$postdep_objects_CXX"; then
18831 postdep_objects_CXX="$p"
18832 else
18833 postdep_objects_CXX="$postdep_objects_CXX $p"
18834 fi
18835 fi
18836 ;;
18837
18838 *) ;; # Ignore the rest.
18839
18840 esac
18841 done
18842
18843 # Clean up.
18844 rm -f a.out a.exe
18845else
18846 echo "libtool.m4: error: problem compiling CXX test program"
18847fi
18848
18849$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018850CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018851
18852# PORTME: override above test on systems where it is broken
18853case $host_os in
18854interix[3-9]*)
18855 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18856 # hack all around it, let's just trust "g++" to DTRT.
18857 predep_objects_CXX=
18858 postdep_objects_CXX=
18859 postdeps_CXX=
18860 ;;
18861
18862linux*)
18863 case `$CC -V 2>&1 | sed 5q` in
18864 *Sun\ C*)
18865 # Sun C++ 5.9
18866
18867 # The more standards-conforming stlport4 library is
18868 # incompatible with the Cstd library. Avoid specifying
18869 # it if it's in CXXFLAGS. Ignore libCrun as
18870 # -library=stlport4 depends on it.
18871 case " $CXX $CXXFLAGS " in
18872 *" -library=stlport4 "*)
18873 solaris_use_stlport4=yes
18874 ;;
18875 esac
18876
18877 if test "$solaris_use_stlport4" != yes; then
18878 postdeps_CXX='-library=Cstd -library=Crun'
18879 fi
18880 ;;
18881 esac
18882 ;;
18883
18884solaris*)
18885 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018886 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018887 # The more standards-conforming stlport4 library is
18888 # incompatible with the Cstd library. Avoid specifying
18889 # it if it's in CXXFLAGS. Ignore libCrun as
18890 # -library=stlport4 depends on it.
18891 case " $CXX $CXXFLAGS " in
18892 *" -library=stlport4 "*)
18893 solaris_use_stlport4=yes
18894 ;;
18895 esac
18896
18897 # Adding this requires a known-good setup of shared libraries for
18898 # Sun compiler versions before 5.6, else PIC objects from an old
18899 # archive will be linked into the output, leading to subtle bugs.
18900 if test "$solaris_use_stlport4" != yes; then
18901 postdeps_CXX='-library=Cstd -library=Crun'
18902 fi
18903 ;;
18904 esac
18905 ;;
18906esac
18907
18908
18909case " $postdeps_CXX " in
18910*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18911esac
18912 compiler_lib_search_dirs_CXX=
18913if test -n "${compiler_lib_search_path_CXX}"; then
18914 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18915fi
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947 lt_prog_compiler_wl_CXX=
18948lt_prog_compiler_pic_CXX=
18949lt_prog_compiler_static_CXX=
18950
cristy73bd4a52010-10-05 11:24:23 +000018951
18952 # C++ specific cases for pic, static, wl, etc.
18953 if test "$GXX" = yes; then
18954 lt_prog_compiler_wl_CXX='-Wl,'
18955 lt_prog_compiler_static_CXX='-static'
18956
18957 case $host_os in
18958 aix*)
18959 # All AIX code is PIC.
18960 if test "$host_cpu" = ia64; then
18961 # AIX 5 now supports IA64 processor
18962 lt_prog_compiler_static_CXX='-Bstatic'
18963 fi
18964 ;;
18965
18966 amigaos*)
18967 case $host_cpu in
18968 powerpc)
18969 # see comment about AmigaOS4 .so support
18970 lt_prog_compiler_pic_CXX='-fPIC'
18971 ;;
18972 m68k)
18973 # FIXME: we need at least 68020 code to build shared libraries, but
18974 # adding the `-m68020' flag to GCC prevents building anything better,
18975 # like `-m68040'.
18976 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18977 ;;
18978 esac
18979 ;;
18980
18981 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18982 # PIC is the default for these OSes.
18983 ;;
18984 mingw* | cygwin* | os2* | pw32* | cegcc*)
18985 # This hack is so that the source file can tell whether it is being
18986 # built for inclusion in a dll (and should export symbols for example).
18987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18988 # (--disable-auto-import) libraries
18989 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18990 ;;
18991 darwin* | rhapsody*)
18992 # PIC is the default on this platform
18993 # Common symbols not allowed in MH_DYLIB files
18994 lt_prog_compiler_pic_CXX='-fno-common'
18995 ;;
18996 *djgpp*)
18997 # DJGPP does not support shared libraries at all
18998 lt_prog_compiler_pic_CXX=
18999 ;;
cristy0c60a692010-11-04 01:09:47 +000019000 haiku*)
19001 # PIC is the default for Haiku.
19002 # The "-static" flag exists, but is broken.
19003 lt_prog_compiler_static_CXX=
19004 ;;
cristy73bd4a52010-10-05 11:24:23 +000019005 interix[3-9]*)
19006 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19007 # Instead, we relocate shared libraries at runtime.
19008 ;;
19009 sysv4*MP*)
19010 if test -d /usr/nec; then
19011 lt_prog_compiler_pic_CXX=-Kconform_pic
19012 fi
19013 ;;
19014 hpux*)
19015 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19016 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19017 # sets the default TLS model and affects inlining.
19018 case $host_cpu in
19019 hppa*64*)
19020 ;;
19021 *)
19022 lt_prog_compiler_pic_CXX='-fPIC'
19023 ;;
19024 esac
19025 ;;
19026 *qnx* | *nto*)
19027 # QNX uses GNU C++, but need to define -shared option too, otherwise
19028 # it will coredump.
19029 lt_prog_compiler_pic_CXX='-fPIC -shared'
19030 ;;
19031 *)
19032 lt_prog_compiler_pic_CXX='-fPIC'
19033 ;;
19034 esac
19035 else
19036 case $host_os in
19037 aix[4-9]*)
19038 # All AIX code is PIC.
19039 if test "$host_cpu" = ia64; then
19040 # AIX 5 now supports IA64 processor
19041 lt_prog_compiler_static_CXX='-Bstatic'
19042 else
19043 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19044 fi
19045 ;;
19046 chorus*)
19047 case $cc_basename in
19048 cxch68*)
19049 # Green Hills C++ Compiler
19050 # _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"
19051 ;;
19052 esac
19053 ;;
cristyda16f162011-02-19 23:52:17 +000019054 mingw* | cygwin* | os2* | pw32* | cegcc*)
19055 # This hack is so that the source file can tell whether it is being
19056 # built for inclusion in a dll (and should export symbols for example).
19057 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19058 ;;
cristy73bd4a52010-10-05 11:24:23 +000019059 dgux*)
19060 case $cc_basename in
19061 ec++*)
19062 lt_prog_compiler_pic_CXX='-KPIC'
19063 ;;
19064 ghcx*)
19065 # Green Hills C++ Compiler
19066 lt_prog_compiler_pic_CXX='-pic'
19067 ;;
19068 *)
19069 ;;
19070 esac
19071 ;;
19072 freebsd* | dragonfly*)
19073 # FreeBSD uses GNU C++
19074 ;;
19075 hpux9* | hpux10* | hpux11*)
19076 case $cc_basename in
19077 CC*)
19078 lt_prog_compiler_wl_CXX='-Wl,'
19079 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19080 if test "$host_cpu" != ia64; then
19081 lt_prog_compiler_pic_CXX='+Z'
19082 fi
19083 ;;
19084 aCC*)
19085 lt_prog_compiler_wl_CXX='-Wl,'
19086 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19087 case $host_cpu in
19088 hppa*64*|ia64*)
19089 # +Z the default
19090 ;;
19091 *)
19092 lt_prog_compiler_pic_CXX='+Z'
19093 ;;
19094 esac
19095 ;;
19096 *)
19097 ;;
19098 esac
19099 ;;
19100 interix*)
19101 # This is c89, which is MS Visual C++ (no shared libs)
19102 # Anyone wants to do a port?
19103 ;;
19104 irix5* | irix6* | nonstopux*)
19105 case $cc_basename in
19106 CC*)
19107 lt_prog_compiler_wl_CXX='-Wl,'
19108 lt_prog_compiler_static_CXX='-non_shared'
19109 # CC pic flag -KPIC is the default.
19110 ;;
19111 *)
19112 ;;
19113 esac
19114 ;;
cristy0c60a692010-11-04 01:09:47 +000019115 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019116 case $cc_basename in
19117 KCC*)
19118 # KAI C++ Compiler
19119 lt_prog_compiler_wl_CXX='--backend -Wl,'
19120 lt_prog_compiler_pic_CXX='-fPIC'
19121 ;;
19122 ecpc* )
19123 # old Intel C++ for x86_64 which still supported -KPIC.
19124 lt_prog_compiler_wl_CXX='-Wl,'
19125 lt_prog_compiler_pic_CXX='-KPIC'
19126 lt_prog_compiler_static_CXX='-static'
19127 ;;
19128 icpc* )
19129 # Intel C++, used to be incompatible with GCC.
19130 # ICC 10 doesn't accept -KPIC any more.
19131 lt_prog_compiler_wl_CXX='-Wl,'
19132 lt_prog_compiler_pic_CXX='-fPIC'
19133 lt_prog_compiler_static_CXX='-static'
19134 ;;
19135 pgCC* | pgcpp*)
19136 # Portland Group C++ compiler
19137 lt_prog_compiler_wl_CXX='-Wl,'
19138 lt_prog_compiler_pic_CXX='-fpic'
19139 lt_prog_compiler_static_CXX='-Bstatic'
19140 ;;
19141 cxx*)
19142 # Compaq C++
19143 # Make sure the PIC flag is empty. It appears that all Alpha
19144 # Linux and Compaq Tru64 Unix objects are PIC.
19145 lt_prog_compiler_pic_CXX=
19146 lt_prog_compiler_static_CXX='-non_shared'
19147 ;;
cristy0c60a692010-11-04 01:09:47 +000019148 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19149 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019150 lt_prog_compiler_wl_CXX='-Wl,'
19151 lt_prog_compiler_pic_CXX='-qpic'
19152 lt_prog_compiler_static_CXX='-qstaticlink'
19153 ;;
19154 *)
19155 case `$CC -V 2>&1 | sed 5q` in
19156 *Sun\ C*)
19157 # Sun C++ 5.9
19158 lt_prog_compiler_pic_CXX='-KPIC'
19159 lt_prog_compiler_static_CXX='-Bstatic'
19160 lt_prog_compiler_wl_CXX='-Qoption ld '
19161 ;;
19162 esac
19163 ;;
19164 esac
19165 ;;
19166 lynxos*)
19167 ;;
19168 m88k*)
19169 ;;
19170 mvs*)
19171 case $cc_basename in
19172 cxx*)
19173 lt_prog_compiler_pic_CXX='-W c,exportall'
19174 ;;
19175 *)
19176 ;;
19177 esac
19178 ;;
19179 netbsd*)
19180 ;;
19181 *qnx* | *nto*)
19182 # QNX uses GNU C++, but need to define -shared option too, otherwise
19183 # it will coredump.
19184 lt_prog_compiler_pic_CXX='-fPIC -shared'
19185 ;;
19186 osf3* | osf4* | osf5*)
19187 case $cc_basename in
19188 KCC*)
19189 lt_prog_compiler_wl_CXX='--backend -Wl,'
19190 ;;
19191 RCC*)
19192 # Rational C++ 2.4.1
19193 lt_prog_compiler_pic_CXX='-pic'
19194 ;;
19195 cxx*)
19196 # Digital/Compaq C++
19197 lt_prog_compiler_wl_CXX='-Wl,'
19198 # Make sure the PIC flag is empty. It appears that all Alpha
19199 # Linux and Compaq Tru64 Unix objects are PIC.
19200 lt_prog_compiler_pic_CXX=
19201 lt_prog_compiler_static_CXX='-non_shared'
19202 ;;
19203 *)
19204 ;;
19205 esac
19206 ;;
19207 psos*)
19208 ;;
19209 solaris*)
19210 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019211 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019212 # Sun C++ 4.2, 5.x and Centerline C++
19213 lt_prog_compiler_pic_CXX='-KPIC'
19214 lt_prog_compiler_static_CXX='-Bstatic'
19215 lt_prog_compiler_wl_CXX='-Qoption ld '
19216 ;;
19217 gcx*)
19218 # Green Hills C++ Compiler
19219 lt_prog_compiler_pic_CXX='-PIC'
19220 ;;
19221 *)
19222 ;;
19223 esac
19224 ;;
19225 sunos4*)
19226 case $cc_basename in
19227 CC*)
19228 # Sun C++ 4.x
19229 lt_prog_compiler_pic_CXX='-pic'
19230 lt_prog_compiler_static_CXX='-Bstatic'
19231 ;;
19232 lcc*)
19233 # Lucid
19234 lt_prog_compiler_pic_CXX='-pic'
19235 ;;
19236 *)
19237 ;;
19238 esac
19239 ;;
19240 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19241 case $cc_basename in
19242 CC*)
19243 lt_prog_compiler_wl_CXX='-Wl,'
19244 lt_prog_compiler_pic_CXX='-KPIC'
19245 lt_prog_compiler_static_CXX='-Bstatic'
19246 ;;
19247 esac
19248 ;;
19249 tandem*)
19250 case $cc_basename in
19251 NCC*)
19252 # NonStop-UX NCC 3.20
19253 lt_prog_compiler_pic_CXX='-KPIC'
19254 ;;
19255 *)
19256 ;;
19257 esac
19258 ;;
19259 vxworks*)
19260 ;;
19261 *)
19262 lt_prog_compiler_can_build_shared_CXX=no
19263 ;;
19264 esac
19265 fi
19266
19267case $host_os in
19268 # For platforms which do not support PIC, -DPIC is meaningless:
19269 *djgpp*)
19270 lt_prog_compiler_pic_CXX=
19271 ;;
19272 *)
19273 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19274 ;;
19275esac
cristy73bd4a52010-10-05 11:24:23 +000019276
cristyda16f162011-02-19 23:52:17 +000019277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19278$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19279if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19280 $as_echo_n "(cached) " >&6
19281else
19282 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19283fi
19284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19285$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19286lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019287
19288#
19289# Check to make sure the PIC flag actually works.
19290#
19291if test -n "$lt_prog_compiler_pic_CXX"; then
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19293$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019294if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019295 $as_echo_n "(cached) " >&6
19296else
19297 lt_cv_prog_compiler_pic_works_CXX=no
19298 ac_outfile=conftest.$ac_objext
19299 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19300 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19301 # Insert the option either (1) after the last *FLAGS variable, or
19302 # (2) before a word containing "conftest.", or (3) at the end.
19303 # Note that $ac_compile itself does not contain backslashes and begins
19304 # with a dollar sign (not a hyphen), so the echo should work correctly.
19305 # The option is referenced via a variable to avoid confusing sed.
19306 lt_compile=`echo "$ac_compile" | $SED \
19307 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19308 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19309 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019310 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019311 (eval "$lt_compile" 2>conftest.err)
19312 ac_status=$?
19313 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019315 if (exit $ac_status) && test -s "$ac_outfile"; then
19316 # The compiler can only warn and ignore the option if not recognized
19317 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019319 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19320 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19321 lt_cv_prog_compiler_pic_works_CXX=yes
19322 fi
19323 fi
19324 $RM conftest*
19325
19326fi
19327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19328$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19329
19330if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19331 case $lt_prog_compiler_pic_CXX in
19332 "" | " "*) ;;
19333 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19334 esac
19335else
19336 lt_prog_compiler_pic_CXX=
19337 lt_prog_compiler_can_build_shared_CXX=no
19338fi
19339
19340fi
19341
19342
19343
cristyda16f162011-02-19 23:52:17 +000019344
19345
cristy73bd4a52010-10-05 11:24:23 +000019346#
19347# Check to make sure the static flag actually works.
19348#
19349wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19351$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019352if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019353 $as_echo_n "(cached) " >&6
19354else
19355 lt_cv_prog_compiler_static_works_CXX=no
19356 save_LDFLAGS="$LDFLAGS"
19357 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19358 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19359 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19360 # The linker can only warn and ignore the option if not recognized
19361 # So say no if there are warnings
19362 if test -s conftest.err; then
19363 # Append any errors to the config.log.
19364 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019365 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19367 if diff conftest.exp conftest.er2 >/dev/null; then
19368 lt_cv_prog_compiler_static_works_CXX=yes
19369 fi
19370 else
19371 lt_cv_prog_compiler_static_works_CXX=yes
19372 fi
19373 fi
19374 $RM -r conftest*
19375 LDFLAGS="$save_LDFLAGS"
19376
19377fi
19378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19379$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19380
19381if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19382 :
19383else
19384 lt_prog_compiler_static_CXX=
19385fi
19386
19387
19388
19389
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19391$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019392if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019393 $as_echo_n "(cached) " >&6
19394else
19395 lt_cv_prog_compiler_c_o_CXX=no
19396 $RM -r conftest 2>/dev/null
19397 mkdir conftest
19398 cd conftest
19399 mkdir out
19400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19401
19402 lt_compiler_flag="-o out/conftest2.$ac_objext"
19403 # Insert the option either (1) after the last *FLAGS variable, or
19404 # (2) before a word containing "conftest.", or (3) at the end.
19405 # Note that $ac_compile itself does not contain backslashes and begins
19406 # with a dollar sign (not a hyphen), so the echo should work correctly.
19407 lt_compile=`echo "$ac_compile" | $SED \
19408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19410 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019412 (eval "$lt_compile" 2>out/conftest.err)
19413 ac_status=$?
19414 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19417 then
19418 # The compiler can only warn and ignore the option if not recognized
19419 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19423 lt_cv_prog_compiler_c_o_CXX=yes
19424 fi
19425 fi
19426 chmod u+w . 2>&5
19427 $RM conftest*
19428 # SGI C++ compiler will create directory out/ii_files/ for
19429 # template instantiation
19430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19431 $RM out/* && rmdir out
19432 cd ..
19433 $RM -r conftest
19434 $RM conftest*
19435
19436fi
19437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19438$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19439
19440
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019444if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019445 $as_echo_n "(cached) " >&6
19446else
19447 lt_cv_prog_compiler_c_o_CXX=no
19448 $RM -r conftest 2>/dev/null
19449 mkdir conftest
19450 cd conftest
19451 mkdir out
19452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19453
19454 lt_compiler_flag="-o out/conftest2.$ac_objext"
19455 # Insert the option either (1) after the last *FLAGS variable, or
19456 # (2) before a word containing "conftest.", or (3) at the end.
19457 # Note that $ac_compile itself does not contain backslashes and begins
19458 # with a dollar sign (not a hyphen), so the echo should work correctly.
19459 lt_compile=`echo "$ac_compile" | $SED \
19460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19462 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019464 (eval "$lt_compile" 2>out/conftest.err)
19465 ac_status=$?
19466 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19469 then
19470 # The compiler can only warn and ignore the option if not recognized
19471 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19475 lt_cv_prog_compiler_c_o_CXX=yes
19476 fi
19477 fi
19478 chmod u+w . 2>&5
19479 $RM conftest*
19480 # SGI C++ compiler will create directory out/ii_files/ for
19481 # template instantiation
19482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19483 $RM out/* && rmdir out
19484 cd ..
19485 $RM -r conftest
19486 $RM conftest*
19487
19488fi
19489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19490$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19491
19492
19493
19494
19495hard_links="nottested"
19496if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19497 # do not overwrite the value of need_locks provided by the user
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19499$as_echo_n "checking if we can lock with hard links... " >&6; }
19500 hard_links=yes
19501 $RM conftest*
19502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19503 touch conftest.a
19504 ln conftest.a conftest.b 2>&5 || hard_links=no
19505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19507$as_echo "$hard_links" >&6; }
19508 if test "$hard_links" = no; then
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19510$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19511 need_locks=warn
19512 fi
19513else
19514 need_locks=no
19515fi
19516
19517
19518
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19520$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19521
19522 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019523 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019524 case $host_os in
19525 aix[4-9]*)
19526 # If we're using GNU nm, then we don't want the "-C" option.
19527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019528 # Also, AIX nm treats weak defined symbols like other global defined
19529 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019531 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 +000019532 else
19533 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'
19534 fi
19535 ;;
19536 pw32*)
19537 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019538 ;;
cristy73bd4a52010-10-05 11:24:23 +000019539 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019540 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019541 cl*)
19542 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19543 ;;
cristyda16f162011-02-19 23:52:17 +000019544 *)
19545 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'
19546 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19547 ;;
19548 esac
19549 ;;
cristy73bd4a52010-10-05 11:24:23 +000019550 *)
19551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019552 ;;
cristy73bd4a52010-10-05 11:24:23 +000019553 esac
cristy73bd4a52010-10-05 11:24:23 +000019554
19555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19556$as_echo "$ld_shlibs_CXX" >&6; }
19557test "$ld_shlibs_CXX" = no && can_build_shared=no
19558
19559with_gnu_ld_CXX=$with_gnu_ld
19560
19561
19562
19563
19564
19565
19566#
19567# Do we need to explicitly link libc?
19568#
19569case "x$archive_cmds_need_lc_CXX" in
19570x|xyes)
19571 # Assume -lc should be added
19572 archive_cmds_need_lc_CXX=yes
19573
19574 if test "$enable_shared" = yes && test "$GCC" = yes; then
19575 case $archive_cmds_CXX in
19576 *'~'*)
19577 # FIXME: we may have to deal with multi-command sequences.
19578 ;;
19579 '$CC '*)
19580 # Test whether the compiler implicitly links with -lc since on some
19581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19582 # to ld, don't add -lc before -lgcc.
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19584$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019585if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019586 $as_echo_n "(cached) " >&6
19587else
19588 $RM conftest*
19589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019590
cristy0c60a692010-11-04 01:09:47 +000019591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019592 (eval $ac_compile) 2>&5
19593 ac_status=$?
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019596 soname=conftest
19597 lib=conftest
19598 libobjs=conftest.$ac_objext
19599 deplibs=
19600 wl=$lt_prog_compiler_wl_CXX
19601 pic_flag=$lt_prog_compiler_pic_CXX
19602 compiler_flags=-v
19603 linker_flags=-v
19604 verstring=
19605 output_objdir=.
19606 libname=conftest
19607 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19608 allow_undefined_flag_CXX=
19609 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 +000019610 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19611 ac_status=$?
19612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19613 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019614 then
19615 lt_cv_archive_cmds_need_lc_CXX=no
19616 else
19617 lt_cv_archive_cmds_need_lc_CXX=yes
19618 fi
19619 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19620 else
19621 cat conftest.err 1>&5
19622 fi
19623 $RM conftest*
19624
19625fi
19626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19627$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19628 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019629 ;;
19630 esac
19631 fi
19632 ;;
19633esac
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
cristy73bd4a52010-10-05 11:24:23 +000019696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19697$as_echo_n "checking dynamic linker characteristics... " >&6; }
19698
19699library_names_spec=
19700libname_spec='lib$name'
19701soname_spec=
19702shrext_cmds=".so"
19703postinstall_cmds=
19704postuninstall_cmds=
19705finish_cmds=
19706finish_eval=
19707shlibpath_var=
19708shlibpath_overrides_runpath=unknown
19709version_type=none
19710dynamic_linker="$host_os ld.so"
19711sys_lib_dlsearch_path_spec="/lib /usr/lib"
19712need_lib_prefix=unknown
19713hardcode_into_libs=no
19714
19715# when you set need_version to no, make sure it does not cause -set_version
19716# flags to be left without arguments
19717need_version=unknown
19718
19719case $host_os in
19720aix3*)
cristy99bd5232011-12-07 14:38:20 +000019721 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19723 shlibpath_var=LIBPATH
19724
19725 # AIX 3 has no versioning support, so we append a major version to the name.
19726 soname_spec='${libname}${release}${shared_ext}$major'
19727 ;;
19728
19729aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019730 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019731 need_lib_prefix=no
19732 need_version=no
19733 hardcode_into_libs=yes
19734 if test "$host_cpu" = ia64; then
19735 # AIX 5 supports IA64
19736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19737 shlibpath_var=LD_LIBRARY_PATH
19738 else
19739 # With GCC up to 2.95.x, collect2 would create an import file
19740 # for dependence libraries. The import file would start with
19741 # the line `#! .'. This would cause the generated library to
19742 # depend on `.', always an invalid library. This was fixed in
19743 # development snapshots of GCC prior to 3.0.
19744 case $host_os in
19745 aix4 | aix4.[01] | aix4.[01].*)
19746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19747 echo ' yes '
19748 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19749 :
19750 else
19751 can_build_shared=no
19752 fi
19753 ;;
19754 esac
19755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19756 # soname into executable. Probably we can add versioning support to
19757 # collect2, so additional links can be useful in future.
19758 if test "$aix_use_runtimelinking" = yes; then
19759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19760 # instead of lib<name>.a to let people know that these are not
19761 # typical AIX shared libraries.
19762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19763 else
19764 # We preserve .a as extension for shared libraries through AIX4.2
19765 # and later when we are not doing run time linking.
19766 library_names_spec='${libname}${release}.a $libname.a'
19767 soname_spec='${libname}${release}${shared_ext}$major'
19768 fi
19769 shlibpath_var=LIBPATH
19770 fi
19771 ;;
19772
19773amigaos*)
19774 case $host_cpu in
19775 powerpc)
19776 # Since July 2007 AmigaOS4 officially supports .so libraries.
19777 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19779 ;;
19780 m68k)
19781 library_names_spec='$libname.ixlibrary $libname.a'
19782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019783 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 +000019784 ;;
19785 esac
19786 ;;
19787
19788beos*)
19789 library_names_spec='${libname}${shared_ext}'
19790 dynamic_linker="$host_os ld.so"
19791 shlibpath_var=LIBRARY_PATH
19792 ;;
19793
19794bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019795 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019796 need_version=no
19797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19798 soname_spec='${libname}${release}${shared_ext}$major'
19799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19800 shlibpath_var=LD_LIBRARY_PATH
19801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19803 # the default ld.so.conf also contains /usr/contrib/lib and
19804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19805 # libtool to hard-code these into programs
19806 ;;
19807
19808cygwin* | mingw* | pw32* | cegcc*)
19809 version_type=windows
19810 shrext_cmds=".dll"
19811 need_version=no
19812 need_lib_prefix=no
19813
cristyda16f162011-02-19 23:52:17 +000019814 case $GCC,$cc_basename in
19815 yes,*)
19816 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019817 library_names_spec='$libname.dll.a'
19818 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19819 postinstall_cmds='base_file=`basename \${file}`~
19820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19821 dldir=$destdir/`dirname \$dlpath`~
19822 test -d \$dldir || mkdir -p \$dldir~
19823 $install_prog $dir/$dlname \$dldir/$dlname~
19824 chmod a+x \$dldir/$dlname~
19825 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19826 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19827 fi'
19828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19829 dlpath=$dir/\$dldll~
19830 $RM \$dlpath'
19831 shlibpath_overrides_runpath=yes
19832
19833 case $host_os in
19834 cygwin*)
19835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019837
cristy73bd4a52010-10-05 11:24:23 +000019838 ;;
19839 mingw* | cegcc*)
19840 # MinGW DLLs use traditional 'lib' prefix
19841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019842 ;;
19843 pw32*)
19844 # pw32 DLLs use 'pw' prefix rather than 'lib'
19845 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19846 ;;
19847 esac
cristyda16f162011-02-19 23:52:17 +000019848 dynamic_linker='Win32 ld.exe'
19849 ;;
19850
19851 *,cl*)
19852 # Native MSVC
19853 libname_spec='$name'
19854 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19855 library_names_spec='${libname}.dll.lib'
19856
19857 case $build_os in
19858 mingw*)
19859 sys_lib_search_path_spec=
19860 lt_save_ifs=$IFS
19861 IFS=';'
19862 for lt_path in $LIB
19863 do
19864 IFS=$lt_save_ifs
19865 # Let DOS variable expansion print the short 8.3 style file name.
19866 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19867 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19868 done
19869 IFS=$lt_save_ifs
19870 # Convert to MSYS style.
19871 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19872 ;;
19873 cygwin*)
19874 # Convert to unix form, then to dos form, then back to unix form
19875 # but this time dos style (no spaces!) so that the unix form looks
19876 # like /cygdrive/c/PROGRA~1:/cygdr...
19877 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19878 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19879 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19880 ;;
19881 *)
19882 sys_lib_search_path_spec="$LIB"
19883 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19884 # It is most probably a Windows format PATH.
19885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19886 else
19887 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19888 fi
19889 # FIXME: find the short name or the path components, as spaces are
19890 # common. (e.g. "Program Files" -> "PROGRA~1")
19891 ;;
19892 esac
19893
19894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19895 postinstall_cmds='base_file=`basename \${file}`~
19896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19897 dldir=$destdir/`dirname \$dlpath`~
19898 test -d \$dldir || mkdir -p \$dldir~
19899 $install_prog $dir/$dlname \$dldir/$dlname'
19900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19901 dlpath=$dir/\$dldll~
19902 $RM \$dlpath'
19903 shlibpath_overrides_runpath=yes
19904 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019905 ;;
19906
19907 *)
cristyda16f162011-02-19 23:52:17 +000019908 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000019909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019910 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019911 ;;
19912 esac
cristy73bd4a52010-10-05 11:24:23 +000019913 # FIXME: first we should search . and the directory the executable is in
19914 shlibpath_var=PATH
19915 ;;
19916
19917darwin* | rhapsody*)
19918 dynamic_linker="$host_os dyld"
19919 version_type=darwin
19920 need_lib_prefix=no
19921 need_version=no
19922 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19923 soname_spec='${libname}${release}${major}$shared_ext'
19924 shlibpath_overrides_runpath=yes
19925 shlibpath_var=DYLD_LIBRARY_PATH
19926 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19927
19928 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19929 ;;
19930
19931dgux*)
cristy99bd5232011-12-07 14:38:20 +000019932 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019933 need_lib_prefix=no
19934 need_version=no
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19936 soname_spec='${libname}${release}${shared_ext}$major'
19937 shlibpath_var=LD_LIBRARY_PATH
19938 ;;
19939
cristy73bd4a52010-10-05 11:24:23 +000019940freebsd* | dragonfly*)
19941 # DragonFly does not have aout. When/if they implement a new
19942 # versioning mechanism, adjust this.
19943 if test -x /usr/bin/objformat; then
19944 objformat=`/usr/bin/objformat`
19945 else
19946 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019947 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019948 *) objformat=elf ;;
19949 esac
19950 fi
19951 version_type=freebsd-$objformat
19952 case $version_type in
19953 freebsd-elf*)
19954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19955 need_version=no
19956 need_lib_prefix=no
19957 ;;
19958 freebsd-*)
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19960 need_version=yes
19961 ;;
19962 esac
19963 shlibpath_var=LD_LIBRARY_PATH
19964 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019965 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019966 shlibpath_overrides_runpath=yes
19967 ;;
19968 freebsd3.[01]* | freebsdelf3.[01]*)
19969 shlibpath_overrides_runpath=yes
19970 hardcode_into_libs=yes
19971 ;;
19972 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19973 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19974 shlibpath_overrides_runpath=no
19975 hardcode_into_libs=yes
19976 ;;
19977 *) # from 4.6 on, and DragonFly
19978 shlibpath_overrides_runpath=yes
19979 hardcode_into_libs=yes
19980 ;;
19981 esac
19982 ;;
19983
19984gnu*)
cristy99bd5232011-12-07 14:38:20 +000019985 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019986 need_lib_prefix=no
19987 need_version=no
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000019991 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000019992 hardcode_into_libs=yes
19993 ;;
19994
cristy0c60a692010-11-04 01:09:47 +000019995haiku*)
cristy99bd5232011-12-07 14:38:20 +000019996 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019997 need_lib_prefix=no
19998 need_version=no
19999 dynamic_linker="$host_os runtime_loader"
20000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20001 soname_spec='${libname}${release}${shared_ext}$major'
20002 shlibpath_var=LIBRARY_PATH
20003 shlibpath_overrides_runpath=yes
20004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20005 hardcode_into_libs=yes
20006 ;;
20007
cristy73bd4a52010-10-05 11:24:23 +000020008hpux9* | hpux10* | hpux11*)
20009 # Give a soname corresponding to the major version so that dld.sl refuses to
20010 # link against other versions.
20011 version_type=sunos
20012 need_lib_prefix=no
20013 need_version=no
20014 case $host_cpu in
20015 ia64*)
20016 shrext_cmds='.so'
20017 hardcode_into_libs=yes
20018 dynamic_linker="$host_os dld.so"
20019 shlibpath_var=LD_LIBRARY_PATH
20020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 if test "X$HPUX_IA64_MODE" = X32; then
20024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20025 else
20026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20027 fi
20028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20029 ;;
20030 hppa*64*)
20031 shrext_cmds='.sl'
20032 hardcode_into_libs=yes
20033 dynamic_linker="$host_os dld.sl"
20034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20037 soname_spec='${libname}${release}${shared_ext}$major'
20038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20040 ;;
20041 *)
20042 shrext_cmds='.sl'
20043 dynamic_linker="$host_os dld.sl"
20044 shlibpath_var=SHLIB_PATH
20045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 ;;
20049 esac
cristy0c60a692010-11-04 01:09:47 +000020050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020051 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020052 # or fails outright, so override atomically:
20053 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020054 ;;
20055
20056interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020057 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020058 need_lib_prefix=no
20059 need_version=no
20060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20061 soname_spec='${libname}${release}${shared_ext}$major'
20062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20063 shlibpath_var=LD_LIBRARY_PATH
20064 shlibpath_overrides_runpath=no
20065 hardcode_into_libs=yes
20066 ;;
20067
20068irix5* | irix6* | nonstopux*)
20069 case $host_os in
20070 nonstopux*) version_type=nonstopux ;;
20071 *)
20072 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020073 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020074 else
20075 version_type=irix
20076 fi ;;
20077 esac
20078 need_lib_prefix=no
20079 need_version=no
20080 soname_spec='${libname}${release}${shared_ext}$major'
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20082 case $host_os in
20083 irix5* | nonstopux*)
20084 libsuff= shlibsuff=
20085 ;;
20086 *)
20087 case $LD in # libtool.m4 will add one of these switches to LD
20088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20089 libsuff= shlibsuff= libmagic=32-bit;;
20090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20091 libsuff=32 shlibsuff=N32 libmagic=N32;;
20092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20094 *) libsuff= shlibsuff= libmagic=never-match;;
20095 esac
20096 ;;
20097 esac
20098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20099 shlibpath_overrides_runpath=no
20100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20102 hardcode_into_libs=yes
20103 ;;
20104
20105# No shared lib support for Linux oldld, aout, or coff.
20106linux*oldld* | linux*aout* | linux*coff*)
20107 dynamic_linker=no
20108 ;;
20109
cristy99bd5232011-12-07 14:38:20 +000020110# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020111linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020112 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020113 need_lib_prefix=no
20114 need_version=no
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116 soname_spec='${libname}${release}${shared_ext}$major'
20117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020120
cristy73bd4a52010-10-05 11:24:23 +000020121 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020122 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020123 $as_echo_n "(cached) " >&6
20124else
20125 lt_cv_shlibpath_overrides_runpath=no
20126 save_LDFLAGS=$LDFLAGS
20127 save_libdir=$libdir
20128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020131/* end confdefs.h. */
20132
20133int
20134main ()
20135{
20136
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141if ac_fn_cxx_try_link "$LINENO"; then :
20142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020143 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020144fi
20145fi
20146rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020148 LDFLAGS=$save_LDFLAGS
20149 libdir=$save_libdir
20150
20151fi
20152
20153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020154
20155 # This implies no fast_install, which is unacceptable.
20156 # Some rework will be needed to allow for fast_install
20157 # before this can be enabled.
20158 hardcode_into_libs=yes
20159
20160 # Add ABI-specific directories to the system library path.
20161 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20162
20163 # Append ld.so.conf contents to the search path
20164 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020165 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 +000020166 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020167
cristy73bd4a52010-10-05 11:24:23 +000020168 fi
20169
20170 # We used to test for /lib/ld.so.1 and disable shared libraries on
20171 # powerpc, because MkLinux only supported shared libraries with the
20172 # GNU dynamic linker. Since this was broken with cross compilers,
20173 # most powerpc-linux boxes support dynamic linking these days and
20174 # people can always --disable-shared, the test was removed, and we
20175 # assume the GNU/Linux dynamic linker is in use.
20176 dynamic_linker='GNU/Linux ld.so'
20177 ;;
20178
20179netbsd*)
20180 version_type=sunos
20181 need_lib_prefix=no
20182 need_version=no
20183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20186 dynamic_linker='NetBSD (a.out) ld.so'
20187 else
20188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20189 soname_spec='${libname}${release}${shared_ext}$major'
20190 dynamic_linker='NetBSD ld.elf_so'
20191 fi
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes
20194 hardcode_into_libs=yes
20195 ;;
20196
20197newsos6)
cristy99bd5232011-12-07 14:38:20 +000020198 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes
20202 ;;
20203
20204*nto* | *qnx*)
20205 version_type=qnx
20206 need_lib_prefix=no
20207 need_version=no
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=no
20212 hardcode_into_libs=yes
20213 dynamic_linker='ldqnx.so'
20214 ;;
20215
20216openbsd*)
20217 version_type=sunos
20218 sys_lib_dlsearch_path_spec="/usr/lib"
20219 need_lib_prefix=no
20220 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20221 case $host_os in
20222 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20223 *) need_version=no ;;
20224 esac
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20227 shlibpath_var=LD_LIBRARY_PATH
20228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20229 case $host_os in
20230 openbsd2.[89] | openbsd2.[89].*)
20231 shlibpath_overrides_runpath=no
20232 ;;
20233 *)
20234 shlibpath_overrides_runpath=yes
20235 ;;
20236 esac
20237 else
20238 shlibpath_overrides_runpath=yes
20239 fi
20240 ;;
20241
20242os2*)
20243 libname_spec='$name'
20244 shrext_cmds=".dll"
20245 need_lib_prefix=no
20246 library_names_spec='$libname${shared_ext} $libname.a'
20247 dynamic_linker='OS/2 ld.exe'
20248 shlibpath_var=LIBPATH
20249 ;;
20250
20251osf3* | osf4* | osf5*)
20252 version_type=osf
20253 need_lib_prefix=no
20254 need_version=no
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20259 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20260 ;;
20261
20262rdos*)
20263 dynamic_linker=no
20264 ;;
20265
20266solaris*)
cristy99bd5232011-12-07 14:38:20 +000020267 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020268 need_lib_prefix=no
20269 need_version=no
20270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20271 soname_spec='${libname}${release}${shared_ext}$major'
20272 shlibpath_var=LD_LIBRARY_PATH
20273 shlibpath_overrides_runpath=yes
20274 hardcode_into_libs=yes
20275 # ldd complains unless libraries are executable
20276 postinstall_cmds='chmod +x $lib'
20277 ;;
20278
20279sunos4*)
20280 version_type=sunos
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20282 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes
20285 if test "$with_gnu_ld" = yes; then
20286 need_lib_prefix=no
20287 fi
20288 need_version=yes
20289 ;;
20290
20291sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020292 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20294 soname_spec='${libname}${release}${shared_ext}$major'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 case $host_vendor in
20297 sni)
20298 shlibpath_overrides_runpath=no
20299 need_lib_prefix=no
20300 runpath_var=LD_RUN_PATH
20301 ;;
20302 siemens)
20303 need_lib_prefix=no
20304 ;;
20305 motorola)
20306 need_lib_prefix=no
20307 need_version=no
20308 shlibpath_overrides_runpath=no
20309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20310 ;;
20311 esac
20312 ;;
20313
20314sysv4*MP*)
20315 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020316 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020317 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20318 soname_spec='$libname${shared_ext}.$major'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 fi
20321 ;;
20322
20323sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20324 version_type=freebsd-elf
20325 need_lib_prefix=no
20326 need_version=no
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 shlibpath_overrides_runpath=yes
20331 hardcode_into_libs=yes
20332 if test "$with_gnu_ld" = yes; then
20333 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20334 else
20335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20336 case $host_os in
20337 sco3.2v5*)
20338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20339 ;;
20340 esac
20341 fi
20342 sys_lib_dlsearch_path_spec='/usr/lib'
20343 ;;
20344
20345tpf*)
20346 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020347 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020348 need_lib_prefix=no
20349 need_version=no
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20351 shlibpath_var=LD_LIBRARY_PATH
20352 shlibpath_overrides_runpath=no
20353 hardcode_into_libs=yes
20354 ;;
20355
20356uts4*)
cristy99bd5232011-12-07 14:38:20 +000020357 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 ;;
20362
20363*)
20364 dynamic_linker=no
20365 ;;
20366esac
20367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20368$as_echo "$dynamic_linker" >&6; }
20369test "$dynamic_linker" = no && can_build_shared=no
20370
20371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20372if test "$GCC" = yes; then
20373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20374fi
20375
20376if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20377 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20378fi
20379if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20380 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20381fi
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
cristy0c60a692010-11-04 01:09:47 +000020418
20419
cristy73bd4a52010-10-05 11:24:23 +000020420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20421$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20422hardcode_action_CXX=
20423if test -n "$hardcode_libdir_flag_spec_CXX" ||
20424 test -n "$runpath_var_CXX" ||
20425 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20426
20427 # We can hardcode non-existent directories.
20428 if test "$hardcode_direct_CXX" != no &&
20429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20430 # have to relink, otherwise we might link with an installed library
20431 # when we should be linking with a yet-to-be-installed one
20432 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20433 test "$hardcode_minus_L_CXX" != no; then
20434 # Linking always hardcodes the temporary library directory.
20435 hardcode_action_CXX=relink
20436 else
20437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20438 hardcode_action_CXX=immediate
20439 fi
20440else
20441 # We cannot hardcode anything, or else we can only hardcode existing
20442 # directories.
20443 hardcode_action_CXX=unsupported
20444fi
20445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20446$as_echo "$hardcode_action_CXX" >&6; }
20447
20448if test "$hardcode_action_CXX" = relink ||
20449 test "$inherit_rpath_CXX" = yes; then
20450 # Fast installation is not supported
20451 enable_fast_install=no
20452elif test "$shlibpath_overrides_runpath" = yes ||
20453 test "$enable_shared" = no; then
20454 # Fast installation is not necessary
20455 enable_fast_install=needless
20456fi
20457
20458
20459
20460
20461
20462
20463
20464 fi # test -n "$compiler"
20465
20466 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020467 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020468 LDCXX=$LD
20469 LD=$lt_save_LD
20470 GCC=$lt_save_GCC
20471 with_gnu_ld=$lt_save_with_gnu_ld
20472 lt_cv_path_LDCXX=$lt_cv_path_LD
20473 lt_cv_path_LD=$lt_save_path_LD
20474 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20475 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20476fi # test "$_lt_caught_CXX_error" != yes
20477
20478ac_ext=c
20479ac_cpp='$CPP $CPPFLAGS'
20480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482ac_compiler_gnu=$ac_cv_c_compiler_gnu
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
cristy99bd5232011-12-07 14:38:20 +000020496
20497
cristy73bd4a52010-10-05 11:24:23 +000020498 ac_config_commands="$ac_config_commands libtool"
20499
20500
20501
20502
20503# Only expand once:
20504
20505
20506
cristy3ed852e2009-09-05 21:47:34 +000020507
20508
20509# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020510
20511
20512
20513
20514
20515
20516
cristy73bd4a52010-10-05 11:24:23 +000020517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20518$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020519if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020520 $as_echo_n "(cached) " >&6
20521else
20522
20523module=yes
20524eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020525module=no
20526eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020527
20528fi
20529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20530$as_echo "$libltdl_cv_shlibext" >&6; }
20531if test -n "$libltdl_cv_shlibext"; then
20532
20533cat >>confdefs.h <<_ACEOF
20534#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20535_ACEOF
20536
20537fi
cristy99bd5232011-12-07 14:38:20 +000020538if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20539
20540cat >>confdefs.h <<_ACEOF
20541#define LT_SHARED_EXT "$libltdl_cv_shrext"
20542_ACEOF
20543
20544fi
cristy73bd4a52010-10-05 11:24:23 +000020545
20546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20547$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020548if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020549 $as_echo_n "(cached) " >&6
20550else
20551 lt_cv_module_path_var="$shlibpath_var"
20552fi
20553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20554$as_echo "$lt_cv_module_path_var" >&6; }
20555if test -n "$lt_cv_module_path_var"; then
20556
20557cat >>confdefs.h <<_ACEOF
20558#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20559_ACEOF
20560
20561fi
20562
20563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20564$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020565if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020566 $as_echo_n "(cached) " >&6
20567else
20568 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20569fi
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20571$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20572if test -n "$lt_cv_sys_dlsearch_path"; then
20573 sys_dlsearch_path=
20574 for dir in $lt_cv_sys_dlsearch_path; do
20575 if test -z "$sys_dlsearch_path"; then
20576 sys_dlsearch_path="$dir"
20577 else
20578 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20579 fi
20580 done
20581
20582cat >>confdefs.h <<_ACEOF
20583#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20584_ACEOF
20585
20586fi
20587
20588
20589LT_DLLOADERS=
20590
20591
20592ac_ext=c
20593ac_cpp='$CPP $CPPFLAGS'
20594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20596ac_compiler_gnu=$ac_cv_c_compiler_gnu
20597
20598
20599LIBADD_DLOPEN=
20600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20601$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020602if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020603 $as_echo_n "(cached) " >&6
20604else
20605 ac_func_search_save_LIBS=$LIBS
20606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607/* end confdefs.h. */
20608
20609/* Override any GCC internal prototype to avoid an error.
20610 Use char because int might match the return type of a GCC
20611 builtin and then its argument prototype would still apply. */
20612#ifdef __cplusplus
20613extern "C"
20614#endif
20615char dlopen ();
20616int
20617main ()
20618{
20619return dlopen ();
20620 ;
20621 return 0;
20622}
20623_ACEOF
20624for ac_lib in '' dl; do
20625 if test -z "$ac_lib"; then
20626 ac_res="none required"
20627 else
20628 ac_res=-l$ac_lib
20629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20630 fi
20631 if ac_fn_c_try_link "$LINENO"; then :
20632 ac_cv_search_dlopen=$ac_res
20633fi
20634rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020636 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020637 break
20638fi
20639done
cristyda16f162011-02-19 23:52:17 +000020640if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020641
20642else
20643 ac_cv_search_dlopen=no
20644fi
20645rm conftest.$ac_ext
20646LIBS=$ac_func_search_save_LIBS
20647fi
20648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20649$as_echo "$ac_cv_search_dlopen" >&6; }
20650ac_res=$ac_cv_search_dlopen
20651if test "$ac_res" != no; then :
20652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20653
20654$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20655
20656 if test "$ac_cv_search_dlopen" != "none required" ; then
20657 LIBADD_DLOPEN="-ldl"
20658 fi
20659 libltdl_cv_lib_dl_dlopen="yes"
20660 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20661else
20662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20663/* end confdefs.h. */
20664#if HAVE_DLFCN_H
20665# include <dlfcn.h>
20666#endif
20667
20668int
20669main ()
20670{
20671dlopen(0, 0);
20672 ;
20673 return 0;
20674}
20675_ACEOF
20676if ac_fn_c_try_link "$LINENO"; then :
20677
20678$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20679
20680 libltdl_cv_func_dlopen="yes"
20681 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20682else
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20684$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020685if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020686 $as_echo_n "(cached) " >&6
20687else
20688 ac_check_lib_save_LIBS=$LIBS
20689LIBS="-lsvld $LIBS"
20690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691/* end confdefs.h. */
20692
20693/* Override any GCC internal prototype to avoid an error.
20694 Use char because int might match the return type of a GCC
20695 builtin and then its argument prototype would still apply. */
20696#ifdef __cplusplus
20697extern "C"
20698#endif
20699char dlopen ();
20700int
20701main ()
20702{
20703return dlopen ();
20704 ;
20705 return 0;
20706}
20707_ACEOF
20708if ac_fn_c_try_link "$LINENO"; then :
20709 ac_cv_lib_svld_dlopen=yes
20710else
20711 ac_cv_lib_svld_dlopen=no
20712fi
20713rm -f core conftest.err conftest.$ac_objext \
20714 conftest$ac_exeext conftest.$ac_ext
20715LIBS=$ac_check_lib_save_LIBS
20716fi
20717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20718$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020719if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020720
20721$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20722
20723 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20724 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20725fi
20726
20727fi
20728rm -f core conftest.err conftest.$ac_objext \
20729 conftest$ac_exeext conftest.$ac_ext
20730fi
20731
20732if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20733then
20734 lt_save_LIBS="$LIBS"
20735 LIBS="$LIBS $LIBADD_DLOPEN"
20736 for ac_func in dlerror
20737do :
20738 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020739if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020740 cat >>confdefs.h <<_ACEOF
20741#define HAVE_DLERROR 1
20742_ACEOF
20743
20744fi
20745done
20746
20747 LIBS="$lt_save_LIBS"
20748fi
20749
20750
20751LIBADD_SHL_LOAD=
20752ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020753if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020754
20755$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20756
20757 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20758else
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20760$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020761if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020762 $as_echo_n "(cached) " >&6
20763else
20764 ac_check_lib_save_LIBS=$LIBS
20765LIBS="-ldld $LIBS"
20766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767/* end confdefs.h. */
20768
20769/* Override any GCC internal prototype to avoid an error.
20770 Use char because int might match the return type of a GCC
20771 builtin and then its argument prototype would still apply. */
20772#ifdef __cplusplus
20773extern "C"
20774#endif
20775char shl_load ();
20776int
20777main ()
20778{
20779return shl_load ();
20780 ;
20781 return 0;
20782}
20783_ACEOF
20784if ac_fn_c_try_link "$LINENO"; then :
20785 ac_cv_lib_dld_shl_load=yes
20786else
20787 ac_cv_lib_dld_shl_load=no
20788fi
20789rm -f core conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
20791LIBS=$ac_check_lib_save_LIBS
20792fi
20793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20794$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020795if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020796
20797$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20798
20799 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20800 LIBADD_SHL_LOAD="-ldld"
20801fi
20802
20803fi
20804
20805
20806
20807case $host_os in
20808darwin[1567].*)
20809# We only want this for pre-Mac OS X 10.4.
20810 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020811if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020812
20813$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20814
20815 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20816fi
20817
20818 ;;
20819beos*)
20820 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20821 ;;
20822cygwin* | mingw* | os2* | pw32*)
20823 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20824"
cristyda16f162011-02-19 23:52:17 +000020825if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020826 ac_have_decl=1
20827else
20828 ac_have_decl=0
20829fi
20830
20831cat >>confdefs.h <<_ACEOF
20832#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20833_ACEOF
20834
20835 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20836 ;;
20837esac
20838
20839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20840$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020841if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020842 $as_echo_n "(cached) " >&6
20843else
20844 ac_check_lib_save_LIBS=$LIBS
20845LIBS="-ldld $LIBS"
20846cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20847/* end confdefs.h. */
20848
20849/* Override any GCC internal prototype to avoid an error.
20850 Use char because int might match the return type of a GCC
20851 builtin and then its argument prototype would still apply. */
20852#ifdef __cplusplus
20853extern "C"
20854#endif
20855char dld_link ();
20856int
20857main ()
20858{
20859return dld_link ();
20860 ;
20861 return 0;
20862}
20863_ACEOF
20864if ac_fn_c_try_link "$LINENO"; then :
20865 ac_cv_lib_dld_dld_link=yes
20866else
20867 ac_cv_lib_dld_dld_link=no
20868fi
20869rm -f core conftest.err conftest.$ac_objext \
20870 conftest$ac_exeext conftest.$ac_ext
20871LIBS=$ac_check_lib_save_LIBS
20872fi
20873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20874$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000020875if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020876
20877$as_echo "#define HAVE_DLD 1" >>confdefs.h
20878
20879 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20880fi
20881
20882
20883
20884
20885LT_DLPREOPEN=
20886if test -n "$LT_DLLOADERS"
20887then
20888 for lt_loader in $LT_DLLOADERS; do
20889 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20890 done
20891
20892$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20893
20894fi
20895
20896
20897LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20898
20899
20900ac_ext=c
20901ac_cpp='$CPP $CPPFLAGS'
20902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20904ac_compiler_gnu=$ac_cv_c_compiler_gnu
20905
20906
20907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20908$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020909if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020910 $as_echo_n "(cached) " >&6
20911else
20912 lt_cv_sys_symbol_underscore=no
20913 cat > conftest.$ac_ext <<_LT_EOF
20914void nm_test_func(){}
20915int main(){nm_test_func;return 0;}
20916_LT_EOF
20917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20918 (eval $ac_compile) 2>&5
20919 ac_status=$?
20920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20921 test $ac_status = 0; }; then
20922 # Now try to grab the symbols.
20923 ac_nlist=conftest.nm
20924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20925 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20926 ac_status=$?
20927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20928 test $ac_status = 0; } && test -s "$ac_nlist"; then
20929 # See whether the symbols have a leading underscore.
20930 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20931 lt_cv_sys_symbol_underscore=yes
20932 else
20933 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20934 :
20935 else
20936 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20937 fi
20938 fi
20939 else
20940 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20941 fi
20942 else
20943 echo "configure: failed program was:" >&5
20944 cat conftest.c >&5
20945 fi
20946 rm -rf conftest*
20947
20948fi
20949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20950$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20951 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20952
20953
20954if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20955 if test x"$libltdl_cv_func_dlopen" = xyes ||
20956 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20958$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020959if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020960 $as_echo_n "(cached) " >&6
20961else
20962 libltdl_cv_need_uscore=unknown
20963 save_LIBS="$LIBS"
20964 LIBS="$LIBS $LIBADD_DLOPEN"
20965 if test "$cross_compiling" = yes; then :
20966 libltdl_cv_need_uscore=cross
20967else
20968 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20969 lt_status=$lt_dlunknown
20970 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020971#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020972#include "confdefs.h"
20973
20974#if HAVE_DLFCN_H
20975#include <dlfcn.h>
20976#endif
20977
20978#include <stdio.h>
20979
20980#ifdef RTLD_GLOBAL
20981# define LT_DLGLOBAL RTLD_GLOBAL
20982#else
20983# ifdef DL_GLOBAL
20984# define LT_DLGLOBAL DL_GLOBAL
20985# else
20986# define LT_DLGLOBAL 0
20987# endif
20988#endif
20989
20990/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20991 find out it does not work in some platform. */
20992#ifndef LT_DLLAZY_OR_NOW
20993# ifdef RTLD_LAZY
20994# define LT_DLLAZY_OR_NOW RTLD_LAZY
20995# else
20996# ifdef DL_LAZY
20997# define LT_DLLAZY_OR_NOW DL_LAZY
20998# else
20999# ifdef RTLD_NOW
21000# define LT_DLLAZY_OR_NOW RTLD_NOW
21001# else
21002# ifdef DL_NOW
21003# define LT_DLLAZY_OR_NOW DL_NOW
21004# else
21005# define LT_DLLAZY_OR_NOW 0
21006# endif
21007# endif
21008# endif
21009# endif
21010#endif
21011
cristy0c60a692010-11-04 01:09:47 +000021012/* When -fvisbility=hidden is used, assume the code has been annotated
21013 correspondingly for the symbols needed. */
21014#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021015int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021016#endif
21017
cristyda16f162011-02-19 23:52:17 +000021018int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021019int main ()
21020{
21021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21022 int status = $lt_dlunknown;
21023
21024 if (self)
21025 {
21026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021027 else
21028 {
21029 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21030 else puts (dlerror ());
21031 }
cristy73bd4a52010-10-05 11:24:23 +000021032 /* dlclose (self); */
21033 }
21034 else
21035 puts (dlerror ());
21036
21037 return status;
21038}
21039_LT_EOF
21040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21041 (eval $ac_link) 2>&5
21042 ac_status=$?
21043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21044 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21045 (./conftest; exit; ) >&5 2>/dev/null
21046 lt_status=$?
21047 case x$lt_status in
21048 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21049 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21050 x$lt_dlunknown|x*) ;;
21051 esac
21052 else :
21053 # compilation failed
21054
21055 fi
21056fi
21057rm -fr conftest*
21058
21059 LIBS="$save_LIBS"
21060
21061fi
21062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21063$as_echo "$libltdl_cv_need_uscore" >&6; }
21064 fi
21065fi
21066
21067if test x"$libltdl_cv_need_uscore" = xyes; then
21068
21069$as_echo "#define NEED_USCORE 1" >>confdefs.h
21070
21071fi
21072
21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21074$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021075if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021076 $as_echo_n "(cached) " >&6
21077else
21078 # PORTME does your system automatically load deplibs for dlopen?
21079 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21080 # For now, we just catch OSes we know something about -- in the
21081 # future, we'll try test this programmatically.
21082 lt_cv_sys_dlopen_deplibs=unknown
21083 case $host_os in
21084 aix3*|aix4.1.*|aix4.2.*)
21085 # Unknown whether this is true for these versions of AIX, but
21086 # we want this `case' here to explicitly catch those versions.
21087 lt_cv_sys_dlopen_deplibs=unknown
21088 ;;
21089 aix[4-9]*)
21090 lt_cv_sys_dlopen_deplibs=yes
21091 ;;
21092 amigaos*)
21093 case $host_cpu in
21094 powerpc)
21095 lt_cv_sys_dlopen_deplibs=no
21096 ;;
21097 esac
21098 ;;
21099 darwin*)
21100 # Assuming the user has installed a libdl from somewhere, this is true
21101 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21102 lt_cv_sys_dlopen_deplibs=yes
21103 ;;
21104 freebsd* | dragonfly*)
21105 lt_cv_sys_dlopen_deplibs=yes
21106 ;;
cristy0c60a692010-11-04 01:09:47 +000021107 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021108 # GNU and its variants, using gnu ld.so (Glibc)
21109 lt_cv_sys_dlopen_deplibs=yes
21110 ;;
21111 hpux10*|hpux11*)
21112 lt_cv_sys_dlopen_deplibs=yes
21113 ;;
21114 interix*)
21115 lt_cv_sys_dlopen_deplibs=yes
21116 ;;
21117 irix[12345]*|irix6.[01]*)
21118 # Catch all versions of IRIX before 6.2, and indicate that we don't
21119 # know how it worked for any of those versions.
21120 lt_cv_sys_dlopen_deplibs=unknown
21121 ;;
21122 irix*)
21123 # The case above catches anything before 6.2, and it's known that
21124 # at 6.2 and later dlopen does load deplibs.
21125 lt_cv_sys_dlopen_deplibs=yes
21126 ;;
21127 netbsd*)
21128 lt_cv_sys_dlopen_deplibs=yes
21129 ;;
21130 openbsd*)
21131 lt_cv_sys_dlopen_deplibs=yes
21132 ;;
21133 osf[1234]*)
21134 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21135 # it did *not* use an RPATH in a shared library to find objects the
21136 # library depends on, so we explicitly say `no'.
21137 lt_cv_sys_dlopen_deplibs=no
21138 ;;
21139 osf5.0|osf5.0a|osf5.1)
21140 # dlopen *does* load deplibs and with the right loader patch applied
21141 # it even uses RPATH in a shared library to search for shared objects
21142 # that the library depends on, but there's no easy way to know if that
21143 # patch is installed. Since this is the case, all we can really
21144 # say is unknown -- it depends on the patch being installed. If
21145 # it is, this changes to `yes'. Without it, it would be `no'.
21146 lt_cv_sys_dlopen_deplibs=unknown
21147 ;;
21148 osf*)
21149 # the two cases above should catch all versions of osf <= 5.1. Read
21150 # the comments above for what we know about them.
21151 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21152 # is used to find them so we can finally say `yes'.
21153 lt_cv_sys_dlopen_deplibs=yes
21154 ;;
21155 qnx*)
21156 lt_cv_sys_dlopen_deplibs=yes
21157 ;;
21158 solaris*)
21159 lt_cv_sys_dlopen_deplibs=yes
21160 ;;
21161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21162 libltdl_cv_sys_dlopen_deplibs=yes
21163 ;;
21164 esac
21165
21166fi
21167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21168$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21169if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21170
21171$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21172
21173fi
21174
21175:
21176
21177for ac_header in argz.h
21178do :
21179 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21180"
cristyda16f162011-02-19 23:52:17 +000021181if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021182 cat >>confdefs.h <<_ACEOF
21183#define HAVE_ARGZ_H 1
21184_ACEOF
21185
21186fi
21187
21188done
21189
21190
21191ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21192# include <argz.h>
21193#endif
21194"
cristyda16f162011-02-19 23:52:17 +000021195if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021196
21197cat >>confdefs.h <<_ACEOF
21198#define HAVE_ERROR_T 1
21199_ACEOF
21200
21201
21202else
21203
21204$as_echo "#define error_t int" >>confdefs.h
21205
21206
21207$as_echo "#define __error_t_defined 1" >>confdefs.h
21208
21209fi
21210
21211
21212ARGZ_H=
21213for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21214 argz_next argz_stringify
21215do :
21216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21217ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021218if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021219 cat >>confdefs.h <<_ACEOF
21220#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21221_ACEOF
21222
21223else
21224 ARGZ_H=argz.h;
21225
21226 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21227
21228fi
21229done
21230
21231
21232if test -z "$ARGZ_H"; then :
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21234$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021235if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021236 $as_echo_n "(cached) " >&6
21237else
21238 case $host_os in #(
21239 *cygwin*)
21240 lt_cv_sys_argz_works=no
21241 if test "$cross_compiling" != no; then
21242 lt_cv_sys_argz_works="guessing no"
21243 else
21244 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21245 save_IFS=$IFS
21246 IFS=-.
21247 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21248 IFS=$save_IFS
21249 lt_os_major=${2-0}
21250 lt_os_minor=${3-0}
21251 lt_os_micro=${4-0}
21252 if test "$lt_os_major" -gt 1 \
21253 || { test "$lt_os_major" -eq 1 \
21254 && { test "$lt_os_minor" -gt 5 \
21255 || { test "$lt_os_minor" -eq 5 \
21256 && test "$lt_os_micro" -gt 24; }; }; }; then
21257 lt_cv_sys_argz_works=yes
21258 fi
21259 fi
21260 ;; #(
21261 *) lt_cv_sys_argz_works=yes ;;
21262 esac
21263fi
21264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21265$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021266 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021267
21268$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21269
21270else
21271 ARGZ_H=argz.h
21272
21273
21274 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21275
21276fi
21277fi
21278
21279
21280
21281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21282$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021283if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021284 $as_echo_n "(cached) " >&6
21285else
21286 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21287 libltdl_cv_preloaded_symbols=yes
21288 else
21289 libltdl_cv_preloaded_symbols=no
21290 fi
21291
21292fi
21293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21294$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21295if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21296
21297$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21298
21299fi
21300
21301# Set options
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313# Check whether --with-included_ltdl was given.
21314if test "${with_included_ltdl+set}" = set; then :
21315 withval=$with_included_ltdl;
21316fi
21317
21318
21319if test "x$with_included_ltdl" != xyes; then
21320 # We are not being forced to use the included libltdl sources, so
21321 # decide whether there is a useful installed version we can use.
21322 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21323
21324"
cristyda16f162011-02-19 23:52:17 +000021325if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021326 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21327 #include <ltdl.h>
21328"
cristyda16f162011-02-19 23:52:17 +000021329if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21331$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021332if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021333 $as_echo_n "(cached) " >&6
21334else
21335 ac_check_lib_save_LIBS=$LIBS
21336LIBS="-lltdl $LIBS"
21337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338/* end confdefs.h. */
21339
21340/* Override any GCC internal prototype to avoid an error.
21341 Use char because int might match the return type of a GCC
21342 builtin and then its argument prototype would still apply. */
21343#ifdef __cplusplus
21344extern "C"
21345#endif
21346char lt_dladvise_preload ();
21347int
21348main ()
21349{
21350return lt_dladvise_preload ();
21351 ;
21352 return 0;
21353}
21354_ACEOF
21355if ac_fn_c_try_link "$LINENO"; then :
21356 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21357else
21358 ac_cv_lib_ltdl_lt_dladvise_preload=no
21359fi
21360rm -f core conftest.err conftest.$ac_objext \
21361 conftest$ac_exeext conftest.$ac_ext
21362LIBS=$ac_check_lib_save_LIBS
21363fi
21364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21365$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021366if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021367 with_included_ltdl=no
21368else
21369 with_included_ltdl=yes
21370fi
21371
21372else
21373 with_included_ltdl=yes
21374fi
21375
21376else
21377 with_included_ltdl=yes
21378fi
21379
21380
21381fi
21382
21383
21384
21385
21386# Check whether --with-ltdl_include was given.
21387if test "${with_ltdl_include+set}" = set; then :
21388 withval=$with_ltdl_include;
21389fi
21390
21391
21392if test -n "$with_ltdl_include"; then
21393 if test -f "$with_ltdl_include/ltdl.h"; then :
21394 else
cristy98dddb52010-11-04 00:30:15 +000021395 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021396 fi
21397else
21398 with_ltdl_include=no
21399fi
21400
21401
21402# Check whether --with-ltdl_lib was given.
21403if test "${with_ltdl_lib+set}" = set; then :
21404 withval=$with_ltdl_lib;
21405fi
21406
21407
21408if test -n "$with_ltdl_lib"; then
21409 if test -f "$with_ltdl_lib/libltdl.la"; then :
21410 else
cristy98dddb52010-11-04 00:30:15 +000021411 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021412 fi
21413else
21414 with_ltdl_lib=no
21415fi
21416
21417case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21418 ,yes,no,no,)
21419 case $enable_ltdl_convenience in
cristy98dddb52010-11-04 00:30:15 +000021420 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
cristy73bd4a52010-10-05 11:24:23 +000021421 "") enable_ltdl_convenience=yes
21422 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21423esac
21424LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21425LTDLDEPS=$LIBLTDL
21426LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21427
21428
21429
21430
21431
21432# For backwards non-gettext consistent compatibility...
21433INCLTDL="$LTDLINCL"
21434
21435
21436 ;;
21437 ,no,no,no,)
21438 # If the included ltdl is not to be used, then use the
21439 # preinstalled libltdl we found.
21440
21441$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21442
21443 LIBLTDL=-lltdl
21444 LTDLDEPS=
21445 LTDLINCL=
21446 ;;
21447 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021448 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021449 ;;
21450 *) with_included_ltdl=no
21451 LIBLTDL="-L$with_ltdl_lib -lltdl"
21452 LTDLDEPS=
21453 LTDLINCL="-I$with_ltdl_include"
21454 ;;
21455esac
21456INCLTDL="$LTDLINCL"
21457
21458# Report our decision...
21459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21460$as_echo_n "checking where to find libltdl headers... " >&6; }
21461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21462$as_echo "$LTDLINCL" >&6; }
21463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21464$as_echo_n "checking where to find libltdl library... " >&6; }
21465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21466$as_echo "$LIBLTDL" >&6; }
21467
21468
21469
21470# Check whether --enable-ltdl-install was given.
21471if test "${enable_ltdl_install+set}" = set; then :
21472 enableval=$enable_ltdl_install;
21473fi
21474
21475
21476case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21477 *yes*) ;;
21478 *) enable_ltdl_convenience=yes ;;
21479esac
21480
21481 if test x"${enable_ltdl_install-no}" != xno; then
21482 INSTALL_LTDL_TRUE=
21483 INSTALL_LTDL_FALSE='#'
21484else
21485 INSTALL_LTDL_TRUE='#'
21486 INSTALL_LTDL_FALSE=
21487fi
21488
21489 if test x"${enable_ltdl_convenience-no}" != xno; then
21490 CONVENIENCE_LTDL_TRUE=
21491 CONVENIENCE_LTDL_FALSE='#'
21492else
21493 CONVENIENCE_LTDL_TRUE='#'
21494 CONVENIENCE_LTDL_FALSE=
21495fi
21496
21497
21498
21499
21500
21501
cristy73bd4a52010-10-05 11:24:23 +000021502# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21503# the user used. This is so that ltdl.h can pick up the parent projects
21504# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21505# definitions required by ltdl.c.
21506# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21507
21508
21509
21510for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21511do :
21512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21513ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21514"
cristy98dddb52010-11-04 00:30:15 +000021515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021516 cat >>confdefs.h <<_ACEOF
21517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518_ACEOF
21519
21520fi
21521
21522done
21523
21524
21525for ac_func in closedir opendir readdir
21526do :
21527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21528ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021529if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021530 cat >>confdefs.h <<_ACEOF
21531#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21532_ACEOF
21533
21534else
21535
21536
21537 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21538
21539fi
21540done
21541
21542for ac_func in strlcat strlcpy
21543do :
21544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21545ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021546if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021547 cat >>confdefs.h <<_ACEOF
21548#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21549_ACEOF
21550
21551else
21552
21553
21554 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21555
21556fi
21557done
21558
21559
21560
21561cat >>confdefs.h <<_ACEOF
21562#define LT_LIBEXT "$libext"
21563_ACEOF
21564
21565
cristyda16f162011-02-19 23:52:17 +000021566name=
21567eval "lt_libprefix=\"$libname_spec\""
21568
21569cat >>confdefs.h <<_ACEOF
21570#define LT_LIBPREFIX "$lt_libprefix"
21571_ACEOF
21572
21573
cristy73bd4a52010-10-05 11:24:23 +000021574name=ltdl
cristyda16f162011-02-19 23:52:17 +000021575eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021576
21577
21578
21579
21580
21581
21582
21583
21584# Only expand once:
21585
21586
cristy3ed852e2009-09-05 21:47:34 +000021587
21588# Check to see if building shared libraries
21589libtool_build_shared_libs='no'
21590if test "$enable_shared" = 'yes'; then
21591 libtool_build_shared_libs='yes'
21592fi
21593
21594# Check to see if building static libraries
21595libtool_build_static_libs='no'
21596if test "$enable_static" = 'yes'; then
21597 libtool_build_static_libs='yes'
21598fi
21599
cristy73bd4a52010-10-05 11:24:23 +000021600 if test "${libtool_build_shared_libs}" = 'yes'; then
21601 WITH_SHARED_LIBS_TRUE=
21602 WITH_SHARED_LIBS_FALSE='#'
21603else
21604 WITH_SHARED_LIBS_TRUE='#'
21605 WITH_SHARED_LIBS_FALSE=
21606fi
21607
cristy3ed852e2009-09-05 21:47:34 +000021608#
21609# Enable support for building loadable modules
21610#
21611
21612# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021613if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021614 withval=$with_modules; with_modules=$withval
21615else
cristy5a1cefd2010-01-06 20:42:35 +000021616 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021617fi
21618
21619
21620# Only allow building loadable modules if we are building shared libraries
21621if test "$with_modules" != 'no' ; then
21622 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021623 { $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 +000021624$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21625 with_modules='no'
21626 fi
21627fi
21628if test "$with_modules" != 'no'; then
21629
cristy8b350f62009-11-15 23:12:43 +000021630$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021631
21632fi
cristy73bd4a52010-10-05 11:24:23 +000021633 if test "$with_modules" != 'no'; then
21634 WITH_MODULES_TRUE=
21635 WITH_MODULES_FALSE='#'
21636else
21637 WITH_MODULES_TRUE='#'
21638 WITH_MODULES_FALSE=
21639fi
21640
cristy3ed852e2009-09-05 21:47:34 +000021641
21642# Enable building/use of libltdl if we are building shared libraries regardless
21643# of whether modules are built or not.
21644with_ltdl='no'
21645if test "$libtool_build_shared_libs" != 'no'; then
21646 with_ltdl='yes'
21647fi
21648
cristy73bd4a52010-10-05 11:24:23 +000021649 if test "$with_ltdl" != 'no'; then
21650 WITH_LTDL_TRUE=
21651 WITH_LTDL_FALSE='#'
21652else
21653 WITH_LTDL_TRUE='#'
21654 WITH_LTDL_FALSE=
21655fi
21656
cristy3ed852e2009-09-05 21:47:34 +000021657if test "$with_ltdl" != 'no'; then
21658
cristy8b350f62009-11-15 23:12:43 +000021659$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021660
21661
21662 # Set DLLDFLAGS
21663 if test X"$enable_shared" = Xyes; then
21664 DLLDFLAGS=-export-dynamic
21665
21666 fi
21667fi
21668
21669# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021670# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021671# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021672if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021673 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21674else
21675 enable_delegate_build='no'
21676fi
21677
21678
21679# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021680if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021681 enableval=$enable_deprecated; enable_deprecated=$enableval
21682else
21683 enable_deprecated='no'
21684fi
21685
21686
21687if test "$enable_deprecated" = 'yes'; then
21688
cristy8b350f62009-11-15 23:12:43 +000021689$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021690
21691else
21692 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21693fi
21694
21695# Build a version of ImageMagick which operates uninstalled.
21696# Used to build distributions located via MAGICK_HOME / executable path
21697# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021698if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021699 enableval=$enable_installed; enable_installed=$enableval
21700else
21701 enable_installed='yes'
21702fi
21703
21704
21705if test "$enable_installed" = 'yes'; then
21706
cristy8b350f62009-11-15 23:12:43 +000021707$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021708
21709else
21710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21711fi
21712
21713# Permit enciphering and deciphering image pixels.
21714# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021715if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021716 enableval=$enable_cipher; enable_cipher=$enableval
21717else
21718 enable_cipher='yes'
21719fi
21720
21721
21722if test "$enable_cipher" = 'yes'; then
21723
cristy8b350f62009-11-15 23:12:43 +000021724$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021725
21726fi
21727
cristy6e3607c2011-09-13 13:59:17 +000021728# Build a zero-configuration version of ImageMagick.
21729# Check whether --enable-zero-configuration was given.
21730if test "${enable_zero_configuration+set}" = set; then :
21731 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021732else
cristy6e3607c2011-09-13 13:59:17 +000021733 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021734fi
21735
21736
cristy6e3607c2011-09-13 13:59:17 +000021737if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021738
cristy6e3607c2011-09-13 13:59:17 +000021739$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021740
cristy81af5702011-09-13 14:20:58 +000021741 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021742fi
21743
21744# Build a high dynamic range version of ImageMagick.
21745# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021746if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021747 enableval=$enable_hdri; enable_hdri=$enableval
21748else
21749 enable_hdri='no'
21750fi
21751
21752
21753MAGICK_HDRI=""
21754if test "$enable_hdri" = 'yes'; then
21755 MAGICK_HDRI="HDRI"
21756
cristy8b350f62009-11-15 23:12:43 +000021757$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021758
cristyfd9dcd42010-08-08 18:07:02 +000021759 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021760fi
21761
cristy3ed852e2009-09-05 21:47:34 +000021762# Build a version of ImageMagick with assert statements.
21763# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021764if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021765 enableval=$enable_assert; enable_assert=$enableval
21766else
21767 enable_assert='yes'
21768fi
21769
21770
21771if test "$enable_assert" = 'no'; then
21772
cristy8b350f62009-11-15 23:12:43 +000021773$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021774
21775fi
21776
cristya448bd22011-10-14 12:38:13 +000021777# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021778
21779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21780$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21781 # Check whether --enable-maintainer-mode was given.
21782if test "${enable_maintainer_mode+set}" = set; then :
21783 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21784else
21785 USE_MAINTAINER_MODE=no
21786fi
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21789$as_echo "$USE_MAINTAINER_MODE" >&6; }
21790 if test $USE_MAINTAINER_MODE = yes; then
21791 MAINTAINER_MODE_TRUE=
21792 MAINTAINER_MODE_FALSE='#'
21793else
21794 MAINTAINER_MODE_TRUE='#'
21795 MAINTAINER_MODE_FALSE=
21796fi
21797
21798 MAINT=$MAINTAINER_MODE_TRUE
21799
21800
cristy3ed852e2009-09-05 21:47:34 +000021801
cristy3ed852e2009-09-05 21:47:34 +000021802# Enable ccmalloc memory debugging support
21803# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021804if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021805 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21806else
21807 enable_ccmalloc='no'
21808fi
21809
21810
21811# Enable Electric Fence memory debugging support
21812# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021813if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 enableval=$enable_efence; enable_efence=$enableval
21815else
21816 enable_efence='no'
21817fi
21818
21819
21820# Enable prof-based profiling support
21821# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021822if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021823 enableval=$enable_prof; enable_prof=$enableval
21824else
21825 enable_prof='no'
21826fi
21827
21828
21829# Enable gprof-based profiling support
21830# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021831if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021832 enableval=$enable_gprof; enable_gprof=$enableval
21833else
21834 enable_gprof='no'
21835fi
21836
21837
21838# Enable gcov-based profiling support
21839# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021840if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021841 enableval=$enable_gcov; enable_gcov=$enableval
21842else
21843 enable_gcov='no'
21844fi
21845
21846
21847enable_profiling='no'
21848if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21849 enable_profiling='yes'
21850 if test "$libtool_build_shared_libs" = 'yes'; then
21851 echo "Warning: Can not profile code using shared libraries"
21852 fi
21853fi
21854
21855# Magick API method prefix
21856
21857# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021858if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021859 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021860else
cristyfc3d0222012-02-07 15:05:57 +000021861 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021862fi
21863
21864
cristyfc3d0222012-02-07 15:05:57 +000021865if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021866
21867cat >>confdefs.h <<_ACEOF
21868#define NAMESPACE_PREFIX $with_method_prefix
21869_ACEOF
21870
cristyfc3d0222012-02-07 15:05:57 +000021871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000021872fi
21873
21874# Number of bits in a Quantum
21875
21876# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000021877if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 withval=$with_quantum_depth; with_quantum_depth=$withval
21879else
21880 with_quantum_depth=16
21881fi
21882
21883
21884if test "$with_quantum_depth" != '8'; then
21885 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21886fi
21887
21888case "${with_quantum_depth}" in
21889 8 ) ;;
21890 16 ) ;;
21891 32 ) ;;
21892 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000021893 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000021894esac
21895QUANTUM_DEPTH="$with_quantum_depth"
21896
21897cat >>confdefs.h <<_ACEOF
21898#define QUANTUM_DEPTH $QUANTUM_DEPTH
21899_ACEOF
21900
21901
21902# Set pixel cache threshold
21903
21904# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021905if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021906 withval=$with_cache; with_cache=$withval
21907else
21908 with_cache=''
21909fi
21910
21911
21912if test "$with_cache" != ''; then
21913
21914cat >>confdefs.h <<_ACEOF
21915#define PixelCacheThreshold $with_cache
21916_ACEOF
21917
21918 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21919fi
21920
21921# Disable/Enable support for full delegate paths
21922
21923# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021924if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021925 withval=$with_frozenpaths; with_frozenpaths=$withval
21926else
21927 with_frozenpaths='no'
21928fi
21929
21930
21931# Enable build/install of Magick++
21932
21933# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021934if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21936else
21937 with_magick_plus_plus='yes'
21938fi
21939
21940
21941# Disable build/install of PerlMagick.
21942
21943# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021944if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021945 withval=$with_perl; with_perl=$withval
21946else
cristyb5f4e2f2010-04-25 00:49:11 +000021947 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021948fi
21949
21950
21951# Options to pass when configuring PerlMagick
21952
21953# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021954if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021955 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021956fi
21957
21958
cristy3ed852e2009-09-05 21:47:34 +000021959
21960# Enable umem, object-caching memory allocation library.
21961
21962# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021963if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021964 withval=$with_umem; with_umem=$withval
21965else
21966 with_umem='no'
21967fi
21968
21969if test "$with_umem" != 'yes' ; then
21970 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21971fi
21972
21973#
21974# Specify path to shared libstdc++ if not in normal location
21975#
21976
21977# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021978if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021979 withval=$with_libstdc; with_libstdc=$withval
21980else
21981 with_libstdc=''
21982fi
21983
21984
21985if test "$with_libstdc" != ''; then
21986 if test -d "$with_libstdc"; then
21987 LIBSTDCLDFLAGS="-L$with_libstdc"
21988 fi
21989fi
21990
21991
21992# Does gcc required -traditional?
21993if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021995$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021996if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021997 $as_echo_n "(cached) " >&6
21998else
21999 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022001/* end confdefs.h. */
22002#include <sgtty.h>
22003Autoconf TIOCGETP
22004_ACEOF
22005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022006 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022007 ac_cv_prog_gcc_traditional=yes
22008else
22009 ac_cv_prog_gcc_traditional=no
22010fi
22011rm -f conftest*
22012
22013
22014 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022016/* end confdefs.h. */
22017#include <termio.h>
22018Autoconf TCGETA
22019_ACEOF
22020if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022021 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022022 ac_cv_prog_gcc_traditional=yes
22023fi
22024rm -f conftest*
22025
22026 fi
22027fi
cristy8b350f62009-11-15 23:12:43 +000022028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022029$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22030 if test $ac_cv_prog_gcc_traditional = yes; then
22031 CC="$CC -traditional"
22032 fi
22033fi
22034
22035
22036########
22037#
22038# Set defines required to build DLLs and modules using MinGW
22039#
22040########
22041# These options are set for multi-thread DLL module build
22042# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22043# module: _DLL
22044# executable/Magick++: _DLL _MAGICKMOD_
22045MODULE_EXTRA_CPPFLAGS=''
22046LIBRARY_EXTRA_CPPFLAGS=''
22047if test "${native_win32_build}" = 'yes'; then
22048 if test "${libtool_build_shared_libs}" = 'yes'; then
22049 CPPFLAGS="$CPPFLAGS -D_DLL"
22050 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22051 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22052 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22053 if test "$with_modules" = 'yes'; then
22054 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22055 else
22056 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22057 fi
22058 else
22059 CPPFLAGS="$CPPFLAGS -D_LIB"
22060 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22061 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22062 fi
22063 if test "$with_threads" = 'yes'; then
22064 CPPFLAGS="$CPPFLAGS -D_MT"
22065 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22066 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22067 fi
22068fi
22069
22070
22071
22072# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022074$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022075if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022076 $as_echo_n "(cached) " >&6
22077else
cristy8b350f62009-11-15 23:12:43 +000022078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022079/* end confdefs.h. */
22080#include <stdlib.h>
22081#include <stdarg.h>
22082#include <string.h>
22083#include <float.h>
22084
22085int
22086main ()
22087{
22088
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_header_stdc=yes
22095else
cristy8b350f62009-11-15 23:12:43 +000022096 ac_cv_header_stdc=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
22099
22100if test $ac_cv_header_stdc = yes; then
22101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022103/* end confdefs.h. */
22104#include <string.h>
22105
22106_ACEOF
22107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022108 $EGREP "memchr" >/dev/null 2>&1; then :
22109
cristy3ed852e2009-09-05 21:47:34 +000022110else
22111 ac_cv_header_stdc=no
22112fi
22113rm -f conftest*
22114
22115fi
22116
22117if test $ac_cv_header_stdc = yes; then
22118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022120/* end confdefs.h. */
22121#include <stdlib.h>
22122
22123_ACEOF
22124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022125 $EGREP "free" >/dev/null 2>&1; then :
22126
cristy3ed852e2009-09-05 21:47:34 +000022127else
22128 ac_cv_header_stdc=no
22129fi
22130rm -f conftest*
22131
22132fi
22133
22134if test $ac_cv_header_stdc = yes; then
22135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022136 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022137 :
22138else
cristy8b350f62009-11-15 23:12:43 +000022139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022140/* end confdefs.h. */
22141#include <ctype.h>
22142#include <stdlib.h>
22143#if ((' ' & 0x0FF) == 0x020)
22144# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22145# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22146#else
22147# define ISLOWER(c) \
22148 (('a' <= (c) && (c) <= 'i') \
22149 || ('j' <= (c) && (c) <= 'r') \
22150 || ('s' <= (c) && (c) <= 'z'))
22151# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22152#endif
22153
22154#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22155int
22156main ()
22157{
22158 int i;
22159 for (i = 0; i < 256; i++)
22160 if (XOR (islower (i), ISLOWER (i))
22161 || toupper (i) != TOUPPER (i))
22162 return 2;
22163 return 0;
22164}
22165_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022166if ac_fn_c_try_run "$LINENO"; then :
22167
cristy3ed852e2009-09-05 21:47:34 +000022168else
cristy8b350f62009-11-15 23:12:43 +000022169 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022170fi
cristy8b350f62009-11-15 23:12:43 +000022171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22172 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022173fi
22174
cristy3ed852e2009-09-05 21:47:34 +000022175fi
22176fi
cristy8b350f62009-11-15 23:12:43 +000022177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022178$as_echo "$ac_cv_header_stdc" >&6; }
22179if test $ac_cv_header_stdc = yes; then
22180
cristy8b350f62009-11-15 23:12:43 +000022181$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022182
22183fi
22184
22185if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022186 { $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 +000022187 header files. Compilation cannot proceed. Please install the ANSI C
22188 headers and rerun this script." >&5
22189$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22190 header files. Compilation cannot proceed. Please install the ANSI C
22191 headers and rerun this script." >&2;};
22192fi
cristya0b81c32010-01-22 02:54:33 +000022193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22195$as_echo_n "checking whether to enable assertions... " >&6; }
22196 # Check whether --enable-assert was given.
22197if test "${enable_assert+set}" = set; then :
22198 enableval=$enable_assert; ac_enable_assert=$enableval
22199 if test "x$enableval" = xno; then :
22200
22201$as_echo "#define NDEBUG 1" >>confdefs.h
22202
22203elif test "x$enableval" != xyes; then :
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22205$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22206 ac_enable_assert=yes
22207fi
22208else
22209 ac_enable_assert=yes
22210fi
22211
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22213$as_echo "$ac_enable_assert" >&6; }
22214
cristy3ed852e2009-09-05 21:47:34 +000022215ac_header_dirent=no
22216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22217 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022219$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022220if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022221 $as_echo_n "(cached) " >&6
22222else
cristy8b350f62009-11-15 23:12:43 +000022223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022224/* end confdefs.h. */
22225#include <sys/types.h>
22226#include <$ac_hdr>
22227
22228int
22229main ()
22230{
22231if ((DIR *) 0)
22232return 0;
22233 ;
22234 return 0;
22235}
22236_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022237if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022238 eval "$as_ac_Header=yes"
22239else
cristy8b350f62009-11-15 23:12:43 +000022240 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022241fi
cristy3ed852e2009-09-05 21:47:34 +000022242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22243fi
cristy8b350f62009-11-15 23:12:43 +000022244eval ac_res=\$$as_ac_Header
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022246$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022248 cat >>confdefs.h <<_ACEOF
22249#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22250_ACEOF
22251
22252ac_header_dirent=$ac_hdr; break
22253fi
22254
22255done
22256# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22257if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022259$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022260if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022261 $as_echo_n "(cached) " >&6
22262else
22263 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022265/* end confdefs.h. */
22266
22267/* Override any GCC internal prototype to avoid an error.
22268 Use char because int might match the return type of a GCC
22269 builtin and then its argument prototype would still apply. */
22270#ifdef __cplusplus
22271extern "C"
22272#endif
22273char opendir ();
22274int
22275main ()
22276{
22277return opendir ();
22278 ;
22279 return 0;
22280}
22281_ACEOF
22282for ac_lib in '' dir; do
22283 if test -z "$ac_lib"; then
22284 ac_res="none required"
22285 else
22286 ac_res=-l$ac_lib
22287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22288 fi
cristy8b350f62009-11-15 23:12:43 +000022289 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022290 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022291fi
cristy8b350f62009-11-15 23:12:43 +000022292rm -f core conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022294 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022295 break
22296fi
22297done
cristyda16f162011-02-19 23:52:17 +000022298if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022299
cristy3ed852e2009-09-05 21:47:34 +000022300else
22301 ac_cv_search_opendir=no
22302fi
22303rm conftest.$ac_ext
22304LIBS=$ac_func_search_save_LIBS
22305fi
cristy8b350f62009-11-15 23:12:43 +000022306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022307$as_echo "$ac_cv_search_opendir" >&6; }
22308ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022309if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22311
22312fi
22313
22314else
cristy8b350f62009-11-15 23:12:43 +000022315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022316$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022317if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022318 $as_echo_n "(cached) " >&6
22319else
22320 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022322/* end confdefs.h. */
22323
22324/* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22327#ifdef __cplusplus
22328extern "C"
22329#endif
22330char opendir ();
22331int
22332main ()
22333{
22334return opendir ();
22335 ;
22336 return 0;
22337}
22338_ACEOF
22339for ac_lib in '' x; do
22340 if test -z "$ac_lib"; then
22341 ac_res="none required"
22342 else
22343 ac_res=-l$ac_lib
22344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22345 fi
cristy8b350f62009-11-15 23:12:43 +000022346 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022347 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022348fi
cristy8b350f62009-11-15 23:12:43 +000022349rm -f core conftest.err conftest.$ac_objext \
22350 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022351 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022352 break
22353fi
22354done
cristyda16f162011-02-19 23:52:17 +000022355if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022356
cristy3ed852e2009-09-05 21:47:34 +000022357else
22358 ac_cv_search_opendir=no
22359fi
22360rm conftest.$ac_ext
22361LIBS=$ac_func_search_save_LIBS
22362fi
cristy8b350f62009-11-15 23:12:43 +000022363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022364$as_echo "$ac_cv_search_opendir" >&6; }
22365ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022366if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22368
22369fi
22370
22371fi
22372
22373
22374# Check additional headers
cristya8549b12011-05-18 19:05:08 +000022375for 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 +000022376do :
22377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22378ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022379if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022380 cat >>confdefs.h <<_ACEOF
22381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22382_ACEOF
22383
22384fi
22385
22386done
22387
22388
22389########
22390#
22391# Checks for typedefs, structures, and compiler characteristics.
22392#
22393########
22394
cristy8b350f62009-11-15 23:12:43 +000022395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022396$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022397if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022398 $as_echo_n "(cached) " >&6
22399else
cristy8b350f62009-11-15 23:12:43 +000022400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022401/* end confdefs.h. */
22402
22403#include <stdbool.h>
22404#ifndef bool
22405 "error: bool is not defined"
22406#endif
22407#ifndef false
22408 "error: false is not defined"
22409#endif
22410#if false
22411 "error: false is not 0"
22412#endif
22413#ifndef true
22414 "error: true is not defined"
22415#endif
22416#if true != 1
22417 "error: true is not 1"
22418#endif
22419#ifndef __bool_true_false_are_defined
22420 "error: __bool_true_false_are_defined is not defined"
22421#endif
22422
22423 struct s { _Bool s: 1; _Bool t; } s;
22424
22425 char a[true == 1 ? 1 : -1];
22426 char b[false == 0 ? 1 : -1];
22427 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22428 char d[(bool) 0.5 == true ? 1 : -1];
cristyda16f162011-02-19 23:52:17 +000022429 /* See body of main program for 'e'. */
cristy3ed852e2009-09-05 21:47:34 +000022430 char f[(_Bool) 0.0 == false ? 1 : -1];
22431 char g[true];
22432 char h[sizeof (_Bool)];
22433 char i[sizeof s.t];
22434 enum { j = false, k = true, l = false * true, m = true * 256 };
22435 /* The following fails for
22436 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22437 _Bool n[m];
22438 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22439 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
cristy3ed852e2009-09-05 21:47:34 +000022440 /* Catch a bug in an HP-UX C compiler. See
22441 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22442 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22443 */
22444 _Bool q = true;
22445 _Bool *pq = &q;
22446
22447int
22448main ()
22449{
22450
cristyda16f162011-02-19 23:52:17 +000022451 bool e = &s;
cristy3ed852e2009-09-05 21:47:34 +000022452 *pq |= q;
22453 *pq |= ! q;
22454 /* Refer to every declared value, to avoid compiler optimizations. */
22455 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22456 + !m + !n + !o + !p + !q + !pq);
22457
22458 ;
22459 return 0;
22460}
22461_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022462if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022463 ac_cv_header_stdbool_h=yes
22464else
cristy8b350f62009-11-15 23:12:43 +000022465 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022466fi
cristy3ed852e2009-09-05 21:47:34 +000022467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22468fi
cristy8b350f62009-11-15 23:12:43 +000022469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022470$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy8b350f62009-11-15 23:12:43 +000022471ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022472if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022473
22474cat >>confdefs.h <<_ACEOF
22475#define HAVE__BOOL 1
22476_ACEOF
22477
22478
22479fi
22480
22481if test $ac_cv_header_stdbool_h = yes; then
22482
cristy8b350f62009-11-15 23:12:43 +000022483$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022484
22485fi
22486
cristy8b350f62009-11-15 23:12:43 +000022487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022488$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022489if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 $as_echo_n "(cached) " >&6
22491else
cristy8b350f62009-11-15 23:12:43 +000022492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022493/* end confdefs.h. */
22494
22495int
22496main ()
22497{
22498
22499volatile int x;
22500int * volatile y = (int *) 0;
22501return !x && !y;
22502 ;
22503 return 0;
22504}
22505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022506if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022507 ac_cv_c_volatile=yes
22508else
cristy8b350f62009-11-15 23:12:43 +000022509 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022510fi
cristy3ed852e2009-09-05 21:47:34 +000022511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512fi
cristy8b350f62009-11-15 23:12:43 +000022513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022514$as_echo "$ac_cv_c_volatile" >&6; }
22515if test $ac_cv_c_volatile = no; then
22516
cristy8b350f62009-11-15 23:12:43 +000022517$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022518
22519fi
22520
cristy8b350f62009-11-15 23:12:43 +000022521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022522$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022523if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022524 $as_echo_n "(cached) " >&6
22525else
cristy8b350f62009-11-15 23:12:43 +000022526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022527/* end confdefs.h. */
22528#define x(y) #y
22529
22530char *s = x(teststring);
22531_ACEOF
22532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022533 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022534 ac_cv_c_stringize=no
22535else
22536 ac_cv_c_stringize=yes
22537fi
22538rm -f conftest*
22539
22540fi
cristy8b350f62009-11-15 23:12:43 +000022541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022542$as_echo "$ac_cv_c_stringize" >&6; }
22543if test $ac_cv_c_stringize = yes; then
22544
cristy8b350f62009-11-15 23:12:43 +000022545$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022546
22547fi
22548
cristy8b350f62009-11-15 23:12:43 +000022549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022550$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022551if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022552 $as_echo_n "(cached) " >&6
22553else
cristy8b350f62009-11-15 23:12:43 +000022554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022555/* end confdefs.h. */
22556#include <sys/types.h>
22557#include <sys/stat.h>
22558
22559#if defined S_ISBLK && defined S_IFDIR
22560extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22561#endif
22562
22563#if defined S_ISBLK && defined S_IFCHR
22564extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22565#endif
22566
22567#if defined S_ISLNK && defined S_IFREG
22568extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22569#endif
22570
22571#if defined S_ISSOCK && defined S_IFREG
22572extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22573#endif
22574
22575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022576if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022577 ac_cv_header_stat_broken=no
22578else
cristy8b350f62009-11-15 23:12:43 +000022579 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022580fi
cristy3ed852e2009-09-05 21:47:34 +000022581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582fi
cristy8b350f62009-11-15 23:12:43 +000022583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022584$as_echo "$ac_cv_header_stat_broken" >&6; }
22585if test $ac_cv_header_stat_broken = yes; then
22586
cristy8b350f62009-11-15 23:12:43 +000022587$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022588
22589fi
22590
cristy8b350f62009-11-15 23:12:43 +000022591{ $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 +000022592$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022593if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022594 $as_echo_n "(cached) " >&6
22595else
cristy8b350f62009-11-15 23:12:43 +000022596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022597/* end confdefs.h. */
22598#include <sys/types.h>
22599#include <sys/time.h>
22600#include <time.h>
22601
22602int
22603main ()
22604{
22605if ((struct tm *) 0)
22606return 0;
22607 ;
22608 return 0;
22609}
22610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022611if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022612 ac_cv_header_time=yes
22613else
cristy8b350f62009-11-15 23:12:43 +000022614 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022615fi
cristy3ed852e2009-09-05 21:47:34 +000022616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22617fi
cristy8b350f62009-11-15 23:12:43 +000022618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022619$as_echo "$ac_cv_header_time" >&6; }
22620if test $ac_cv_header_time = yes; then
22621
cristy8b350f62009-11-15 23:12:43 +000022622$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022623
22624fi
22625
cristy8b350f62009-11-15 23:12:43 +000022626{ $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 +000022627$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022628if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022629 $as_echo_n "(cached) " >&6
22630else
cristy8b350f62009-11-15 23:12:43 +000022631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022632/* end confdefs.h. */
22633#include <sys/types.h>
22634#include <time.h>
22635
22636int
22637main ()
22638{
22639struct tm tm;
22640 int *p = &tm.tm_sec;
22641 return !p;
22642 ;
22643 return 0;
22644}
22645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 ac_cv_struct_tm=time.h
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022650fi
cristy3ed852e2009-09-05 21:47:34 +000022651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22652fi
cristy8b350f62009-11-15 23:12:43 +000022653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022654$as_echo "$ac_cv_struct_tm" >&6; }
22655if test $ac_cv_struct_tm = sys/time.h; then
22656
cristy8b350f62009-11-15 23:12:43 +000022657$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022658
22659fi
22660
cristy92703d82010-04-26 00:18:18 +000022661ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22662#include <$ac_cv_struct_tm>
22663
22664"
cristyda16f162011-02-19 23:52:17 +000022665if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022666
22667cat >>confdefs.h <<_ACEOF
22668#define HAVE_STRUCT_TM_TM_ZONE 1
22669_ACEOF
22670
22671
22672fi
22673
22674if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22675
22676$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22677
22678else
22679 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22680"
cristyda16f162011-02-19 23:52:17 +000022681if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022682 ac_have_decl=1
22683else
22684 ac_have_decl=0
22685fi
22686
22687cat >>confdefs.h <<_ACEOF
22688#define HAVE_DECL_TZNAME $ac_have_decl
22689_ACEOF
22690
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22692$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022693if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022694 $as_echo_n "(cached) " >&6
22695else
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697/* end confdefs.h. */
22698#include <time.h>
22699#if !HAVE_DECL_TZNAME
22700extern char *tzname[];
22701#endif
22702
22703int
22704main ()
22705{
22706return tzname[0][0];
22707 ;
22708 return 0;
22709}
22710_ACEOF
22711if ac_fn_c_try_link "$LINENO"; then :
22712 ac_cv_var_tzname=yes
22713else
22714 ac_cv_var_tzname=no
22715fi
22716rm -f core conftest.err conftest.$ac_objext \
22717 conftest$ac_exeext conftest.$ac_ext
22718fi
22719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22720$as_echo "$ac_cv_var_tzname" >&6; }
22721 if test $ac_cv_var_tzname = yes; then
22722
22723$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22724
22725 fi
22726fi
22727
cristy8b350f62009-11-15 23:12:43 +000022728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022729$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022730if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022731 $as_echo_n "(cached) " >&6
22732else
22733 echo '#! /bin/cat
22734exit 69
22735' >conftest
22736chmod u+x conftest
22737(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22738if test $? -ne 69; then
22739 ac_cv_sys_interpreter=yes
22740else
22741 ac_cv_sys_interpreter=no
22742fi
22743rm -f conftest
22744fi
cristy8b350f62009-11-15 23:12:43 +000022745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022746$as_echo "$ac_cv_sys_interpreter" >&6; }
22747interpval=$ac_cv_sys_interpreter
22748
22749
cristy3ed852e2009-09-05 21:47:34 +000022750# If the C compiler supports the keyword inline, do nothing. Otherwise
22751# define inline to __inline__ or __inline if it accepts one of those,
22752# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022754$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022755if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022756 $as_echo_n "(cached) " >&6
22757else
22758 ac_cv_c_inline=no
22759for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022761/* end confdefs.h. */
22762#ifndef __cplusplus
22763typedef int foo_t;
22764static $ac_kw foo_t static_foo () {return 0; }
22765$ac_kw foo_t foo () {return 0; }
22766#endif
22767
22768_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022769if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022770 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022771fi
cristy3ed852e2009-09-05 21:47:34 +000022772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22773 test "$ac_cv_c_inline" != no && break
22774done
22775
22776fi
cristy8b350f62009-11-15 23:12:43 +000022777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022778$as_echo "$ac_cv_c_inline" >&6; }
22779
cristy3ed852e2009-09-05 21:47:34 +000022780case $ac_cv_c_inline in
22781 inline | yes) ;;
22782 *)
22783 case $ac_cv_c_inline in
22784 no) ac_val=;;
22785 *) ac_val=$ac_cv_c_inline;;
22786 esac
22787 cat >>confdefs.h <<_ACEOF
22788#ifndef __cplusplus
22789#define inline $ac_val
22790#endif
22791_ACEOF
22792 ;;
22793esac
22794
22795
22796# If the C compiler supports the keyword restrict, do nothing. Otherwise
22797# define restrict to __restrict__ or __restrict if it accepts one of those,
22798# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022800$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022801if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022802 $as_echo_n "(cached) " >&6
22803else
22804 ac_cv_c_restrict=no
22805 # The order here caters to the fact that C++ does not require restrict.
22806 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022808/* end confdefs.h. */
22809typedef int * int_ptr;
22810 int foo (int_ptr $ac_kw ip) {
22811 return ip[0];
22812 }
22813int
22814main ()
22815{
22816int s[1];
22817 int * $ac_kw t = s;
22818 t[0] = 0;
22819 return foo(t)
22820 ;
22821 return 0;
22822}
22823_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022824if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022825 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022826fi
cristy3ed852e2009-09-05 21:47:34 +000022827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22828 test "$ac_cv_c_restrict" != no && break
22829 done
22830
22831fi
cristy8b350f62009-11-15 23:12:43 +000022832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022833$as_echo "$ac_cv_c_restrict" >&6; }
22834
cristy3ed852e2009-09-05 21:47:34 +000022835 case $ac_cv_c_restrict in
22836 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022837 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022838 ;;
22839 *) cat >>confdefs.h <<_ACEOF
22840#define restrict $ac_cv_c_restrict
22841_ACEOF
22842 ;;
22843 esac
22844
22845
22846# If words are stored with the most significant byte first (like
22847# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000022848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022849$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022850if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022851 $as_echo_n "(cached) " >&6
22852else
22853 ac_cv_c_bigendian=unknown
22854 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000022855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022856/* end confdefs.h. */
22857#ifndef __APPLE_CC__
22858 not a universal capable compiler
22859 #endif
22860 typedef int dummy;
22861
22862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022863if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022864
22865 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000022866 # there are at least two -arch flags with different values.
22867 ac_arch=
22868 ac_prev=
22869 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22870 if test -n "$ac_prev"; then
22871 case $ac_word in
22872 i?86 | x86_64 | ppc | ppc64)
22873 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22874 ac_arch=$ac_word
22875 else
22876 ac_cv_c_bigendian=universal
22877 break
22878 fi
22879 ;;
22880 esac
22881 ac_prev=
22882 elif test "x$ac_word" = "x-arch"; then
22883 ac_prev=arch
22884 fi
22885 done
cristy3ed852e2009-09-05 21:47:34 +000022886fi
cristy3ed852e2009-09-05 21:47:34 +000022887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 if test $ac_cv_c_bigendian = unknown; then
22889 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000022890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022891/* end confdefs.h. */
22892#include <sys/types.h>
22893 #include <sys/param.h>
22894
22895int
22896main ()
22897{
22898#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22899 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22900 && LITTLE_ENDIAN)
22901 bogus endian macros
22902 #endif
22903
22904 ;
22905 return 0;
22906}
22907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022908if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022909 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022911/* end confdefs.h. */
22912#include <sys/types.h>
22913 #include <sys/param.h>
22914
22915int
22916main ()
22917{
22918#if BYTE_ORDER != BIG_ENDIAN
22919 not big endian
22920 #endif
22921
22922 ;
22923 return 0;
22924}
22925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022927 ac_cv_c_bigendian=yes
22928else
cristy8b350f62009-11-15 23:12:43 +000022929 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022930fi
cristy3ed852e2009-09-05 21:47:34 +000022931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022932fi
cristy3ed852e2009-09-05 21:47:34 +000022933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22934 fi
22935 if test $ac_cv_c_bigendian = unknown; then
22936 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022938/* end confdefs.h. */
22939#include <limits.h>
22940
22941int
22942main ()
22943{
22944#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22945 bogus endian macros
22946 #endif
22947
22948 ;
22949 return 0;
22950}
22951_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022952if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022953 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022955/* end confdefs.h. */
22956#include <limits.h>
22957
22958int
22959main ()
22960{
22961#ifndef _BIG_ENDIAN
22962 not big endian
22963 #endif
22964
22965 ;
22966 return 0;
22967}
22968_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022969if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022970 ac_cv_c_bigendian=yes
22971else
cristy8b350f62009-11-15 23:12:43 +000022972 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022973fi
cristy3ed852e2009-09-05 21:47:34 +000022974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022975fi
cristy3ed852e2009-09-05 21:47:34 +000022976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 fi
22978 if test $ac_cv_c_bigendian = unknown; then
22979 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022980 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022981 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022983/* end confdefs.h. */
22984short int ascii_mm[] =
22985 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22986 short int ascii_ii[] =
22987 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22988 int use_ascii (int i) {
22989 return ascii_mm[i] + ascii_ii[i];
22990 }
22991 short int ebcdic_ii[] =
22992 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22993 short int ebcdic_mm[] =
22994 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22995 int use_ebcdic (int i) {
22996 return ebcdic_mm[i] + ebcdic_ii[i];
22997 }
22998 extern int foo;
22999
23000int
23001main ()
23002{
23003return use_ascii (foo) == use_ebcdic (foo);
23004 ;
23005 return 0;
23006}
23007_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023008if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023009 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23010 ac_cv_c_bigendian=yes
23011 fi
23012 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23013 if test "$ac_cv_c_bigendian" = unknown; then
23014 ac_cv_c_bigendian=no
23015 else
23016 # finding both strings is unlikely to happen, but who knows?
23017 ac_cv_c_bigendian=unknown
23018 fi
23019 fi
cristy3ed852e2009-09-05 21:47:34 +000023020fi
cristy3ed852e2009-09-05 21:47:34 +000023021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022else
cristy8b350f62009-11-15 23:12:43 +000023023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023024/* end confdefs.h. */
23025$ac_includes_default
23026int
23027main ()
23028{
23029
23030 /* Are we little or big endian? From Harbison&Steele. */
23031 union
23032 {
23033 long int l;
23034 char c[sizeof (long int)];
23035 } u;
23036 u.l = 1;
23037 return u.c[sizeof (long int) - 1] == 1;
23038
23039 ;
23040 return 0;
23041}
23042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023043if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023044 ac_cv_c_bigendian=no
23045else
cristy8b350f62009-11-15 23:12:43 +000023046 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023047fi
cristy8b350f62009-11-15 23:12:43 +000023048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23049 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023050fi
23051
cristy3ed852e2009-09-05 21:47:34 +000023052 fi
23053fi
cristy8b350f62009-11-15 23:12:43 +000023054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023055$as_echo "$ac_cv_c_bigendian" >&6; }
23056 case $ac_cv_c_bigendian in #(
23057 yes)
cristy8b350f62009-11-15 23:12:43 +000023058 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023059;; #(
23060 no)
23061 ;; #(
23062 universal)
23063
cristy8b350f62009-11-15 23:12:43 +000023064$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023065
23066 ;; #(
23067 *)
cristy98dddb52010-11-04 00:30:15 +000023068 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023069 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023070 esac
23071
23072
cristy501c8042011-05-26 17:46:28 +000023073# Define to a suitable type, if standard headers do not define it.
23074ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23075case $ac_cv_c_int8_t in #(
23076 no|yes) ;; #(
23077 *)
cristy3ed852e2009-09-05 21:47:34 +000023078
23079cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023080#define int8_t $ac_cv_c_int8_t
23081_ACEOF
23082;;
23083esac
23084
23085ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23086case $ac_cv_c_int16_t in #(
23087 no|yes) ;; #(
23088 *)
23089
23090cat >>confdefs.h <<_ACEOF
23091#define int16_t $ac_cv_c_int16_t
23092_ACEOF
23093;;
23094esac
23095
23096ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23097case $ac_cv_c_int32_t in #(
23098 no|yes) ;; #(
23099 *)
23100
23101cat >>confdefs.h <<_ACEOF
23102#define int32_t $ac_cv_c_int32_t
23103_ACEOF
23104;;
23105esac
23106
23107ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23108case $ac_cv_c_int64_t in #(
23109 no|yes) ;; #(
23110 *)
23111
23112cat >>confdefs.h <<_ACEOF
23113#define int64_t $ac_cv_c_int64_t
23114_ACEOF
23115;;
23116esac
23117
23118
23119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23120$as_echo_n "checking for long long int... " >&6; }
23121if ${ac_cv_type_long_long_int+:} false; then :
23122 $as_echo_n "(cached) " >&6
23123else
23124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23125/* end confdefs.h. */
23126
23127 /* For now, do not test the preprocessor; as of 2007 there are too many
23128 implementations with broken preprocessors. Perhaps this can
23129 be revisited in 2012. In the meantime, code should not expect
23130 #if to work with literals wider than 32 bits. */
23131 /* Test literals. */
23132 long long int ll = 9223372036854775807ll;
23133 long long int nll = -9223372036854775807LL;
23134 unsigned long long int ull = 18446744073709551615ULL;
23135 /* Test constant expressions. */
23136 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23137 ? 1 : -1)];
23138 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23139 ? 1 : -1)];
23140 int i = 63;
23141int
23142main ()
23143{
23144/* Test availability of runtime routines for shift and division. */
23145 long long int llmax = 9223372036854775807ll;
23146 unsigned long long int ullmax = 18446744073709551615ull;
23147 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23148 | (llmax / ll) | (llmax % ll)
23149 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23150 | (ullmax / ull) | (ullmax % ull));
23151 ;
23152 return 0;
23153}
23154
23155_ACEOF
23156if ac_fn_c_try_link "$LINENO"; then :
23157 if test "$cross_compiling" = yes; then :
23158 ac_cv_type_long_long_int=yes
23159else
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161/* end confdefs.h. */
23162#include <limits.h>
23163 #ifndef LLONG_MAX
23164 # define HALF \
23165 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23166 # define LLONG_MAX (HALF - 1 + HALF)
23167 #endif
23168int
23169main ()
23170{
23171long long int n = 1;
23172 int i;
23173 for (i = 0; ; i++)
23174 {
23175 long long int m = n << i;
23176 if (m >> i != n)
23177 return 1;
23178 if (LLONG_MAX / 2 < m)
23179 break;
23180 }
23181 return 0;
23182 ;
23183 return 0;
23184}
23185_ACEOF
23186if ac_fn_c_try_run "$LINENO"; then :
23187 ac_cv_type_long_long_int=yes
23188else
23189 ac_cv_type_long_long_int=no
23190fi
23191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23192 conftest.$ac_objext conftest.beam conftest.$ac_ext
23193fi
23194
23195else
23196 ac_cv_type_long_long_int=no
23197fi
23198rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23200fi
23201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23202$as_echo "$ac_cv_type_long_long_int" >&6; }
23203 if test $ac_cv_type_long_long_int = yes; then
23204
23205$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23206
23207 fi
23208
23209
23210
23211 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23212if test "x$ac_cv_type_intmax_t" = xyes; then :
23213
23214$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23215
23216else
23217 test $ac_cv_type_long_long_int = yes \
23218 && ac_type='long long int' \
23219 || ac_type='long int'
23220
23221cat >>confdefs.h <<_ACEOF
23222#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023223_ACEOF
23224
23225fi
23226
23227
cristy501c8042011-05-26 17:46:28 +000023228
23229 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23230if test "x$ac_cv_type_intptr_t" = xyes; then :
23231
23232$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023233
cristy3ed852e2009-09-05 21:47:34 +000023234else
cristy501c8042011-05-26 17:46:28 +000023235 for ac_type in 'int' 'long int' 'long long int'; do
23236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23237/* end confdefs.h. */
23238$ac_includes_default
23239int
23240main ()
23241{
23242static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23243test_array [0] = 0
23244
23245 ;
23246 return 0;
23247}
23248_ACEOF
23249if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023250
23251cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023252#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023253_ACEOF
23254
cristy501c8042011-05-26 17:46:28 +000023255 ac_type=
23256fi
23257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 test -z "$ac_type" && break
23259 done
cristy3ed852e2009-09-05 21:47:34 +000023260fi
23261
23262
cristy3ed852e2009-09-05 21:47:34 +000023263
cristy501c8042011-05-26 17:46:28 +000023264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23265$as_echo_n "checking for long double... " >&6; }
23266if ${ac_cv_type_long_double+:} false; then :
23267 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023268else
cristy501c8042011-05-26 17:46:28 +000023269 if test "$GCC" = yes; then
23270 ac_cv_type_long_double=yes
23271 else
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273/* end confdefs.h. */
23274/* The Stardent Vistra knows sizeof (long double), but does
23275 not support it. */
23276 long double foo = 0.0L;
23277int
23278main ()
23279{
23280static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23281 sizeof (double) <= sizeof (long double))];
23282test_array [0] = 0
cristy3ed852e2009-09-05 21:47:34 +000023283
cristy501c8042011-05-26 17:46:28 +000023284 ;
23285 return 0;
23286}
cristy3ed852e2009-09-05 21:47:34 +000023287_ACEOF
cristy501c8042011-05-26 17:46:28 +000023288if ac_fn_c_try_compile "$LINENO"; then :
23289 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023290else
cristy501c8042011-05-26 17:46:28 +000023291 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023292fi
cristy501c8042011-05-26 17:46:28 +000023293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294 fi
cristy3ed852e2009-09-05 21:47:34 +000023295fi
cristy501c8042011-05-26 17:46:28 +000023296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23297$as_echo "$ac_cv_type_long_double" >&6; }
23298 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023299
cristy501c8042011-05-26 17:46:28 +000023300$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023301
cristy501c8042011-05-26 17:46:28 +000023302 fi
23303
cristy3ed852e2009-09-05 21:47:34 +000023304
cristy8b350f62009-11-15 23:12:43 +000023305 { $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 +000023306$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023307if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023308 $as_echo_n "(cached) " >&6
23309else
cristy8b350f62009-11-15 23:12:43 +000023310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023311/* end confdefs.h. */
23312#include <float.h>
23313 long double const a[] =
23314 {
23315 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23316 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23317 };
23318 long double
23319 f (long double x)
23320 {
23321 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23322 + (x ? f (x) : 'c'));
23323 }
23324
23325int
23326main ()
23327{
23328static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23329 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23330 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23331 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23332 && (int) LDBL_EPSILON == 0
23333 )];
23334test_array [0] = 0
23335
23336 ;
23337 return 0;
23338}
23339_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023340if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023341 ac_cv_type_long_double_wider=yes
23342else
cristy8b350f62009-11-15 23:12:43 +000023343 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023344fi
cristy3ed852e2009-09-05 21:47:34 +000023345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346fi
cristy8b350f62009-11-15 23:12:43 +000023347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023348$as_echo "$ac_cv_type_long_double_wider" >&6; }
23349 if test $ac_cv_type_long_double_wider = yes; then
23350
cristy8b350f62009-11-15 23:12:43 +000023351$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023352
23353 fi
23354
23355
cristy501c8042011-05-26 17:46:28 +000023356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23357$as_echo_n "checking for long long int... " >&6; }
23358if ${ac_cv_type_long_long_int+:} false; then :
23359 $as_echo_n "(cached) " >&6
23360else
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362/* end confdefs.h. */
23363
23364 /* For now, do not test the preprocessor; as of 2007 there are too many
23365 implementations with broken preprocessors. Perhaps this can
23366 be revisited in 2012. In the meantime, code should not expect
23367 #if to work with literals wider than 32 bits. */
23368 /* Test literals. */
23369 long long int ll = 9223372036854775807ll;
23370 long long int nll = -9223372036854775807LL;
23371 unsigned long long int ull = 18446744073709551615ULL;
23372 /* Test constant expressions. */
23373 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23374 ? 1 : -1)];
23375 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23376 ? 1 : -1)];
23377 int i = 63;
23378int
23379main ()
23380{
23381/* Test availability of runtime routines for shift and division. */
23382 long long int llmax = 9223372036854775807ll;
23383 unsigned long long int ullmax = 18446744073709551615ull;
23384 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23385 | (llmax / ll) | (llmax % ll)
23386 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23387 | (ullmax / ull) | (ullmax % ull));
23388 ;
23389 return 0;
23390}
23391
23392_ACEOF
23393if ac_fn_c_try_link "$LINENO"; then :
23394 if test "$cross_compiling" = yes; then :
23395 ac_cv_type_long_long_int=yes
23396else
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398/* end confdefs.h. */
23399#include <limits.h>
23400 #ifndef LLONG_MAX
23401 # define HALF \
23402 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23403 # define LLONG_MAX (HALF - 1 + HALF)
23404 #endif
23405int
23406main ()
23407{
23408long long int n = 1;
23409 int i;
23410 for (i = 0; ; i++)
23411 {
23412 long long int m = n << i;
23413 if (m >> i != n)
23414 return 1;
23415 if (LLONG_MAX / 2 < m)
23416 break;
23417 }
23418 return 0;
23419 ;
23420 return 0;
23421}
23422_ACEOF
23423if ac_fn_c_try_run "$LINENO"; then :
23424 ac_cv_type_long_long_int=yes
23425else
23426 ac_cv_type_long_long_int=no
23427fi
23428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23429 conftest.$ac_objext conftest.beam conftest.$ac_ext
23430fi
23431
23432else
23433 ac_cv_type_long_long_int=no
23434fi
23435rm -f core conftest.err conftest.$ac_objext \
23436 conftest$ac_exeext conftest.$ac_ext
23437fi
23438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23439$as_echo "$ac_cv_type_long_long_int" >&6; }
23440 if test $ac_cv_type_long_long_int = yes; then
23441
23442$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23443
23444 fi
23445
23446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23447$as_echo_n "checking for mbstate_t... " >&6; }
23448if ${ac_cv_type_mbstate_t+:} false; then :
23449 $as_echo_n "(cached) " >&6
23450else
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452/* end confdefs.h. */
23453$ac_includes_default
23454# include <wchar.h>
23455int
23456main ()
23457{
23458mbstate_t x; return sizeof x;
23459 ;
23460 return 0;
23461}
23462_ACEOF
23463if ac_fn_c_try_compile "$LINENO"; then :
23464 ac_cv_type_mbstate_t=yes
23465else
23466 ac_cv_type_mbstate_t=no
23467fi
23468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23469fi
23470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23471$as_echo "$ac_cv_type_mbstate_t" >&6; }
23472 if test $ac_cv_type_mbstate_t = yes; then
23473
23474$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23475
23476 else
23477
23478$as_echo "#define mbstate_t int" >>confdefs.h
23479
23480 fi
23481ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23482if test "x$ac_cv_type_mode_t" = xyes; then :
23483
23484else
23485
23486cat >>confdefs.h <<_ACEOF
23487#define mode_t int
23488_ACEOF
23489
23490fi
23491
23492ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23493if test "x$ac_cv_type_off_t" = xyes; then :
23494
23495else
23496
23497cat >>confdefs.h <<_ACEOF
23498#define off_t long int
23499_ACEOF
23500
23501fi
23502
23503ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23504if test "x$ac_cv_type_pid_t" = xyes; then :
23505
23506else
23507
23508cat >>confdefs.h <<_ACEOF
23509#define pid_t int
23510_ACEOF
23511
23512fi
23513
23514ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23515if test "x$ac_cv_type_size_t" = xyes; then :
23516
23517else
23518
23519cat >>confdefs.h <<_ACEOF
23520#define size_t unsigned int
23521_ACEOF
23522
23523fi
23524
23525ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23526if test "x$ac_cv_type_ssize_t" = xyes; then :
23527
23528else
23529
23530cat >>confdefs.h <<_ACEOF
23531#define ssize_t int
23532_ACEOF
23533
23534fi
23535
23536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23537$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23538if ${ac_cv_type_uid_t+:} false; then :
23539 $as_echo_n "(cached) " >&6
23540else
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542/* end confdefs.h. */
23543#include <sys/types.h>
23544
23545_ACEOF
23546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23547 $EGREP "uid_t" >/dev/null 2>&1; then :
23548 ac_cv_type_uid_t=yes
23549else
23550 ac_cv_type_uid_t=no
23551fi
23552rm -f conftest*
23553
23554fi
23555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23556$as_echo "$ac_cv_type_uid_t" >&6; }
23557if test $ac_cv_type_uid_t = no; then
23558
23559$as_echo "#define uid_t int" >>confdefs.h
23560
23561
23562$as_echo "#define gid_t int" >>confdefs.h
23563
23564fi
23565
23566ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23567case $ac_cv_c_uint8_t in #(
23568 no|yes) ;; #(
23569 *)
23570
23571$as_echo "#define _UINT8_T 1" >>confdefs.h
23572
23573
23574cat >>confdefs.h <<_ACEOF
23575#define uint8_t $ac_cv_c_uint8_t
23576_ACEOF
23577;;
23578 esac
23579
23580ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23581case $ac_cv_c_uint16_t in #(
23582 no|yes) ;; #(
23583 *)
23584
23585
23586cat >>confdefs.h <<_ACEOF
23587#define uint16_t $ac_cv_c_uint16_t
23588_ACEOF
23589;;
23590 esac
23591
23592ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23593case $ac_cv_c_uint32_t in #(
23594 no|yes) ;; #(
23595 *)
23596
23597$as_echo "#define _UINT32_T 1" >>confdefs.h
23598
23599
23600cat >>confdefs.h <<_ACEOF
23601#define uint32_t $ac_cv_c_uint32_t
23602_ACEOF
23603;;
23604 esac
23605
23606ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23607case $ac_cv_c_uint64_t in #(
23608 no|yes) ;; #(
23609 *)
23610
23611$as_echo "#define _UINT64_T 1" >>confdefs.h
23612
23613
23614cat >>confdefs.h <<_ACEOF
23615#define uint64_t $ac_cv_c_uint64_t
23616_ACEOF
23617;;
23618 esac
23619
23620
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23622$as_echo_n "checking for unsigned long long int... " >&6; }
23623if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23624 $as_echo_n "(cached) " >&6
23625else
23626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23627/* end confdefs.h. */
23628
23629 /* For now, do not test the preprocessor; as of 2007 there are too many
23630 implementations with broken preprocessors. Perhaps this can
23631 be revisited in 2012. In the meantime, code should not expect
23632 #if to work with literals wider than 32 bits. */
23633 /* Test literals. */
23634 long long int ll = 9223372036854775807ll;
23635 long long int nll = -9223372036854775807LL;
23636 unsigned long long int ull = 18446744073709551615ULL;
23637 /* Test constant expressions. */
23638 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23639 ? 1 : -1)];
23640 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23641 ? 1 : -1)];
23642 int i = 63;
23643int
23644main ()
23645{
23646/* Test availability of runtime routines for shift and division. */
23647 long long int llmax = 9223372036854775807ll;
23648 unsigned long long int ullmax = 18446744073709551615ull;
23649 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23650 | (llmax / ll) | (llmax % ll)
23651 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23652 | (ullmax / ull) | (ullmax % ull));
23653 ;
23654 return 0;
23655}
23656
23657_ACEOF
23658if ac_fn_c_try_link "$LINENO"; then :
23659 ac_cv_type_unsigned_long_long_int=yes
23660else
23661 ac_cv_type_unsigned_long_long_int=no
23662fi
23663rm -f core conftest.err conftest.$ac_objext \
23664 conftest$ac_exeext conftest.$ac_ext
23665fi
23666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23667$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23668 if test $ac_cv_type_unsigned_long_long_int = yes; then
23669
23670$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23671
23672 fi
23673
23674
23675
23676 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23677if test "x$ac_cv_type_uintmax_t" = xyes; then :
23678
23679$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23680
23681else
23682 test $ac_cv_type_unsigned_long_long_int = yes \
23683 && ac_type='unsigned long long int' \
23684 || ac_type='unsigned long int'
23685
23686cat >>confdefs.h <<_ACEOF
23687#define uintmax_t $ac_type
23688_ACEOF
23689
23690fi
23691
23692
23693
23694 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23695if test "x$ac_cv_type_uintptr_t" = xyes; then :
23696
23697$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23698
23699else
23700 for ac_type in 'unsigned int' 'unsigned long int' \
23701 'unsigned long long int'; do
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703/* end confdefs.h. */
23704$ac_includes_default
23705int
23706main ()
23707{
23708static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23709test_array [0] = 0
23710
23711 ;
23712 return 0;
23713}
23714_ACEOF
23715if ac_fn_c_try_compile "$LINENO"; then :
23716
23717cat >>confdefs.h <<_ACEOF
23718#define uintptr_t $ac_type
23719_ACEOF
23720
23721 ac_type=
23722fi
23723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 test -z "$ac_type" && break
23725 done
23726fi
23727
23728
23729
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23731$as_echo_n "checking for unsigned long long int... " >&6; }
23732if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23733 $as_echo_n "(cached) " >&6
23734else
23735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23736/* end confdefs.h. */
23737
23738 /* For now, do not test the preprocessor; as of 2007 there are too many
23739 implementations with broken preprocessors. Perhaps this can
23740 be revisited in 2012. In the meantime, code should not expect
23741 #if to work with literals wider than 32 bits. */
23742 /* Test literals. */
23743 long long int ll = 9223372036854775807ll;
23744 long long int nll = -9223372036854775807LL;
23745 unsigned long long int ull = 18446744073709551615ULL;
23746 /* Test constant expressions. */
23747 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23748 ? 1 : -1)];
23749 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23750 ? 1 : -1)];
23751 int i = 63;
23752int
23753main ()
23754{
23755/* Test availability of runtime routines for shift and division. */
23756 long long int llmax = 9223372036854775807ll;
23757 unsigned long long int ullmax = 18446744073709551615ull;
23758 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23759 | (llmax / ll) | (llmax % ll)
23760 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23761 | (ullmax / ull) | (ullmax % ull));
23762 ;
23763 return 0;
23764}
23765
23766_ACEOF
23767if ac_fn_c_try_link "$LINENO"; then :
23768 ac_cv_type_unsigned_long_long_int=yes
23769else
23770 ac_cv_type_unsigned_long_long_int=no
23771fi
23772rm -f core conftest.err conftest.$ac_objext \
23773 conftest$ac_exeext conftest.$ac_ext
23774fi
23775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23776$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23777 if test $ac_cv_type_unsigned_long_long_int = yes; then
23778
23779$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23780
23781 fi
23782
23783
cristy3ed852e2009-09-05 21:47:34 +000023784# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23785# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023787$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023788if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023789 $as_echo_n "(cached) " >&6
23790else
cristy8b350f62009-11-15 23:12:43 +000023791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023792/* end confdefs.h. */
23793$ac_includes_default
23794int
23795main ()
23796{
23797static int test_array [1 - 2 * !(((char) -1) < 0)];
23798test_array [0] = 0
23799
23800 ;
23801 return 0;
23802}
23803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023804if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023805 ac_cv_c_char_unsigned=no
23806else
cristy8b350f62009-11-15 23:12:43 +000023807 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023808fi
cristy3ed852e2009-09-05 21:47:34 +000023809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810fi
cristy8b350f62009-11-15 23:12:43 +000023811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023812$as_echo "$ac_cv_c_char_unsigned" >&6; }
23813if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023814 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023815
23816fi
23817
23818
23819# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23820# The cast to long int works around a bug in the HP C Compiler
23821# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23822# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23823# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023825$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023826if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023827 $as_echo_n "(cached) " >&6
23828else
cristy8b350f62009-11-15 23:12:43 +000023829 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 +000023830
cristy3ed852e2009-09-05 21:47:34 +000023831else
cristy8b350f62009-11-15 23:12:43 +000023832 if test "$ac_cv_type_signed_short" = yes; then
23833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023835as_fn_error 77 "cannot compute sizeof (signed short)
23836See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023837 else
23838 ac_cv_sizeof_signed_short=0
23839 fi
23840fi
cristy8b350f62009-11-15 23:12:43 +000023841
cristy3ed852e2009-09-05 21:47:34 +000023842fi
cristy8b350f62009-11-15 23:12:43 +000023843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23845
23846
23847
23848cat >>confdefs.h <<_ACEOF
23849#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23850_ACEOF
23851
23852
23853
23854# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23855# The cast to long int works around a bug in the HP C Compiler
23856# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23857# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23858# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023860$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023861if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023862 $as_echo_n "(cached) " >&6
23863else
cristy8b350f62009-11-15 23:12:43 +000023864 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 +000023865
cristy3ed852e2009-09-05 21:47:34 +000023866else
cristy8b350f62009-11-15 23:12:43 +000023867 if test "$ac_cv_type_unsigned_short" = yes; then
23868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023870as_fn_error 77 "cannot compute sizeof (unsigned short)
23871See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023872 else
23873 ac_cv_sizeof_unsigned_short=0
23874 fi
23875fi
cristy8b350f62009-11-15 23:12:43 +000023876
cristy3ed852e2009-09-05 21:47:34 +000023877fi
cristy8b350f62009-11-15 23:12:43 +000023878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023879$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23880
23881
23882
23883cat >>confdefs.h <<_ACEOF
23884#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23885_ACEOF
23886
23887
23888
23889# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23890# The cast to long int works around a bug in the HP C Compiler
23891# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023895$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023896if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023897 $as_echo_n "(cached) " >&6
23898else
cristy8b350f62009-11-15 23:12:43 +000023899 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 +000023900
cristy3ed852e2009-09-05 21:47:34 +000023901else
cristy8b350f62009-11-15 23:12:43 +000023902 if test "$ac_cv_type_signed_int" = yes; then
23903 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023905as_fn_error 77 "cannot compute sizeof (signed int)
23906See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023907 else
23908 ac_cv_sizeof_signed_int=0
23909 fi
23910fi
cristy8b350f62009-11-15 23:12:43 +000023911
cristy3ed852e2009-09-05 21:47:34 +000023912fi
cristy8b350f62009-11-15 23:12:43 +000023913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023914$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23915
23916
23917
23918cat >>confdefs.h <<_ACEOF
23919#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23920_ACEOF
23921
23922
23923
23924# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23925# The cast to long int works around a bug in the HP C Compiler
23926# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23927# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23928# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023930$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023931if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023932 $as_echo_n "(cached) " >&6
23933else
cristy8b350f62009-11-15 23:12:43 +000023934 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 +000023935
cristy3ed852e2009-09-05 21:47:34 +000023936else
cristy8b350f62009-11-15 23:12:43 +000023937 if test "$ac_cv_type_unsigned_int" = yes; then
23938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023940as_fn_error 77 "cannot compute sizeof (unsigned int)
23941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023942 else
23943 ac_cv_sizeof_unsigned_int=0
23944 fi
23945fi
cristy8b350f62009-11-15 23:12:43 +000023946
cristy3ed852e2009-09-05 21:47:34 +000023947fi
cristy8b350f62009-11-15 23:12:43 +000023948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023949$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23950
23951
23952
23953cat >>confdefs.h <<_ACEOF
23954#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23955_ACEOF
23956
23957
23958
23959# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23960# The cast to long int works around a bug in the HP C Compiler
23961# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23962# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23963# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023965$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023966if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 $as_echo_n "(cached) " >&6
23968else
cristy8b350f62009-11-15 23:12:43 +000023969 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 +000023970
cristy3ed852e2009-09-05 21:47:34 +000023971else
cristy8b350f62009-11-15 23:12:43 +000023972 if test "$ac_cv_type_signed_long" = yes; then
23973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023975as_fn_error 77 "cannot compute sizeof (signed long)
23976See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023977 else
23978 ac_cv_sizeof_signed_long=0
23979 fi
23980fi
cristy8b350f62009-11-15 23:12:43 +000023981
cristy3ed852e2009-09-05 21:47:34 +000023982fi
cristy8b350f62009-11-15 23:12:43 +000023983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023984$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23985
23986
23987
23988cat >>confdefs.h <<_ACEOF
23989#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23990_ACEOF
23991
23992
23993
23994# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23995# The cast to long int works around a bug in the HP C Compiler
23996# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23997# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23998# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024000$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024001if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024002 $as_echo_n "(cached) " >&6
24003else
cristy8b350f62009-11-15 23:12:43 +000024004 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 +000024005
cristy3ed852e2009-09-05 21:47:34 +000024006else
cristy8b350f62009-11-15 23:12:43 +000024007 if test "$ac_cv_type_unsigned_long" = yes; then
24008 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024010as_fn_error 77 "cannot compute sizeof (unsigned long)
24011See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024012 else
24013 ac_cv_sizeof_unsigned_long=0
24014 fi
24015fi
cristy8b350f62009-11-15 23:12:43 +000024016
cristy3ed852e2009-09-05 21:47:34 +000024017fi
cristy8b350f62009-11-15 23:12:43 +000024018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024019$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24020
24021
24022
24023cat >>confdefs.h <<_ACEOF
24024#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24025_ACEOF
24026
24027
24028
24029# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24030# 'signed long long' is not supported then the value defined is zero.
24031# The cast to long int works around a bug in the HP C Compiler
24032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24034# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024036$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024037if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024038 $as_echo_n "(cached) " >&6
24039else
cristy8b350f62009-11-15 23:12:43 +000024040 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 +000024041
cristy3ed852e2009-09-05 21:47:34 +000024042else
cristy8b350f62009-11-15 23:12:43 +000024043 if test "$ac_cv_type_signed_long_long" = yes; then
24044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024046as_fn_error 77 "cannot compute sizeof (signed long long)
24047See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024048 else
24049 ac_cv_sizeof_signed_long_long=0
24050 fi
24051fi
cristy8b350f62009-11-15 23:12:43 +000024052
cristy3ed852e2009-09-05 21:47:34 +000024053fi
cristy8b350f62009-11-15 23:12:43 +000024054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024055$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24056
24057
24058
24059cat >>confdefs.h <<_ACEOF
24060#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24061_ACEOF
24062
24063
24064
24065# Obtain size of a 'unsigned long long' and define as
24066# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24067# supported then the value defined is zero.
24068# The cast to long int works around a bug in the HP C Compiler
24069# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24070# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24071# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024073$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024074if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024075 $as_echo_n "(cached) " >&6
24076else
cristy8b350f62009-11-15 23:12:43 +000024077 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 +000024078
cristy3ed852e2009-09-05 21:47:34 +000024079else
cristy8b350f62009-11-15 23:12:43 +000024080 if test "$ac_cv_type_unsigned_long_long" = yes; then
24081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024082$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024083as_fn_error 77 "cannot compute sizeof (unsigned long long)
24084See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024085 else
24086 ac_cv_sizeof_unsigned_long_long=0
24087 fi
24088fi
cristy8b350f62009-11-15 23:12:43 +000024089
cristy3ed852e2009-09-05 21:47:34 +000024090fi
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24093
24094
24095
24096cat >>confdefs.h <<_ACEOF
24097#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24098_ACEOF
24099
24100
24101
24102# Obtain size of off_t and define as SIZEOF_OFF_T
24103# The cast to long int works around a bug in the HP C Compiler
24104# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24105# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24106# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024108$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024109if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024110 $as_echo_n "(cached) " >&6
24111else
cristy8b350f62009-11-15 23:12:43 +000024112 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 +000024113
cristy3ed852e2009-09-05 21:47:34 +000024114else
cristy8b350f62009-11-15 23:12:43 +000024115 if test "$ac_cv_type_off_t" = yes; then
24116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024117$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024118as_fn_error 77 "cannot compute sizeof (off_t)
24119See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024120 else
24121 ac_cv_sizeof_off_t=0
24122 fi
24123fi
cristy8b350f62009-11-15 23:12:43 +000024124
cristy3ed852e2009-09-05 21:47:34 +000024125fi
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo "$ac_cv_sizeof_off_t" >&6; }
24128
24129
24130
24131cat >>confdefs.h <<_ACEOF
24132#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24133_ACEOF
24134
24135
24136
24137# Obtain size of size_t and define as SIZEOF_SIZE_T
24138# The cast to long int works around a bug in the HP C Compiler
24139# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24140# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24141# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024143$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024144if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024145 $as_echo_n "(cached) " >&6
24146else
cristy8b350f62009-11-15 23:12:43 +000024147 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 +000024148
cristy3ed852e2009-09-05 21:47:34 +000024149else
cristy8b350f62009-11-15 23:12:43 +000024150 if test "$ac_cv_type_size_t" = yes; then
24151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024153as_fn_error 77 "cannot compute sizeof (size_t)
24154See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024155 else
24156 ac_cv_sizeof_size_t=0
24157 fi
24158fi
cristy8b350f62009-11-15 23:12:43 +000024159
cristy3ed852e2009-09-05 21:47:34 +000024160fi
cristy8b350f62009-11-15 23:12:43 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo "$ac_cv_sizeof_size_t" >&6; }
24163
24164
24165
24166cat >>confdefs.h <<_ACEOF
24167#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24168_ACEOF
24169
24170
24171
cristy330e9352010-06-01 18:42:49 +000024172# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24173# The cast to long int works around a bug in the HP C Compiler
24174# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24175# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24176# This bug is HP SR number 8606223364.
24177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24178$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024179if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024180 $as_echo_n "(cached) " >&6
24181else
24182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24183
24184else
24185 if test "$ac_cv_type_ssize_t" = yes; then
24186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024188as_fn_error 77 "cannot compute sizeof (ssize_t)
24189See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024190 else
24191 ac_cv_sizeof_ssize_t=0
24192 fi
24193fi
24194
24195fi
24196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24197$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24198
24199
24200
24201cat >>confdefs.h <<_ACEOF
24202#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24203_ACEOF
24204
24205
24206
cristy3ed852e2009-09-05 21:47:34 +000024207# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24208# The cast to long int works around a bug in the HP C Compiler
24209# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24210# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24211# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024214if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 $as_echo_n "(cached) " >&6
24216else
cristy8b350f62009-11-15 23:12:43 +000024217 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 +000024218
cristy3ed852e2009-09-05 21:47:34 +000024219else
cristy8b350f62009-11-15 23:12:43 +000024220 if test "$ac_cv_type_unsigned_intp" = yes; then
24221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024223as_fn_error 77 "cannot compute sizeof (unsigned int*)
24224See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024225 else
24226 ac_cv_sizeof_unsigned_intp=0
24227 fi
24228fi
cristy8b350f62009-11-15 23:12:43 +000024229
cristy3ed852e2009-09-05 21:47:34 +000024230fi
cristy8b350f62009-11-15 23:12:43 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24233
24234
24235
24236cat >>confdefs.h <<_ACEOF
24237#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24238_ACEOF
24239
24240
24241
24242#
24243# Compute sized types for current CPU and compiler options.
24244#
24245
cristy8b350f62009-11-15 23:12:43 +000024246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024247$as_echo_n "checking for signed 8-bit type... " >&6; }
24248INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024249{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24250$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024251
24252
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24255UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024256{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24257$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024258
24259
cristy8b350f62009-11-15 23:12:43 +000024260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024261$as_echo_n "checking for signed 16-bit type... " >&6; }
24262INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024263{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24264$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024265
24266
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24269UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024270{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24271$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024272
24273
cristy8b350f62009-11-15 23:12:43 +000024274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024275$as_echo_n "checking for signed 32-bit type... " >&6; }
24276INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024277INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024278if test $ac_cv_sizeof_signed_int -eq 4; then
24279 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024280 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024281elif test $ac_cv_sizeof_signed_long -eq 4; then
24282 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024283 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024284fi
cristy09b53e12011-10-14 12:47:22 +000024285{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24286$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024287
24288
cristy6d5e20f2011-04-25 13:48:54 +000024289
cristy8b350f62009-11-15 23:12:43 +000024290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024291$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24292UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024293UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024294if test $ac_cv_sizeof_unsigned_int -eq 4; then
24295 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024296 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024297elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24298 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024299 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024300fi
cristy09b53e12011-10-14 12:47:22 +000024301{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24302$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024303
24304
cristy6d5e20f2011-04-25 13:48:54 +000024305
cristy8b350f62009-11-15 23:12:43 +000024306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024307$as_echo_n "checking for signed 64-bit type... " >&6; }
24308INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024309INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024310if test $ac_cv_sizeof_signed_long -eq 8; then
24311 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024312 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024313elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24314 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024315 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024316fi
cristy3a99dcf2011-12-17 01:29:40 +000024317case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024318 mingw* )
24319 INT64_F='"I64"'
24320 ;;
24321esac
cristy09b53e12011-10-14 12:47:22 +000024322{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24323$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024324
24325
cristy6d5e20f2011-04-25 13:48:54 +000024326
cristy8b350f62009-11-15 23:12:43 +000024327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024328$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24329UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024330UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024331if test $ac_cv_sizeof_unsigned_long -eq 8; then
24332 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024333 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024334elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24335 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024336 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024337fi
cristy3a99dcf2011-12-17 01:29:40 +000024338case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024339 mingw* )
24340 UINT64_F='"I64"'
24341 ;;
24342esac
cristy09b53e12011-10-14 12:47:22 +000024343{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24344$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024345
24346
cristy6d5e20f2011-04-25 13:48:54 +000024347
cristy8b350f62009-11-15 23:12:43 +000024348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo_n "checking for unsigned maximum type... " >&6; }
24350UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024351UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024352if test "$UINT64_T" != 'none'; then
24353 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024354 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024355elif test "$UINT32_T" != 'none'; then
24356 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024357 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024358fi
cristy09b53e12011-10-14 12:47:22 +000024359{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24360$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024361
24362
cristy6d5e20f2011-04-25 13:48:54 +000024363
cristy8b350f62009-11-15 23:12:43 +000024364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024365$as_echo_n "checking for pointer difference type... " >&6; }
24366UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024367UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024368if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24369 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024370 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024371elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24372 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024373 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024374fi
cristy09b53e12011-10-14 12:47:22 +000024375{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24376$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024377
24378
cristy6d5e20f2011-04-25 13:48:54 +000024379
cristy8b350f62009-11-15 23:12:43 +000024380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024381$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024383/* end confdefs.h. */
24384
24385int
24386main ()
24387{
24388{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24389 ;
24390 return 0;
24391}
24392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024393if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024394 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24395$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024396else
cristy09b53e12011-10-14 12:47:22 +000024397 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24398$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024400$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024402/* end confdefs.h. */
24403
24404int
24405main ()
24406{
24407{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24408 ;
24409 return 0;
24410}
24411_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024412if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024413 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24414$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024415
cristy8b350f62009-11-15 23:12:43 +000024416$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024417
24418else
cristy09b53e12011-10-14 12:47:22 +000024419 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24420$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024421
cristy8b350f62009-11-15 23:12:43 +000024422$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024423
24424fi
cristy3ed852e2009-09-05 21:47:34 +000024425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24426fi
cristy3ed852e2009-09-05 21:47:34 +000024427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24428
24429########
24430#
24431# Check for functions
24432#
24433########
cristy73bd4a52010-10-05 11:24:23 +000024434for ac_header in stdlib.h unistd.h
24435do :
24436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24437ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024439 cat >>confdefs.h <<_ACEOF
24440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24441_ACEOF
24442
24443fi
24444
24445done
24446
24447for ac_func in getpagesize
24448do :
24449 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024450if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024451 cat >>confdefs.h <<_ACEOF
24452#define HAVE_GETPAGESIZE 1
24453_ACEOF
24454
24455fi
24456done
24457
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24459$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024460if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024461 $as_echo_n "(cached) " >&6
24462else
24463 if test "$cross_compiling" = yes; then :
24464 magick_cv_func_mmap_fileio=no
24465else
24466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467/* end confdefs.h. */
24468$ac_includes_default
24469/* malloc might have been renamed as rpl_malloc. */
24470#undef malloc
24471
24472/*
24473 This test is derived from GNU Autoconf's similar macro.
24474 The purpose of this test is to verify that files may be memory
24475 mapped, and that memory mapping and file I/O are coherent.
24476
24477 The test creates a test file, memory maps the file, updates
24478 the file using the memory map, and then reads the file using
24479 file I/O to verify that the file contains the updates.
24480*/
24481
24482#include <fcntl.h>
24483#include <sys/mman.h>
24484
24485#if !STDC_HEADERS && !HAVE_STDLIB_H
24486char *malloc ();
24487#endif
24488
24489/* This mess was copied from the GNU getpagesize.h. */
24490#if !HAVE_GETPAGESIZE
24491/* Assume that all systems that can run configure have sys/param.h. */
24492# if !HAVE_SYS_PARAM_H
24493# define HAVE_SYS_PARAM_H 1
24494# endif
24495
24496# ifdef _SC_PAGESIZE
24497# define getpagesize() sysconf(_SC_PAGESIZE)
24498# else /* no _SC_PAGESIZE */
24499# if HAVE_SYS_PARAM_H
24500# include <sys/param.h>
24501# ifdef EXEC_PAGESIZE
24502# define getpagesize() EXEC_PAGESIZE
24503# else /* no EXEC_PAGESIZE */
24504# ifdef NBPG
24505# define getpagesize() NBPG * CLSIZE
24506# ifndef CLSIZE
24507# define CLSIZE 1
24508# endif /* no CLSIZE */
24509# else /* no NBPG */
24510# ifdef NBPC
24511# define getpagesize() NBPC
24512# else /* no NBPC */
24513# ifdef PAGESIZE
24514# define getpagesize() PAGESIZE
24515# endif /* PAGESIZE */
24516# endif /* no NBPC */
24517# endif /* no NBPG */
24518# endif /* no EXEC_PAGESIZE */
24519# else /* no HAVE_SYS_PARAM_H */
24520# define getpagesize() 8192 /* punt totally */
24521# endif /* no HAVE_SYS_PARAM_H */
24522# endif /* no _SC_PAGESIZE */
24523
24524#endif /* no HAVE_GETPAGESIZE */
24525
24526int
24527main ()
24528{
24529 char *data, *data2, *data3;
24530 int i, pagesize;
24531 int fd;
24532
24533 pagesize = getpagesize ();
24534
24535 /* First, make a file with some known garbage in it. */
24536 data = (char *) malloc (pagesize);
24537 if (!data)
24538 exit (1);
24539 for (i = 0; i < pagesize; ++i)
24540 *(data + i) = rand ();
24541 umask (0);
24542 fd = creat ("conftest.mmap", 0600);
24543 if (fd < 0)
24544 exit (1);
24545 if (write (fd, data, pagesize) != pagesize)
24546 exit (1);
24547 close (fd);
24548
24549 /* Mmap the file as read/write/shared and verify that we see the
24550 same garbage. */
24551 fd = open ("conftest.mmap", O_RDWR);
24552 if (fd < 0)
24553 exit (1);
24554 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24555 if (data2 == 0)
24556 exit (1);
24557 for (i = 0; i < pagesize; ++i)
24558 if (*(data + i) != *(data2 + i))
24559 exit (1);
24560
24561 /* Finally, make sure that changes to the mapped area
24562 percolate back to the file as seen by read(). */
24563 for (i = 0; i < pagesize; ++i)
24564 *(data2 + i) = *(data2 + i) + 1;
24565 data3 = (char *) malloc (pagesize);
24566 if (!data3)
24567 exit (1);
24568 if (read (fd, data3, pagesize) != pagesize)
24569 exit (1);
24570 for (i = 0; i < pagesize; ++i)
24571 if (*(data2 + i) != *(data3 + i))
24572 exit (1);
24573 close (fd);
24574 exit (0);
24575}
24576_ACEOF
24577if ac_fn_c_try_run "$LINENO"; then :
24578 magick_cv_func_mmap_fileio=yes
24579else
24580 magick_cv_func_mmap_fileio=no
24581fi
24582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24583 conftest.$ac_objext conftest.beam conftest.$ac_ext
24584fi
24585
24586fi
24587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24588$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24589if test $magick_cv_func_mmap_fileio = yes; then
24590
24591$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24592
24593fi
24594rm -f conftest.mmap
24595
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024598if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024599 $as_echo_n "(cached) " >&6
24600else
cristy8b350f62009-11-15 23:12:43 +000024601 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 ac_cv_func_closedir_void=yes
24603else
cristy8b350f62009-11-15 23:12:43 +000024604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024605/* end confdefs.h. */
24606$ac_includes_default
24607#include <$ac_header_dirent>
24608#ifndef __cplusplus
24609int closedir ();
24610#endif
24611
24612int
24613main ()
24614{
24615return closedir (opendir (".")) != 0;
24616 ;
24617 return 0;
24618}
24619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024620if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024621 ac_cv_func_closedir_void=no
24622else
cristy8b350f62009-11-15 23:12:43 +000024623 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024624fi
cristy8b350f62009-11-15 23:12:43 +000024625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24626 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024627fi
24628
cristy3ed852e2009-09-05 21:47:34 +000024629fi
cristy8b350f62009-11-15 23:12:43 +000024630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024631$as_echo "$ac_cv_func_closedir_void" >&6; }
24632if test $ac_cv_func_closedir_void = yes; then
24633
cristy8b350f62009-11-15 23:12:43 +000024634$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024635
24636fi
24637
cristycd4c5312009-11-22 01:19:08 +000024638
24639
24640
24641 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024642do :
24643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024644ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24645"
cristy98dddb52010-11-04 00:30:15 +000024646if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024647 cat >>confdefs.h <<_ACEOF
24648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24649_ACEOF
24650
24651fi
24652
24653done
24654
cristycd4c5312009-11-22 01:19:08 +000024655
24656
24657
24658
24659
24660
24661
cristy3ed852e2009-09-05 21:47:34 +000024662for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024663do :
24664 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024665if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024666 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024667#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024668_ACEOF
24669
24670fi
24671done
24672
cristy8b350f62009-11-15 23:12:43 +000024673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024674$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024675if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024676 $as_echo_n "(cached) " >&6
24677else
cristy8b350f62009-11-15 23:12:43 +000024678 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024679 ac_cv_func_mmap_fixed_mapped=no
24680else
cristy8b350f62009-11-15 23:12:43 +000024681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024682/* end confdefs.h. */
24683$ac_includes_default
24684/* malloc might have been renamed as rpl_malloc. */
24685#undef malloc
24686
24687/* Thanks to Mike Haertel and Jim Avera for this test.
24688 Here is a matrix of mmap possibilities:
24689 mmap private not fixed
24690 mmap private fixed at somewhere currently unmapped
24691 mmap private fixed at somewhere already mapped
24692 mmap shared not fixed
24693 mmap shared fixed at somewhere currently unmapped
24694 mmap shared fixed at somewhere already mapped
24695 For private mappings, we should verify that changes cannot be read()
24696 back from the file, nor mmap's back from the file at a different
24697 address. (There have been systems where private was not correctly
24698 implemented like the infamous i386 svr4.0, and systems where the
24699 VM page cache was not coherent with the file system buffer cache
24700 like early versions of FreeBSD and possibly contemporary NetBSD.)
24701 For shared mappings, we should conversely verify that changes get
24702 propagated back to all the places they're supposed to be.
24703
24704 Grep wants private fixed already mapped.
24705 The main things grep needs to know about mmap are:
24706 * does it exist and is it safe to write into the mmap'd area
24707 * how to use it (BSD variants) */
24708
24709#include <fcntl.h>
24710#include <sys/mman.h>
24711
24712#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24713char *malloc ();
24714#endif
24715
24716/* This mess was copied from the GNU getpagesize.h. */
24717#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024718# ifdef _SC_PAGESIZE
24719# define getpagesize() sysconf(_SC_PAGESIZE)
24720# else /* no _SC_PAGESIZE */
24721# ifdef HAVE_SYS_PARAM_H
24722# include <sys/param.h>
24723# ifdef EXEC_PAGESIZE
24724# define getpagesize() EXEC_PAGESIZE
24725# else /* no EXEC_PAGESIZE */
24726# ifdef NBPG
24727# define getpagesize() NBPG * CLSIZE
24728# ifndef CLSIZE
24729# define CLSIZE 1
24730# endif /* no CLSIZE */
24731# else /* no NBPG */
24732# ifdef NBPC
24733# define getpagesize() NBPC
24734# else /* no NBPC */
24735# ifdef PAGESIZE
24736# define getpagesize() PAGESIZE
24737# endif /* PAGESIZE */
24738# endif /* no NBPC */
24739# endif /* no NBPG */
24740# endif /* no EXEC_PAGESIZE */
24741# else /* no HAVE_SYS_PARAM_H */
24742# define getpagesize() 8192 /* punt totally */
24743# endif /* no HAVE_SYS_PARAM_H */
24744# endif /* no _SC_PAGESIZE */
24745
24746#endif /* no HAVE_GETPAGESIZE */
24747
24748int
24749main ()
24750{
24751 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024752 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024753 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024754 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024755
24756 pagesize = getpagesize ();
24757
24758 /* First, make a file with some known garbage in it. */
24759 data = (char *) malloc (pagesize);
24760 if (!data)
24761 return 1;
24762 for (i = 0; i < pagesize; ++i)
24763 *(data + i) = rand ();
24764 umask (0);
24765 fd = creat ("conftest.mmap", 0600);
24766 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024767 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024768 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024769 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024770 close (fd);
24771
cristycd4c5312009-11-22 01:19:08 +000024772 /* Next, check that the tail of a page is zero-filled. File must have
24773 non-zero length, otherwise we risk SIGBUS for entire page. */
24774 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24775 if (fd2 < 0)
24776 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024777 cdata2 = "";
24778 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024779 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024780 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024781 if (data2 == MAP_FAILED)
24782 return 6;
24783 for (i = 0; i < pagesize; ++i)
24784 if (*(data2 + i))
24785 return 7;
24786 close (fd2);
24787 if (munmap (data2, pagesize))
24788 return 8;
24789
cristy3ed852e2009-09-05 21:47:34 +000024790 /* Next, try to mmap the file at a fixed address which already has
24791 something else allocated at it. If we can, also make sure that
24792 we see the same garbage. */
24793 fd = open ("conftest.mmap", O_RDWR);
24794 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024795 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024796 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24797 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024798 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024799 for (i = 0; i < pagesize; ++i)
24800 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024801 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024802
24803 /* Finally, make sure that changes to the mapped area do not
24804 percolate back to the file as seen by read(). (This is a bug on
24805 some variants of i386 svr4.0.) */
24806 for (i = 0; i < pagesize; ++i)
24807 *(data2 + i) = *(data2 + i) + 1;
24808 data3 = (char *) malloc (pagesize);
24809 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024810 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024811 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024812 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024813 for (i = 0; i < pagesize; ++i)
24814 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024815 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024816 close (fd);
24817 return 0;
24818}
24819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024820if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024821 ac_cv_func_mmap_fixed_mapped=yes
24822else
cristy8b350f62009-11-15 23:12:43 +000024823 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024824fi
cristy8b350f62009-11-15 23:12:43 +000024825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24826 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024827fi
24828
cristy3ed852e2009-09-05 21:47:34 +000024829fi
cristy8b350f62009-11-15 23:12:43 +000024830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024831$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24832if test $ac_cv_func_mmap_fixed_mapped = yes; then
24833
cristy8b350f62009-11-15 23:12:43 +000024834$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024835
24836fi
cristycd4c5312009-11-22 01:19:08 +000024837rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024838
cristy3ed852e2009-09-05 21:47:34 +000024839for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024840do :
24841 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024842if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024843 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024844#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024845_ACEOF
24846
24847fi
24848
24849done
24850
cristy3ed852e2009-09-05 21:47:34 +000024851for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024852do :
24853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24854ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024855if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024856 cat >>confdefs.h <<_ACEOF
24857#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24858_ACEOF
24859
24860fi
24861done
24862
24863if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024865$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024866if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024867 $as_echo_n "(cached) " >&6
24868else
cristy8b350f62009-11-15 23:12:43 +000024869 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024870 ac_cv_func_fork_works=cross
24871else
cristy8b350f62009-11-15 23:12:43 +000024872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024873/* end confdefs.h. */
24874$ac_includes_default
24875int
24876main ()
24877{
24878
24879 /* By Ruediger Kuhlmann. */
24880 return fork () < 0;
24881
24882 ;
24883 return 0;
24884}
24885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024886if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024887 ac_cv_func_fork_works=yes
24888else
cristy8b350f62009-11-15 23:12:43 +000024889 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024890fi
cristy8b350f62009-11-15 23:12:43 +000024891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24892 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024893fi
24894
cristy3ed852e2009-09-05 21:47:34 +000024895fi
cristy8b350f62009-11-15 23:12:43 +000024896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024897$as_echo "$ac_cv_func_fork_works" >&6; }
24898
24899else
24900 ac_cv_func_fork_works=$ac_cv_func_fork
24901fi
24902if test "x$ac_cv_func_fork_works" = xcross; then
24903 case $host in
24904 *-*-amigaos* | *-*-msdosdjgpp*)
24905 # Override, as these systems have only a dummy fork() stub
24906 ac_cv_func_fork_works=no
24907 ;;
24908 *)
24909 ac_cv_func_fork_works=yes
24910 ;;
24911 esac
cristy8b350f62009-11-15 23:12:43 +000024912 { $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 +000024913$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24914fi
24915ac_cv_func_vfork_works=$ac_cv_func_vfork
24916if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024918$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024919if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024920 $as_echo_n "(cached) " >&6
24921else
cristy8b350f62009-11-15 23:12:43 +000024922 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024923 ac_cv_func_vfork_works=cross
24924else
cristy8b350f62009-11-15 23:12:43 +000024925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024926/* end confdefs.h. */
24927/* Thanks to Paul Eggert for this test. */
24928$ac_includes_default
24929#include <sys/wait.h>
24930#ifdef HAVE_VFORK_H
24931# include <vfork.h>
24932#endif
24933/* On some sparc systems, changes by the child to local and incoming
24934 argument registers are propagated back to the parent. The compiler
24935 is told about this with #include <vfork.h>, but some compilers
24936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24937 static variable whose address is put into a register that is
24938 clobbered by the vfork. */
24939static void
24940#ifdef __cplusplus
24941sparc_address_test (int arg)
24942# else
24943sparc_address_test (arg) int arg;
24944#endif
24945{
24946 static pid_t child;
24947 if (!child) {
24948 child = vfork ();
24949 if (child < 0) {
24950 perror ("vfork");
24951 _exit(2);
24952 }
24953 if (!child) {
24954 arg = getpid();
24955 write(-1, "", 0);
24956 _exit (arg);
24957 }
24958 }
24959}
24960
24961int
24962main ()
24963{
24964 pid_t parent = getpid ();
24965 pid_t child;
24966
24967 sparc_address_test (0);
24968
24969 child = vfork ();
24970
24971 if (child == 0) {
24972 /* Here is another test for sparc vfork register problems. This
24973 test uses lots of local variables, at least as many local
24974 variables as main has allocated so far including compiler
24975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24977 reuse the register of parent for one of the local variables,
24978 since it will think that parent can't possibly be used any more
24979 in this routine. Assigning to the local variable will thus
24980 munge parent in the parent process. */
24981 pid_t
24982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24984 /* Convince the compiler that p..p7 are live; otherwise, it might
24985 use the same hardware register for all 8 local variables. */
24986 if (p != p1 || p != p2 || p != p3 || p != p4
24987 || p != p5 || p != p6 || p != p7)
24988 _exit(1);
24989
24990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24991 from child file descriptors. If the child closes a descriptor
24992 before it execs or exits, this munges the parent's descriptor
24993 as well. Test for this by closing stdout in the child. */
24994 _exit(close(fileno(stdout)) != 0);
24995 } else {
24996 int status;
24997 struct stat st;
24998
24999 while (wait(&status) != child)
25000 ;
25001 return (
25002 /* Was there some problem with vforking? */
25003 child < 0
25004
25005 /* Did the child fail? (This shouldn't happen.) */
25006 || status
25007
25008 /* Did the vfork/compiler bug occur? */
25009 || parent != getpid()
25010
25011 /* Did the file descriptor bug occur? */
25012 || fstat(fileno(stdout), &st) != 0
25013 );
25014 }
25015}
25016_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025017if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025018 ac_cv_func_vfork_works=yes
25019else
cristy8b350f62009-11-15 23:12:43 +000025020 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025021fi
cristy8b350f62009-11-15 23:12:43 +000025022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25023 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025024fi
25025
cristy3ed852e2009-09-05 21:47:34 +000025026fi
cristy8b350f62009-11-15 23:12:43 +000025027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025028$as_echo "$ac_cv_func_vfork_works" >&6; }
25029
25030fi;
25031if test "x$ac_cv_func_fork_works" = xcross; then
25032 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025033 { $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 +000025034$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25035fi
25036
25037if test "x$ac_cv_func_vfork_works" = xyes; then
25038
cristy8b350f62009-11-15 23:12:43 +000025039$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025040
25041else
25042
cristy8b350f62009-11-15 23:12:43 +000025043$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025044
25045fi
25046if test "x$ac_cv_func_fork_works" = xyes; then
25047
cristy8b350f62009-11-15 23:12:43 +000025048$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025049
25050fi
25051
cristy8b350f62009-11-15 23:12:43 +000025052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025053$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025054if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025055 $as_echo_n "(cached) " >&6
25056else
cristy8b350f62009-11-15 23:12:43 +000025057 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025058 ac_cv_func_memcmp_working=no
25059else
cristy8b350f62009-11-15 23:12:43 +000025060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025061/* end confdefs.h. */
25062$ac_includes_default
25063int
25064main ()
25065{
25066
25067 /* Some versions of memcmp are not 8-bit clean. */
25068 char c0 = '\100', c1 = '\200', c2 = '\201';
25069 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25070 return 1;
25071
25072 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25073 or more and with at least one buffer not starting on a 4-byte boundary.
25074 William Lewis provided this test program. */
25075 {
25076 char foo[21];
25077 char bar[21];
25078 int i;
25079 for (i = 0; i < 4; i++)
25080 {
25081 char *a = foo + i;
25082 char *b = bar + i;
25083 strcpy (a, "--------01111111");
25084 strcpy (b, "--------10000000");
25085 if (memcmp (a, b, 16) >= 0)
25086 return 1;
25087 }
25088 return 0;
25089 }
25090
25091 ;
25092 return 0;
25093}
25094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025095if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025096 ac_cv_func_memcmp_working=yes
25097else
cristy8b350f62009-11-15 23:12:43 +000025098 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025099fi
cristy8b350f62009-11-15 23:12:43 +000025100rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25101 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025102fi
25103
cristy3ed852e2009-09-05 21:47:34 +000025104fi
cristy8b350f62009-11-15 23:12:43 +000025105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025106$as_echo "$ac_cv_func_memcmp_working" >&6; }
25107test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25108 *" memcmp.$ac_objext "* ) ;;
25109 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25110 ;;
25111esac
25112
25113
cristy3ed852e2009-09-05 21:47:34 +000025114for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025115do :
25116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25117ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025119 cat >>confdefs.h <<_ACEOF
25120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25121_ACEOF
25122
25123fi
25124
25125done
25126
cristy8b350f62009-11-15 23:12:43 +000025127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025128$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025129if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025130 $as_echo_n "(cached) " >&6
25131else
25132 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25133 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25134 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025136/* end confdefs.h. */
25137$ac_includes_default
25138#ifdef HAVE_SYS_SELECT_H
25139# include <sys/select.h>
25140#endif
25141#ifdef HAVE_SYS_SOCKET_H
25142# include <sys/socket.h>
25143#endif
25144
25145int
25146main ()
25147{
25148extern int select ($ac_arg1,
25149 $ac_arg234, $ac_arg234, $ac_arg234,
25150 $ac_arg5);
25151 ;
25152 return 0;
25153}
25154_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025155if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025156 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025157fi
cristy3ed852e2009-09-05 21:47:34 +000025158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25159 done
25160 done
25161done
25162# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025163: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025164
25165fi
cristy8b350f62009-11-15 23:12:43 +000025166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025167$as_echo "$ac_cv_func_select_args" >&6; }
25168ac_save_IFS=$IFS; IFS=','
25169set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25170IFS=$ac_save_IFS
25171shift
25172
25173cat >>confdefs.h <<_ACEOF
25174#define SELECT_TYPE_ARG1 $1
25175_ACEOF
25176
25177
25178cat >>confdefs.h <<_ACEOF
25179#define SELECT_TYPE_ARG234 ($2)
25180_ACEOF
25181
25182
25183cat >>confdefs.h <<_ACEOF
25184#define SELECT_TYPE_ARG5 ($3)
25185_ACEOF
25186
25187rm -f conftest*
25188
cristyda16f162011-02-19 23:52:17 +000025189if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025190 $as_echo_n "(cached) " >&6
25191else
25192 ac_cv_func_setvbuf_reversed=no
25193fi
25194
25195
cristy8b350f62009-11-15 23:12:43 +000025196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025197$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025198if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025199 $as_echo_n "(cached) " >&6
25200else
cristy8b350f62009-11-15 23:12:43 +000025201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025202/* end confdefs.h. */
25203#include <sys/types.h>
25204#include <signal.h>
25205
25206int
25207main ()
25208{
25209return *(signal (0, 0)) (0) == 1;
25210 ;
25211 return 0;
25212}
25213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025214if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025215 ac_cv_type_signal=int
25216else
cristy8b350f62009-11-15 23:12:43 +000025217 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025218fi
cristy3ed852e2009-09-05 21:47:34 +000025219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220fi
cristy8b350f62009-11-15 23:12:43 +000025221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025222$as_echo "$ac_cv_type_signal" >&6; }
25223
25224cat >>confdefs.h <<_ACEOF
25225#define RETSIGTYPE $ac_cv_type_signal
25226_ACEOF
25227
25228
cristy8b350f62009-11-15 23:12:43 +000025229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025230$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025231if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025232 $as_echo_n "(cached) " >&6
25233else
cristy8b350f62009-11-15 23:12:43 +000025234 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025235 ac_cv_func_strtod=no
25236else
cristy8b350f62009-11-15 23:12:43 +000025237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025238/* end confdefs.h. */
25239
25240$ac_includes_default
25241#ifndef strtod
25242double strtod ();
25243#endif
25244int
25245main()
25246{
25247 {
25248 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25249 char *string = " +69";
25250 char *term;
25251 double value;
25252 value = strtod (string, &term);
25253 if (value != 69 || term != (string + 4))
25254 return 1;
25255 }
25256
25257 {
25258 /* Under Solaris 2.4, strtod returns the wrong value for the
25259 terminating character under some conditions. */
25260 char *string = "NaN";
25261 char *term;
25262 strtod (string, &term);
25263 if (term != string && *(term - 1) == 0)
25264 return 1;
25265 }
25266 return 0;
25267}
25268
25269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025270if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025271 ac_cv_func_strtod=yes
25272else
cristy8b350f62009-11-15 23:12:43 +000025273 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025274fi
cristy8b350f62009-11-15 23:12:43 +000025275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25276 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025277fi
25278
cristy3ed852e2009-09-05 21:47:34 +000025279fi
cristy8b350f62009-11-15 23:12:43 +000025280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025281$as_echo "$ac_cv_func_strtod" >&6; }
25282if test $ac_cv_func_strtod = no; then
25283 case " $LIBOBJS " in
25284 *" strtod.$ac_objext "* ) ;;
25285 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25286 ;;
25287esac
25288
cristy8b350f62009-11-15 23:12:43 +000025289ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025290if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025291
cristy3ed852e2009-09-05 21:47:34 +000025292fi
25293
cristy3ed852e2009-09-05 21:47:34 +000025294if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025296$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025297if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025298 $as_echo_n "(cached) " >&6
25299else
25300 ac_check_lib_save_LIBS=$LIBS
25301LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025303/* end confdefs.h. */
25304
25305/* Override any GCC internal prototype to avoid an error.
25306 Use char because int might match the return type of a GCC
25307 builtin and then its argument prototype would still apply. */
25308#ifdef __cplusplus
25309extern "C"
25310#endif
25311char pow ();
25312int
25313main ()
25314{
25315return pow ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025320if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025321 ac_cv_lib_m_pow=yes
25322else
cristy8b350f62009-11-15 23:12:43 +000025323 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025324fi
cristy8b350f62009-11-15 23:12:43 +000025325rm -f core conftest.err conftest.$ac_objext \
25326 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025327LIBS=$ac_check_lib_save_LIBS
25328fi
cristy8b350f62009-11-15 23:12:43 +000025329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025331if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025332 POW_LIB=-lm
25333else
cristy8b350f62009-11-15 23:12:43 +000025334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025335$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25336fi
25337
25338fi
25339
25340fi
25341
cristy7d4a1d62011-10-13 15:54:12 +000025342ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25343if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25344 ac_have_decl=1
25345else
25346 ac_have_decl=0
25347fi
25348
25349cat >>confdefs.h <<_ACEOF
25350#define HAVE_DECL_STRERROR_R $ac_have_decl
25351_ACEOF
25352
25353for ac_func in strerror_r
25354do :
25355 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25356if test "x$ac_cv_func_strerror_r" = xyes; then :
25357 cat >>confdefs.h <<_ACEOF
25358#define HAVE_STRERROR_R 1
25359_ACEOF
25360
25361fi
25362done
25363
25364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25365$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25366if ${ac_cv_func_strerror_r_char_p+:} false; then :
25367 $as_echo_n "(cached) " >&6
25368else
25369
25370 ac_cv_func_strerror_r_char_p=no
25371 if test $ac_cv_have_decl_strerror_r = yes; then
25372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25373/* end confdefs.h. */
25374$ac_includes_default
25375int
25376main ()
25377{
25378
25379 char buf[100];
25380 char x = *strerror_r (0, buf, sizeof buf);
25381 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025382 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025383
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388if ac_fn_c_try_compile "$LINENO"; then :
25389 ac_cv_func_strerror_r_char_p=yes
25390fi
25391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392 else
25393 # strerror_r is not declared. Choose between
25394 # systems that have relatively inaccessible declarations for the
25395 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25396 # former has a strerror_r that returns char*, while the latter
25397 # has a strerror_r that returns `int'.
25398 # This test should segfault on the DEC system.
25399 if test "$cross_compiling" = yes; then :
25400 :
25401else
25402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25403/* end confdefs.h. */
25404$ac_includes_default
25405 extern char *strerror_r ();
25406int
25407main ()
25408{
25409char buf[100];
25410 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025411 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025412 ;
25413 return 0;
25414}
25415_ACEOF
25416if ac_fn_c_try_run "$LINENO"; then :
25417 ac_cv_func_strerror_r_char_p=yes
25418fi
25419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25420 conftest.$ac_objext conftest.beam conftest.$ac_ext
25421fi
25422
25423 fi
25424
25425fi
25426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25427$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25428if test $ac_cv_func_strerror_r_char_p = yes; then
25429
25430$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25431
25432fi
25433
cristy3ed852e2009-09-05 21:47:34 +000025434for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025435do :
25436 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025437if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025438 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025439#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025440_ACEOF
25441
cristy8b350f62009-11-15 23:12:43 +000025442ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025443if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025444
cristy8b350f62009-11-15 23:12:43 +000025445$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025446
25447fi
25448
25449fi
25450done
25451
25452
25453
cristy161b9262010-03-20 19:34:32 +000025454#
25455# Find math library
25456#
25457MATH_LIBS=''
25458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25459$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025460if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025461 $as_echo_n "(cached) " >&6
25462else
25463 ac_check_lib_save_LIBS=$LIBS
25464LIBS="-lm $LIBS"
25465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466/* end confdefs.h. */
25467
25468/* Override any GCC internal prototype to avoid an error.
25469 Use char because int might match the return type of a GCC
25470 builtin and then its argument prototype would still apply. */
25471#ifdef __cplusplus
25472extern "C"
25473#endif
25474char sqrt ();
25475int
25476main ()
25477{
25478return sqrt ();
25479 ;
25480 return 0;
25481}
25482_ACEOF
25483if ac_fn_c_try_link "$LINENO"; then :
25484 ac_cv_lib_m_sqrt=yes
25485else
25486 ac_cv_lib_m_sqrt=no
25487fi
25488rm -f core conftest.err conftest.$ac_objext \
25489 conftest$ac_exeext conftest.$ac_ext
25490LIBS=$ac_check_lib_save_LIBS
25491fi
25492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25493$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025494if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025495 MATH_LIBS="-lm"
25496fi
25497
25498LIBS="$MATH_LIBS $LIBS"
25499
25500
cristy82b20722011-11-05 21:52:36 +000025501for 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 +000025502do :
25503 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25504ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025505if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025506 cat >>confdefs.h <<_ACEOF
25507#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25508_ACEOF
25509
25510fi
25511done
25512
25513
cristye43a45e2009-09-28 14:49:00 +000025514#
25515# Check for clock_gettime().
25516#
cristy8b350f62009-11-15 23:12:43 +000025517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025518$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025519if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025520 $as_echo_n "(cached) " >&6
25521else
25522 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025524/* end confdefs.h. */
25525
25526/* Override any GCC internal prototype to avoid an error.
25527 Use char because int might match the return type of a GCC
25528 builtin and then its argument prototype would still apply. */
25529#ifdef __cplusplus
25530extern "C"
25531#endif
25532char clock_gettime ();
25533int
25534main ()
25535{
25536return clock_gettime ();
25537 ;
25538 return 0;
25539}
25540_ACEOF
25541for ac_lib in '' rt; do
25542 if test -z "$ac_lib"; then
25543 ac_res="none required"
25544 else
25545 ac_res=-l$ac_lib
25546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25547 fi
cristy8b350f62009-11-15 23:12:43 +000025548 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025549 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025550fi
cristy8b350f62009-11-15 23:12:43 +000025551rm -f core conftest.err conftest.$ac_objext \
25552 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025553 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025554 break
25555fi
25556done
cristyda16f162011-02-19 23:52:17 +000025557if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025558
cristye43a45e2009-09-28 14:49:00 +000025559else
25560 ac_cv_search_clock_gettime=no
25561fi
25562rm conftest.$ac_ext
25563LIBS=$ac_func_search_save_LIBS
25564fi
cristy8b350f62009-11-15 23:12:43 +000025565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025566$as_echo "$ac_cv_search_clock_gettime" >&6; }
25567ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025568if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25570
25571
cristy8b350f62009-11-15 23:12:43 +000025572$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025573
cristy8b350f62009-11-15 23:12:43 +000025574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025575$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025577/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025578
25579 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025580int
25581main ()
25582{
25583clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025584 ;
25585 return 0;
25586}
25587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025588if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025589
cristy09b53e12011-10-14 12:47:22 +000025590 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25591$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025592
cristy8b350f62009-11-15 23:12:43 +000025593$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025594
25595
25596else
cristy09b53e12011-10-14 12:47:22 +000025597 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25598$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025599
25600fi
cristye43a45e2009-09-28 14:49:00 +000025601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602
25603else
25604
cristy8b350f62009-11-15 23:12:43 +000025605 for ac_func in gettimeofday ftime
25606do :
25607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25608ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025609if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025610 cat >>confdefs.h <<_ACEOF
25611#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25612_ACEOF
25613 break
25614fi
25615done
25616
25617
25618
25619fi
25620
25621
cristy3ed852e2009-09-05 21:47:34 +000025622########
25623#
25624# Check for function prototypes
25625#
25626########
25627
cristy8b350f62009-11-15 23:12:43 +000025628ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025629#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025630"
cristyda16f162011-02-19 23:52:17 +000025631if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025632 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025633else
cristy8b350f62009-11-15 23:12:43 +000025634 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025635fi
25636
cristy3ed852e2009-09-05 21:47:34 +000025637cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025638#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025639_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025640ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025641#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025642"
cristyda16f162011-02-19 23:52:17 +000025643if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025644 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025645else
cristy8b350f62009-11-15 23:12:43 +000025646 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025647fi
25648
cristy3ed852e2009-09-05 21:47:34 +000025649cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025650#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025651_ACEOF
25652
25653
cristy8b350f62009-11-15 23:12:43 +000025654ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025655#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025656"
cristyda16f162011-02-19 23:52:17 +000025657if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025658 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025659else
cristy8b350f62009-11-15 23:12:43 +000025660 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025661fi
25662
cristy3ed852e2009-09-05 21:47:34 +000025663cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025664#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025665_ACEOF
25666
25667
cristy8b350f62009-11-15 23:12:43 +000025668ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025669#include <stdio.h>
25670#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025671"
cristyda16f162011-02-19 23:52:17 +000025672if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025673 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025674else
cristy8b350f62009-11-15 23:12:43 +000025675 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025676fi
25677
cristy3ed852e2009-09-05 21:47:34 +000025678cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025679#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025680_ACEOF
25681
25682
cristy3ed852e2009-09-05 21:47:34 +000025683########
25684#
25685# C++ Support Tests (For Magick++)
25686#
25687########
25688have_magick_plus_plus='no'
25689if test "$with_magick_plus_plus" = 'yes'; then
25690 OLIBS="$LIBS"
25691 LIBS=''
25692 ac_ext=cpp
25693ac_cpp='$CXXCPP $CPPFLAGS'
25694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25697
25698
25699 # Full set of headers used...
25700 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25701 # functional iomanip iosfwd iostream iterator list string strstream utility
25702 ac_ext=cpp
25703ac_cpp='$CXXCPP $CPPFLAGS'
25704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25707
25708 ac_ext=cpp
25709ac_cpp='$CXXCPP $CPPFLAGS'
25710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25713if test -z "$CXX"; then
25714 if test -n "$CCC"; then
25715 CXX=$CCC
25716 else
25717 if test -n "$ac_tool_prefix"; then
25718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25719 do
25720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025724if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025725 $as_echo_n "(cached) " >&6
25726else
25727 if test -n "$CXX"; then
25728 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25729else
25730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25731for as_dir in $PATH
25732do
25733 IFS=$as_save_IFS
25734 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25737 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025739 break 2
25740 fi
25741done
cristy8b350f62009-11-15 23:12:43 +000025742 done
cristy3ed852e2009-09-05 21:47:34 +000025743IFS=$as_save_IFS
25744
25745fi
25746fi
25747CXX=$ac_cv_prog_CXX
25748if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025750$as_echo "$CXX" >&6; }
25751else
cristy8b350f62009-11-15 23:12:43 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025753$as_echo "no" >&6; }
25754fi
25755
25756
25757 test -n "$CXX" && break
25758 done
25759fi
25760if test -z "$CXX"; then
25761 ac_ct_CXX=$CXX
25762 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25763do
25764 # Extract the first word of "$ac_prog", so it can be a program name with args.
25765set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025768if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025769 $as_echo_n "(cached) " >&6
25770else
25771 if test -n "$ac_ct_CXX"; then
25772 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25773else
25774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25775for as_dir in $PATH
25776do
25777 IFS=$as_save_IFS
25778 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000025780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25781 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025783 break 2
25784 fi
25785done
cristy8b350f62009-11-15 23:12:43 +000025786 done
cristy3ed852e2009-09-05 21:47:34 +000025787IFS=$as_save_IFS
25788
25789fi
25790fi
25791ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25792if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025794$as_echo "$ac_ct_CXX" >&6; }
25795else
cristy8b350f62009-11-15 23:12:43 +000025796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025797$as_echo "no" >&6; }
25798fi
25799
25800
25801 test -n "$ac_ct_CXX" && break
25802done
25803
25804 if test "x$ac_ct_CXX" = x; then
25805 CXX="g++"
25806 else
25807 case $cross_compiling:$ac_tool_warned in
25808yes:)
cristy8b350f62009-11-15 23:12:43 +000025809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25811ac_tool_warned=yes ;;
25812esac
25813 CXX=$ac_ct_CXX
25814 fi
25815fi
25816
25817 fi
25818fi
25819# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025820$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025821set X $ac_compile
25822ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025823for ac_option in --version -v -V -qversion; do
25824 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025825case "(($ac_try" in
25826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25827 *) ac_try_echo=$ac_try;;
25828esac
cristy8b350f62009-11-15 23:12:43 +000025829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25830$as_echo "$ac_try_echo"; } >&5
25831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025832 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025833 if test -s conftest.err; then
25834 sed '10a\
25835... rest of stderr output deleted ...
25836 10q' conftest.err >conftest.er1
25837 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025838 fi
cristycd4c5312009-11-22 01:19:08 +000025839 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25841 test $ac_status = 0; }
25842done
cristy3ed852e2009-09-05 21:47:34 +000025843
cristy8b350f62009-11-15 23:12:43 +000025844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025845$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025846if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025847 $as_echo_n "(cached) " >&6
25848else
cristy8b350f62009-11-15 23:12:43 +000025849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025850/* end confdefs.h. */
25851
25852int
25853main ()
25854{
25855#ifndef __GNUC__
25856 choke me
25857#endif
25858
25859 ;
25860 return 0;
25861}
25862_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025863if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025864 ac_compiler_gnu=yes
25865else
cristy8b350f62009-11-15 23:12:43 +000025866 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025867fi
cristy3ed852e2009-09-05 21:47:34 +000025868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25869ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25870
25871fi
cristy8b350f62009-11-15 23:12:43 +000025872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025873$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25874if test $ac_compiler_gnu = yes; then
25875 GXX=yes
25876else
25877 GXX=
25878fi
25879ac_test_CXXFLAGS=${CXXFLAGS+set}
25880ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025882$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025883if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025884 $as_echo_n "(cached) " >&6
25885else
25886 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25887 ac_cxx_werror_flag=yes
25888 ac_cv_prog_cxx_g=no
25889 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025891/* end confdefs.h. */
25892
25893int
25894main ()
25895{
25896
25897 ;
25898 return 0;
25899}
25900_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025901if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025902 ac_cv_prog_cxx_g=yes
25903else
cristy8b350f62009-11-15 23:12:43 +000025904 CXXFLAGS=""
25905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025906/* end confdefs.h. */
25907
25908int
25909main ()
25910{
25911
25912 ;
25913 return 0;
25914}
25915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025916if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025917
cristy8b350f62009-11-15 23:12:43 +000025918else
25919 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025920 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922/* end confdefs.h. */
25923
25924int
25925main ()
25926{
25927
25928 ;
25929 return 0;
25930}
25931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025932if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025933 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025934fi
cristy3ed852e2009-09-05 21:47:34 +000025935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25936fi
cristy3ed852e2009-09-05 21:47:34 +000025937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938fi
cristy3ed852e2009-09-05 21:47:34 +000025939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25940 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25941fi
cristy8b350f62009-11-15 23:12:43 +000025942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025943$as_echo "$ac_cv_prog_cxx_g" >&6; }
25944if test "$ac_test_CXXFLAGS" = set; then
25945 CXXFLAGS=$ac_save_CXXFLAGS
25946elif test $ac_cv_prog_cxx_g = yes; then
25947 if test "$GXX" = yes; then
25948 CXXFLAGS="-g -O2"
25949 else
25950 CXXFLAGS="-g"
25951 fi
25952else
25953 if test "$GXX" = yes; then
25954 CXXFLAGS="-O2"
25955 else
25956 CXXFLAGS=
25957 fi
25958fi
25959ac_ext=cpp
25960ac_cpp='$CXXCPP $CPPFLAGS'
25961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25964
cristy73bd4a52010-10-05 11:24:23 +000025965depcc="$CXX" am_compiler_list=
25966
25967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25968$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025969if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025970 $as_echo_n "(cached) " >&6
25971else
25972 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25973 # We make a subdir and do the tests there. Otherwise we can end up
25974 # making bogus files that we don't know about and never remove. For
25975 # instance it was reported that on HP-UX the gcc test will end up
25976 # making a dummy file named `D' -- because `-MD' means `put the output
25977 # in D'.
cristy7247bba2012-02-05 16:37:27 +000025978 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025979 mkdir conftest.dir
25980 # Copy depcomp to subdir because otherwise we won't find it if we're
25981 # using a relative directory.
25982 cp "$am_depcomp" conftest.dir
25983 cd conftest.dir
25984 # We will build objects and dependencies in a subdirectory because
25985 # it helps to detect inapplicable dependency modes. For instance
25986 # both Tru64's cc and ICC support -MD to output dependencies as a
25987 # side effect of compilation, but ICC will put the dependencies in
25988 # the current directory while Tru64 will put them in the object
25989 # directory.
25990 mkdir sub
25991
25992 am_cv_CXX_dependencies_compiler_type=none
25993 if test "$am_compiler_list" = ""; then
25994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25995 fi
25996 am__universal=false
25997 case " $depcc " in #(
25998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25999 esac
26000
26001 for depmode in $am_compiler_list; do
26002 # Setup a source with many dependencies, because some compilers
26003 # like to wrap large dependency lists on column 80 (with \), and
26004 # we should not choose a depcomp mode which is confused by this.
26005 #
26006 # We need to recreate these files for each test, as the compiler may
26007 # overwrite some of them when testing with obscure command lines.
26008 # This happens at least with the AIX C compiler.
26009 : > sub/conftest.c
26010 for i in 1 2 3 4 5 6; do
26011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
26012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
26013 # Solaris 8's {/usr,}/bin/sh.
26014 touch sub/conftst$i.h
26015 done
26016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26017
26018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
26019 # mode. It turns out that the SunPro C++ compiler does not properly
26020 # handle `-M -o', and we need to detect this. Also, some Intel
26021 # versions had trouble with output in subdirs
26022 am__obj=sub/conftest.${OBJEXT-o}
26023 am__minus_obj="-o $am__obj"
26024 case $depmode in
26025 gcc)
26026 # This depmode causes a compiler race in universal mode.
26027 test "$am__universal" = false || continue
26028 ;;
26029 nosideeffect)
26030 # after this tag, mechanisms are not by side-effect, so they'll
26031 # only be used when explicitly requested
26032 if test "x$enable_dependency_tracking" = xyes; then
26033 continue
26034 else
26035 break
26036 fi
26037 ;;
cristy7247bba2012-02-05 16:37:27 +000026038 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristy73bd4a52010-10-05 11:24:23 +000026039 # This compiler won't grok `-c -o', but also, the minuso test has
26040 # not run yet. These depmodes are late enough in the game, and
26041 # so weak that their functioning should not be impacted.
26042 am__obj=conftest.${OBJEXT-o}
26043 am__minus_obj=
26044 ;;
26045 none) break ;;
26046 esac
26047 if depmode=$depmode \
26048 source=sub/conftest.c object=$am__obj \
26049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26051 >/dev/null 2>conftest.err &&
26052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26056 # icc doesn't choke on unknown options, it will just issue warnings
26057 # or remarks (even with -Werror). So we grep stderr for any message
26058 # that says an option was ignored or not supported.
26059 # When given -MP, icc 7.0 and 7.1 complain thusly:
26060 # icc: Command line warning: ignoring option '-M'; no argument required
26061 # The diagnosis changed in icc 8.0:
26062 # icc: Command line remark: option '-MP' not supported
26063 if (grep 'ignoring option' conftest.err ||
26064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26065 am_cv_CXX_dependencies_compiler_type=$depmode
26066 break
26067 fi
26068 fi
26069 done
26070
26071 cd ..
26072 rm -rf conftest.dir
26073else
26074 am_cv_CXX_dependencies_compiler_type=none
26075fi
26076
26077fi
26078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26079$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26080CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26081
26082 if
26083 test "x$enable_dependency_tracking" != xno \
26084 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26085 am__fastdepCXX_TRUE=
26086 am__fastdepCXX_FALSE='#'
26087else
26088 am__fastdepCXX_TRUE='#'
26089 am__fastdepCXX_FALSE=
26090fi
26091
26092
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26094$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026095if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026096 $as_echo_n "(cached) " >&6
26097else
26098
26099 ac_ext=cpp
26100ac_cpp='$CXXCPP $CPPFLAGS'
26101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26104
26105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26106/* end confdefs.h. */
26107
26108int f(int x){return 1;}
26109int f(char x){return 1;}
26110int f(bool x){return 1;}
26111
26112int
26113main ()
26114{
26115bool b = true; return f(b);
26116 ;
26117 return 0;
26118}
26119_ACEOF
26120if ac_fn_cxx_try_compile "$LINENO"; then :
26121 ax_cv_cxx_bool=yes
26122else
26123 ax_cv_cxx_bool=no
26124fi
26125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26126 ac_ext=cpp
26127ac_cpp='$CXXCPP $CPPFLAGS'
26128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26131
26132
26133fi
26134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26135$as_echo "$ax_cv_cxx_bool" >&6; }
26136if test "$ax_cv_cxx_bool" = yes; then
26137
26138$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26139
26140fi
26141
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26143$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026144if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026145 $as_echo_n "(cached) " >&6
26146else
26147
26148 ac_ext=cpp
26149ac_cpp='$CXXCPP $CPPFLAGS'
26150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26153
26154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26155/* end confdefs.h. */
26156namespace Outer { namespace Inner { int i = 0; }}
26157int
26158main ()
26159{
26160using namespace Outer::Inner; return i;
26161 ;
26162 return 0;
26163}
26164_ACEOF
26165if ac_fn_cxx_try_compile "$LINENO"; then :
26166 ax_cv_cxx_namespaces=yes
26167else
26168 ax_cv_cxx_namespaces=no
26169fi
26170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171 ac_ext=cpp
26172ac_cpp='$CXXCPP $CPPFLAGS'
26173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26176
26177
26178fi
26179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26180$as_echo "$ax_cv_cxx_namespaces" >&6; }
26181if test "$ax_cv_cxx_namespaces" = yes; then
26182
26183$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26184
26185fi
26186
26187
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26189$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026190if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026191 $as_echo_n "(cached) " >&6
26192else
26193
26194 ac_ext=cpp
26195ac_cpp='$CXXCPP $CPPFLAGS'
26196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26199
26200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26201/* end confdefs.h. */
26202#include <iostream>
26203 std::istream& is = std::cin;
26204int
26205main ()
26206{
26207
26208 ;
26209 return 0;
26210}
26211_ACEOF
26212if ac_fn_cxx_try_compile "$LINENO"; then :
26213 ax_cv_cxx_have_std_namespace=yes
26214else
26215 ax_cv_cxx_have_std_namespace=no
26216fi
26217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 ac_ext=cpp
26219ac_cpp='$CXXCPP $CPPFLAGS'
26220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26223
26224
26225fi
26226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26227$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26228 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26229
26230$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26231
26232 fi
26233
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26235$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026236if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026237 $as_echo_n "(cached) " >&6
26238else
26239
26240
26241 ac_ext=cpp
26242ac_cpp='$CXXCPP $CPPFLAGS'
26243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26246
26247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248/* end confdefs.h. */
26249#include <iostream>
26250#include <map>
26251#include <iomanip>
26252#include <cmath>
26253#ifdef HAVE_NAMESPACES
26254using namespace std;
26255#endif
26256int
26257main ()
26258{
26259return 0;
26260 ;
26261 return 0;
26262}
26263_ACEOF
26264if ac_fn_cxx_try_compile "$LINENO"; then :
26265 ac_cv_cxx_have_std_libs=yes
26266else
26267 ac_cv_cxx_have_std_libs=no
26268fi
26269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26270 ac_ext=cpp
26271ac_cpp='$CXXCPP $CPPFLAGS'
26272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26275
26276
26277fi
26278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26279$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26280if test "$ac_cv_cxx_have_std_libs" = yes; then
26281
26282$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26283
26284fi
26285
cristy3ed852e2009-09-05 21:47:34 +000026286
26287 OPENMP_CXXFLAGS=
26288 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026289if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026290 enableval=$enable_openmp;
26291fi
26292
26293 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26295$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026296if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026297 $as_echo_n "(cached) " >&6
26298else
cristy8b350f62009-11-15 23:12:43 +000026299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026301
26302#ifndef _OPENMP
26303 choke me
26304#endif
26305#include <omp.h>
26306int main () { return omp_get_num_threads (); }
26307
26308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026309if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026310 ac_cv_prog_cxx_openmp='none needed'
26311else
cristy8b350f62009-11-15 23:12:43 +000026312 ac_cv_prog_cxx_openmp='unsupported'
cristy3ed852e2009-09-05 21:47:34 +000026313 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
26314 ac_save_CXXFLAGS=$CXXFLAGS
26315 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026318
26319#ifndef _OPENMP
26320 choke me
26321#endif
26322#include <omp.h>
26323int main () { return omp_get_num_threads (); }
26324
26325_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026326if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026327 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026328fi
cristy8b350f62009-11-15 23:12:43 +000026329rm -f core conftest.err conftest.$ac_objext \
26330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026331 CXXFLAGS=$ac_save_CXXFLAGS
26332 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26333 break
26334 fi
26335 done
26336fi
cristy8b350f62009-11-15 23:12:43 +000026337rm -f core conftest.err conftest.$ac_objext \
26338 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026339fi
cristy8b350f62009-11-15 23:12:43 +000026340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026341$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26342 case $ac_cv_prog_cxx_openmp in #(
26343 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026344 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026345 *)
cristy8b350f62009-11-15 23:12:43 +000026346 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026347 esac
26348 fi
26349
26350
26351 ac_ext=c
26352ac_cpp='$CPP $CPPFLAGS'
26353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26355ac_compiler_gnu=$ac_cv_c_compiler_gnu
26356
26357
cristy8b350f62009-11-15 23:12:43 +000026358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026359$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26360 if \
cristy964cb7f2010-04-25 23:18:00 +000026361 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026362 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026363 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026364 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026365 have_magick_plus_plus='yes'
26366 else
26367 have_magick_plus_plus='no (failed tests)'
26368 fi
cristy09b53e12011-10-14 12:47:22 +000026369 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26370$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026371 LIBS="$OLIBS"
26372fi
cristy73bd4a52010-10-05 11:24:23 +000026373 if test "$have_magick_plus_plus" = 'yes'; then
26374 WITH_MAGICK_PLUS_PLUS_TRUE=
26375 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26376else
26377 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26378 WITH_MAGICK_PLUS_PLUS_FALSE=
26379fi
26380
cristy3ed852e2009-09-05 21:47:34 +000026381
26382# Only check for delegate libraries in subdirectories if requested.
26383if test "$enable_delegate_build" != 'no'; then
26384 # Check for delegate sub-directories and add -I & -L options as required.
26385 # This presumes that delegates are installed as detailed in the ImageMagick
26386 # README. If delegates are installed in a standard location where the
26387 # compiler will automatically find them then these options should not be
26388 # required.
26389
26390 #
26391 # Most delegates have includes in the same directory as the library, but not all...
26392 #
26393 # Includes
cristy2542fc62011-12-06 17:50:25 +000026394 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 +000026395 if test -d "$builddir/$dir"; then
26396 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26397 else
26398 if test -d "$srcdirfull/$dir"; then
26399 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26400 fi
26401 fi
26402 done
26403
26404 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026405 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 +000026406 if test -d "$builddir/$dir/.libs"; then
26407 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26408 else
26409 if test -d "$srcdirfull/$dir/.libs"; then
26410 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26411 fi
26412 fi
26413 if test -d "$builddir/$dir"; then
26414 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26415 else
26416 if test -d "$srcdirfull/$dir"; then
26417 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26418 fi
26419 fi
26420 done
26421fi
26422
26423# Assume that delegate headers reside under same directory as ImageMagick
26424# installation prefix.
26425MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26426
26427#
26428# Find the X11 RGB database
26429#
cristy8b350f62009-11-15 23:12:43 +000026430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026431$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026432if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026433 $as_echo_n "(cached) " >&6
26434else
26435 # Look for the header file in a standard set of common directories.
26436# Check X11 before X11Rn because it is often a symlink to the current release.
26437 for ac_dir in \
26438 /lib/usr/lib/X11 \
26439 /usr/X11/lib \
26440 /usr/X11R4/lib \
26441 /usr/X11R5/lib \
26442 /usr/X11R6/lib \
26443 /usr/X11R7/lib \
26444 /usr/X386/lib \
26445 /usr/XFree86/lib/X11 \
26446 /usr/athena/lib \
26447 /usr/lib \
26448 /usr/lib/X11 \
26449 /usr/lib/X11R4 \
26450 /usr/lib/X11R5 \
26451 /usr/lib/X11R6 \
26452 /usr/lib/X11R7 \
26453 /usr/local/X11/lib \
26454 /usr/local/X11R4/lib \
26455 /usr/local/X11R5/lib \
26456 /usr/local/X11R6/lib \
26457 /usr/local/lib \
26458 /usr/local/lib/X11 \
26459 /usr/local/lib/X11R4 \
26460 /usr/local/lib/X11R5 \
26461 /usr/local/lib/X11R6 \
26462 /usr/local/lib/X11R7 \
26463 /usr/local/x11r5/lib \
26464 /usr/lpp/Xamples/lib \
26465 /usr/openwin/lib \
26466 /usr/openwin/share/lib \
26467 /usr/unsupported/lib \
26468 /usr/x386/lib \
26469 ; do
26470 if test -f "$ac_dir/X11/rgb.txt"; then
26471 im_cv_x_configure="$ac_dir/X11/"
26472 break
26473 elif test -f "$ac_dir/rgb.txt"; then
26474 im_cv_x_configure="$ac_dir/"
26475 break
26476 fi
26477
26478 done
26479fi
cristy8b350f62009-11-15 23:12:43 +000026480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026481$as_echo "$im_cv_x_configure" >&6; }
26482X11_CONFIGURE_PATH="$im_cv_x_configure"
26483case "${build_os}" in
26484 mingw* )
26485 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26486 ;;
26487esac
26488
26489cat >>confdefs.h <<_ACEOF
26490#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26491_ACEOF
26492
26493
26494#
26495# Find OpenMP library
26496#
26497GOMP_LIBS=''
26498if test "$enable_openmp" != 'no'; then
26499 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026500 # Open64 (passes for GCC but uses different OpenMP implementation)
26501 if test "x$GOMP_LIBS" = x ; then
26502 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26504$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26505if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26506 $as_echo_n "(cached) " >&6
26507else
26508 ac_check_lib_save_LIBS=$LIBS
26509LIBS="-lopenmp $LIBS"
26510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511/* end confdefs.h. */
26512
26513/* Override any GCC internal prototype to avoid an error.
26514 Use char because int might match the return type of a GCC
26515 builtin and then its argument prototype would still apply. */
26516#ifdef __cplusplus
26517extern "C"
26518#endif
26519char omp_get_num_procs ();
26520int
26521main ()
26522{
26523return omp_get_num_procs ();
26524 ;
26525 return 0;
26526}
26527_ACEOF
26528if ac_fn_c_try_link "$LINENO"; then :
26529 ac_cv_lib_openmp_omp_get_num_procs=yes
26530else
26531 ac_cv_lib_openmp_omp_get_num_procs=no
26532fi
26533rm -f core conftest.err conftest.$ac_objext \
26534 conftest$ac_exeext conftest.$ac_ext
26535LIBS=$ac_check_lib_save_LIBS
26536fi
26537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26538$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26539if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26540 GOMP_LIBS="-lopenmp"
26541fi
26542
26543 fi
26544 fi
26545 # GCC
26546 if test "x$GOMP_LIBS" = x ; then
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026548$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026549if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026550 $as_echo_n "(cached) " >&6
26551else
26552 ac_check_lib_save_LIBS=$LIBS
26553LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026555/* end confdefs.h. */
26556
26557/* Override any GCC internal prototype to avoid an error.
26558 Use char because int might match the return type of a GCC
26559 builtin and then its argument prototype would still apply. */
26560#ifdef __cplusplus
26561extern "C"
26562#endif
26563char GOMP_parallel_start ();
26564int
26565main ()
26566{
26567return GOMP_parallel_start ();
26568 ;
26569 return 0;
26570}
26571_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026572if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026573 ac_cv_lib_gomp_GOMP_parallel_start=yes
26574else
cristy8b350f62009-11-15 23:12:43 +000026575 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026576fi
cristy8b350f62009-11-15 23:12:43 +000026577rm -f core conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026579LIBS=$ac_check_lib_save_LIBS
26580fi
cristy8b350f62009-11-15 23:12:43 +000026581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026582$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026583if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026584 GOMP_LIBS="-lgomp"
26585fi
cristy18307f12011-12-30 01:20:16 +000026586
26587 fi
cristy3ed852e2009-09-05 21:47:34 +000026588 else
cristy18307f12011-12-30 01:20:16 +000026589 # Sun CC
26590 if test "x$GOMP_LIBS" = x ; then
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026593if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026594 $as_echo_n "(cached) " >&6
26595else
26596 ac_check_lib_save_LIBS=$LIBS
26597LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026599/* end confdefs.h. */
26600
26601/* Override any GCC internal prototype to avoid an error.
26602 Use char because int might match the return type of a GCC
26603 builtin and then its argument prototype would still apply. */
26604#ifdef __cplusplus
26605extern "C"
26606#endif
26607char sunw_mp_register_warn ();
26608int
26609main ()
26610{
26611return sunw_mp_register_warn ();
26612 ;
26613 return 0;
26614}
26615_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026616if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26618else
cristy8b350f62009-11-15 23:12:43 +000026619 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026620fi
cristy8b350f62009-11-15 23:12:43 +000026621rm -f core conftest.err conftest.$ac_objext \
26622 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026623LIBS=$ac_check_lib_save_LIBS
26624fi
cristy8b350f62009-11-15 23:12:43 +000026625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026626$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026627if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026628 GOMP_LIBS="-lmtsk"
26629fi
cristy18307f12011-12-30 01:20:16 +000026630
26631 fi
26632 # AIX xlc
26633 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026635$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026636if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026637 $as_echo_n "(cached) " >&6
26638else
26639 ac_check_lib_save_LIBS=$LIBS
26640LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026642/* end confdefs.h. */
26643
26644/* Override any GCC internal prototype to avoid an error.
26645 Use char because int might match the return type of a GCC
26646 builtin and then its argument prototype would still apply. */
26647#ifdef __cplusplus
26648extern "C"
26649#endif
26650char _xlsmpFlush ();
26651int
26652main ()
26653{
26654return _xlsmpFlush ();
26655 ;
26656 return 0;
26657}
26658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026660 ac_cv_lib_xlsmp__xlsmpFlush=yes
26661else
cristy8b350f62009-11-15 23:12:43 +000026662 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026663fi
cristy8b350f62009-11-15 23:12:43 +000026664rm -f core conftest.err conftest.$ac_objext \
26665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026666LIBS=$ac_check_lib_save_LIBS
26667fi
cristy8b350f62009-11-15 23:12:43 +000026668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026669$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026670if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026671 GOMP_LIBS="-lxlsmp"
26672fi
cristy18307f12011-12-30 01:20:16 +000026673
26674 fi
26675 # SGI IRIX 6.5 MIPSpro C/C++
26676 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026678$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026679if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026680 $as_echo_n "(cached) " >&6
26681else
26682 ac_check_lib_save_LIBS=$LIBS
26683LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026685/* end confdefs.h. */
26686
26687/* Override any GCC internal prototype to avoid an error.
26688 Use char because int might match the return type of a GCC
26689 builtin and then its argument prototype would still apply. */
26690#ifdef __cplusplus
26691extern "C"
26692#endif
26693char mp_destroy ();
26694int
26695main ()
26696{
26697return mp_destroy ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026702if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026703 ac_cv_lib_mp_mp_destroy=yes
26704else
cristy8b350f62009-11-15 23:12:43 +000026705 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026706fi
cristy8b350f62009-11-15 23:12:43 +000026707rm -f core conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026709LIBS=$ac_check_lib_save_LIBS
26710fi
cristy8b350f62009-11-15 23:12:43 +000026711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026712$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026713if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026714 GOMP_LIBS="-lmp"
26715fi
cristy18307f12011-12-30 01:20:16 +000026716
26717 fi
cristy3ed852e2009-09-05 21:47:34 +000026718 fi
26719 LIBS="$GOMP_LIBS $LIBS"
26720fi
26721
26722
26723#
26724# Find Posix threads library
26725#
26726THREAD_LIBS=''
26727if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26728
26729 if test "x$PTHREAD_LIBS" = "x"; then
26730 case "${host_cpu}-${host_os}" in
26731 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026732
26733
26734
26735ac_ext=c
26736ac_cpp='$CPP $CPPFLAGS'
26737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26739ac_compiler_gnu=$ac_cv_c_compiler_gnu
26740
26741magick_pthread_lib_ok=no
26742
26743LIB=-lc_r
26744save_LIBS="$LIBS"
26745LIBS="$LIBS $LIB"
26746
26747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26748$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26750/* end confdefs.h. */
26751#include <pthread.h>
26752int
26753main ()
26754{
26755 pthread_t th;
26756 pthread_join(th, 0);
26757 pthread_attr_init(0);
26758 pthread_cleanup_push(0, 0);
26759 pthread_create(0,0,0,0);
26760 pthread_cleanup_pop(0);
26761 ;
26762 return 0;
26763}
26764_ACEOF
26765if ac_fn_c_try_link "$LINENO"; then :
26766 magick_pthread_lib_ok=yes
26767fi
26768rm -f core conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
26770
26771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26772$as_echo "${magick_pthread_lib_ok}" >&6; }
26773if test "$magick_pthread_lib_ok" = yes
26774then
26775 PTHREAD_LIBS=-lc_r
26776 :
26777else
26778
26779 :
26780fi
26781
26782LIBS="$save_LIBS"
26783
26784ac_ext=c
26785ac_cpp='$CPP $CPPFLAGS'
26786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789
26790 ;;
cristy3ed852e2009-09-05 21:47:34 +000026791 esac
26792 fi
26793
26794 for lib in pthread pthreads; do
26795 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026796
26797
26798
26799ac_ext=c
26800ac_cpp='$CPP $CPPFLAGS'
26801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26803ac_compiler_gnu=$ac_cv_c_compiler_gnu
26804
26805magick_pthread_lib_ok=no
26806
26807LIB=-l$lib
26808save_LIBS="$LIBS"
26809LIBS="$LIBS $LIB"
26810
26811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26812$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26814/* end confdefs.h. */
26815#include <pthread.h>
26816int
26817main ()
26818{
26819 pthread_t th;
26820 pthread_join(th, 0);
26821 pthread_attr_init(0);
26822 pthread_cleanup_push(0, 0);
26823 pthread_create(0,0,0,0);
26824 pthread_cleanup_pop(0);
26825 ;
26826 return 0;
26827}
26828_ACEOF
26829if ac_fn_c_try_link "$LINENO"; then :
26830 magick_pthread_lib_ok=yes
26831fi
26832rm -f core conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
26834
26835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26836$as_echo "${magick_pthread_lib_ok}" >&6; }
26837if test "$magick_pthread_lib_ok" = yes
26838then
26839 PTHREAD_LIBS=-l$lib
26840 :
26841else
26842
26843 :
26844fi
26845
26846LIBS="$save_LIBS"
26847
26848ac_ext=c
26849ac_cpp='$CPP $CPPFLAGS'
26850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26852ac_compiler_gnu=$ac_cv_c_compiler_gnu
26853
26854
cristy3ed852e2009-09-05 21:47:34 +000026855 fi
26856 done
26857
26858 THREAD_LIBS="$PTHREAD_LIBS"
26859 LIBS="$LIBS $THREAD_LIBS"
26860fi
26861
26862
26863#
26864# Check for umem.
26865#
26866have_umem='no'
26867UMEM_LIBS=''
26868if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026870$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026871 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26872$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026873 failed=0
26874 passed=0
cristy8b350f62009-11-15 23:12:43 +000026875 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026876if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026877 passed=`expr $passed + 1`
26878else
26879 failed=`expr $failed + 1`
26880fi
26881
26882
cristy8b350f62009-11-15 23:12:43 +000026883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026884$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026885if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026886 $as_echo_n "(cached) " >&6
26887else
26888 ac_check_lib_save_LIBS=$LIBS
26889LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026891/* end confdefs.h. */
26892
26893/* Override any GCC internal prototype to avoid an error.
26894 Use char because int might match the return type of a GCC
26895 builtin and then its argument prototype would still apply. */
26896#ifdef __cplusplus
26897extern "C"
26898#endif
26899char umem_alloc ();
26900int
26901main ()
26902{
26903return umem_alloc ();
26904 ;
26905 return 0;
26906}
26907_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026908if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026909 ac_cv_lib_umem_umem_alloc=yes
26910else
cristy8b350f62009-11-15 23:12:43 +000026911 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026912fi
cristy8b350f62009-11-15 23:12:43 +000026913rm -f core conftest.err conftest.$ac_objext \
26914 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026915LIBS=$ac_check_lib_save_LIBS
26916fi
cristy8b350f62009-11-15 23:12:43 +000026917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026918$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026919if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026920 passed=`expr $passed + 1`
26921else
26922 failed=`expr $failed + 1`
26923fi
26924
cristy8b350f62009-11-15 23:12:43 +000026925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026926$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026927if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026928 $as_echo_n "(cached) " >&6
26929else
26930 ac_check_lib_save_LIBS=$LIBS
26931LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026933/* end confdefs.h. */
26934
26935/* Override any GCC internal prototype to avoid an error.
26936 Use char because int might match the return type of a GCC
26937 builtin and then its argument prototype would still apply. */
26938#ifdef __cplusplus
26939extern "C"
26940#endif
26941char umem_free ();
26942int
26943main ()
26944{
26945return umem_free ();
26946 ;
26947 return 0;
26948}
26949_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026950if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026951 ac_cv_lib_umem_umem_free=yes
26952else
cristy8b350f62009-11-15 23:12:43 +000026953 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026954fi
cristy8b350f62009-11-15 23:12:43 +000026955rm -f core conftest.err conftest.$ac_objext \
26956 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026957LIBS=$ac_check_lib_save_LIBS
26958fi
cristy8b350f62009-11-15 23:12:43 +000026959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026960$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026961if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026962 passed=`expr $passed + 1`
26963else
26964 failed=`expr $failed + 1`
26965fi
26966
cristy8b350f62009-11-15 23:12:43 +000026967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026968$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26969 if test $passed -gt 0; then
26970 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026971 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26972$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026973 have_umem='no (failed tests)'
26974 else
26975 UMEM_LIBS='-lumem'
26976 LIBS="$UMEM_LIBS $LIBS"
26977
cristy8b350f62009-11-15 23:12:43 +000026978$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026979
cristy09b53e12011-10-14 12:47:22 +000026980 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26981$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026982 have_umem='yes'
26983 fi
26984 else
cristy09b53e12011-10-14 12:47:22 +000026985 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26986$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026987 fi
26988fi
cristy73bd4a52010-10-05 11:24:23 +000026989 if test "$have_umem" = 'yes'; then
26990 HasUMEM_TRUE=
26991 HasUMEM_FALSE='#'
26992else
26993 HasUMEM_TRUE='#'
26994 HasUMEM_FALSE=
26995fi
26996
cristy3ed852e2009-09-05 21:47:34 +000026997
26998
26999#
27000# Add support for ccmalloc memory debugging library if requested
27001#
27002have_ccmalloc='no'
27003CCMALLOC_LIBS=''
27004if test "$enable_ccmalloc" = 'yes'; then
27005 # Extract the first word of "ccmalloc", so it can be a program name with args.
27006set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027009if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027010 $as_echo_n "(cached) " >&6
27011else
27012 case $CCMALLOCDelegate in
27013 [\\/]* | ?:[\\/]*)
27014 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27015 ;;
27016 *)
27017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27018for as_dir in $PATH
27019do
27020 IFS=$as_save_IFS
27021 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000027023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27024 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027026 break 2
27027 fi
27028done
cristy8b350f62009-11-15 23:12:43 +000027029 done
cristy3ed852e2009-09-05 21:47:34 +000027030IFS=$as_save_IFS
27031
27032 ;;
27033esac
27034fi
27035CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27036if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027038$as_echo "$CCMALLOCDelegate" >&6; }
27039else
cristy8b350f62009-11-15 23:12:43 +000027040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027041$as_echo "no" >&6; }
27042fi
27043
27044
27045 if test -n "$CCMALLOCDelegate"; then
27046 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27047 OLIBS="$LIBS"
27048 # Assume that gcc is used with ccmalloc.
27049 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027051$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027052if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027053 $as_echo_n "(cached) " >&6
27054else
27055 ac_check_lib_save_LIBS=$LIBS
27056LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027058/* end confdefs.h. */
27059
27060/* Override any GCC internal prototype to avoid an error.
27061 Use char because int might match the return type of a GCC
27062 builtin and then its argument prototype would still apply. */
27063#ifdef __cplusplus
27064extern "C"
27065#endif
27066char ccmalloc_malloc ();
27067int
27068main ()
27069{
27070return ccmalloc_malloc ();
27071 ;
27072 return 0;
27073}
27074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027075if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027076 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27077else
cristy8b350f62009-11-15 23:12:43 +000027078 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027079fi
cristy8b350f62009-11-15 23:12:43 +000027080rm -f core conftest.err conftest.$ac_objext \
27081 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027082LIBS=$ac_check_lib_save_LIBS
27083fi
cristy8b350f62009-11-15 23:12:43 +000027084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027085$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027086if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027087 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27088fi
27089
27090 if test -n "$CCMALLOC_LIBS"; then
27091 LIBS="$OLIBS"
27092 LIBS="$LIBS $CCMALLOC_LIBS"
27093 have_ccmalloc='yes'
27094 else
27095 LIBS="$OLIBS"
27096 fi
27097 fi
27098fi
27099
27100#
27101# Add support for efence memory debugging library if requested
27102#
27103if test "$enable_efence" = 'yes'; then
27104 EFENCE_LIBS='-lefence'
27105 LIBS="$EFENCE_LIBS $LIBS"
27106fi
27107
cristy3ed852e2009-09-05 21:47:34 +000027108
27109#
27110# Check for BZLIB
27111#
27112
27113
27114# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027115if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027116 withval=$with_bzlib; with_bzlib=$withval
27117else
27118 with_bzlib='yes'
27119fi
27120
27121
27122if test "$with_bzlib" != 'yes'; then
27123 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27124fi
27125
27126have_bzlib='no'
27127if test "$with_bzlib" != 'no'; then
27128 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027129 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27130$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027132$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027133 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27134$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027135 failed=0
27136 passed=0
27137 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027138 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027139if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027140 passed=`expr $passed + 1`
27141else
27142 failed=`expr $failed + 1`
27143fi
27144
27145
cristy8b350f62009-11-15 23:12:43 +000027146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027147$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027148if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027149 $as_echo_n "(cached) " >&6
27150else
27151 ac_check_lib_save_LIBS=$LIBS
27152LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027154/* end confdefs.h. */
27155
27156/* Override any GCC internal prototype to avoid an error.
27157 Use char because int might match the return type of a GCC
27158 builtin and then its argument prototype would still apply. */
27159#ifdef __cplusplus
27160extern "C"
27161#endif
27162char BZ2_bzDecompress ();
27163int
27164main ()
27165{
27166return BZ2_bzDecompress ();
27167 ;
27168 return 0;
27169}
27170_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027171if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027172 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27173else
cristy8b350f62009-11-15 23:12:43 +000027174 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027175fi
cristy8b350f62009-11-15 23:12:43 +000027176rm -f core conftest.err conftest.$ac_objext \
27177 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027178LIBS=$ac_check_lib_save_LIBS
27179fi
cristy8b350f62009-11-15 23:12:43 +000027180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027181$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027182if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027183 found_libbz=`expr $found_libbz + 1`
27184fi
27185
27186 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027188$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027189if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027190 $as_echo_n "(cached) " >&6
27191else
27192 ac_check_lib_save_LIBS=$LIBS
27193LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027195/* end confdefs.h. */
27196
27197/* Override any GCC internal prototype to avoid an error.
27198 Use char because int might match the return type of a GCC
27199 builtin and then its argument prototype would still apply. */
27200#ifdef __cplusplus
27201extern "C"
27202#endif
27203char _imp__BZ2_decompress ();
27204int
27205main ()
27206{
27207return _imp__BZ2_decompress ();
27208 ;
27209 return 0;
27210}
27211_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027212if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027213 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27214else
cristy8b350f62009-11-15 23:12:43 +000027215 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027216fi
cristy8b350f62009-11-15 23:12:43 +000027217rm -f core conftest.err conftest.$ac_objext \
27218 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027219LIBS=$ac_check_lib_save_LIBS
27220fi
cristy8b350f62009-11-15 23:12:43 +000027221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027222$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027223if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027224 found_libbz=`expr $found_libbz + 1`
27225fi
27226
27227 fi
27228 if test $found_libbz -gt 0; then
27229 passed=`expr $passed + 1`
27230 else
27231 failed=`expr $failed + 1`
27232 fi
cristy8b350f62009-11-15 23:12:43 +000027233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027234$as_echo_n "checking if BZLIB package is complete... " >&6; }
27235 if test $passed -gt 0; then
27236 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027237 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27238$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027239 have_bzlib='no (failed tests)'
27240 else
27241 BZLIB_LIBS='-lbz2'
27242 LIBS="$BZLIB_LIBS $LIBS"
27243
cristy8b350f62009-11-15 23:12:43 +000027244$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027245
cristy09b53e12011-10-14 12:47:22 +000027246 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27247$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027248 have_bzlib='yes'
27249 fi
27250 else
cristy09b53e12011-10-14 12:47:22 +000027251 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27252$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027253 fi
27254fi
cristy73bd4a52010-10-05 11:24:23 +000027255 if test "$have_bzlib" = 'yes'; then
27256 BZLIB_DELEGATE_TRUE=
27257 BZLIB_DELEGATE_FALSE='#'
27258else
27259 BZLIB_DELEGATE_TRUE='#'
27260 BZLIB_DELEGATE_FALSE=
27261fi
27262
cristy3ed852e2009-09-05 21:47:34 +000027263
27264
27265#
27266# Find the X11 include and library directories.
27267#
27268IPC_LIBS=''
27269X11_LIBS=''
27270XEXT_LIBS=''
27271XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027273$as_echo_n "checking for X... " >&6; }
27274
27275
27276# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027277if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027278 withval=$with_x;
27279fi
27280
27281# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27282if test "x$with_x" = xno; then
27283 # The user explicitly disabled X.
27284 have_x=disabled
27285else
27286 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027287 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027288 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027289 $as_echo_n "(cached) " >&6
27290else
27291 # One or both of the vars are not set, and there is no cached value.
27292ac_x_includes=no ac_x_libraries=no
27293rm -f -r conftest.dir
27294if mkdir conftest.dir; then
27295 cd conftest.dir
27296 cat >Imakefile <<'_ACEOF'
27297incroot:
27298 @echo incroot='${INCROOT}'
27299usrlibdir:
27300 @echo usrlibdir='${USRLIBDIR}'
27301libdir:
27302 @echo libdir='${LIBDIR}'
27303_ACEOF
27304 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027306 for ac_var in incroot usrlibdir libdir; do
27307 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27308 done
27309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27310 for ac_extension in a so sl dylib la dll; do
27311 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27312 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27313 ac_im_usrlibdir=$ac_im_libdir; break
27314 fi
27315 done
27316 # Screen out bogus values from the imake configuration. They are
27317 # bogus both because they are the default anyway, and because
27318 # using them would break gcc on systems where it needs fixed includes.
27319 case $ac_im_incroot in
27320 /usr/include) ac_x_includes= ;;
27321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27322 esac
27323 case $ac_im_usrlibdir in
27324 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27326 esac
27327 fi
27328 cd ..
27329 rm -f -r conftest.dir
27330fi
27331
27332# Standard set of common directories for X headers.
27333# Check X11 before X11Rn because it is often a symlink to the current release.
27334ac_x_header_dirs='
27335/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027336/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027337/usr/X11R6/include
27338/usr/X11R5/include
27339/usr/X11R4/include
27340
27341/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027342/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027343/usr/include/X11R6
27344/usr/include/X11R5
27345/usr/include/X11R4
27346
27347/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027348/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027349/usr/local/X11R6/include
27350/usr/local/X11R5/include
27351/usr/local/X11R4/include
27352
27353/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027354/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027355/usr/local/include/X11R6
27356/usr/local/include/X11R5
27357/usr/local/include/X11R4
27358
27359/usr/X386/include
27360/usr/x386/include
27361/usr/XFree86/include/X11
27362
27363/usr/include
27364/usr/local/include
27365/usr/unsupported/include
27366/usr/athena/include
27367/usr/local/x11r5/include
27368/usr/lpp/Xamples/include
27369
27370/usr/openwin/include
27371/usr/openwin/share/include'
27372
27373if test "$ac_x_includes" = no; then
27374 # Guess where to find include files, by looking for Xlib.h.
27375 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027377/* end confdefs.h. */
27378#include <X11/Xlib.h>
27379_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027380if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027381 # We can compile using X headers with no special include directory.
27382ac_x_includes=
27383else
cristyc7083c12009-10-14 03:16:55 +000027384 for ac_dir in $ac_x_header_dirs; do
27385 if test -r "$ac_dir/X11/Xlib.h"; then
27386 ac_x_includes=$ac_dir
27387 break
27388 fi
27389done
27390fi
cristyda16f162011-02-19 23:52:17 +000027391rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027392fi # $ac_x_includes = no
27393
27394if test "$ac_x_libraries" = no; then
27395 # Check for the libraries.
27396 # See if we find them without any special options.
27397 # Don't add to $LIBS permanently.
27398 ac_save_LIBS=$LIBS
27399 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027401/* end confdefs.h. */
27402#include <X11/Xlib.h>
27403int
27404main ()
27405{
27406XrmInitialize ()
27407 ;
27408 return 0;
27409}
27410_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027411if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027412 LIBS=$ac_save_LIBS
27413# We can link X programs with no special library path.
27414ac_x_libraries=
27415else
cristy8b350f62009-11-15 23:12:43 +000027416 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027417for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27418do
27419 # Don't even attempt the hair of trying to link an X program!
27420 for ac_extension in a so sl dylib la dll; do
27421 if test -r "$ac_dir/libX11.$ac_extension"; then
27422 ac_x_libraries=$ac_dir
27423 break 2
27424 fi
27425 done
27426done
27427fi
cristy8b350f62009-11-15 23:12:43 +000027428rm -f core conftest.err conftest.$ac_objext \
27429 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027430fi # $ac_x_libraries = no
27431
27432case $ac_x_includes,$ac_x_libraries in #(
27433 no,* | *,no | *\'*)
27434 # Didn't find X, or a directory has "'" in its name.
27435 ac_cv_have_x="have_x=no";; #(
27436 *)
27437 # Record where we found X for the cache.
27438 ac_cv_have_x="have_x=yes\
27439 ac_x_includes='$ac_x_includes'\
27440 ac_x_libraries='$ac_x_libraries'"
27441esac
27442fi
27443;; #(
27444 *) have_x=yes;;
27445 esac
27446 eval "$ac_cv_have_x"
27447fi # $with_x != no
27448
27449if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027451$as_echo "$have_x" >&6; }
27452 no_x=yes
27453else
27454 # If each of the values was on the command line, it overrides each guess.
27455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27457 # Update the cache value to reflect the command line values.
27458 ac_cv_have_x="have_x=yes\
27459 ac_x_includes='$x_includes'\
27460 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027462$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27463fi
27464
cristy3ed852e2009-09-05 21:47:34 +000027465if test "$no_x" = yes; then
27466 # Not all programs may use this symbol, but it does not hurt to define it.
27467
cristy8b350f62009-11-15 23:12:43 +000027468$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027469
27470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27471else
27472 if test -n "$x_includes"; then
27473 X_CFLAGS="$X_CFLAGS -I$x_includes"
27474 fi
27475
27476 # It would also be nice to do this for all -L options, not just this one.
27477 if test -n "$x_libraries"; then
27478 X_LIBS="$X_LIBS -L$x_libraries"
27479 # For Solaris; some versions of Sun CC require a space after -R and
27480 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027482$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27483 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27484 ac_xsave_c_werror_flag=$ac_c_werror_flag
27485 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027487/* end confdefs.h. */
27488
27489int
27490main ()
27491{
27492
27493 ;
27494 return 0;
27495}
27496_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027497if ac_fn_c_try_link "$LINENO"; then :
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027499$as_echo "no" >&6; }
27500 X_LIBS="$X_LIBS -R$x_libraries"
27501else
cristy8b350f62009-11-15 23:12:43 +000027502 LIBS="$ac_xsave_LIBS -R $x_libraries"
27503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027504/* end confdefs.h. */
27505
27506int
27507main ()
27508{
27509
27510 ;
27511 return 0;
27512}
27513_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027514if ac_fn_c_try_link "$LINENO"; then :
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027516$as_echo "yes" >&6; }
27517 X_LIBS="$X_LIBS -R $x_libraries"
27518else
cristy8b350f62009-11-15 23:12:43 +000027519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027520$as_echo "neither works" >&6; }
27521fi
cristy8b350f62009-11-15 23:12:43 +000027522rm -f core conftest.err conftest.$ac_objext \
27523 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027524fi
cristy8b350f62009-11-15 23:12:43 +000027525rm -f core conftest.err conftest.$ac_objext \
27526 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027527 ac_c_werror_flag=$ac_xsave_c_werror_flag
27528 LIBS=$ac_xsave_LIBS
27529 fi
27530
27531 # Check for system-dependent libraries X programs must link with.
27532 # Do this before checking for the system-independent R6 libraries
27533 # (-lICE), since we may need -lsocket or whatever for X linking.
27534
27535 if test "$ISC" = yes; then
27536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27537 else
27538 # Martyn Johnson says this is needed for Ultrix, if the X
27539 # libraries were built with DECnet support. And Karl Berry says
27540 # the Alpha needs dnet_stub (dnet does not exist).
27541 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543/* end confdefs.h. */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char XOpenDisplay ();
27552int
27553main ()
27554{
27555return XOpenDisplay ();
27556 ;
27557 return 0;
27558}
27559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027561
cristy8b350f62009-11-15 23:12:43 +000027562else
27563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027564$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027565if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027566 $as_echo_n "(cached) " >&6
27567else
27568 ac_check_lib_save_LIBS=$LIBS
27569LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027571/* end confdefs.h. */
27572
27573/* Override any GCC internal prototype to avoid an error.
27574 Use char because int might match the return type of a GCC
27575 builtin and then its argument prototype would still apply. */
27576#ifdef __cplusplus
27577extern "C"
27578#endif
27579char dnet_ntoa ();
27580int
27581main ()
27582{
27583return dnet_ntoa ();
27584 ;
27585 return 0;
27586}
27587_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027588if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027589 ac_cv_lib_dnet_dnet_ntoa=yes
27590else
cristy8b350f62009-11-15 23:12:43 +000027591 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027592fi
cristy8b350f62009-11-15 23:12:43 +000027593rm -f core conftest.err conftest.$ac_objext \
27594 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027595LIBS=$ac_check_lib_save_LIBS
27596fi
cristy8b350f62009-11-15 23:12:43 +000027597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027598$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027599if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027600 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27601fi
27602
27603 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027605$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027606if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027607 $as_echo_n "(cached) " >&6
27608else
27609 ac_check_lib_save_LIBS=$LIBS
27610LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027612/* end confdefs.h. */
27613
27614/* Override any GCC internal prototype to avoid an error.
27615 Use char because int might match the return type of a GCC
27616 builtin and then its argument prototype would still apply. */
27617#ifdef __cplusplus
27618extern "C"
27619#endif
27620char dnet_ntoa ();
27621int
27622main ()
27623{
27624return dnet_ntoa ();
27625 ;
27626 return 0;
27627}
27628_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027629if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027630 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27631else
cristy8b350f62009-11-15 23:12:43 +000027632 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027633fi
cristy8b350f62009-11-15 23:12:43 +000027634rm -f core conftest.err conftest.$ac_objext \
27635 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027636LIBS=$ac_check_lib_save_LIBS
27637fi
cristy8b350f62009-11-15 23:12:43 +000027638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027639$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027640if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27642fi
27643
27644 fi
27645fi
cristy8b350f62009-11-15 23:12:43 +000027646rm -f core conftest.err conftest.$ac_objext \
27647 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027648 LIBS="$ac_xsave_LIBS"
27649
27650 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27651 # to get the SysV transport functions.
27652 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27653 # needs -lnsl.
27654 # The nsl library prevents programs from opening the X display
27655 # on Irix 5.2, according to T.E. Dickey.
27656 # The functions gethostbyname, getservbyname, and inet_addr are
27657 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027658 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027659if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027660
cristy3ed852e2009-09-05 21:47:34 +000027661fi
27662
cristy3ed852e2009-09-05 21:47:34 +000027663 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027665$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027666if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027667 $as_echo_n "(cached) " >&6
27668else
27669 ac_check_lib_save_LIBS=$LIBS
27670LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027672/* end confdefs.h. */
27673
27674/* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27677#ifdef __cplusplus
27678extern "C"
27679#endif
27680char gethostbyname ();
27681int
27682main ()
27683{
27684return gethostbyname ();
27685 ;
27686 return 0;
27687}
27688_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027689if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027690 ac_cv_lib_nsl_gethostbyname=yes
27691else
cristy8b350f62009-11-15 23:12:43 +000027692 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027693fi
cristy8b350f62009-11-15 23:12:43 +000027694rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027696LIBS=$ac_check_lib_save_LIBS
27697fi
cristy8b350f62009-11-15 23:12:43 +000027698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027699$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027700if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27702fi
27703
27704 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027706$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027707if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027708 $as_echo_n "(cached) " >&6
27709else
27710 ac_check_lib_save_LIBS=$LIBS
27711LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027713/* end confdefs.h. */
27714
27715/* Override any GCC internal prototype to avoid an error.
27716 Use char because int might match the return type of a GCC
27717 builtin and then its argument prototype would still apply. */
27718#ifdef __cplusplus
27719extern "C"
27720#endif
27721char gethostbyname ();
27722int
27723main ()
27724{
27725return gethostbyname ();
27726 ;
27727 return 0;
27728}
27729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027730if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 ac_cv_lib_bsd_gethostbyname=yes
27732else
cristy8b350f62009-11-15 23:12:43 +000027733 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027734fi
cristy8b350f62009-11-15 23:12:43 +000027735rm -f core conftest.err conftest.$ac_objext \
27736 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027737LIBS=$ac_check_lib_save_LIBS
27738fi
cristy8b350f62009-11-15 23:12:43 +000027739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027740$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027741if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27743fi
27744
27745 fi
27746 fi
27747
27748 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27749 # socket/setsockopt and other routines are undefined under SCO ODT
27750 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27751 # on later versions), says Simon Leinen: it contains gethostby*
27752 # variants that don't use the name server (or something). -lsocket
27753 # must be given before -lnsl if both are needed. We assume that
27754 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027755 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027756if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027757
cristy3ed852e2009-09-05 21:47:34 +000027758fi
27759
cristy3ed852e2009-09-05 21:47:34 +000027760 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027762$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027763if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027764 $as_echo_n "(cached) " >&6
27765else
27766 ac_check_lib_save_LIBS=$LIBS
27767LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027769/* end confdefs.h. */
27770
27771/* Override any GCC internal prototype to avoid an error.
27772 Use char because int might match the return type of a GCC
27773 builtin and then its argument prototype would still apply. */
27774#ifdef __cplusplus
27775extern "C"
27776#endif
27777char connect ();
27778int
27779main ()
27780{
27781return connect ();
27782 ;
27783 return 0;
27784}
27785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027786if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027787 ac_cv_lib_socket_connect=yes
27788else
cristy8b350f62009-11-15 23:12:43 +000027789 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027790fi
cristy8b350f62009-11-15 23:12:43 +000027791rm -f core conftest.err conftest.$ac_objext \
27792 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027793LIBS=$ac_check_lib_save_LIBS
27794fi
cristy8b350f62009-11-15 23:12:43 +000027795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027796$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027797if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027798 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27799fi
27800
27801 fi
27802
27803 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027804 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027805if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027806
cristy3ed852e2009-09-05 21:47:34 +000027807fi
27808
cristy3ed852e2009-09-05 21:47:34 +000027809 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027812if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 $as_echo_n "(cached) " >&6
27814else
27815 ac_check_lib_save_LIBS=$LIBS
27816LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027818/* end confdefs.h. */
27819
27820/* Override any GCC internal prototype to avoid an error.
27821 Use char because int might match the return type of a GCC
27822 builtin and then its argument prototype would still apply. */
27823#ifdef __cplusplus
27824extern "C"
27825#endif
27826char remove ();
27827int
27828main ()
27829{
27830return remove ();
27831 ;
27832 return 0;
27833}
27834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 ac_cv_lib_posix_remove=yes
27837else
cristy8b350f62009-11-15 23:12:43 +000027838 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027839fi
cristy8b350f62009-11-15 23:12:43 +000027840rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842LIBS=$ac_check_lib_save_LIBS
27843fi
cristy8b350f62009-11-15 23:12:43 +000027844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027846if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27848fi
27849
27850 fi
27851
27852 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027853 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027854if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027855
cristy3ed852e2009-09-05 21:47:34 +000027856fi
27857
cristy3ed852e2009-09-05 21:47:34 +000027858 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027860$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027861if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027862 $as_echo_n "(cached) " >&6
27863else
27864 ac_check_lib_save_LIBS=$LIBS
27865LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027867/* end confdefs.h. */
27868
27869/* Override any GCC internal prototype to avoid an error.
27870 Use char because int might match the return type of a GCC
27871 builtin and then its argument prototype would still apply. */
27872#ifdef __cplusplus
27873extern "C"
27874#endif
27875char shmat ();
27876int
27877main ()
27878{
27879return shmat ();
27880 ;
27881 return 0;
27882}
27883_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027884if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027885 ac_cv_lib_ipc_shmat=yes
27886else
cristy8b350f62009-11-15 23:12:43 +000027887 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027888fi
cristy8b350f62009-11-15 23:12:43 +000027889rm -f core conftest.err conftest.$ac_objext \
27890 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027891LIBS=$ac_check_lib_save_LIBS
27892fi
cristy8b350f62009-11-15 23:12:43 +000027893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027894$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027895if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027896 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27897fi
27898
27899 fi
27900 fi
27901
27902 # Check for libraries that X11R6 Xt/Xaw programs need.
27903 ac_save_LDFLAGS=$LDFLAGS
27904 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27905 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27906 # check for ICE first), but we must link in the order -lSM -lICE or
27907 # we get undefined symbols. So assume we have SM if we have ICE.
27908 # These have to be linked with before -lX11, unlike the other
27909 # libraries we check for below, so use a different variable.
27910 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027912$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027913if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027914 $as_echo_n "(cached) " >&6
27915else
27916 ac_check_lib_save_LIBS=$LIBS
27917LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027919/* end confdefs.h. */
27920
27921/* Override any GCC internal prototype to avoid an error.
27922 Use char because int might match the return type of a GCC
27923 builtin and then its argument prototype would still apply. */
27924#ifdef __cplusplus
27925extern "C"
27926#endif
27927char IceConnectionNumber ();
27928int
27929main ()
27930{
27931return IceConnectionNumber ();
27932 ;
27933 return 0;
27934}
27935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 ac_cv_lib_ICE_IceConnectionNumber=yes
27938else
cristy8b350f62009-11-15 23:12:43 +000027939 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027940fi
cristy8b350f62009-11-15 23:12:43 +000027941rm -f core conftest.err conftest.$ac_objext \
27942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027943LIBS=$ac_check_lib_save_LIBS
27944fi
cristy8b350f62009-11-15 23:12:43 +000027945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027946$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027947if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27949fi
27950
27951 LDFLAGS=$ac_save_LDFLAGS
27952
27953fi
27954
27955if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027956 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27957$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027960 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27961$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027962 LDFLAGS="$LDFLAGS $X_LIBS"
27963 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27964 LIBS="$X11_LIBS $LIBS"
27965 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27966
27967
cristy8b350f62009-11-15 23:12:43 +000027968$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027969
27970 #
27971 # Check for X11 shared memory extension
27972 #
27973 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027974 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027975if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 have_shmctl='yes'
27977fi
27978
27979 if test "$have_shmctl" != 'yes'; then
27980 PERSIST_LIBS=$LIBS
27981 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027983/* end confdefs.h. */
27984
27985/* Override any GCC internal prototype to avoid an error.
27986 Use char because int might match the return type of a GCC
27987 builtin and then its argument prototype would still apply. */
27988#ifdef __cplusplus
27989extern "C"
27990#endif
27991char shmctl ();
27992int
27993main ()
27994{
27995return shmctl ();
27996 ;
27997 return 0;
27998}
27999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028001 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028002fi
cristy8b350f62009-11-15 23:12:43 +000028003rm -f core conftest.err conftest.$ac_objext \
28004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005 LIBS=$PERSIST_LIBS
28006 fi
28007
28008 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028010$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028011if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 $as_echo_n "(cached) " >&6
28013else
28014 ac_check_lib_save_LIBS=$LIBS
28015LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028017/* end confdefs.h. */
28018
28019/* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
28022#ifdef __cplusplus
28023extern "C"
28024#endif
28025char XShmAttach ();
28026int
28027main ()
28028{
28029return XShmAttach ();
28030 ;
28031 return 0;
28032}
28033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 ac_cv_lib_Xext_XShmAttach=yes
28036else
cristy8b350f62009-11-15 23:12:43 +000028037 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028038fi
cristy8b350f62009-11-15 23:12:43 +000028039rm -f core conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028041LIBS=$ac_check_lib_save_LIBS
28042fi
cristy8b350f62009-11-15 23:12:43 +000028043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028045if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028047$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028048
28049fi
28050
28051 fi
28052
28053 #
28054 # Check for X11 shape extension
28055 #
cristy8b350f62009-11-15 23:12:43 +000028056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028058if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 $as_echo_n "(cached) " >&6
28060else
28061 ac_check_lib_save_LIBS=$LIBS
28062LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028064/* end confdefs.h. */
28065
28066/* Override any GCC internal prototype to avoid an error.
28067 Use char because int might match the return type of a GCC
28068 builtin and then its argument prototype would still apply. */
28069#ifdef __cplusplus
28070extern "C"
28071#endif
28072char XShapeCombineMask ();
28073int
28074main ()
28075{
28076return XShapeCombineMask ();
28077 ;
28078 return 0;
28079}
28080_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028081if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028082 ac_cv_lib_Xext_XShapeCombineMask=yes
28083else
cristy8b350f62009-11-15 23:12:43 +000028084 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028085fi
cristy8b350f62009-11-15 23:12:43 +000028086rm -f core conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028088LIBS=$ac_check_lib_save_LIBS
28089fi
cristy8b350f62009-11-15 23:12:43 +000028090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028091$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028092if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028093 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028094$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028095
28096fi
28097
cristy8b350f62009-11-15 23:12:43 +000028098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028099$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028100if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028101 $as_echo_n "(cached) " >&6
28102else
28103 ac_check_lib_save_LIBS=$LIBS
28104LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106/* end confdefs.h. */
28107
28108/* Override any GCC internal prototype to avoid an error.
28109 Use char because int might match the return type of a GCC
28110 builtin and then its argument prototype would still apply. */
28111#ifdef __cplusplus
28112extern "C"
28113#endif
28114char XtSetEventDispatcher ();
28115int
28116main ()
28117{
28118return XtSetEventDispatcher ();
28119 ;
28120 return 0;
28121}
28122_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028123if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028124 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28125else
cristy8b350f62009-11-15 23:12:43 +000028126 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028127fi
cristy8b350f62009-11-15 23:12:43 +000028128rm -f core conftest.err conftest.$ac_objext \
28129 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028130LIBS=$ac_check_lib_save_LIBS
28131fi
cristy8b350f62009-11-15 23:12:43 +000028132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028133$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028134if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028135 XT_LIBS='-lXt'
28136fi
28137
28138 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28139fi
28140if test "$no_x" != 'yes'; then
28141 have_x='yes'
28142else
28143 have_x='no'
28144fi
cristy73bd4a52010-10-05 11:24:23 +000028145 if test "$have_x" = 'yes'; then
28146 X11_DELEGATE_TRUE=
28147 X11_DELEGATE_FALSE='#'
28148else
28149 X11_DELEGATE_TRUE='#'
28150 X11_DELEGATE_FALSE=
28151fi
28152
cristy3ed852e2009-09-05 21:47:34 +000028153
28154
28155
28156
28157#
28158# Check for ZLIB
28159#
28160
28161# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028162if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028163 withval=$with_zlib; with_zlib=$withval
28164else
28165 with_zlib='yes'
28166fi
28167
28168
28169if test "$with_zlib" != 'yes'; then
28170 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28171fi
28172
28173have_zlib='no'
28174ZLIB_LIBS=''
28175if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028176 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28177$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028180 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28181$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028182 ZLIB_LIBS=''
28183 failed=0
28184 passed=0
cristy8b350f62009-11-15 23:12:43 +000028185 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028186if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028187 passed=`expr $passed + 1`
28188else
28189 failed=`expr $failed + 1`
28190fi
28191
28192
cristy8b350f62009-11-15 23:12:43 +000028193 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028194if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028195 passed=`expr $passed + 1`
28196else
28197 failed=`expr $failed + 1`
28198fi
28199
28200
cristy8b350f62009-11-15 23:12:43 +000028201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028202$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028203if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028204 $as_echo_n "(cached) " >&6
28205else
28206 ac_check_lib_save_LIBS=$LIBS
28207LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028209/* end confdefs.h. */
28210
28211/* Override any GCC internal prototype to avoid an error.
28212 Use char because int might match the return type of a GCC
28213 builtin and then its argument prototype would still apply. */
28214#ifdef __cplusplus
28215extern "C"
28216#endif
28217char compress ();
28218int
28219main ()
28220{
28221return compress ();
28222 ;
28223 return 0;
28224}
28225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028227 ac_cv_lib_z_compress=yes
28228else
cristy8b350f62009-11-15 23:12:43 +000028229 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028230fi
cristy8b350f62009-11-15 23:12:43 +000028231rm -f core conftest.err conftest.$ac_objext \
28232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028233LIBS=$ac_check_lib_save_LIBS
28234fi
cristy8b350f62009-11-15 23:12:43 +000028235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028236$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028237if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028238 passed=`expr $passed + 1`
28239else
28240 failed=`expr $failed + 1`
28241fi
28242
cristy8b350f62009-11-15 23:12:43 +000028243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028244$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028245if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028246 $as_echo_n "(cached) " >&6
28247else
28248 ac_check_lib_save_LIBS=$LIBS
28249LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028251/* end confdefs.h. */
28252
28253/* Override any GCC internal prototype to avoid an error.
28254 Use char because int might match the return type of a GCC
28255 builtin and then its argument prototype would still apply. */
28256#ifdef __cplusplus
28257extern "C"
28258#endif
28259char uncompress ();
28260int
28261main ()
28262{
28263return uncompress ();
28264 ;
28265 return 0;
28266}
28267_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028268if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028269 ac_cv_lib_z_uncompress=yes
28270else
cristy8b350f62009-11-15 23:12:43 +000028271 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028272fi
cristy8b350f62009-11-15 23:12:43 +000028273rm -f core conftest.err conftest.$ac_objext \
28274 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028275LIBS=$ac_check_lib_save_LIBS
28276fi
cristy8b350f62009-11-15 23:12:43 +000028277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028278$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028279if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028280 passed=`expr $passed + 1`
28281else
28282 failed=`expr $failed + 1`
28283fi
28284
cristy8b350f62009-11-15 23:12:43 +000028285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028286$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028287if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028288 $as_echo_n "(cached) " >&6
28289else
28290 ac_check_lib_save_LIBS=$LIBS
28291LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028293/* end confdefs.h. */
28294
28295/* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28298#ifdef __cplusplus
28299extern "C"
28300#endif
28301char deflate ();
28302int
28303main ()
28304{
28305return deflate ();
28306 ;
28307 return 0;
28308}
28309_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028310if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028311 ac_cv_lib_z_deflate=yes
28312else
cristy8b350f62009-11-15 23:12:43 +000028313 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028314fi
cristy8b350f62009-11-15 23:12:43 +000028315rm -f core conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028317LIBS=$ac_check_lib_save_LIBS
28318fi
cristy8b350f62009-11-15 23:12:43 +000028319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028320$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028321if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028322 passed=`expr $passed + 1`
28323else
28324 failed=`expr $failed + 1`
28325fi
28326
cristy8b350f62009-11-15 23:12:43 +000028327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028328$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028329if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028330 $as_echo_n "(cached) " >&6
28331else
28332 ac_check_lib_save_LIBS=$LIBS
28333LIBS="-lz $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 inflate ();
28344int
28345main ()
28346{
28347return inflate ();
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_z_inflate=yes
28354else
cristy8b350f62009-11-15 23:12:43 +000028355 ac_cv_lib_z_inflate=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_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028362$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028363if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028364 passed=`expr $passed + 1`
28365else
28366 failed=`expr $failed + 1`
28367fi
28368
cristy8b350f62009-11-15 23:12:43 +000028369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028370$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028371if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028372 $as_echo_n "(cached) " >&6
28373else
28374 ac_check_lib_save_LIBS=$LIBS
28375LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028377/* end confdefs.h. */
28378
28379/* Override any GCC internal prototype to avoid an error.
28380 Use char because int might match the return type of a GCC
28381 builtin and then its argument prototype would still apply. */
28382#ifdef __cplusplus
28383extern "C"
28384#endif
28385char gzseek ();
28386int
28387main ()
28388{
28389return gzseek ();
28390 ;
28391 return 0;
28392}
28393_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028394if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028395 ac_cv_lib_z_gzseek=yes
28396else
cristy8b350f62009-11-15 23:12:43 +000028397 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028398fi
cristy8b350f62009-11-15 23:12:43 +000028399rm -f core conftest.err conftest.$ac_objext \
28400 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028401LIBS=$ac_check_lib_save_LIBS
28402fi
cristy8b350f62009-11-15 23:12:43 +000028403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028404$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028405if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028406 passed=`expr $passed + 1`
28407else
28408 failed=`expr $failed + 1`
28409fi
28410
cristy8b350f62009-11-15 23:12:43 +000028411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028413if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028414 $as_echo_n "(cached) " >&6
28415else
28416 ac_check_lib_save_LIBS=$LIBS
28417LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028419/* end confdefs.h. */
28420
28421/* Override any GCC internal prototype to avoid an error.
28422 Use char because int might match the return type of a GCC
28423 builtin and then its argument prototype would still apply. */
28424#ifdef __cplusplus
28425extern "C"
28426#endif
28427char gztell ();
28428int
28429main ()
28430{
28431return gztell ();
28432 ;
28433 return 0;
28434}
28435_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028436if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028437 ac_cv_lib_z_gztell=yes
28438else
cristy8b350f62009-11-15 23:12:43 +000028439 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028440fi
cristy8b350f62009-11-15 23:12:43 +000028441rm -f core conftest.err conftest.$ac_objext \
28442 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028443LIBS=$ac_check_lib_save_LIBS
28444fi
cristy8b350f62009-11-15 23:12:43 +000028445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028446$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028447if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028448 passed=`expr $passed + 1`
28449else
28450 failed=`expr $failed + 1`
28451fi
28452
cristy8b350f62009-11-15 23:12:43 +000028453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028454$as_echo_n "checking if ZLIB package is complete... " >&6; }
28455 if test $passed -gt 0; then
28456 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028457 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28458$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028459 have_zlib='no (failed tests)'
28460 else
28461 ZLIB_LIBS='-lz'
28462 LIBS="$ZLIB_LIBS $LIBS"
28463
cristy8b350f62009-11-15 23:12:43 +000028464$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028465
cristy09b53e12011-10-14 12:47:22 +000028466 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28467$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028468 have_zlib='yes'
28469 fi
28470 else
cristy09b53e12011-10-14 12:47:22 +000028471 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28472$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028473 fi
28474fi
cristy73bd4a52010-10-05 11:24:23 +000028475 if test "$have_zlib" = 'yes'; then
28476 ZLIB_DELEGATE_TRUE=
28477 ZLIB_DELEGATE_FALSE='#'
28478else
28479 ZLIB_DELEGATE_TRUE='#'
28480 ZLIB_DELEGATE_FALSE=
28481fi
28482
cristy3ed852e2009-09-05 21:47:34 +000028483
28484
28485#
28486# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28487#
28488LIB_DL=''
28489if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028492if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 $as_echo_n "(cached) " >&6
28494else
28495 ac_check_lib_save_LIBS=$LIBS
28496LIBS="-ldl $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 dlopen ();
28507int
28508main ()
28509{
28510return dlopen ();
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_dl_dlopen=yes
28517else
cristy8b350f62009-11-15 23:12:43 +000028518 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028526if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028527 LIB_DL='-ldl'
28528fi
28529
28530 LIBS="$LIB_DL $LIBS"
28531fi
28532
28533
28534
28535#
28536# Check for Autotrace delegate library.
28537#
28538
28539# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028540if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028541 withval=$with_autotrace; with_autotrace=$withval
28542else
28543 with_autotrace='no'
28544fi
28545
28546
28547if test "$with_autotrace" != 'yes'; then
28548 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28549fi
28550
28551have_autotrace='no'
28552AUTOTRACE_CFLAGS=""
28553AUTOTRACE_LIBS=""
28554AUTOTRACE_PKG=""
28555if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028556 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28557$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028558
28559pkg_failed=no
28560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28561$as_echo_n "checking for AUTOTRACE... " >&6; }
28562
28563if test -n "$AUTOTRACE_CFLAGS"; then
28564 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28565 elif test -n "$PKG_CONFIG"; then
28566 if test -n "$PKG_CONFIG" && \
28567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28568 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28569 ac_status=$?
28570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28571 test $ac_status = 0; }; then
28572 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28573else
28574 pkg_failed=yes
28575fi
28576 else
28577 pkg_failed=untried
28578fi
28579if test -n "$AUTOTRACE_LIBS"; then
28580 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28581 elif test -n "$PKG_CONFIG"; then
28582 if test -n "$PKG_CONFIG" && \
28583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28584 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28585 ac_status=$?
28586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28587 test $ac_status = 0; }; then
28588 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28589else
28590 pkg_failed=yes
28591fi
28592 else
28593 pkg_failed=untried
28594fi
28595
28596
28597
28598if test $pkg_failed = yes; then
28599
28600if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28601 _pkg_short_errors_supported=yes
28602else
28603 _pkg_short_errors_supported=no
28604fi
28605 if test $_pkg_short_errors_supported = yes; then
28606 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28607 else
28608 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28609 fi
28610 # Put the nasty error message in config.log where it belongs
28611 echo "$AUTOTRACE_PKG_ERRORS" >&5
28612
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28614$as_echo "no" >&6; }
28615 have_autotrace=no
28616elif test $pkg_failed = untried; then
28617 have_autotrace=no
28618else
28619 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28620 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622$as_echo "yes" >&6; }
28623 have_autotrace=yes
28624fi
cristy09b53e12011-10-14 12:47:22 +000028625 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28626$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028627fi
28628
28629if test "$have_autotrace" = 'yes'; then
28630 failed=0
28631
cristy8b350f62009-11-15 23:12:43 +000028632$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028633
28634 if test "$with_modules" = 'no'; then
28635 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28636 fi
28637fi
28638
cristy73bd4a52010-10-05 11:24:23 +000028639 if test "$have_autotrace" = 'yes'; then
28640 AUTOTRACE_DELEGATE_TRUE=
28641 AUTOTRACE_DELEGATE_FALSE='#'
28642else
28643 AUTOTRACE_DELEGATE_TRUE='#'
28644 AUTOTRACE_DELEGATE_FALSE=
28645fi
28646
cristy3ed852e2009-09-05 21:47:34 +000028647
28648
28649
28650
28651#
28652# Check for Display Postscript delegate library.
28653#
28654
28655# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028656if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028657 withval=$with_dps; with_dps=$withval
28658else
28659 with_dps='yes'
28660fi
28661
28662
28663if test "$with_dps" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28665fi
28666
28667have_dps='no'
28668DPS_LIBS=''
28669if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028670 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28671$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028673$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028674 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28675$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028676 failed=0
28677 passed=0
28678 PERSIST_CPPFLAGS="$CPPFLAGS"
28679 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028680 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 +000028681if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028682 passed=`expr $passed + 1`
28683else
28684 failed=`expr $failed + 1`
28685fi
28686
28687
28688 # DPS issues:
28689 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28690 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28691 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28692 # ImageMagick itself doesn't use -lXt.
28693 have_libdps='no'
28694 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028696$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028697if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028698 $as_echo_n "(cached) " >&6
28699else
28700 ac_check_lib_save_LIBS=$LIBS
28701LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028703/* end confdefs.h. */
28704
28705/* Override any GCC internal prototype to avoid an error.
28706 Use char because int might match the return type of a GCC
28707 builtin and then its argument prototype would still apply. */
28708#ifdef __cplusplus
28709extern "C"
28710#endif
28711char DPSInitialize ();
28712int
28713main ()
28714{
28715return DPSInitialize ();
28716 ;
28717 return 0;
28718}
28719_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028720if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028721 ac_cv_lib_dps_DPSInitialize=yes
28722else
cristy8b350f62009-11-15 23:12:43 +000028723 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028724fi
cristy8b350f62009-11-15 23:12:43 +000028725rm -f core conftest.err conftest.$ac_objext \
28726 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028727LIBS=$ac_check_lib_save_LIBS
28728fi
cristy8b350f62009-11-15 23:12:43 +000028729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028730$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028731if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028732 have_libdps='yes'
28733else
28734 have_libdps='no'
28735fi
28736
28737 if test "$have_libdps" != 'yes'; then
28738 # Unset cache variable so we can try again.
28739 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028741$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028742if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028743 $as_echo_n "(cached) " >&6
28744else
28745 ac_check_lib_save_LIBS=$LIBS
28746LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028748/* end confdefs.h. */
28749
28750/* Override any GCC internal prototype to avoid an error.
28751 Use char because int might match the return type of a GCC
28752 builtin and then its argument prototype would still apply. */
28753#ifdef __cplusplus
28754extern "C"
28755#endif
28756char DPSInitialize ();
28757int
28758main ()
28759{
28760return DPSInitialize ();
28761 ;
28762 return 0;
28763}
28764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028766 ac_cv_lib_dps_DPSInitialize=yes
28767else
cristy8b350f62009-11-15 23:12:43 +000028768 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028769fi
cristy8b350f62009-11-15 23:12:43 +000028770rm -f core conftest.err conftest.$ac_objext \
28771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028772LIBS=$ac_check_lib_save_LIBS
28773fi
cristy8b350f62009-11-15 23:12:43 +000028774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028775$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028776if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028777 have_libdps='yes'
28778else
28779 have_libdps='no'
28780fi
28781
28782 if test "$have_libdps" = 'yes'; then
28783 LIBDPS_XT='-lXt'
28784 fi
28785 fi
28786 if test "$have_libdps" = 'yes'; then
28787 passed=`expr $passed + 1`
28788 else
28789 failed=`expr $failed + 1`
28790 fi
cristy8b350f62009-11-15 23:12:43 +000028791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028792$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028793if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028794 $as_echo_n "(cached) " >&6
28795else
28796 ac_check_lib_save_LIBS=$LIBS
28797LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028799/* end confdefs.h. */
28800
28801/* Override any GCC internal prototype to avoid an error.
28802 Use char because int might match the return type of a GCC
28803 builtin and then its argument prototype would still apply. */
28804#ifdef __cplusplus
28805extern "C"
28806#endif
28807char XDPSPixelsPerPoint ();
28808int
28809main ()
28810{
28811return XDPSPixelsPerPoint ();
28812 ;
28813 return 0;
28814}
28815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028817 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28818else
cristy8b350f62009-11-15 23:12:43 +000028819 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028820fi
cristy8b350f62009-11-15 23:12:43 +000028821rm -f core conftest.err conftest.$ac_objext \
28822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028823LIBS=$ac_check_lib_save_LIBS
28824fi
cristy8b350f62009-11-15 23:12:43 +000028825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028826$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028827if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028828 passed=`expr $passed + 1`
28829else
28830 failed=`expr $failed + 1`
28831fi
28832
cristy8b350f62009-11-15 23:12:43 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028834$as_echo_n "checking if DPS package is complete... " >&6; }
28835 if test $passed -gt 0; then
28836 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28838$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028839 have_dps='no (failed tests)'
28840 CPPFLAGS="$PERSIST_CPPFLAGS"
28841 else
28842 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28843 LIBS="$DPS_LIBS $LIBS"
28844
cristy8b350f62009-11-15 23:12:43 +000028845$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028846
cristy09b53e12011-10-14 12:47:22 +000028847 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28848$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028849 have_dps='yes'
28850 fi
28851 else
cristy09b53e12011-10-14 12:47:22 +000028852 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28853$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028854 CPPFLAGS=$PERSIST_CPPFLAGS
28855 fi
28856fi
cristy73bd4a52010-10-05 11:24:23 +000028857 if test "$have_dps" = 'yes'; then
28858 DPS_DELEGATE_TRUE=
28859 DPS_DELEGATE_FALSE='#'
28860else
28861 DPS_DELEGATE_TRUE='#'
28862 DPS_DELEGATE_FALSE=
28863fi
28864
cristy3ed852e2009-09-05 21:47:34 +000028865
28866
28867
28868#
28869# Check for DJVU delegate library.
28870#
28871
28872# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028873if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028874 withval=$with_djvu; with_djvu=$withval
28875else
28876 with_djvu='yes'
28877fi
28878
28879
28880if test "$with_djvu" != 'yes'; then
28881 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28882fi
28883
28884have_djvu='no'
28885DJVU_LIBS=''
28886if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028887 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28888$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028890$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028891 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28892$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028893 failed=0
28894 passed=0
cristy8b350f62009-11-15 23:12:43 +000028895 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 +000028896if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028897 passed=`expr $passed + 1`
28898else
28899 failed=`expr $failed + 1`
28900fi
28901
28902
cristy8b350f62009-11-15 23:12:43 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028905if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 $as_echo_n "(cached) " >&6
28907else
28908 ac_check_lib_save_LIBS=$LIBS
28909LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028911/* end confdefs.h. */
28912
28913/* Override any GCC internal prototype to avoid an error.
28914 Use char because int might match the return type of a GCC
28915 builtin and then its argument prototype would still apply. */
28916#ifdef __cplusplus
28917extern "C"
28918#endif
28919char ddjvu_context_create ();
28920int
28921main ()
28922{
28923return ddjvu_context_create ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28930else
cristy8b350f62009-11-15 23:12:43 +000028931 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028932fi
cristy8b350f62009-11-15 23:12:43 +000028933rm -f core conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028935LIBS=$ac_check_lib_save_LIBS
28936fi
cristy8b350f62009-11-15 23:12:43 +000028937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028939if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028940 passed=`expr $passed + 1`
28941else
28942 failed=`expr $failed + 1`
28943fi
28944
cristy8b350f62009-11-15 23:12:43 +000028945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028946$as_echo_n "checking if DJVU package is complete... " >&6; }
28947 if test $passed -gt 0; then
28948 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028949 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28950$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028951 have_djvu='no (failed tests)'
28952 else
28953 DJVU_LIBS='-ldjvulibre'
28954 LIBS="$DJVU_LIBS $LIBS"
28955
cristy8b350f62009-11-15 23:12:43 +000028956$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028957
cristy09b53e12011-10-14 12:47:22 +000028958 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28959$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028960 have_djvu='yes'
28961 fi
28962 else
cristy09b53e12011-10-14 12:47:22 +000028963 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28964$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028965 fi
28966fi
cristy73bd4a52010-10-05 11:24:23 +000028967 if test "$have_djvu" = 'yes'; then
28968 DJVU_DELEGATE_TRUE=
28969 DJVU_DELEGATE_FALSE='#'
28970else
28971 DJVU_DELEGATE_TRUE='#'
28972 DJVU_DELEGATE_FALSE=
28973fi
28974
cristy3ed852e2009-09-05 21:47:34 +000028975
28976
28977
28978#
cristy430a7312010-01-21 20:44:04 +000028979# Set DejaVu font directory.
28980#
28981
28982# Check whether --with-dejavu-font-dir was given.
28983if test "${with_dejavu_font_dir+set}" = set; then :
28984 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28985else
28986 with_dejavu_font_dir='default'
28987fi
28988
28989
28990if test "$with_dejavu_font_dir" != 'default'; then
28991 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28992fi
28993
28994
28995#
cristy3ed852e2009-09-05 21:47:34 +000028996# Check for FFTW delegate library.
28997#
28998
28999# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029000if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029001 withval=$with_fftw; with_fftw=$withval
29002else
29003 with_fftw='yes'
29004fi
29005
29006
29007if test "$with_fftw" != 'yes'; then
29008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29009fi
29010
cristy81beccd2011-10-03 18:17:24 +000029011have_fftw='no'
29012FFTW_LIBS=''
29013if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029014 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29015$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29017$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029018 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29019$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029020 failed=0
29021 passed=0
29022 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29023if test "x$ac_cv_header_fftw3_h" = xyes; then :
29024 passed=`expr $passed + 1`
29025else
29026 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029027fi
29028
cristy81beccd2011-10-03 18:17:24 +000029029
29030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29031$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29032if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29033 $as_echo_n "(cached) " >&6
29034else
29035 ac_check_lib_save_LIBS=$LIBS
29036LIBS="-lfftw3 $LIBS"
29037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29038/* end confdefs.h. */
29039
29040/* Override any GCC internal prototype to avoid an error.
29041 Use char because int might match the return type of a GCC
29042 builtin and then its argument prototype would still apply. */
29043#ifdef __cplusplus
29044extern "C"
29045#endif
29046char fftw_execute ();
29047int
29048main ()
29049{
29050return fftw_execute ();
29051 ;
29052 return 0;
29053}
29054_ACEOF
29055if ac_fn_c_try_link "$LINENO"; then :
29056 ac_cv_lib_fftw3_fftw_execute=yes
29057else
29058 ac_cv_lib_fftw3_fftw_execute=no
29059fi
29060rm -f core conftest.err conftest.$ac_objext \
29061 conftest$ac_exeext conftest.$ac_ext
29062LIBS=$ac_check_lib_save_LIBS
29063fi
29064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29065$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29066if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29067 passed=`expr $passed + 1`
29068else
29069 failed=`expr $failed + 1`
29070fi
29071
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29073$as_echo_n "checking if FFTW package is complete... " >&6; }
29074 if test $passed -gt 0; then
29075 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029076 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29077$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029078 have_fftw='no (failed tests)'
29079 else
29080 FFTW_LIBS='-lfftw3'
29081 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029082
cristy8b350f62009-11-15 23:12:43 +000029083$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029084
cristy09b53e12011-10-14 12:47:22 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29086$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029087 have_fftw='yes'
29088 fi
29089 else
cristy09b53e12011-10-14 12:47:22 +000029090 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29091$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029092 fi
29093fi
cristy73bd4a52010-10-05 11:24:23 +000029094 if test "$have_fftw" = 'yes'; then
29095 FFTW_DELEGATE_TRUE=
29096 FFTW_DELEGATE_FALSE='#'
29097else
29098 FFTW_DELEGATE_TRUE='#'
29099 FFTW_DELEGATE_FALSE=
29100fi
29101
cristy3ed852e2009-09-05 21:47:34 +000029102
29103
29104
29105#
29106# Check for FlashPIX delegate library.
29107#
29108
29109# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029110if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029111 withval=$with_fpx; with_fpx=$withval
29112else
29113 with_fpx='yes'
29114fi
29115
29116
29117if test "$with_fpx" != 'yes'; then
29118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29119fi
29120
29121have_fpx='no'
29122FPX_LIBS=''
29123if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029124 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29125$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029127$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029128 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29129$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029130 failed=0
29131 passed=0
29132 ac_ext=cpp
29133ac_cpp='$CXXCPP $CPPFLAGS'
29134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29137
29138
cristy8b350f62009-11-15 23:12:43 +000029139ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029140if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029141 passed=`expr $passed + 1`
29142else
29143 failed=`expr $failed + 1`
29144fi
29145
29146
cristy8b350f62009-11-15 23:12:43 +000029147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029148$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029149if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029150 $as_echo_n "(cached) " >&6
29151else
29152 ac_check_lib_save_LIBS=$LIBS
29153LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029155/* end confdefs.h. */
29156
29157/* Override any GCC internal prototype to avoid an error.
29158 Use char because int might match the return type of a GCC
29159 builtin and then its argument prototype would still apply. */
29160#ifdef __cplusplus
29161extern "C"
29162#endif
29163char FPX_OpenImageByFilename ();
29164int
29165main ()
29166{
29167return FPX_OpenImageByFilename ();
29168 ;
29169 return 0;
29170}
29171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029172if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029173 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29174else
cristy8b350f62009-11-15 23:12:43 +000029175 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029176fi
cristy8b350f62009-11-15 23:12:43 +000029177rm -f core conftest.err conftest.$ac_objext \
29178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029179LIBS=$ac_check_lib_save_LIBS
29180fi
cristy8b350f62009-11-15 23:12:43 +000029181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029182$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029183if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029184 passed=`expr $passed + 1`
29185else
29186 failed=`expr $failed + 1`
29187fi
29188
29189 ac_ext=c
29190ac_cpp='$CPP $CPPFLAGS'
29191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29193ac_compiler_gnu=$ac_cv_c_compiler_gnu
29194
cristy8b350f62009-11-15 23:12:43 +000029195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029196$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29197 if test $passed -gt 0; then
29198 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029199 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29200$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029201 have_fpx='no (failed tests)'
29202 else
29203 FPX_LIBS='-lfpx'
29204
cristy8b350f62009-11-15 23:12:43 +000029205$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029206
cristy09b53e12011-10-14 12:47:22 +000029207 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29208$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029209 have_fpx='yes'
29210 PERLMAINCC="$CXX"
29211 fi
29212 else
cristy09b53e12011-10-14 12:47:22 +000029213 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29214$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029215 fi
29216fi
cristy73bd4a52010-10-05 11:24:23 +000029217 if test "$have_fpx" = 'yes'; then
29218 FPX_DELEGATE_TRUE=
29219 FPX_DELEGATE_FALSE='#'
29220else
29221 FPX_DELEGATE_TRUE='#'
29222 FPX_DELEGATE_FALSE=
29223fi
29224
cristy3ed852e2009-09-05 21:47:34 +000029225
29226
29227
29228#
29229# Check for fontconfig delegate library.
29230#
29231
29232# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029233if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 withval=$with_fontconfig; with_fontconfig=$withval
29235else
cristyfc3d0222012-02-07 15:05:57 +000029236 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029237fi
29238
29239
29240if test "$with_fontconfig" != 'yes'; then
29241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29242fi
29243
29244have_fontconfig='no'
29245FONTCONFIG_CFLAGS=""
29246FONTCONFIG_LIBS=""
29247FONTCONFIG_PKG=""
29248if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29250$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029251
29252pkg_failed=no
29253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29254$as_echo_n "checking for FONTCONFIG... " >&6; }
29255
29256if test -n "$FONTCONFIG_CFLAGS"; then
29257 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29258 elif test -n "$PKG_CONFIG"; then
29259 if test -n "$PKG_CONFIG" && \
29260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29261 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29262 ac_status=$?
29263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29264 test $ac_status = 0; }; then
29265 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29266else
29267 pkg_failed=yes
29268fi
29269 else
29270 pkg_failed=untried
29271fi
29272if test -n "$FONTCONFIG_LIBS"; then
29273 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29274 elif test -n "$PKG_CONFIG"; then
29275 if test -n "$PKG_CONFIG" && \
29276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29277 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29278 ac_status=$?
29279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29280 test $ac_status = 0; }; then
29281 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29282else
29283 pkg_failed=yes
29284fi
29285 else
29286 pkg_failed=untried
29287fi
29288
29289
29290
29291if test $pkg_failed = yes; then
29292
29293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29294 _pkg_short_errors_supported=yes
29295else
29296 _pkg_short_errors_supported=no
29297fi
29298 if test $_pkg_short_errors_supported = yes; then
29299 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29300 else
29301 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29302 fi
29303 # Put the nasty error message in config.log where it belongs
29304 echo "$FONTCONFIG_PKG_ERRORS" >&5
29305
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29307$as_echo "no" >&6; }
29308 have_fontconfig=no
29309elif test $pkg_failed = untried; then
29310 have_fontconfig=no
29311else
29312 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29313 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29315$as_echo "yes" >&6; }
29316 have_fontconfig=yes
29317fi
cristy09b53e12011-10-14 12:47:22 +000029318 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29319$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029320fi
29321
29322if test "$have_fontconfig" = 'yes'; then
29323
cristy8b350f62009-11-15 23:12:43 +000029324$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029325
cristyd09bcf92010-03-25 03:04:45 +000029326 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029327 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029328 fi
cristy3ed852e2009-09-05 21:47:34 +000029329fi
29330
cristy73bd4a52010-10-05 11:24:23 +000029331 if test "$have_fontconfig" = 'yes'; then
29332 FONTCONFIG_DELEGATE_TRUE=
29333 FONTCONFIG_DELEGATE_FALSE='#'
29334else
29335 FONTCONFIG_DELEGATE_TRUE='#'
29336 FONTCONFIG_DELEGATE_FALSE=
29337fi
29338
cristy3ed852e2009-09-05 21:47:34 +000029339
29340
29341
29342
29343#
cristy81beccd2011-10-03 18:17:24 +000029344# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029345#
29346
29347# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029348if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029349 withval=$with_freetype; with_freetype=$withval
29350else
29351 with_freetype='yes'
29352fi
29353
29354
cristy81beccd2011-10-03 18:17:24 +000029355
cristy3ed852e2009-09-05 21:47:34 +000029356if test "$with_freetype" != 'yes'; then
29357 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29358fi
29359
cristy81beccd2011-10-03 18:17:24 +000029360have_freetype='no'
29361FREETYPE_LIBS=''
29362if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029363 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29364$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29366$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029367 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29368$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029369 failed=0
29370 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029371 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029372 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029373 freetype_config=''
29374 # Allow the user to specify the location of freetype.
29375 if test "$with_freetype" != 'yes'; then
29376 if test -x "${with_freetype}/bin/freetype-config"; then
29377 freetype_config="${with_freetype}/bin/freetype-config"
29378 elif test -x "${with_freetype}"; then
29379 freetype_config=${with_freetype}
29380 fi
29381 fi
29382 if test -z "$freetype_config"; then
29383 # Extract the first word of "freetype-config", so it can be a program name with args.
29384set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29386$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029387if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029388 $as_echo_n "(cached) " >&6
29389else
cristy98ca0f52011-10-08 23:19:10 +000029390 case $freetype_config in
29391 [\\/]* | ?:[\\/]*)
29392 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29393 ;;
29394 *)
29395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029396for as_dir in $PATH
29397do
29398 IFS=$as_save_IFS
29399 test -z "$as_dir" && as_dir=.
29400 for ac_exec_ext in '' $ac_executable_extensions; do
29401 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 +000029402 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29404 break 2
29405 fi
29406done
29407 done
29408IFS=$as_save_IFS
29409
cristy98ca0f52011-10-08 23:19:10 +000029410 ;;
29411esac
cristy81beccd2011-10-03 18:17:24 +000029412fi
cristy98ca0f52011-10-08 23:19:10 +000029413freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029414if test -n "$freetype_config"; then
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29416$as_echo "$freetype_config" >&6; }
29417else
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29419$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029420fi
29421
cristy98ca0f52011-10-08 23:19:10 +000029422 fi
29423 if test -n "$freetype_config"; then
29424 freetype_prefix=`${freetype_config} --prefix`
29425 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29426 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29427 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029428 fi
29429
29430 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029432$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29433if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29434 $as_echo_n "(cached) " >&6
29435else
29436 ac_check_lib_save_LIBS=$LIBS
29437LIBS="-lfreetype $LIBS"
29438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29439/* end confdefs.h. */
29440
29441/* Override any GCC internal prototype to avoid an error.
29442 Use char because int might match the return type of a GCC
29443 builtin and then its argument prototype would still apply. */
29444#ifdef __cplusplus
29445extern "C"
29446#endif
29447char FT_Init_FreeType ();
29448int
29449main ()
29450{
29451return FT_Init_FreeType ();
29452 ;
29453 return 0;
29454}
29455_ACEOF
29456if ac_fn_c_try_link "$LINENO"; then :
29457 ac_cv_lib_freetype_FT_Init_FreeType=yes
29458else
29459 ac_cv_lib_freetype_FT_Init_FreeType=no
29460fi
29461rm -f core conftest.err conftest.$ac_objext \
29462 conftest$ac_exeext conftest.$ac_ext
29463LIBS=$ac_check_lib_save_LIBS
29464fi
29465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29466$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29467if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29468 FREETYPE_LIBS='-lfreetype'
29469fi
29470
cristy98ca0f52011-10-08 23:19:10 +000029471 if test "$FREETYPE_LIBS" != ''; then
29472 passed=`expr $passed + 1`
29473 else
29474 failed=`expr $failed + 1`
29475 LDFLAGS="$PERSIST_LDFLAGS"
29476 fi
cristy81beccd2011-10-03 18:17:24 +000029477 fi
29478
29479 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29480if test "x$ac_cv_header_ft2build_h" = xyes; then :
29481 FT2BUILD_H='#include <ft2build.h>'
29482else
29483 ft2build=''
29484fi
29485
29486
29487 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29488"
29489if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29490 have_freetype_h='yes'
29491else
29492 have_freetype_h='no'
29493fi
29494
29495
cristy98ca0f52011-10-08 23:19:10 +000029496 if test "$have_freetype_h" = 'yes'; then
29497 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029498 else
cristy98ca0f52011-10-08 23:19:10 +000029499 failed=`expr $failed + 1`
29500 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029501 fi
29502
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29504$as_echo_n "checking if FreeType package is complete... " >&6; }
29505 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029506 if test $failed -gt 0; then
29507 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029508 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29509$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029510 have_freetype='no (failed tests)'
29511 else
29512 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029513
cristy8b350f62009-11-15 23:12:43 +000029514$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029515
cristy98ca0f52011-10-08 23:19:10 +000029516 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029517
29518$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29519
cristy81beccd2011-10-03 18:17:24 +000029520 fi
cristy09b53e12011-10-14 12:47:22 +000029521 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29522$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029523 have_freetype='yes'
29524 fi
cristy81beccd2011-10-03 18:17:24 +000029525 else
cristy09b53e12011-10-14 12:47:22 +000029526 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29527$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029528 fi
29529fi
cristy73bd4a52010-10-05 11:24:23 +000029530 if test "$have_freetype" = 'yes'; then
29531 FREETYPE_DELEGATE_TRUE=
29532 FREETYPE_DELEGATE_FALSE='#'
29533else
29534 FREETYPE_DELEGATE_TRUE='#'
29535 FREETYPE_DELEGATE_FALSE=
29536fi
29537
cristy3ed852e2009-09-05 21:47:34 +000029538
29539
29540
cristy3ed852e2009-09-05 21:47:34 +000029541#
29542# Check for Ghostscript library or framework.
29543#
29544# Test for iapi.h & test for gsapi_new_instance in -lgs
29545# or -framework Ghostscript
29546
29547
29548# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029549if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029550 withval=$with_gslib; with_gslib=$withval
29551else
29552 with_gslib='no'
29553fi
29554
29555
cristyb7931f12009-09-25 10:22:21 +000029556gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029557if test "$with_gslib" != 'yes'; then
29558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29559fi
29560
29561have_gslib='no'
29562GS_LIBS=''
29563if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029564 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29565$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29569$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029570 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029571 failed=0
29572 passed=0
cristy8b350f62009-11-15 23:12:43 +000029573 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 +000029574if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029575 passed=`expr $passed + 1`
29576else
29577 failed=`expr $failed + 1`
29578fi
29579
29580
cristy8b350f62009-11-15 23:12:43 +000029581 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 +000029582if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029583 passed=`expr $passed + 1`
29584else
29585 failed=`expr $failed + 1`
29586fi
29587
29588
cristy73bd4a52010-10-05 11:24:23 +000029589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29590$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029591if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029592 $as_echo_n "(cached) " >&6
29593else
29594 ac_check_framework_save_LIBS=$LIBS
29595LIBS="-framework Ghostscript $LIBS"
29596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29597/* end confdefs.h. */
29598
29599/* Override any GCC internal prototype to avoid an error.
29600 Use char because int might match the return type of a GCC
29601 builtin and then its argument prototype would still apply. */
29602#ifdef __cplusplus
29603extern "C"
29604#endif
29605char gsapi_new_instance ();
29606int
29607main ()
29608{
29609return gsapi_new_instance ();
29610 ;
29611 return 0;
29612}
29613_ACEOF
29614if ac_fn_c_try_link "$LINENO"; then :
29615 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29616else
29617 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29618fi
29619rm -f core conftest.err conftest.$ac_objext \
29620 conftest$ac_exeext conftest.$ac_ext
29621LIBS=$ac_check_framework_save_LIBS
29622fi
29623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29624$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29625if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29626 framework=`expr $framework + 1`
29627else
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029629$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029630if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029631 $as_echo_n "(cached) " >&6
29632else
29633 ac_check_lib_save_LIBS=$LIBS
29634LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029636/* end confdefs.h. */
29637
29638/* Override any GCC internal prototype to avoid an error.
29639 Use char because int might match the return type of a GCC
29640 builtin and then its argument prototype would still apply. */
29641#ifdef __cplusplus
29642extern "C"
29643#endif
29644char gsapi_new_instance ();
29645int
29646main ()
29647{
29648return gsapi_new_instance ();
29649 ;
29650 return 0;
29651}
29652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029653if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029654 ac_cv_lib_gs_gsapi_new_instance=yes
29655else
cristy8b350f62009-11-15 23:12:43 +000029656 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029657fi
cristy8b350f62009-11-15 23:12:43 +000029658rm -f core conftest.err conftest.$ac_objext \
29659 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029660LIBS=$ac_check_lib_save_LIBS
29661fi
cristy8b350f62009-11-15 23:12:43 +000029662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029663$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029664if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029665 passed=`expr $passed + 1`
29666else
29667 failed=`expr $failed + 1`
29668fi
cristy73bd4a52010-10-05 11:24:23 +000029669
29670fi
cristy8b350f62009-11-15 23:12:43 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029672$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29673 if test $passed -gt 0; then
29674 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029675 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29676$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029677 have_gslib='no (failed tests)'
29678 else
29679 if test $framework -gt 0; then
29680 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029681 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29683$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029684 else
cristy09b53e12011-10-14 12:47:22 +000029685 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29686$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029687 GS_LIBS='-lgs'
29688 fi
29689 LIBS="$GS_LIBS $LIBS"
29690
cristy8b350f62009-11-15 23:12:43 +000029691$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029692
29693 have_gslib='yes'
29694 fi
29695 else
cristy09b53e12011-10-14 12:47:22 +000029696 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29697$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029698 fi
29699fi
cristy73bd4a52010-10-05 11:24:23 +000029700 if test "$have_gslib" = 'yes'; then
29701 GS_DELEGATE_TRUE=
29702 GS_DELEGATE_FALSE='#'
29703else
29704 GS_DELEGATE_TRUE='#'
29705 GS_DELEGATE_FALSE=
29706fi
29707
cristy3ed852e2009-09-05 21:47:34 +000029708
29709
29710# Set default font search path
29711
29712# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029713if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029714 withval=$with_fontpath; with_fontpath=$withval
29715else
29716 with_fontpath=''
29717fi
29718
29719
29720if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29721 with_fontpath=''
29722else
29723
29724cat >>confdefs.h <<_ACEOF
29725#define MAGICK_FONT_PATH "$with_fontpath"
29726_ACEOF
29727
29728fi
29729if test "$with_fontpath=" != ''; then
29730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29731fi
29732
29733# Set Ghostscript font directory
29734
29735# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029736if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029737 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29738else
29739 with_gs_font_dir='default'
29740fi
29741
29742
29743if test "$with_gs_font_dir" != 'default'; then
29744 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29745fi
29746
29747
29748#
29749# Check for GVC delegate library.
29750#
29751
29752# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029753if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029754 withval=$with_gvc; with_gvc=$withval
29755else
29756 with_gvc='yes'
29757fi
29758
29759
29760if test "$with_gvc" != 'yes'; then
29761 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29762fi
29763
29764GVC_PKG=""
29765if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029766 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29767$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029768
29769pkg_failed=no
29770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29771$as_echo_n "checking for GVC... " >&6; }
29772
29773if test -n "$GVC_CFLAGS"; then
29774 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29775 elif test -n "$PKG_CONFIG"; then
29776 if test -n "$PKG_CONFIG" && \
29777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29778 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29779 ac_status=$?
29780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29781 test $ac_status = 0; }; then
29782 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29783else
29784 pkg_failed=yes
29785fi
29786 else
29787 pkg_failed=untried
29788fi
29789if test -n "$GVC_LIBS"; then
29790 pkg_cv_GVC_LIBS="$GVC_LIBS"
29791 elif test -n "$PKG_CONFIG"; then
29792 if test -n "$PKG_CONFIG" && \
29793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29794 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29795 ac_status=$?
29796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29797 test $ac_status = 0; }; then
29798 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29799else
29800 pkg_failed=yes
29801fi
29802 else
29803 pkg_failed=untried
29804fi
29805
29806
29807
29808if test $pkg_failed = yes; then
29809
29810if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29811 _pkg_short_errors_supported=yes
29812else
29813 _pkg_short_errors_supported=no
29814fi
29815 if test $_pkg_short_errors_supported = yes; then
29816 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29817 else
29818 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29819 fi
29820 # Put the nasty error message in config.log where it belongs
29821 echo "$GVC_PKG_ERRORS" >&5
29822
29823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29824$as_echo "no" >&6; }
29825 have_gvc=no
29826elif test $pkg_failed = untried; then
29827 have_gvc=no
29828else
29829 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29830 GVC_LIBS=$pkg_cv_GVC_LIBS
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29832$as_echo "yes" >&6; }
29833 have_gvc=yes
29834fi
cristy09b53e12011-10-14 12:47:22 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29836$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029837fi
29838
29839if test "$have_gvc" = 'yes'; then
29840
cristy8b350f62009-11-15 23:12:43 +000029841$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029842
29843 if test "$with_modules" = 'no'; then
29844 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29845 fi
29846fi
29847
cristy73bd4a52010-10-05 11:24:23 +000029848 if test "$have_gvc" = 'yes'; then
29849 GVC_DELEGATE_TRUE=
29850 GVC_DELEGATE_FALSE='#'
29851else
29852 GVC_DELEGATE_TRUE='#'
29853 GVC_DELEGATE_FALSE=
29854fi
29855
cristy3ed852e2009-09-05 21:47:34 +000029856
29857
29858
29859
29860#
29861# Check for JBIG delegate library.
29862#
29863
29864
29865# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029866if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029867 withval=$with_jbig; with_jbig=$withval
29868else
29869 with_jbig='yes'
29870fi
29871
29872
29873have_jbig='no'
29874JBIG_LIBS=''
29875if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029876 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29877$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029879$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029880 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29881$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029882 failed=0
29883 passed=0
cristy8b350f62009-11-15 23:12:43 +000029884 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029885if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029886 passed=`expr $passed + 1`
29887else
29888 failed=`expr $failed + 1`
29889fi
29890
29891
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029894if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029895 $as_echo_n "(cached) " >&6
29896else
29897 ac_check_lib_save_LIBS=$LIBS
29898LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029900/* end confdefs.h. */
29901
29902/* Override any GCC internal prototype to avoid an error.
29903 Use char because int might match the return type of a GCC
29904 builtin and then its argument prototype would still apply. */
29905#ifdef __cplusplus
29906extern "C"
29907#endif
29908char jbg_dec_init ();
29909int
29910main ()
29911{
29912return jbg_dec_init ();
29913 ;
29914 return 0;
29915}
29916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029917if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029918 ac_cv_lib_jbig_jbg_dec_init=yes
29919else
cristy8b350f62009-11-15 23:12:43 +000029920 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029921fi
cristy8b350f62009-11-15 23:12:43 +000029922rm -f core conftest.err conftest.$ac_objext \
29923 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029924LIBS=$ac_check_lib_save_LIBS
29925fi
cristy8b350f62009-11-15 23:12:43 +000029926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029927$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029928if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029929 passed=`expr $passed + 1`
29930else
29931 failed=`expr $failed + 1`
29932fi
29933
cristy8b350f62009-11-15 23:12:43 +000029934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029935$as_echo_n "checking if JBIG package is complete... " >&6; }
29936 if test $passed -gt 0; then
29937 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029938 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29939$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029940 have_jbig='no (failed tests)'
29941 else
29942 JBIG_LIBS='-ljbig'
29943 LIBS="$JBIG_LIBS $LIBS"
29944
cristy8b350f62009-11-15 23:12:43 +000029945$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029946
cristy09b53e12011-10-14 12:47:22 +000029947 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29948$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029949 have_jbig='yes'
29950 fi
29951 else
cristy09b53e12011-10-14 12:47:22 +000029952 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29953$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029954 fi
29955fi
cristy73bd4a52010-10-05 11:24:23 +000029956 if test "$have_jbig" = 'yes'; then
29957 JBIG_DELEGATE_TRUE=
29958 JBIG_DELEGATE_FALSE='#'
29959else
29960 JBIG_DELEGATE_TRUE='#'
29961 JBIG_DELEGATE_FALSE=
29962fi
29963
cristy3ed852e2009-09-05 21:47:34 +000029964
29965
29966
29967#
29968# Check for JPEG delegate library.
29969#
29970
29971# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029972if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029973 withval=$with_jpeg; with_jpeg=$withval
29974else
29975 with_jpeg='yes'
29976fi
29977
29978
29979if test "$with_jpeg" != 'yes'; then
29980 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29981fi
29982
29983have_jpeg='no'
29984JPEG_LIBS=''
29985if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029986 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29987$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029989$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029990 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29991$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029992 failed=0
29993 passed=0
cristy8b350f62009-11-15 23:12:43 +000029994 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029995if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029996 passed=`expr $passed + 1`
29997else
29998 failed=`expr $failed + 1`
29999fi
30000
30001
cristy8b350f62009-11-15 23:12:43 +000030002 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030003if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030004 passed=`expr $passed + 1`
30005else
30006 failed=`expr $failed + 1`
30007fi
30008
30009
cristy8b350f62009-11-15 23:12:43 +000030010 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030011if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030012 passed=`expr $passed + 1`
30013else
30014 failed=`expr $failed + 1`
30015fi
30016
30017
cristy8b350f62009-11-15 23:12:43 +000030018 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030019if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030020 passed=`expr $passed + 1`
30021else
30022 failed=`expr $failed + 1`
30023fi
30024
30025
cristy8b350f62009-11-15 23:12:43 +000030026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030027$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030028if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030029 $as_echo_n "(cached) " >&6
30030else
30031 ac_check_lib_save_LIBS=$LIBS
30032LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030034/* end confdefs.h. */
30035
30036/* Override any GCC internal prototype to avoid an error.
30037 Use char because int might match the return type of a GCC
30038 builtin and then its argument prototype would still apply. */
30039#ifdef __cplusplus
30040extern "C"
30041#endif
30042char jpeg_read_header ();
30043int
30044main ()
30045{
30046return jpeg_read_header ();
30047 ;
30048 return 0;
30049}
30050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030051if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030052 ac_cv_lib_jpeg_jpeg_read_header=yes
30053else
cristy8b350f62009-11-15 23:12:43 +000030054 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030055fi
cristy8b350f62009-11-15 23:12:43 +000030056rm -f core conftest.err conftest.$ac_objext \
30057 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030058LIBS=$ac_check_lib_save_LIBS
30059fi
cristy8b350f62009-11-15 23:12:43 +000030060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030061$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030062if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030063 passed=`expr $passed + 1`
30064else
30065 failed=`expr $failed + 1`
30066fi
30067
30068
30069# Test for compatible JPEG library
30070if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030072$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030073if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030074 $as_echo_n "(cached) " >&6
30075else
cristy8b350f62009-11-15 23:12:43 +000030076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030077/* end confdefs.h. */
30078#include <stdio.h>
30079#include <stdlib.h>
30080#include <jpeglib.h>
30081
30082int
30083main ()
30084{
30085
30086#if JPEG_LIB_VERSION < 62
30087#error IJG JPEG library must be version 6b or newer!
30088#endif
30089return 0;
30090
30091 ;
30092 return 0;
30093}
30094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030096 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30097else
cristy8b350f62009-11-15 23:12:43 +000030098 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030099fi
cristy3ed852e2009-09-05 21:47:34 +000030100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101fi
cristy8b350f62009-11-15 23:12:43 +000030102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030103$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30104fi
cristy8b350f62009-11-15 23:12:43 +000030105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030106$as_echo_n "checking if JPEG package is complete... " >&6; }
30107 if test $passed -gt 0; then
30108 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30110$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030111 have_jpeg='no (failed tests)'
30112 else
30113 JPEG_LIBS='-ljpeg'
30114 LIBS="$JPEG_LIBS $LIBS"
30115
cristy8b350f62009-11-15 23:12:43 +000030116$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030117
cristy09b53e12011-10-14 12:47:22 +000030118 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30119$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030120 have_jpeg='yes'
30121 fi
30122 else
cristy09b53e12011-10-14 12:47:22 +000030123 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30124$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030125 fi
30126fi
cristy73bd4a52010-10-05 11:24:23 +000030127 if test "$have_jpeg" = 'yes'; then
30128 JPEG_DELEGATE_TRUE=
30129 JPEG_DELEGATE_FALSE='#'
30130else
30131 JPEG_DELEGATE_TRUE='#'
30132 JPEG_DELEGATE_FALSE=
30133fi
30134
cristy3ed852e2009-09-05 21:47:34 +000030135
30136
30137
30138#
30139# Check for JPEG Version 2 delegate library.
30140#
30141
30142# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030143if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030144 withval=$with_jp2; with_jp2=$withval
30145else
30146 with_jp2='yes'
30147fi
30148
30149
30150if test "$with_jp2" != 'yes'; then
30151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30152fi
30153
30154have_jp2='no'
30155JP2_LIBS=''
30156if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030157 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30158$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030161 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30162$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030163 failed=0
30164 passed=0
cristy8b350f62009-11-15 23:12:43 +000030165 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 +000030166if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030167 passed=`expr $passed + 1`
30168else
30169 failed=`expr $failed + 1`
30170fi
30171
30172
cristy8b350f62009-11-15 23:12:43 +000030173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030174$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030175if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030176 $as_echo_n "(cached) " >&6
30177else
30178 ac_check_lib_save_LIBS=$LIBS
30179LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030181/* end confdefs.h. */
30182
30183/* Override any GCC internal prototype to avoid an error.
30184 Use char because int might match the return type of a GCC
30185 builtin and then its argument prototype would still apply. */
30186#ifdef __cplusplus
30187extern "C"
30188#endif
30189char jas_stream_fopen ();
30190int
30191main ()
30192{
30193return jas_stream_fopen ();
30194 ;
30195 return 0;
30196}
30197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030198if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030199 ac_cv_lib_jasper_jas_stream_fopen=yes
30200else
cristy8b350f62009-11-15 23:12:43 +000030201 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030202fi
cristy8b350f62009-11-15 23:12:43 +000030203rm -f core conftest.err conftest.$ac_objext \
30204 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030205LIBS=$ac_check_lib_save_LIBS
30206fi
cristy8b350f62009-11-15 23:12:43 +000030207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030208$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030209if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030210 passed=`expr $passed + 1`
30211else
30212 failed=`expr $failed + 1`
30213fi
30214
cristy8b350f62009-11-15 23:12:43 +000030215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030216$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30217 if test $passed -gt 0; then
30218 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030219 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30220$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030221 have_jp2='no (failed tests)'
30222 else
30223 JP2_LIBS='-ljasper'
30224 LIBS="$JP2_LIBS $LIBS"
30225
cristy8b350f62009-11-15 23:12:43 +000030226$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030227
cristy09b53e12011-10-14 12:47:22 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30229$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030230 have_jp2='yes'
30231 fi
30232 else
cristy09b53e12011-10-14 12:47:22 +000030233 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30234$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030235 fi
30236fi
cristy73bd4a52010-10-05 11:24:23 +000030237 if test "$have_jp2" = 'yes'; then
30238 JP2_DELEGATE_TRUE=
30239 JP2_DELEGATE_FALSE='#'
30240else
30241 JP2_DELEGATE_TRUE='#'
30242 JP2_DELEGATE_FALSE=
30243fi
30244
cristy3ed852e2009-09-05 21:47:34 +000030245
30246
30247
30248#
30249# Check for LCMS delegate library.
30250#
cristy71203402010-06-18 13:12:03 +000030251# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030252
30253# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030254if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030255 withval=$with_lcms; with_lcms=$withval
30256else
30257 with_lcms='yes'
30258fi
30259
cristy71203402010-06-18 13:12:03 +000030260if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030261 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30262fi
30263
cristy71203402010-06-18 13:12:03 +000030264# Disable LCMS2.
30265
30266# Check whether --with-lcms2 was given.
30267if test "${with_lcms2+set}" = set; then :
30268 withval=$with_lcms2; with_lcms2=$withval
30269else
30270 with_lcms2='yes'
30271fi
30272
30273if test "$with_lcms2" != 'yes' ; then
30274 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30275fi
30276
30277have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030278LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030279if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030280 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30281$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30283$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030284 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30285$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030286 failed=0
30287 passed=0
30288 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030289
30290 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030291 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030292if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030293 have_lcms_header='yes'
30294fi
30295
30296
30297 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030298
30299$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30300
cristy71203402010-06-18 13:12:03 +000030301 passed=`expr $passed + 1`
30302 fi
30303
30304 # Check for <lcms2/lcms2.h)
30305 if test "$have_lcms_header" != 'yes'; then
30306 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 +000030307if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030308 have_lcms_header='yes'
30309fi
30310
30311
cristy71203402010-06-18 13:12:03 +000030312 if test "$have_lcms_header" = 'yes'; then
30313 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030314
cristy71203402010-06-18 13:12:03 +000030315$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030316
cristy71203402010-06-18 13:12:03 +000030317 fi
cristyd09bcf92010-03-25 03:04:45 +000030318 fi
cristy71203402010-06-18 13:12:03 +000030319
30320 # Failed to find lcms header?
30321 if test "$have_lcms_header" != 'yes'; then
30322 failed=`expr $failed + 1`
30323 fi
30324
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30326$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030327if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030328 $as_echo_n "(cached) " >&6
30329else
30330 ac_check_lib_save_LIBS=$LIBS
30331LIBS="-llcms2 $LIBS"
30332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30333/* end confdefs.h. */
30334
30335/* Override any GCC internal prototype to avoid an error.
30336 Use char because int might match the return type of a GCC
30337 builtin and then its argument prototype would still apply. */
30338#ifdef __cplusplus
30339extern "C"
30340#endif
cristy71203402010-06-18 13:12:03 +000030341char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030342int
30343main ()
30344{
cristy71203402010-06-18 13:12:03 +000030345return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030346 ;
30347 return 0;
30348}
30349_ACEOF
30350if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030351 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030352else
cristy71203402010-06-18 13:12:03 +000030353 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030354fi
30355rm -f core conftest.err conftest.$ac_objext \
30356 conftest$ac_exeext conftest.$ac_ext
30357LIBS=$ac_check_lib_save_LIBS
30358fi
cristy71203402010-06-18 13:12:03 +000030359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30360$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030361if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030362 passed=`expr $passed + 1`
30363else
30364 failed=`expr $failed + 1`
30365fi
30366
cristy71203402010-06-18 13:12:03 +000030367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30368$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030369 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030370 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030371 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30372$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030373 have_lcms2='no (failed tests)'
30374 else
30375 LCMS_LIBS='-llcms2'
30376 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030377 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30378$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030379 have_lcms2='yes'
30380 fi
cristyd09bcf92010-03-25 03:04:45 +000030381 else
cristy09b53e12011-10-14 12:47:22 +000030382 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30383$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030384 fi
30385fi
30386
cristy71203402010-06-18 13:12:03 +000030387#
30388# Check for LCMS v1 (1.11 or later)
30389#
30390if test $have_lcms2 = 'yes'; then
30391 with_lcms='no'
30392fi
30393
30394have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030395if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30397$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30399$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030400 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30401$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030402 failed=0
30403 passed=0
30404 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030405
30406 # Check for <lcms.h>
30407 if test "$have_lcms_header" != 'yes'; then
30408 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030409if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030410 have_lcms_header='yes'
30411fi
30412
30413
cristy71203402010-06-18 13:12:03 +000030414 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030415 passed=`expr $passed + 1`
30416
cristy8b350f62009-11-15 23:12:43 +000030417$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030418
cristy71203402010-06-18 13:12:03 +000030419 fi
30420 fi
30421
30422 # Check for <lcms/lcms.h>
30423 if test "$have_lcms_header" != 'yes'; then
30424 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 +000030425if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030426 have_lcms_header='yes'
30427fi
30428
30429
cristy71203402010-06-18 13:12:03 +000030430 if test "$have_lcms_header" = 'yes'; then
30431 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030432
cristy8b350f62009-11-15 23:12:43 +000030433$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030434
cristy71203402010-06-18 13:12:03 +000030435 fi
cristy3ed852e2009-09-05 21:47:34 +000030436 fi
cristy71203402010-06-18 13:12:03 +000030437
30438 # Failed to find lcms header?
30439 if test "$have_lcms_header" != 'yes'; then
30440 failed=`expr $failed + 1`
30441 fi
30442
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30444$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030445if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030446 $as_echo_n "(cached) " >&6
30447else
30448 ac_check_lib_save_LIBS=$LIBS
30449LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030451/* end confdefs.h. */
30452
30453/* Override any GCC internal prototype to avoid an error.
30454 Use char because int might match the return type of a GCC
30455 builtin and then its argument prototype would still apply. */
30456#ifdef __cplusplus
30457extern "C"
30458#endif
cristy71203402010-06-18 13:12:03 +000030459char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030460int
30461main ()
30462{
cristy71203402010-06-18 13:12:03 +000030463return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030464 ;
30465 return 0;
30466}
30467_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030468if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030469 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030470else
cristy71203402010-06-18 13:12:03 +000030471 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030472fi
cristy8b350f62009-11-15 23:12:43 +000030473rm -f core conftest.err conftest.$ac_objext \
30474 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030475LIBS=$ac_check_lib_save_LIBS
30476fi
cristy71203402010-06-18 13:12:03 +000030477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30478$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030479if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030480 passed=`expr $passed + 1`
30481else
30482 failed=`expr $failed + 1`
30483fi
30484
cristy8b350f62009-11-15 23:12:43 +000030485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030486$as_echo_n "checking if LCMS package is complete... " >&6; }
30487 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030488 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030489 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30490$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030491 have_lcms='no (failed tests)'
30492 else
30493 LCMS_LIBS='-llcms'
30494 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030495 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30496$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030497 have_lcms='yes'
30498 fi
cristy3ed852e2009-09-05 21:47:34 +000030499 else
cristy09b53e12011-10-14 12:47:22 +000030500 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30501$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030502 fi
30503fi
cristy71203402010-06-18 13:12:03 +000030504
cristy73bd4a52010-10-05 11:24:23 +000030505 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30506 LCMS_DELEGATE_TRUE=
30507 LCMS_DELEGATE_FALSE='#'
30508else
30509 LCMS_DELEGATE_TRUE='#'
30510 LCMS_DELEGATE_FALSE=
30511fi
30512
cristy71203402010-06-18 13:12:03 +000030513if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30514
30515$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30516
30517fi
30518
cristy3ed852e2009-09-05 21:47:34 +000030519
30520
30521
30522#
30523# Check for the LQR (Liquid Rescale) delegate library.
30524#
30525
30526# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030527if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030528 withval=$with_lqr; with_lqr=$withval
30529else
30530 with_lqr='yes'
30531fi
30532
30533
30534if test "$with_lqr" != 'yes'; then
30535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30536fi
30537
30538have_lqr='no'
30539LQR_CFLAGS=""
30540LQR_LIBS=""
30541LQR_PKG=""
30542if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030543 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30544$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030545
30546pkg_failed=no
30547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30548$as_echo_n "checking for LQR... " >&6; }
30549
30550if test -n "$LQR_CFLAGS"; then
30551 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30552 elif test -n "$PKG_CONFIG"; then
30553 if test -n "$PKG_CONFIG" && \
30554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30555 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30556 ac_status=$?
30557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30558 test $ac_status = 0; }; then
30559 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30560else
30561 pkg_failed=yes
30562fi
30563 else
30564 pkg_failed=untried
30565fi
30566if test -n "$LQR_LIBS"; then
30567 pkg_cv_LQR_LIBS="$LQR_LIBS"
30568 elif test -n "$PKG_CONFIG"; then
30569 if test -n "$PKG_CONFIG" && \
30570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30571 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30572 ac_status=$?
30573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30574 test $ac_status = 0; }; then
30575 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30576else
30577 pkg_failed=yes
30578fi
30579 else
30580 pkg_failed=untried
30581fi
30582
30583
30584
30585if test $pkg_failed = yes; then
30586
30587if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30588 _pkg_short_errors_supported=yes
30589else
30590 _pkg_short_errors_supported=no
30591fi
30592 if test $_pkg_short_errors_supported = yes; then
30593 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30594 else
30595 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30596 fi
30597 # Put the nasty error message in config.log where it belongs
30598 echo "$LQR_PKG_ERRORS" >&5
30599
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30601$as_echo "no" >&6; }
30602 have_lqr=no
30603elif test $pkg_failed = untried; then
30604 have_lqr=no
30605else
30606 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30607 LQR_LIBS=$pkg_cv_LQR_LIBS
30608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30609$as_echo "yes" >&6; }
30610 have_lqr=yes
30611fi
cristy09b53e12011-10-14 12:47:22 +000030612 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30613$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030614fi
30615
30616if test "$have_lqr" = 'yes'; then
30617
cristy8b350f62009-11-15 23:12:43 +000030618$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030619
30620 CFLAGS="$LQR_CFLAGS $CFLAGS"
30621fi
30622
cristy73bd4a52010-10-05 11:24:23 +000030623 if test "$have_lqr" = 'yes'; then
30624 LQR_DELEGATE_TRUE=
30625 LQR_DELEGATE_FALSE='#'
30626else
30627 LQR_DELEGATE_TRUE='#'
30628 LQR_DELEGATE_FALSE=
30629fi
30630
cristy3ed852e2009-09-05 21:47:34 +000030631
30632
30633
30634
cristy81beccd2011-10-03 18:17:24 +000030635# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030636
30637# Check whether --with-lzma was given.
30638if test "${with_lzma+set}" = set; then :
30639 withval=$with_lzma; with_lzma=$withval
30640else
30641 with_lzma='yes'
30642fi
30643
cristy81beccd2011-10-03 18:17:24 +000030644if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030645 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30646fi
30647
cristyb94e5002011-11-14 13:20:10 +000030648LZMA_PKG=""
30649if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030650 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30651$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030652
30653pkg_failed=no
30654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030655$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030656
30657if test -n "$LZMA_CFLAGS"; then
30658 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30659 elif test -n "$PKG_CONFIG"; then
30660 if test -n "$PKG_CONFIG" && \
30661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30662 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30663 ac_status=$?
30664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30665 test $ac_status = 0; }; then
30666 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30667else
30668 pkg_failed=yes
30669fi
30670 else
30671 pkg_failed=untried
30672fi
30673if test -n "$LZMA_LIBS"; then
30674 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30675 elif test -n "$PKG_CONFIG"; then
30676 if test -n "$PKG_CONFIG" && \
30677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30678 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30679 ac_status=$?
30680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30681 test $ac_status = 0; }; then
30682 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30683else
30684 pkg_failed=yes
30685fi
30686 else
30687 pkg_failed=untried
30688fi
30689
30690
30691
30692if test $pkg_failed = yes; then
30693
30694if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30695 _pkg_short_errors_supported=yes
30696else
30697 _pkg_short_errors_supported=no
30698fi
30699 if test $_pkg_short_errors_supported = yes; then
30700 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30701 else
30702 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30703 fi
30704 # Put the nasty error message in config.log where it belongs
30705 echo "$LZMA_PKG_ERRORS" >&5
30706
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708$as_echo "no" >&6; }
30709 have_lzma=no
30710elif test $pkg_failed = untried; then
30711 have_lzma=no
30712else
30713 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30714 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30716$as_echo "yes" >&6; }
30717 have_lzma=yes
30718fi
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030720$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030721fi
30722
cristyb94e5002011-11-14 13:20:10 +000030723if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030724
30725$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30726
cristyb94e5002011-11-14 13:20:10 +000030727 if test "$with_modules" = 'no'; then
30728 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030729 fi
cristyfbb0ef02010-12-19 02:32:11 +000030730fi
cristyb94e5002011-11-14 13:20:10 +000030731
cristyfbb0ef02010-12-19 02:32:11 +000030732 if test "$have_lzma" = 'yes'; then
30733 LZMA_DELEGATE_TRUE=
30734 LZMA_DELEGATE_FALSE='#'
30735else
30736 LZMA_DELEGATE_TRUE='#'
30737 LZMA_DELEGATE_FALSE=
30738fi
30739
30740
30741
30742
cristyb94e5002011-11-14 13:20:10 +000030743
cristy3ed852e2009-09-05 21:47:34 +000030744#
30745# Check for the OpenEXR delegate library.
30746#
30747
30748# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030749if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030750 withval=$with_openexr; with_openexr=$withval
30751else
30752 with_openexr='yes'
30753fi
30754
30755
30756if test "$with_openexr" != 'yes'; then
30757 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30758fi
30759
30760have_openexr='no'
30761OPENEXR_CFLAGS=""
30762OPENEXR_LIBS=""
30763OPENEXR_PKG=""
30764if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030765 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30766$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030767
30768pkg_failed=no
30769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30770$as_echo_n "checking for OPENEXR... " >&6; }
30771
30772if test -n "$OPENEXR_CFLAGS"; then
30773 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30774 elif test -n "$PKG_CONFIG"; then
30775 if test -n "$PKG_CONFIG" && \
30776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30777 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30778 ac_status=$?
30779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30780 test $ac_status = 0; }; then
30781 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30782else
30783 pkg_failed=yes
30784fi
30785 else
30786 pkg_failed=untried
30787fi
30788if test -n "$OPENEXR_LIBS"; then
30789 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30790 elif test -n "$PKG_CONFIG"; then
30791 if test -n "$PKG_CONFIG" && \
30792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30793 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30794 ac_status=$?
30795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30796 test $ac_status = 0; }; then
30797 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30798else
30799 pkg_failed=yes
30800fi
30801 else
30802 pkg_failed=untried
30803fi
30804
30805
30806
30807if test $pkg_failed = yes; then
30808
30809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30810 _pkg_short_errors_supported=yes
30811else
30812 _pkg_short_errors_supported=no
30813fi
30814 if test $_pkg_short_errors_supported = yes; then
30815 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30816 else
30817 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30818 fi
30819 # Put the nasty error message in config.log where it belongs
30820 echo "$OPENEXR_PKG_ERRORS" >&5
30821
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30823$as_echo "no" >&6; }
30824 have_openexr=no
30825elif test $pkg_failed = untried; then
30826 have_openexr=no
30827else
30828 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30829 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30831$as_echo "yes" >&6; }
30832 have_openexr=yes
30833fi
cristy09b53e12011-10-14 12:47:22 +000030834 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30835$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030836fi
30837
30838if test "$have_openexr" = 'yes'; then
30839
cristy8b350f62009-11-15 23:12:43 +000030840$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030841
30842 if test "$with_modules" = 'no'; then
30843 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30844 fi
30845fi
30846
cristy73bd4a52010-10-05 11:24:23 +000030847 if test "$have_openexr" = 'yes'; then
30848 OPENEXR_DELEGATE_TRUE=
30849 OPENEXR_DELEGATE_FALSE='#'
30850else
30851 OPENEXR_DELEGATE_TRUE='#'
30852 OPENEXR_DELEGATE_FALSE=
30853fi
30854
cristy3ed852e2009-09-05 21:47:34 +000030855
30856
30857
30858
30859#
cristy41cbe8a2011-10-27 01:35:18 +000030860# Check for PANGO delegate library.
30861#
30862
30863# Check whether --with-pango was given.
30864if test "${with_pango+set}" = set; then :
30865 withval=$with_pango; with_pango=$withval
30866else
cristyfc3d0222012-02-07 15:05:57 +000030867 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030868fi
30869
30870
30871if test "$with_pango" != 'yes'; then
30872 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30873fi
30874
30875have_pango='no'
30876have_pangoft2='no'
30877PANGO_CFLAGS=""
30878PANGO_LIBS=""
30879PANGO_PKG=""
30880if test "x$with_pango" = "xyes"; then
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30882$as_echo "-------------------------------------------------------------" >&6; }
30883
30884pkg_failed=no
30885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30886$as_echo_n "checking for PANGO... " >&6; }
30887
30888if test -n "$PANGO_CFLAGS"; then
30889 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30890 elif test -n "$PKG_CONFIG"; then
30891 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030892 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30893 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030894 ac_status=$?
30895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30896 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030897 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030898else
30899 pkg_failed=yes
30900fi
30901 else
30902 pkg_failed=untried
30903fi
30904if test -n "$PANGO_LIBS"; then
30905 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30906 elif test -n "$PKG_CONFIG"; then
30907 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2 >= 1.28.1\""; } >&5
30909 ($PKG_CONFIG --exists --print-errors "pangoft2 >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030910 ac_status=$?
30911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30912 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030913 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030914else
30915 pkg_failed=yes
30916fi
30917 else
30918 pkg_failed=untried
30919fi
30920
30921
30922
30923if test $pkg_failed = yes; then
30924
30925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30926 _pkg_short_errors_supported=yes
30927else
30928 _pkg_short_errors_supported=no
30929fi
30930 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030931 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030932 else
cristy2542fc62011-12-06 17:50:25 +000030933 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2 >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030934 fi
30935 # Put the nasty error message in config.log where it belongs
30936 echo "$PANGO_PKG_ERRORS" >&5
30937
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30939$as_echo "no" >&6; }
30940 have_pangoft2=no
30941elif test $pkg_failed = untried; then
30942 have_pangoft2=no
30943else
30944 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30945 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30947$as_echo "yes" >&6; }
30948 have_pangoft2=yes
30949fi
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30951$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030952
30953pkg_failed=no
30954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30955$as_echo_n "checking for PANGO... " >&6; }
30956
30957if test -n "$PANGO_CFLAGS"; then
30958 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30959 elif test -n "$PKG_CONFIG"; then
30960 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30962 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030963 ac_status=$?
30964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30965 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030966 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030967else
30968 pkg_failed=yes
30969fi
30970 else
30971 pkg_failed=untried
30972fi
30973if test -n "$PANGO_LIBS"; then
30974 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30975 elif test -n "$PKG_CONFIG"; then
30976 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30978 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030979 ac_status=$?
30980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30981 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030982 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030983else
30984 pkg_failed=yes
30985fi
30986 else
30987 pkg_failed=untried
30988fi
30989
30990
30991
30992if test $pkg_failed = yes; then
30993
30994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30995 _pkg_short_errors_supported=yes
30996else
30997 _pkg_short_errors_supported=no
30998fi
30999 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031000 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031001 else
cristy2542fc62011-12-06 17:50:25 +000031002 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031003 fi
31004 # Put the nasty error message in config.log where it belongs
31005 echo "$PANGO_PKG_ERRORS" >&5
31006
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31008$as_echo "no" >&6; }
31009 have_pango=no
31010elif test $pkg_failed = untried; then
31011 have_pango=no
31012else
31013 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31014 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31016$as_echo "yes" >&6; }
31017 have_pango=yes
31018fi
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31020$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031021fi
31022
31023if test "$have_pango" = 'yes'; then
31024
31025$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31026
31027 if test "$with_modules" = 'no'; then
31028 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31029 fi
31030fi
31031
31032if test "$have_pangoft2" = 'yes'; then
31033
31034$as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
31035
31036 if test "$with_modules" = 'no'; then
31037 CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
31038 fi
31039fi
31040
31041 if test "$have_pango" = 'yes'; then
31042 PANGO_DELEGATE_TRUE=
31043 PANGO_DELEGATE_FALSE='#'
31044else
31045 PANGO_DELEGATE_TRUE='#'
31046 PANGO_DELEGATE_FALSE=
31047fi
31048
31049 if test "$have_pangoft2" = 'yes'; then
31050 PANGOFT2_DELEGATE_TRUE=
31051 PANGOFT2_DELEGATE_FALSE='#'
31052else
31053 PANGOFT2_DELEGATE_TRUE='#'
31054 PANGOFT2_DELEGATE_FALSE=
31055fi
31056
31057
31058
31059
31060
31061#
cristy3ed852e2009-09-05 21:47:34 +000031062# Check for PNG delegate library.
31063#
31064
31065# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031066if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031067 withval=$with_png; with_png=$withval
31068else
31069 with_png='yes'
31070fi
31071
31072
31073if test "$with_png" != 'yes'; then
31074 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31075fi
31076
cristy81beccd2011-10-03 18:17:24 +000031077have_png='no'
31078PNG_LIBS=''
31079
31080if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031081 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31082$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31084$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31086$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031087 failed=0
31088 passed=0
31089 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31090if test "x$ac_cv_header_png_h" = xyes; then :
31091 passed=`expr $passed + 1`
31092else
31093 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031094fi
31095
cristy81beccd2011-10-03 18:17:24 +000031096
31097
31098 if test $passed -gt 0; then
31099 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031100 if test "$have_png" = 'no' ; then
31101 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031102 pnglib='png'
31103 else
31104 pnglib="png1${var}"
31105 fi
31106
31107# Test for compatible LIBPNG library
31108 failed=0
31109 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031110 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031111 if test "${pnglib}" != 'png' ; then
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31113$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31115/* end confdefs.h. */
31116#include <stdio.h>
31117#include <stdlib.h>
31118#include <png.h>
31119
31120int
31121main ()
31122{
31123
31124#if PNG_LIBPNG_VER_MINOR != ${var}
31125#error LIBPNG library must be version 1${var}!
31126Kaboom, Kaboom
31127#endif
31128return 0;
31129
31130 ;
31131 return 0;
31132}
31133_ACEOF
31134if ac_fn_c_try_compile "$LINENO"; then :
31135 ac_cv_libpng_ok='yes'
31136else
31137 ac_cv_libpng_ok='no'
31138fi
31139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31140 if test "$ac_cv_libpng_ok" = 'yes' ; then
31141 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031142 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31143$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031144 else
31145 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031146 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31147$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031148 fi
31149 else
31150 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031151 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31152$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031153 fi
31154 fi
31155
31156 if test $passed -gt 0 -a $failed -le 0; then
31157 if test "1${var}" = '15' ; then
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31159$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31160if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31161 $as_echo_n "(cached) " >&6
31162else
31163 ac_check_lib_save_LIBS=$LIBS
31164LIBS="-lpng15 $LIBS"
31165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31166/* end confdefs.h. */
31167
31168/* Override any GCC internal prototype to avoid an error.
31169 Use char because int might match the return type of a GCC
31170 builtin and then its argument prototype would still apply. */
31171#ifdef __cplusplus
31172extern "C"
31173#endif
31174char png_get_io_ptr ();
31175int
31176main ()
31177{
31178return png_get_io_ptr ();
31179 ;
31180 return 0;
31181}
31182_ACEOF
31183if ac_fn_c_try_link "$LINENO"; then :
31184 ac_cv_lib_png15_png_get_io_ptr=yes
31185else
31186 ac_cv_lib_png15_png_get_io_ptr=no
31187fi
31188rm -f core conftest.err conftest.$ac_objext \
31189 conftest$ac_exeext conftest.$ac_ext
31190LIBS=$ac_check_lib_save_LIBS
31191fi
31192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31193$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31194if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31195 passed=`expr $passed + 1`
31196else
31197 failed=`expr $failed + 1`
31198fi
31199
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31201$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31202if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31203 $as_echo_n "(cached) " >&6
31204else
31205 ac_check_lib_save_LIBS=$LIBS
31206LIBS="-lpng15 $LIBS"
31207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31208/* end confdefs.h. */
31209
31210/* Override any GCC internal prototype to avoid an error.
31211 Use char because int might match the return type of a GCC
31212 builtin and then its argument prototype would still apply. */
31213#ifdef __cplusplus
31214extern "C"
31215#endif
31216char png_longjmp ();
31217int
31218main ()
31219{
31220return png_longjmp ();
31221 ;
31222 return 0;
31223}
31224_ACEOF
31225if ac_fn_c_try_link "$LINENO"; then :
31226 ac_cv_lib_png15_png_longjmp=yes
31227else
31228 ac_cv_lib_png15_png_longjmp=no
31229fi
31230rm -f core conftest.err conftest.$ac_objext \
31231 conftest$ac_exeext conftest.$ac_ext
31232LIBS=$ac_check_lib_save_LIBS
31233fi
31234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31235$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31236if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31237 passed=`expr $passed + 1`
31238else
31239 failed=`expr $failed + 1`
31240fi
31241
31242 fi
31243 if test "1${var}" = '14' ; then
31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31245$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31246if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31247 $as_echo_n "(cached) " >&6
31248else
31249 ac_check_lib_save_LIBS=$LIBS
31250LIBS="-lpng14 $LIBS"
31251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31252/* end confdefs.h. */
31253
31254/* Override any GCC internal prototype to avoid an error.
31255 Use char because int might match the return type of a GCC
31256 builtin and then its argument prototype would still apply. */
31257#ifdef __cplusplus
31258extern "C"
31259#endif
31260char png_get_io_ptr ();
31261int
31262main ()
31263{
31264return png_get_io_ptr ();
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269if ac_fn_c_try_link "$LINENO"; then :
31270 ac_cv_lib_png14_png_get_io_ptr=yes
31271else
31272 ac_cv_lib_png14_png_get_io_ptr=no
31273fi
31274rm -f core conftest.err conftest.$ac_objext \
31275 conftest$ac_exeext conftest.$ac_ext
31276LIBS=$ac_check_lib_save_LIBS
31277fi
31278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31279$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31280if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31281 passed=`expr $passed + 1`
31282else
31283 failed=`expr $failed + 1`
31284fi
31285
31286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31287$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31288if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31289 $as_echo_n "(cached) " >&6
31290else
31291 ac_check_lib_save_LIBS=$LIBS
31292LIBS="-lpng14 $LIBS"
31293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31294/* end confdefs.h. */
31295
31296/* Override any GCC internal prototype to avoid an error.
31297 Use char because int might match the return type of a GCC
31298 builtin and then its argument prototype would still apply. */
31299#ifdef __cplusplus
31300extern "C"
31301#endif
31302char png_get_io_state ();
31303int
31304main ()
31305{
31306return png_get_io_state ();
31307 ;
31308 return 0;
31309}
31310_ACEOF
31311if ac_fn_c_try_link "$LINENO"; then :
31312 ac_cv_lib_png14_png_get_io_state=yes
31313else
31314 ac_cv_lib_png14_png_get_io_state=no
31315fi
31316rm -f core conftest.err conftest.$ac_objext \
31317 conftest$ac_exeext conftest.$ac_ext
31318LIBS=$ac_check_lib_save_LIBS
31319fi
31320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31321$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31322if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31323 passed=`expr $passed + 1`
31324else
31325 failed=`expr $failed + 1`
31326fi
31327
31328 fi
31329 if test "1${var}" = '12' ; then
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31331$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31332if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31333 $as_echo_n "(cached) " >&6
31334else
31335 ac_check_lib_save_LIBS=$LIBS
31336LIBS="-lpng12 $LIBS"
31337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338/* end confdefs.h. */
31339
31340/* Override any GCC internal prototype to avoid an error.
31341 Use char because int might match the return type of a GCC
31342 builtin and then its argument prototype would still apply. */
31343#ifdef __cplusplus
31344extern "C"
31345#endif
31346char png_get_io_ptr ();
31347int
31348main ()
31349{
31350return png_get_io_ptr ();
31351 ;
31352 return 0;
31353}
31354_ACEOF
31355if ac_fn_c_try_link "$LINENO"; then :
31356 ac_cv_lib_png12_png_get_io_ptr=yes
31357else
31358 ac_cv_lib_png12_png_get_io_ptr=no
31359fi
31360rm -f core conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
31362LIBS=$ac_check_lib_save_LIBS
31363fi
31364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31365$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31366if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31367 passed=`expr $passed + 1`
31368else
31369 failed=`expr $failed + 1`
31370fi
31371
31372 fi
31373 if test "1${var}" = '1' ; then
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31375$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31376if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31377 $as_echo_n "(cached) " >&6
31378else
31379 ac_check_lib_save_LIBS=$LIBS
31380LIBS="-lpng $LIBS"
31381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31382/* end confdefs.h. */
31383
31384/* Override any GCC internal prototype to avoid an error.
31385 Use char because int might match the return type of a GCC
31386 builtin and then its argument prototype would still apply. */
31387#ifdef __cplusplus
31388extern "C"
31389#endif
31390char png_get_io_ptr ();
31391int
31392main ()
31393{
31394return png_get_io_ptr ();
31395 ;
31396 return 0;
31397}
31398_ACEOF
31399if ac_fn_c_try_link "$LINENO"; then :
31400 ac_cv_lib_png_png_get_io_ptr=yes
31401else
31402 ac_cv_lib_png_png_get_io_ptr=no
31403fi
31404rm -f core conftest.err conftest.$ac_objext \
31405 conftest$ac_exeext conftest.$ac_ext
31406LIBS=$ac_check_lib_save_LIBS
31407fi
31408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31409$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31410if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31411 passed=`expr $passed + 1`
31412else
31413 failed=`expr $failed + 1`
31414fi
31415
31416 fi
31417 if test $passed -gt 0 -a $failed -le 0 ; then
31418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31419$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31420 if test $passed -gt 0 ; then
31421 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031422 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31423$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031424 have_png='no (failed tests)'
31425 else
31426 PNG_LIBS="-l${pnglib}"
31427 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031428
cristy8b350f62009-11-15 23:12:43 +000031429$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031430
cristy09b53e12011-10-14 12:47:22 +000031431 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31432$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031433 have_png='yes'
31434 fi
31435 fi
31436 fi
31437 fi
31438 fi
31439 done
31440 fi
cristy3ed852e2009-09-05 21:47:34 +000031441fi
cristy64877302011-08-23 19:10:31 +000031442
cristy73bd4a52010-10-05 11:24:23 +000031443 if test "$have_png" = 'yes'; then
31444 PNG_DELEGATE_TRUE=
31445 PNG_DELEGATE_FALSE='#'
31446else
31447 PNG_DELEGATE_TRUE='#'
31448 PNG_DELEGATE_FALSE=
31449fi
31450
cristy3ed852e2009-09-05 21:47:34 +000031451
cristy50d3f5c2011-09-10 20:09:06 +000031452
cristy3ed852e2009-09-05 21:47:34 +000031453
31454
31455#
31456# Check for RSVG delegate library.
31457#
31458
31459# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031460if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031461 withval=$with_rsvg; with_rsvg=$withval
31462else
cristyfc3d0222012-02-07 15:05:57 +000031463 with_rsvg='yes'
cristy3ed852e2009-09-05 21:47:34 +000031464fi
31465
31466
31467if test "$with_rsvg" != 'yes'; then
31468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31469fi
31470
31471have_rsvg='no'
31472have_cairo='no'
31473RSVG_CFLAGS=""
31474RSVG_LIBS=""
31475RSVG_PKG=""
31476if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031477 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31478$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031479
31480pkg_failed=no
31481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31482$as_echo_n "checking for RSVG... " >&6; }
31483
31484if test -n "$RSVG_CFLAGS"; then
31485 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31486 elif test -n "$PKG_CONFIG"; then
31487 if test -n "$PKG_CONFIG" && \
31488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31489 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31490 ac_status=$?
31491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31492 test $ac_status = 0; }; then
31493 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31494else
31495 pkg_failed=yes
31496fi
31497 else
31498 pkg_failed=untried
31499fi
31500if test -n "$RSVG_LIBS"; then
31501 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31502 elif test -n "$PKG_CONFIG"; then
31503 if test -n "$PKG_CONFIG" && \
31504 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31505 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31506 ac_status=$?
31507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31508 test $ac_status = 0; }; then
31509 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31510else
31511 pkg_failed=yes
31512fi
31513 else
31514 pkg_failed=untried
31515fi
31516
31517
31518
31519if test $pkg_failed = yes; then
31520
31521if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31522 _pkg_short_errors_supported=yes
31523else
31524 _pkg_short_errors_supported=no
31525fi
31526 if test $_pkg_short_errors_supported = yes; then
31527 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31528 else
31529 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31530 fi
31531 # Put the nasty error message in config.log where it belongs
31532 echo "$RSVG_PKG_ERRORS" >&5
31533
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31535$as_echo "no" >&6; }
31536 have_rsvg=no
31537elif test $pkg_failed = untried; then
31538 have_rsvg=no
31539else
31540 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31541 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31543$as_echo "yes" >&6; }
31544 have_rsvg=yes
31545fi
cristy09b53e12011-10-14 12:47:22 +000031546 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31547$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031548
31549pkg_failed=no
31550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31551$as_echo_n "checking for CAIRO_SVG... " >&6; }
31552
31553if test -n "$CAIRO_SVG_CFLAGS"; then
31554 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31555 elif test -n "$PKG_CONFIG"; then
31556 if test -n "$PKG_CONFIG" && \
31557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31558 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31559 ac_status=$?
31560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31561 test $ac_status = 0; }; then
31562 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31563else
31564 pkg_failed=yes
31565fi
31566 else
31567 pkg_failed=untried
31568fi
31569if test -n "$CAIRO_SVG_LIBS"; then
31570 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31571 elif test -n "$PKG_CONFIG"; then
31572 if test -n "$PKG_CONFIG" && \
31573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31574 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31575 ac_status=$?
31576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31577 test $ac_status = 0; }; then
31578 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31579else
31580 pkg_failed=yes
31581fi
31582 else
31583 pkg_failed=untried
31584fi
31585
31586
31587
31588if test $pkg_failed = yes; then
31589
31590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31591 _pkg_short_errors_supported=yes
31592else
31593 _pkg_short_errors_supported=no
31594fi
31595 if test $_pkg_short_errors_supported = yes; then
31596 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31597 else
31598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31599 fi
31600 # Put the nasty error message in config.log where it belongs
31601 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31602
31603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31604$as_echo "no" >&6; }
31605 have_cairo=no
31606elif test $pkg_failed = untried; then
31607 have_cairo=no
31608else
31609 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31610 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31612$as_echo "yes" >&6; }
31613 have_cairo=yes
31614fi
cristy09b53e12011-10-14 12:47:22 +000031615 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31616$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031617fi
31618
31619if test "$have_rsvg" = 'yes'; then
31620
cristy8b350f62009-11-15 23:12:43 +000031621$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031622
31623 if test "$with_modules" = 'no'; then
31624 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31625 fi
31626fi
31627
31628if test "$have_cairo" = 'yes'; then
31629
cristy8b350f62009-11-15 23:12:43 +000031630$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031631
31632 if test "$with_modules" = 'no'; then
31633 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31634 fi
31635fi
31636
cristy73bd4a52010-10-05 11:24:23 +000031637 if test "$have_rsvg" = 'yes'; then
31638 RSVG_DELEGATE_TRUE=
31639 RSVG_DELEGATE_FALSE='#'
31640else
31641 RSVG_DELEGATE_TRUE='#'
31642 RSVG_DELEGATE_FALSE=
31643fi
31644
31645 if test "$have_cairo" = 'yes'; then
31646 CAIRO_DELEGATE_TRUE=
31647 CAIRO_DELEGATE_FALSE='#'
31648else
31649 CAIRO_DELEGATE_TRUE='#'
31650 CAIRO_DELEGATE_FALSE=
31651fi
31652
cristy3ed852e2009-09-05 21:47:34 +000031653
31654
31655
31656
31657#
31658# Check for TIFF delegate library.
31659#
31660
31661# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031662if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031663 withval=$with_tiff; with_tiff=$withval
31664else
31665 with_tiff='yes'
31666fi
31667
31668
31669if test "$with_tiff" != 'yes'; then
31670 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31671fi
31672
31673have_tiff='no'
31674TIFF_LIBS=''
31675if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031676 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31677$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031679$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031680 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31681$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031682 failed=0
31683 passed=0
cristy8b350f62009-11-15 23:12:43 +000031684 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031685if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031686 passed=`expr $passed + 1`
31687else
31688 failed=`expr $failed + 1`
31689fi
31690
31691
cristy8b350f62009-11-15 23:12:43 +000031692 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031693if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031694 passed=`expr $passed + 1`
31695else
31696 failed=`expr $failed + 1`
31697fi
31698
31699
cristy8b350f62009-11-15 23:12:43 +000031700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031701$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031702if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031703 $as_echo_n "(cached) " >&6
31704else
31705 ac_check_lib_save_LIBS=$LIBS
31706LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031708/* end confdefs.h. */
31709
31710/* Override any GCC internal prototype to avoid an error.
31711 Use char because int might match the return type of a GCC
31712 builtin and then its argument prototype would still apply. */
31713#ifdef __cplusplus
31714extern "C"
31715#endif
31716char TIFFOpen ();
31717int
31718main ()
31719{
31720return TIFFOpen ();
31721 ;
31722 return 0;
31723}
31724_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031725if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031726 ac_cv_lib_tiff_TIFFOpen=yes
31727else
cristy8b350f62009-11-15 23:12:43 +000031728 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031729fi
cristy8b350f62009-11-15 23:12:43 +000031730rm -f core conftest.err conftest.$ac_objext \
31731 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031732LIBS=$ac_check_lib_save_LIBS
31733fi
cristy8b350f62009-11-15 23:12:43 +000031734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031735$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031736if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031737 passed=`expr $passed + 1`
31738else
31739 failed=`expr $failed + 1`
31740fi
31741
cristy8b350f62009-11-15 23:12:43 +000031742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031743$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031744if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031745 $as_echo_n "(cached) " >&6
31746else
31747 ac_check_lib_save_LIBS=$LIBS
31748LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031750/* end confdefs.h. */
31751
31752/* Override any GCC internal prototype to avoid an error.
31753 Use char because int might match the return type of a GCC
31754 builtin and then its argument prototype would still apply. */
31755#ifdef __cplusplus
31756extern "C"
31757#endif
31758char TIFFClientOpen ();
31759int
31760main ()
31761{
31762return TIFFClientOpen ();
31763 ;
31764 return 0;
31765}
31766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031767if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031768 ac_cv_lib_tiff_TIFFClientOpen=yes
31769else
cristy8b350f62009-11-15 23:12:43 +000031770 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031771fi
cristy8b350f62009-11-15 23:12:43 +000031772rm -f core conftest.err conftest.$ac_objext \
31773 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031774LIBS=$ac_check_lib_save_LIBS
31775fi
cristy8b350f62009-11-15 23:12:43 +000031776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031777$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031778if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031779 passed=`expr $passed + 1`
31780else
31781 failed=`expr $failed + 1`
31782fi
31783
cristy8b350f62009-11-15 23:12:43 +000031784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031785$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031786if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031787 $as_echo_n "(cached) " >&6
31788else
31789 ac_check_lib_save_LIBS=$LIBS
31790LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031792/* end confdefs.h. */
31793
31794/* Override any GCC internal prototype to avoid an error.
31795 Use char because int might match the return type of a GCC
31796 builtin and then its argument prototype would still apply. */
31797#ifdef __cplusplus
31798extern "C"
31799#endif
31800char TIFFIsByteSwapped ();
31801int
31802main ()
31803{
31804return TIFFIsByteSwapped ();
31805 ;
31806 return 0;
31807}
31808_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031809if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031810 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31811else
cristy8b350f62009-11-15 23:12:43 +000031812 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031813fi
cristy8b350f62009-11-15 23:12:43 +000031814rm -f core conftest.err conftest.$ac_objext \
31815 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031816LIBS=$ac_check_lib_save_LIBS
31817fi
cristy8b350f62009-11-15 23:12:43 +000031818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031819$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031820if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031821 passed=`expr $passed + 1`
31822else
31823 failed=`expr $failed + 1`
31824fi
31825
cristy8b350f62009-11-15 23:12:43 +000031826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031827$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031828if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031829 $as_echo_n "(cached) " >&6
31830else
31831 ac_check_lib_save_LIBS=$LIBS
31832LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031834/* end confdefs.h. */
31835
31836/* Override any GCC internal prototype to avoid an error.
31837 Use char because int might match the return type of a GCC
31838 builtin and then its argument prototype would still apply. */
31839#ifdef __cplusplus
31840extern "C"
31841#endif
31842char TIFFReadRGBATile ();
31843int
31844main ()
31845{
31846return TIFFReadRGBATile ();
31847 ;
31848 return 0;
31849}
31850_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031851if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031852 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31853else
cristy8b350f62009-11-15 23:12:43 +000031854 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031855fi
cristy8b350f62009-11-15 23:12:43 +000031856rm -f core conftest.err conftest.$ac_objext \
31857 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031858LIBS=$ac_check_lib_save_LIBS
31859fi
cristy8b350f62009-11-15 23:12:43 +000031860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031861$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031862if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031863 passed=`expr $passed + 1`
31864else
31865 failed=`expr $failed + 1`
31866fi
31867
cristy8b350f62009-11-15 23:12:43 +000031868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031869$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031870if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031871 $as_echo_n "(cached) " >&6
31872else
31873 ac_check_lib_save_LIBS=$LIBS
31874LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031876/* end confdefs.h. */
31877
31878/* Override any GCC internal prototype to avoid an error.
31879 Use char because int might match the return type of a GCC
31880 builtin and then its argument prototype would still apply. */
31881#ifdef __cplusplus
31882extern "C"
31883#endif
31884char TIFFReadRGBAStrip ();
31885int
31886main ()
31887{
31888return TIFFReadRGBAStrip ();
31889 ;
31890 return 0;
31891}
31892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031894 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31895else
cristy8b350f62009-11-15 23:12:43 +000031896 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031897fi
cristy8b350f62009-11-15 23:12:43 +000031898rm -f core conftest.err conftest.$ac_objext \
31899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031900LIBS=$ac_check_lib_save_LIBS
31901fi
cristy8b350f62009-11-15 23:12:43 +000031902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031903$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031904if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031905 passed=`expr $passed + 1`
31906else
31907 failed=`expr $failed + 1`
31908fi
31909
cristy8b350f62009-11-15 23:12:43 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031911$as_echo_n "checking if TIFF package is complete... " >&6; }
31912 if test $passed -gt 0; then
31913 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031914 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31915$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031916 have_tiff='no (failed tests)'
31917 else
31918 TIFF_LIBS='-ltiff'
31919 LIBS="$TIFF_LIBS $LIBS"
31920
cristy8b350f62009-11-15 23:12:43 +000031921$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031922
cristy09b53e12011-10-14 12:47:22 +000031923 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31924$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031925 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031926 for ac_header in tiffconf.h
31927do :
31928 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031929if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031930 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031931#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031932_ACEOF
31933
31934fi
31935
31936done
31937
cristy8b350f62009-11-15 23:12:43 +000031938 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031939 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31940 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31941 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031942do :
31943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31944ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031945if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031946 cat >>confdefs.h <<_ACEOF
31947#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31948_ACEOF
31949
31950fi
31951done
31952
31953 fi
31954 else
cristy09b53e12011-10-14 12:47:22 +000031955 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31956$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031957 fi
31958fi
cristy73bd4a52010-10-05 11:24:23 +000031959 if test "$have_tiff" = 'yes'; then
31960 TIFF_DELEGATE_TRUE=
31961 TIFF_DELEGATE_FALSE='#'
31962else
31963 TIFF_DELEGATE_TRUE='#'
31964 TIFF_DELEGATE_FALSE=
31965fi
31966
cristy3ed852e2009-09-05 21:47:34 +000031967
31968
31969
31970#
cristyb1860752011-03-14 00:27:46 +000031971# Check for WEBP delegate library.
31972#
31973
31974# Check whether --with-webp was given.
31975if test "${with_webp+set}" = set; then :
31976 withval=$with_webp; with_webp=$withval
31977else
31978 with_webp='yes'
31979fi
31980
31981
31982if test "$with_webp" != 'yes'; then
31983 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31984fi
31985
31986have_webp='no'
31987WEBP_LIBS=''
31988if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31990$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31992$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031993 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31994$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031995 failed=0
31996 passed=0
31997 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31998if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31999 passed=`expr $passed + 1`
32000else
32001 failed=`expr $failed + 1`
32002fi
32003
32004
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32006$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32007if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32008 $as_echo_n "(cached) " >&6
32009else
32010 ac_check_lib_save_LIBS=$LIBS
32011LIBS="-lwebp $LIBS"
32012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32013/* end confdefs.h. */
32014
32015/* Override any GCC internal prototype to avoid an error.
32016 Use char because int might match the return type of a GCC
32017 builtin and then its argument prototype would still apply. */
32018#ifdef __cplusplus
32019extern "C"
32020#endif
32021char WebPDecodeRGB ();
32022int
32023main ()
32024{
32025return WebPDecodeRGB ();
32026 ;
32027 return 0;
32028}
32029_ACEOF
32030if ac_fn_c_try_link "$LINENO"; then :
32031 ac_cv_lib_webp_WebPDecodeRGB=yes
32032else
32033 ac_cv_lib_webp_WebPDecodeRGB=no
32034fi
32035rm -f core conftest.err conftest.$ac_objext \
32036 conftest$ac_exeext conftest.$ac_ext
32037LIBS=$ac_check_lib_save_LIBS
32038fi
32039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32040$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32041if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32042 passed=`expr $passed + 1`
32043else
32044 failed=`expr $failed + 1`
32045fi
32046
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32048$as_echo_n "checking if WEBP package is complete... " >&6; }
32049 if test $passed -gt 0; then
32050 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032051 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32052$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032053 have_webp='no (failed tests)'
32054 else
32055 WEBP_LIBS='-lwebp'
32056 LIBS="$WEBP_LIBS $LIBS"
32057
32058$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32059
cristy09b53e12011-10-14 12:47:22 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32061$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032062 have_webp='yes'
32063 fi
32064 else
cristy09b53e12011-10-14 12:47:22 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32066$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032067 fi
32068fi
32069 if test "$have_webp" = 'yes'; then
32070 WEBP_DELEGATE_TRUE=
32071 WEBP_DELEGATE_FALSE='#'
32072else
32073 WEBP_DELEGATE_TRUE='#'
32074 WEBP_DELEGATE_FALSE=
32075fi
32076
32077
32078
32079
32080#
cristy3ed852e2009-09-05 21:47:34 +000032081# Set Windows font directory.
32082#
32083
32084# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032085if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032086 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32087else
32088 with_windows_font_dir=''
32089fi
32090
32091if test "$with_windows_font_dir" != '' ; then
32092 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32093fi
32094
32095
32096#
32097# Check for WMF delegate library.
32098#
32099
32100# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032101if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032102 withval=$with_wmf; with_wmf=$withval
32103else
cristyfc3d0222012-02-07 15:05:57 +000032104 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032105fi
32106
32107
32108if test "$with_wmf" != 'yes'; then
32109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32110fi
32111
32112have_wmf='no'
32113WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032114WMF_LIBS_DEPS=''
32115OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032116if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32118$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032120$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32122$as_echo "" >&6; }
32123 have_libwmf='no'
32124 have_libwmflite='no'
32125 have_libwmf_ipa_h='no'
32126
32127 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32128"
32129if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32130 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032131fi
32132
32133
cristy03f7cf92011-12-15 01:40:41 +000032134 if test "$have_libwmf_ipa_h" = 'yes'; then
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32136$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32137if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032138 $as_echo_n "(cached) " >&6
32139else
32140 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032141LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032143/* end confdefs.h. */
32144
32145/* Override any GCC internal prototype to avoid an error.
32146 Use char because int might match the return type of a GCC
32147 builtin and then its argument prototype would still apply. */
32148#ifdef __cplusplus
32149extern "C"
32150#endif
cristy03f7cf92011-12-15 01:40:41 +000032151char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032152int
32153main ()
32154{
cristy03f7cf92011-12-15 01:40:41 +000032155return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032156 ;
32157 return 0;
32158}
32159_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032160if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032161 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032162else
cristy03f7cf92011-12-15 01:40:41 +000032163 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032164fi
cristy8b350f62009-11-15 23:12:43 +000032165rm -f core conftest.err conftest.$ac_objext \
32166 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032167LIBS=$ac_check_lib_save_LIBS
32168fi
cristy03f7cf92011-12-15 01:40:41 +000032169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32170$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32171if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32172 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032173fi
32174
cristy03f7cf92011-12-15 01:40:41 +000032175 if test "$have_libwmflite" = 'yes'; then
32176
32177$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32178
32179 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032180 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032181 have_wmf='yes'
32182 else
32183 WMF_LIBS_DEPS=''
32184 WMF_CONFIG_LIBS=`libwmf-config --libs`
32185 for lib in xml2 expat freetype jpeg png z; do
32186 testlib="-l${lib}"
32187 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32188 done
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32190$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32191if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32192 $as_echo_n "(cached) " >&6
32193else
32194 ac_check_lib_save_LIBS=$LIBS
32195LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32197/* end confdefs.h. */
32198
32199/* Override any GCC internal prototype to avoid an error.
32200 Use char because int might match the return type of a GCC
32201 builtin and then its argument prototype would still apply. */
32202#ifdef __cplusplus
32203extern "C"
32204#endif
32205char wmf_api_create ();
32206int
32207main ()
32208{
32209return wmf_api_create ();
32210 ;
32211 return 0;
32212}
32213_ACEOF
32214if ac_fn_c_try_link "$LINENO"; then :
32215 ac_cv_lib_wmf_wmf_api_create=yes
32216else
32217 ac_cv_lib_wmf_wmf_api_create=no
32218fi
32219rm -f core conftest.err conftest.$ac_objext \
32220 conftest$ac_exeext conftest.$ac_ext
32221LIBS=$ac_check_lib_save_LIBS
32222fi
32223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32224$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32225if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32226 have_libwmf='yes'
32227fi
32228
32229 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032230
cristy8b350f62009-11-15 23:12:43 +000032231$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032232
cristy03f7cf92011-12-15 01:40:41 +000032233 WMF_LIBS='-lwmf'
32234 LIBS="$WMF_LIBS $LIBS"
32235 have_wmf='yes'
32236 else
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32238$as_echo "no -- some components failed test" >&6; }
32239 have_wmf='no (failed tests)'
32240 have_wmflite='no (failed tests)'
32241 LIBS="$OLIBS"
32242 WMF_LIBS=''
32243 fi
glennrp33e524b2011-08-24 17:41:57 +000032244 fi
cristy03f7cf92011-12-15 01:40:41 +000032245 fi
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32247$as_echo_n "checking if WMF package is complete... " >&6; }
32248 if test "$have_wmf" = 'yes'; then
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32250$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032251 else
cristy03f7cf92011-12-15 01:40:41 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32253$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032254 fi
cristy3ed852e2009-09-05 21:47:34 +000032255fi
cristy73bd4a52010-10-05 11:24:23 +000032256 if test "$have_wmf" = 'yes'; then
32257 WMF_DELEGATE_TRUE=
32258 WMF_DELEGATE_FALSE='#'
32259else
32260 WMF_DELEGATE_TRUE='#'
32261 WMF_DELEGATE_FALSE=
32262fi
32263
cristy3ed852e2009-09-05 21:47:34 +000032264
32265
32266
cristy81beccd2011-10-03 18:17:24 +000032267
32268
cristy3ed852e2009-09-05 21:47:34 +000032269#
32270# Check for XML delegate library.
32271#
32272
32273# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032274if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032275 withval=$with_xml; with_xml=$withval
32276else
cristyfc3d0222012-02-07 15:05:57 +000032277 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032278fi
32279
32280
cristy81beccd2011-10-03 18:17:24 +000032281if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32283fi
32284
cristy81beccd2011-10-03 18:17:24 +000032285have_xml='no'
32286XML_LIBS=''
32287if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032288 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32289$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32291$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032292 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32293$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032294 PERSIST_LDFLAGS=$LDFLAGS
32295 PERSIST_CPPFLAGS=$CPPFLAGS
32296 xml2_config=''
32297 # Extract the first word of "xml2-config", so it can be a program name with args.
32298set dummy xml2-config; ac_word=$2
32299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32300$as_echo_n "checking for $ac_word... " >&6; }
32301if ${ac_cv_path_xml2_config+:} false; then :
32302 $as_echo_n "(cached) " >&6
32303else
32304 case $xml2_config in
32305 [\\/]* | ?:[\\/]*)
32306 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32307 ;;
32308 *)
32309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32310for as_dir in $PATH
32311do
32312 IFS=$as_save_IFS
32313 test -z "$as_dir" && as_dir=.
32314 for ac_exec_ext in '' $ac_executable_extensions; do
32315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32316 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32318 break 2
32319 fi
32320done
32321 done
32322IFS=$as_save_IFS
32323
32324 ;;
32325esac
32326fi
32327xml2_config=$ac_cv_path_xml2_config
32328if test -n "$xml2_config"; then
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32330$as_echo "$xml2_config" >&6; }
32331else
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32333$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032334fi
32335
cristy81beccd2011-10-03 18:17:24 +000032336 if test -n "$xml2_config"; then
32337 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32338 # the shared library installed under /usr/lib, whereas the package
32339 # installs itself under $prefix/libxml and $prefix/lib.
32340 xml2_prefix=`xml2-config --prefix`
32341 if test -d "${xml2_prefix}/include/libxml2"; then
32342 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32343 fi
32344 if test "${xml2_prefix}" != '/usr'; then
32345 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32346 fi
32347 fi
32348 failed=0
32349 passed=0
32350 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32351if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32352 passed=`expr $passed + 1`
32353else
32354 failed=`expr $failed + 1`
32355fi
32356
32357
32358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32359$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32360if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32361 $as_echo_n "(cached) " >&6
32362else
32363 ac_check_lib_save_LIBS=$LIBS
32364LIBS="-lxml2 $LIBS"
32365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366/* end confdefs.h. */
32367
32368/* Override any GCC internal prototype to avoid an error.
32369 Use char because int might match the return type of a GCC
32370 builtin and then its argument prototype would still apply. */
32371#ifdef __cplusplus
32372extern "C"
32373#endif
32374char xmlSAXVersion ();
32375int
32376main ()
32377{
32378return xmlSAXVersion ();
32379 ;
32380 return 0;
32381}
32382_ACEOF
32383if ac_fn_c_try_link "$LINENO"; then :
32384 ac_cv_lib_xml2_xmlSAXVersion=yes
32385else
32386 ac_cv_lib_xml2_xmlSAXVersion=no
32387fi
32388rm -f core conftest.err conftest.$ac_objext \
32389 conftest$ac_exeext conftest.$ac_ext
32390LIBS=$ac_check_lib_save_LIBS
32391fi
32392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32393$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32394if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32395 passed=`expr $passed + 1`
32396else
32397 failed=`expr $failed + 1`
32398fi
32399
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32401$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32402if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32403 $as_echo_n "(cached) " >&6
32404else
32405 ac_check_lib_save_LIBS=$LIBS
32406LIBS="-lxml2 $LIBS"
32407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32408/* end confdefs.h. */
32409
32410/* Override any GCC internal prototype to avoid an error.
32411 Use char because int might match the return type of a GCC
32412 builtin and then its argument prototype would still apply. */
32413#ifdef __cplusplus
32414extern "C"
32415#endif
32416char xmlParseChunk ();
32417int
32418main ()
32419{
32420return xmlParseChunk ();
32421 ;
32422 return 0;
32423}
32424_ACEOF
32425if ac_fn_c_try_link "$LINENO"; then :
32426 ac_cv_lib_xml2_xmlParseChunk=yes
32427else
32428 ac_cv_lib_xml2_xmlParseChunk=no
32429fi
32430rm -f core conftest.err conftest.$ac_objext \
32431 conftest$ac_exeext conftest.$ac_ext
32432LIBS=$ac_check_lib_save_LIBS
32433fi
32434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32435$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32436if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32437 passed=`expr $passed + 1`
32438else
32439 failed=`expr $failed + 1`
32440fi
32441
32442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32443$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32444if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32445 $as_echo_n "(cached) " >&6
32446else
32447 ac_check_lib_save_LIBS=$LIBS
32448LIBS="-lxml2 $LIBS"
32449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32450/* end confdefs.h. */
32451
32452/* Override any GCC internal prototype to avoid an error.
32453 Use char because int might match the return type of a GCC
32454 builtin and then its argument prototype would still apply. */
32455#ifdef __cplusplus
32456extern "C"
32457#endif
32458char xmlCreatePushParserCtxt ();
32459int
32460main ()
32461{
32462return xmlCreatePushParserCtxt ();
32463 ;
32464 return 0;
32465}
32466_ACEOF
32467if ac_fn_c_try_link "$LINENO"; then :
32468 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32469else
32470 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32471fi
32472rm -f core conftest.err conftest.$ac_objext \
32473 conftest$ac_exeext conftest.$ac_ext
32474LIBS=$ac_check_lib_save_LIBS
32475fi
32476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32477$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32478if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32479 passed=`expr $passed + 1`
32480else
32481 failed=`expr $failed + 1`
32482fi
32483
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32485$as_echo_n "checking if XML package is complete... " >&6; }
32486 if test $passed -gt 0; then
32487 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032488 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32489$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032490 have_xml='no (failed tests)'
32491 LDFLAGS="$PERSIST_LDFLAGS"
32492 CPPFLAGS="$PERSIST_CPPFLAGS"
32493 else
32494 XML_LIBS='-lxml2'
32495 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032496
cristy8b350f62009-11-15 23:12:43 +000032497$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032498
cristy09b53e12011-10-14 12:47:22 +000032499 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32500$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032501 have_xml='yes'
32502 fi
32503 else
cristy09b53e12011-10-14 12:47:22 +000032504 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32505$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032506 fi
32507fi
cristy73bd4a52010-10-05 11:24:23 +000032508 if test "$have_xml" = 'yes'; then
32509 XML_DELEGATE_TRUE=
32510 XML_DELEGATE_FALSE='#'
32511else
32512 XML_DELEGATE_TRUE='#'
32513 XML_DELEGATE_FALSE=
32514fi
32515
cristy3ed852e2009-09-05 21:47:34 +000032516
32517
32518
32519# Substitute compiler name to build/link PerlMagick
32520#
32521
32522
32523#
32524# Configure install Paths
32525#
cristy7def36a2011-10-28 19:04:41 +000032526
cristy2a11bef2011-10-28 18:33:11 +000032527# Path to ImageMagick header files
32528INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032529INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32530DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032531case "${build_os}" in
32532 mingw* )
32533 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32534 ;;
32535esac
32536
32537cat >>confdefs.h <<_ACEOF
32538#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32539_ACEOF
32540
32541
cristy3ed852e2009-09-05 21:47:34 +000032542
32543# Subdirectory under lib to place ImageMagick lib files
32544LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32545
32546cat >>confdefs.h <<_ACEOF
32547#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32548_ACEOF
32549
32550
32551# Path to ImageMagick bin directory
32552EXECUTABLE_PATH="${BIN_DIR}"
32553DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32554case "${build_os}" in
32555 mingw* )
32556 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32557 ;;
32558esac
32559
32560cat >>confdefs.h <<_ACEOF
32561#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32562_ACEOF
32563
32564
32565
32566# Path to ImageMagick lib
32567LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32568DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32569case "${build_os}" in
32570 mingw* )
32571 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32572 ;;
32573esac
32574
32575cat >>confdefs.h <<_ACEOF
32576#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32577_ACEOF
32578
32579
32580
cristy3ed852e2009-09-05 21:47:34 +000032581#
32582# Subdirectory under lib to place ImageMagick coder module files
32583CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32584
32585cat >>confdefs.h <<_ACEOF
32586#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32587_ACEOF
32588
32589CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32590DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32591case "${build_os}" in
32592 mingw* )
32593 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32594 ;;
32595esac
32596
32597cat >>confdefs.h <<_ACEOF
32598#define CODER_PATH "$DEFINE_CODER_PATH"
32599_ACEOF
32600
32601
32602
32603#
32604# Subdirectory under lib to place ImageMagick filter module files
32605FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32606
32607cat >>confdefs.h <<_ACEOF
32608#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32609_ACEOF
32610
32611FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32612DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32613case "${build_os}" in
32614 mingw* )
32615 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32616 ;;
32617esac
32618
32619cat >>confdefs.h <<_ACEOF
32620#define FILTER_PATH "$DEFINE_FILTER_PATH"
32621_ACEOF
32622
32623
32624
32625#
32626# Path to ImageMagick documentation files
cristyd55889c2011-03-27 00:50:24 +000032627DOCUMENTATION_RELATIVE_PATH=""
32628DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32629DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032630case "${build_os}" in
32631 mingw* )
32632 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32633 ;;
32634esac
32635
32636cat >>confdefs.h <<_ACEOF
32637#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32638_ACEOF
32639
32640
32641
cristy2a11bef2011-10-28 18:33:11 +000032642# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032643CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032644
32645cat >>confdefs.h <<_ACEOF
32646#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32647_ACEOF
32648
cristy7def36a2011-10-28 19:04:41 +000032649CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032650DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32651case "${build_os}" in
32652 mingw* )
32653 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32654 ;;
32655esac
32656
32657cat >>confdefs.h <<_ACEOF
32658#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32659_ACEOF
32660
32661
32662
cristy2a11bef2011-10-28 18:33:11 +000032663# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032664SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032665
32666cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032667#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032668_ACEOF
32669
cristy670aa3c2011-11-03 00:54:00 +000032670SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032671DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032672case "${build_os}" in
32673 mingw* )
cristy4f820712011-04-01 12:35:43 +000032674 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032675 ;;
32676esac
32677
32678cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032679#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032680_ACEOF
32681
32682
32683
cristy408ebcd2011-11-14 01:36:57 +000032684# Subdirectory to place architecture-dependent configuration files
32685SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032686
32687cat >>confdefs.h <<_ACEOF
32688#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32689_ACEOF
32690
cristy408ebcd2011-11-14 01:36:57 +000032691SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32692DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032693case "${build_os}" in
32694 mingw* )
32695 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32696 ;;
32697esac
32698
32699cat >>confdefs.h <<_ACEOF
32700#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32701_ACEOF
32702
32703
32704
cristy3ed852e2009-09-05 21:47:34 +000032705#
32706# program_transform_name is formed for use in a Makefile, so create a
32707# modified version for use in a shell script.
32708configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32709
32710# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032711{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32712$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032714$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032715{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32716$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032717AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032718BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032719BZIPDelegateDefault='bzip2'
32720BrowseDelegateDefault='xdg-open'
32721CGMDecodeDelegateDefault='ralcgm'
32722CatDelegateDefault='cat'
32723DNGDecodeDelegateDefault='ufraw-batch'
32724GVCDecodeDelegateDefault='dot'
32725DVIDecodeDelegateDefault='dvips'
32726EchoDelegateDefault='echo'
32727EditorDelegateDefault='xterm'
32728FIGDecodeDelegateDefault='fig2dev'
32729ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32730DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32731MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32732GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032733HPGLDecodeDelegateDefault='hp2xx'
32734HTMLDecodeDelegateDefault='html2ps'
32735ILBMDecodeDelegateDefault='ilbmtoppm'
32736ILBMEncodeDelegateDefault='ppmtoilbm'
32737LPDelegateDefault='lp'
32738LPRDelegateDefault='lpr'
32739LZWDecodeDelegateDefault='uncompress'
32740LZWEncodeDelegateDefault='compress'
32741LaunchDelegateDefault='gimp'
32742MANDelegateDefault='groff'
32743MPEGDecodeDelegateDefault='ffmpeg'
32744MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032745MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032746MVDelegateDefault='mv'
32747PCLDelegateDefault='pcl6'
32748PGPDecodeDelegateDefault='pgpv'
32749POVDelegateDefault='povray'
32750if test "$native_win32_build" = 'yes'; then
32751 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032752elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032753 PSDelegateDefault='gsc'
32754else
32755 PSDelegateDefault='gs'
32756fi
32757RLEEncodeDelegateDefault='rawtorle'
32758RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032759RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032760SCANDecodeDelegateDefault='scanimage'
32761TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032762UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032763WMFDecodeDelegateDefault='wmf2eps'
32764WWWDecodeDelegateDefault='curl'
32765XPSDelegateDefault='gxps'
32766ZipDelegateDefault='gzip'
32767
32768# Search for delegates
32769# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32770set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032773if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032774 $as_echo_n "(cached) " >&6
32775else
32776 case $AutotraceDecodeDelegate in
32777 [\\/]* | ?:[\\/]*)
32778 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32779 ;;
32780 *)
32781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32782for as_dir in $PATH
32783do
32784 IFS=$as_save_IFS
32785 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32788 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032790 break 2
32791 fi
32792done
cristy8b350f62009-11-15 23:12:43 +000032793 done
cristy3ed852e2009-09-05 21:47:34 +000032794IFS=$as_save_IFS
32795
32796 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32797 ;;
32798esac
32799fi
32800AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32801if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032803$as_echo "$AutotraceDecodeDelegate" >&6; }
32804else
cristy8b350f62009-11-15 23:12:43 +000032805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032806$as_echo "no" >&6; }
32807fi
32808
32809
cristy3ed852e2009-09-05 21:47:34 +000032810# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32811set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032814if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032815 $as_echo_n "(cached) " >&6
32816else
32817 case $BlenderDecodeDelegate in
32818 [\\/]* | ?:[\\/]*)
32819 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32820 ;;
32821 *)
32822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32823for as_dir in $PATH
32824do
32825 IFS=$as_save_IFS
32826 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032827 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32829 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032831 break 2
32832 fi
32833done
cristy8b350f62009-11-15 23:12:43 +000032834 done
cristy3ed852e2009-09-05 21:47:34 +000032835IFS=$as_save_IFS
32836
32837 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32838 ;;
32839esac
32840fi
32841BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32842if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032844$as_echo "$BlenderDecodeDelegate" >&6; }
32845else
cristy8b350f62009-11-15 23:12:43 +000032846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032847$as_echo "no" >&6; }
32848fi
32849
32850
32851# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32852set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032854$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032855if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032856 $as_echo_n "(cached) " >&6
32857else
32858 case $BZIPDelegate in
32859 [\\/]* | ?:[\\/]*)
32860 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32861 ;;
32862 *)
32863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32864for as_dir in $PATH
32865do
32866 IFS=$as_save_IFS
32867 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032868 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32870 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032872 break 2
32873 fi
32874done
cristy8b350f62009-11-15 23:12:43 +000032875 done
cristy3ed852e2009-09-05 21:47:34 +000032876IFS=$as_save_IFS
32877
32878 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32879 ;;
32880esac
32881fi
32882BZIPDelegate=$ac_cv_path_BZIPDelegate
32883if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032885$as_echo "$BZIPDelegate" >&6; }
32886else
cristy8b350f62009-11-15 23:12:43 +000032887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032888$as_echo "no" >&6; }
32889fi
32890
32891
32892# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32893set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032895$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032896if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032897 $as_echo_n "(cached) " >&6
32898else
32899 case $BrowseDelegate in
32900 [\\/]* | ?:[\\/]*)
32901 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32902 ;;
32903 *)
32904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32905for as_dir in $PATH
32906do
32907 IFS=$as_save_IFS
32908 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032909 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32911 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032913 break 2
32914 fi
32915done
cristy8b350f62009-11-15 23:12:43 +000032916 done
cristy3ed852e2009-09-05 21:47:34 +000032917IFS=$as_save_IFS
32918
32919 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32920 ;;
32921esac
32922fi
32923BrowseDelegate=$ac_cv_path_BrowseDelegate
32924if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032926$as_echo "$BrowseDelegate" >&6; }
32927else
cristy8b350f62009-11-15 23:12:43 +000032928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032929$as_echo "no" >&6; }
32930fi
32931
32932
32933# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32934set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032936$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032937if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032938 $as_echo_n "(cached) " >&6
32939else
32940 case $CGMDecodeDelegate in
32941 [\\/]* | ?:[\\/]*)
32942 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32943 ;;
32944 *)
32945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32946for as_dir in $PATH
32947do
32948 IFS=$as_save_IFS
32949 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32952 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032954 break 2
32955 fi
32956done
cristy8b350f62009-11-15 23:12:43 +000032957 done
cristy3ed852e2009-09-05 21:47:34 +000032958IFS=$as_save_IFS
32959
32960 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32961 ;;
32962esac
32963fi
32964CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32965if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032967$as_echo "$CGMDecodeDelegate" >&6; }
32968else
cristy8b350f62009-11-15 23:12:43 +000032969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032970$as_echo "no" >&6; }
32971fi
32972
32973
32974# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32975set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032978if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032979 $as_echo_n "(cached) " >&6
32980else
32981 case $CatDelegate in
32982 [\\/]* | ?:[\\/]*)
32983 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32984 ;;
32985 *)
32986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32987for as_dir in $PATH
32988do
32989 IFS=$as_save_IFS
32990 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000032992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32993 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032995 break 2
32996 fi
32997done
cristy8b350f62009-11-15 23:12:43 +000032998 done
cristy3ed852e2009-09-05 21:47:34 +000032999IFS=$as_save_IFS
33000
33001 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33002 ;;
33003esac
33004fi
33005CatDelegate=$ac_cv_path_CatDelegate
33006if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033008$as_echo "$CatDelegate" >&6; }
33009else
cristy8b350f62009-11-15 23:12:43 +000033010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033011$as_echo "no" >&6; }
33012fi
33013
33014
33015# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33016set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033019if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033020 $as_echo_n "(cached) " >&6
33021else
33022 case $DNGDecodeDelegate in
33023 [\\/]* | ?:[\\/]*)
33024 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33025 ;;
33026 *)
33027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33028for as_dir in $PATH
33029do
33030 IFS=$as_save_IFS
33031 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033032 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33034 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033036 break 2
33037 fi
33038done
cristy8b350f62009-11-15 23:12:43 +000033039 done
cristy3ed852e2009-09-05 21:47:34 +000033040IFS=$as_save_IFS
33041
33042 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33043 ;;
33044esac
33045fi
33046DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33047if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033049$as_echo "$DNGDecodeDelegate" >&6; }
33050else
cristy8b350f62009-11-15 23:12:43 +000033051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033052$as_echo "no" >&6; }
33053fi
33054
33055
33056# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33057set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033060if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033061 $as_echo_n "(cached) " >&6
33062else
33063 case $GVCDecodeDelegate in
33064 [\\/]* | ?:[\\/]*)
33065 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33066 ;;
33067 *)
33068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33069for as_dir in $PATH
33070do
33071 IFS=$as_save_IFS
33072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33075 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077 break 2
33078 fi
33079done
cristy8b350f62009-11-15 23:12:43 +000033080 done
cristy3ed852e2009-09-05 21:47:34 +000033081IFS=$as_save_IFS
33082
33083 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33084 ;;
33085esac
33086fi
33087GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33088if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033090$as_echo "$GVCDecodeDelegate" >&6; }
33091else
cristy8b350f62009-11-15 23:12:43 +000033092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033093$as_echo "no" >&6; }
33094fi
33095
33096
33097# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33098set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033100$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033101if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033102 $as_echo_n "(cached) " >&6
33103else
33104 case $DVIDecodeDelegate in
33105 [\\/]* | ?:[\\/]*)
33106 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33107 ;;
33108 *)
33109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33110for as_dir in $PATH
33111do
33112 IFS=$as_save_IFS
33113 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033114 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33116 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033118 break 2
33119 fi
33120done
cristy8b350f62009-11-15 23:12:43 +000033121 done
cristy3ed852e2009-09-05 21:47:34 +000033122IFS=$as_save_IFS
33123
33124 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33125 ;;
33126esac
33127fi
33128DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33129if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033131$as_echo "$DVIDecodeDelegate" >&6; }
33132else
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "no" >&6; }
33135fi
33136
33137
33138# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33139set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033141$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033142if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033143 $as_echo_n "(cached) " >&6
33144else
33145 case $EchoDelegate in
33146 [\\/]* | ?:[\\/]*)
33147 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33148 ;;
33149 *)
33150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33151for as_dir in $PATH
33152do
33153 IFS=$as_save_IFS
33154 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033155 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33157 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159 break 2
33160 fi
33161done
cristy8b350f62009-11-15 23:12:43 +000033162 done
cristy3ed852e2009-09-05 21:47:34 +000033163IFS=$as_save_IFS
33164
33165 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33166 ;;
33167esac
33168fi
33169EchoDelegate=$ac_cv_path_EchoDelegate
33170if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033172$as_echo "$EchoDelegate" >&6; }
33173else
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "no" >&6; }
33176fi
33177
33178
33179# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33180set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033183if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033184 $as_echo_n "(cached) " >&6
33185else
33186 case $EditorDelegate in
33187 [\\/]* | ?:[\\/]*)
33188 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33189 ;;
33190 *)
33191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33192for as_dir in $PATH
33193do
33194 IFS=$as_save_IFS
33195 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033196 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33198 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033200 break 2
33201 fi
33202done
cristy8b350f62009-11-15 23:12:43 +000033203 done
cristy3ed852e2009-09-05 21:47:34 +000033204IFS=$as_save_IFS
33205
33206 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33207 ;;
33208esac
33209fi
33210EditorDelegate=$ac_cv_path_EditorDelegate
33211if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033213$as_echo "$EditorDelegate" >&6; }
33214else
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "no" >&6; }
33217fi
33218
33219
33220# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33221set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033223$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033224if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033225 $as_echo_n "(cached) " >&6
33226else
33227 case $FIGDecodeDelegate in
33228 [\\/]* | ?:[\\/]*)
33229 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33230 ;;
33231 *)
33232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33233for as_dir in $PATH
33234do
33235 IFS=$as_save_IFS
33236 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033237 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33239 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033241 break 2
33242 fi
33243done
cristy8b350f62009-11-15 23:12:43 +000033244 done
cristy3ed852e2009-09-05 21:47:34 +000033245IFS=$as_save_IFS
33246
33247 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33248 ;;
33249esac
33250fi
33251FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33252if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033254$as_echo "$FIGDecodeDelegate" >&6; }
33255else
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "no" >&6; }
33258fi
33259
33260
33261# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33262set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033265if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033266 $as_echo_n "(cached) " >&6
33267else
33268 case $ConvertDelegate in
33269 [\\/]* | ?:[\\/]*)
33270 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33271 ;;
33272 *)
33273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33274for as_dir in $PATH
33275do
33276 IFS=$as_save_IFS
33277 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033278 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33280 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033282 break 2
33283 fi
33284done
cristy8b350f62009-11-15 23:12:43 +000033285 done
cristy3ed852e2009-09-05 21:47:34 +000033286IFS=$as_save_IFS
33287
33288 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33289 ;;
33290esac
33291fi
33292ConvertDelegate=$ac_cv_path_ConvertDelegate
33293if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "$ConvertDelegate" >&6; }
33296else
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "no" >&6; }
33299fi
33300
33301
33302# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33303set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033305$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033306if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033307 $as_echo_n "(cached) " >&6
33308else
33309 case $DisplayDelegate in
33310 [\\/]* | ?:[\\/]*)
33311 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33312 ;;
33313 *)
33314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33315for as_dir in $PATH
33316do
33317 IFS=$as_save_IFS
33318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33321 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033323 break 2
33324 fi
33325done
cristy8b350f62009-11-15 23:12:43 +000033326 done
cristy3ed852e2009-09-05 21:47:34 +000033327IFS=$as_save_IFS
33328
33329 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33330 ;;
33331esac
33332fi
33333DisplayDelegate=$ac_cv_path_DisplayDelegate
33334if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033336$as_echo "$DisplayDelegate" >&6; }
33337else
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "no" >&6; }
33340fi
33341
33342
33343# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33344set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033346$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033347if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033348 $as_echo_n "(cached) " >&6
33349else
33350 case $MogrifyDelegate in
33351 [\\/]* | ?:[\\/]*)
33352 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33353 ;;
33354 *)
33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33356for as_dir in $PATH
33357do
33358 IFS=$as_save_IFS
33359 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033360 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33362 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033364 break 2
33365 fi
33366done
cristy8b350f62009-11-15 23:12:43 +000033367 done
cristy3ed852e2009-09-05 21:47:34 +000033368IFS=$as_save_IFS
33369
33370 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33371 ;;
33372esac
33373fi
33374MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33375if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033377$as_echo "$MogrifyDelegate" >&6; }
33378else
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "no" >&6; }
33381fi
33382
33383
33384# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33385set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033388if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033389 $as_echo_n "(cached) " >&6
33390else
33391 case $GnuplotDecodeDelegate in
33392 [\\/]* | ?:[\\/]*)
33393 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33394 ;;
33395 *)
33396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33397for as_dir in $PATH
33398do
33399 IFS=$as_save_IFS
33400 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033401 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33403 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033405 break 2
33406 fi
33407done
cristy8b350f62009-11-15 23:12:43 +000033408 done
cristy3ed852e2009-09-05 21:47:34 +000033409IFS=$as_save_IFS
33410
33411 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33412 ;;
33413esac
33414fi
33415GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33416if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033418$as_echo "$GnuplotDecodeDelegate" >&6; }
33419else
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "no" >&6; }
33422fi
33423
33424
cristy3ed852e2009-09-05 21:47:34 +000033425# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33426set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033429if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033430 $as_echo_n "(cached) " >&6
33431else
33432 case $HPGLDecodeDelegate in
33433 [\\/]* | ?:[\\/]*)
33434 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33435 ;;
33436 *)
33437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33438for as_dir in $PATH
33439do
33440 IFS=$as_save_IFS
33441 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033442 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33444 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033446 break 2
33447 fi
33448done
cristy8b350f62009-11-15 23:12:43 +000033449 done
cristy3ed852e2009-09-05 21:47:34 +000033450IFS=$as_save_IFS
33451
33452 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33453 ;;
33454esac
33455fi
33456HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33457if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033459$as_echo "$HPGLDecodeDelegate" >&6; }
33460else
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "no" >&6; }
33463fi
33464
33465
33466# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33467set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033469$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033470if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033471 $as_echo_n "(cached) " >&6
33472else
33473 case $HTMLDecodeDelegate in
33474 [\\/]* | ?:[\\/]*)
33475 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33476 ;;
33477 *)
33478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33479for as_dir in $PATH
33480do
33481 IFS=$as_save_IFS
33482 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033483 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33485 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033487 break 2
33488 fi
33489done
cristy8b350f62009-11-15 23:12:43 +000033490 done
cristy3ed852e2009-09-05 21:47:34 +000033491IFS=$as_save_IFS
33492
33493 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33494 ;;
33495esac
33496fi
33497HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33498if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo "$HTMLDecodeDelegate" >&6; }
33501else
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "no" >&6; }
33504fi
33505
33506
33507# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33508set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033511if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033512 $as_echo_n "(cached) " >&6
33513else
33514 case $ILBMDecodeDelegate in
33515 [\\/]* | ?:[\\/]*)
33516 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33517 ;;
33518 *)
33519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33520for as_dir in $PATH
33521do
33522 IFS=$as_save_IFS
33523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33526 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033528 break 2
33529 fi
33530done
cristy8b350f62009-11-15 23:12:43 +000033531 done
cristy3ed852e2009-09-05 21:47:34 +000033532IFS=$as_save_IFS
33533
33534 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33535 ;;
33536esac
33537fi
33538ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33539if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541$as_echo "$ILBMDecodeDelegate" >&6; }
33542else
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "no" >&6; }
33545fi
33546
33547
33548# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33549set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033551$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033552if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033553 $as_echo_n "(cached) " >&6
33554else
33555 case $ILBMEncodeDelegate in
33556 [\\/]* | ?:[\\/]*)
33557 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33558 ;;
33559 *)
33560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33561for as_dir in $PATH
33562do
33563 IFS=$as_save_IFS
33564 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33567 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033569 break 2
33570 fi
33571done
cristy8b350f62009-11-15 23:12:43 +000033572 done
cristy3ed852e2009-09-05 21:47:34 +000033573IFS=$as_save_IFS
33574
33575 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33576 ;;
33577esac
33578fi
33579ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33580if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033582$as_echo "$ILBMEncodeDelegate" >&6; }
33583else
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "no" >&6; }
33586fi
33587
33588
33589# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33590set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033593if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033594 $as_echo_n "(cached) " >&6
33595else
33596 case $LPDelegate in
33597 [\\/]* | ?:[\\/]*)
33598 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33599 ;;
33600 *)
33601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33602for as_dir in $PATH
33603do
33604 IFS=$as_save_IFS
33605 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033606 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33608 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033610 break 2
33611 fi
33612done
cristy8b350f62009-11-15 23:12:43 +000033613 done
cristy3ed852e2009-09-05 21:47:34 +000033614IFS=$as_save_IFS
33615
33616 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33617 ;;
33618esac
33619fi
33620LPDelegate=$ac_cv_path_LPDelegate
33621if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo "$LPDelegate" >&6; }
33624else
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "no" >&6; }
33627fi
33628
33629
33630# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33631set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033634if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033635 $as_echo_n "(cached) " >&6
33636else
33637 case $LPRDelegate in
33638 [\\/]* | ?:[\\/]*)
33639 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33640 ;;
33641 *)
33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33643for as_dir in $PATH
33644do
33645 IFS=$as_save_IFS
33646 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033647 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33649 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033651 break 2
33652 fi
33653done
cristy8b350f62009-11-15 23:12:43 +000033654 done
cristy3ed852e2009-09-05 21:47:34 +000033655IFS=$as_save_IFS
33656
33657 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33658 ;;
33659esac
33660fi
33661LPRDelegate=$ac_cv_path_LPRDelegate
33662if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033664$as_echo "$LPRDelegate" >&6; }
33665else
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "no" >&6; }
33668fi
33669
33670
33671# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33672set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033674$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033675if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033676 $as_echo_n "(cached) " >&6
33677else
33678 case $LZWDecodeDelegate in
33679 [\\/]* | ?:[\\/]*)
33680 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33681 ;;
33682 *)
33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684for as_dir in $PATH
33685do
33686 IFS=$as_save_IFS
33687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33690 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033692 break 2
33693 fi
33694done
cristy8b350f62009-11-15 23:12:43 +000033695 done
cristy3ed852e2009-09-05 21:47:34 +000033696IFS=$as_save_IFS
33697
33698 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33699 ;;
33700esac
33701fi
33702LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33703if test -n "$LZWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo "$LZWDecodeDelegate" >&6; }
33706else
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "no" >&6; }
33709fi
33710
33711
33712# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33713set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033715$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033716if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033717 $as_echo_n "(cached) " >&6
33718else
33719 case $LZWEncodeDelegate in
33720 [\\/]* | ?:[\\/]*)
33721 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33722 ;;
33723 *)
33724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33725for as_dir in $PATH
33726do
33727 IFS=$as_save_IFS
33728 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033729 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33731 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733 break 2
33734 fi
33735done
cristy8b350f62009-11-15 23:12:43 +000033736 done
cristy3ed852e2009-09-05 21:47:34 +000033737IFS=$as_save_IFS
33738
33739 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33740 ;;
33741esac
33742fi
33743LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33744if test -n "$LZWEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033746$as_echo "$LZWEncodeDelegate" >&6; }
33747else
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "no" >&6; }
33750fi
33751
33752
33753# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33754set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033757if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033758 $as_echo_n "(cached) " >&6
33759else
33760 case $LaunchDelegate in
33761 [\\/]* | ?:[\\/]*)
33762 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33763 ;;
33764 *)
33765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33766for as_dir in $PATH
33767do
33768 IFS=$as_save_IFS
33769 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033770 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33772 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033774 break 2
33775 fi
33776done
cristy8b350f62009-11-15 23:12:43 +000033777 done
cristy3ed852e2009-09-05 21:47:34 +000033778IFS=$as_save_IFS
33779
33780 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33781 ;;
33782esac
33783fi
33784LaunchDelegate=$ac_cv_path_LaunchDelegate
33785if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787$as_echo "$LaunchDelegate" >&6; }
33788else
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "no" >&6; }
33791fi
33792
33793
33794# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33795set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033797$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033798if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033799 $as_echo_n "(cached) " >&6
33800else
33801 case $MANDelegate in
33802 [\\/]* | ?:[\\/]*)
33803 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33804 ;;
33805 *)
33806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33807for as_dir in $PATH
33808do
33809 IFS=$as_save_IFS
33810 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033811 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33813 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033815 break 2
33816 fi
33817done
cristy8b350f62009-11-15 23:12:43 +000033818 done
cristy3ed852e2009-09-05 21:47:34 +000033819IFS=$as_save_IFS
33820
33821 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33822 ;;
33823esac
33824fi
33825MANDelegate=$ac_cv_path_MANDelegate
33826if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo "$MANDelegate" >&6; }
33829else
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "no" >&6; }
33832fi
33833
33834
33835# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33836set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033838$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033839if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033840 $as_echo_n "(cached) " >&6
33841else
33842 case $MPEGDecodeDelegate in
33843 [\\/]* | ?:[\\/]*)
33844 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33845 ;;
33846 *)
33847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33848for as_dir in $PATH
33849do
33850 IFS=$as_save_IFS
33851 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033852 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33854 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033856 break 2
33857 fi
33858done
cristy8b350f62009-11-15 23:12:43 +000033859 done
cristy3ed852e2009-09-05 21:47:34 +000033860IFS=$as_save_IFS
33861
33862 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33863 ;;
33864esac
33865fi
33866MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33867if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo "$MPEGDecodeDelegate" >&6; }
33870else
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "no" >&6; }
33873fi
33874
33875
33876# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33877set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033879$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033880if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033881 $as_echo_n "(cached) " >&6
33882else
33883 case $MPEGEncodeDelegate in
33884 [\\/]* | ?:[\\/]*)
33885 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33886 ;;
33887 *)
33888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33889for as_dir in $PATH
33890do
33891 IFS=$as_save_IFS
33892 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033893 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33895 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033897 break 2
33898 fi
33899done
cristy8b350f62009-11-15 23:12:43 +000033900 done
cristy3ed852e2009-09-05 21:47:34 +000033901IFS=$as_save_IFS
33902
33903 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33904 ;;
33905esac
33906fi
33907MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33908if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo "$MPEGEncodeDelegate" >&6; }
33911else
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "no" >&6; }
33914fi
33915
33916
cristy935c86e2010-06-05 23:50:07 +000033917# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33918set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033921if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033922 $as_echo_n "(cached) " >&6
33923else
33924 case $MrSIDDecodeDelegate in
33925 [\\/]* | ?:[\\/]*)
33926 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33927 ;;
33928 *)
33929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33930for as_dir in $PATH
33931do
33932 IFS=$as_save_IFS
33933 test -z "$as_dir" && as_dir=.
33934 for ac_exec_ext in '' $ac_executable_extensions; do
33935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33936 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33938 break 2
33939 fi
33940done
33941 done
33942IFS=$as_save_IFS
33943
33944 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33945 ;;
33946esac
33947fi
33948MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33949if test -n "$MrSIDDecodeDelegate"; then
33950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33951$as_echo "$MrSIDDecodeDelegate" >&6; }
33952else
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33954$as_echo "no" >&6; }
33955fi
33956
33957
cristy3ed852e2009-09-05 21:47:34 +000033958# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33959set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033961$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033962if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033963 $as_echo_n "(cached) " >&6
33964else
33965 case $MVDelegate in
33966 [\\/]* | ?:[\\/]*)
33967 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33968 ;;
33969 *)
33970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33971for as_dir in $PATH
33972do
33973 IFS=$as_save_IFS
33974 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033975 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000033976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33977 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033979 break 2
33980 fi
33981done
cristy8b350f62009-11-15 23:12:43 +000033982 done
cristy3ed852e2009-09-05 21:47:34 +000033983IFS=$as_save_IFS
33984
33985 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33986 ;;
33987esac
33988fi
33989MVDelegate=$ac_cv_path_MVDelegate
33990if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033992$as_echo "$MVDelegate" >&6; }
33993else
cristy8b350f62009-11-15 23:12:43 +000033994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo "no" >&6; }
33996fi
33997
33998
33999# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34000set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034002$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034003if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034004 $as_echo_n "(cached) " >&6
34005else
34006 case $PCLDelegate in
34007 [\\/]* | ?:[\\/]*)
34008 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34009 ;;
34010 *)
34011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34012for as_dir in $PATH
34013do
34014 IFS=$as_save_IFS
34015 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034016 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34018 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034020 break 2
34021 fi
34022done
cristy8b350f62009-11-15 23:12:43 +000034023 done
cristy3ed852e2009-09-05 21:47:34 +000034024IFS=$as_save_IFS
34025
34026 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34027 ;;
34028esac
34029fi
34030PCLDelegate=$ac_cv_path_PCLDelegate
34031if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034033$as_echo "$PCLDelegate" >&6; }
34034else
cristy8b350f62009-11-15 23:12:43 +000034035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034036$as_echo "no" >&6; }
34037fi
34038
34039
34040# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34041set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034044if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034045 $as_echo_n "(cached) " >&6
34046else
34047 case $PGPDecodeDelegate in
34048 [\\/]* | ?:[\\/]*)
34049 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34050 ;;
34051 *)
34052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34053for as_dir in $PATH
34054do
34055 IFS=$as_save_IFS
34056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34059 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034061 break 2
34062 fi
34063done
cristy8b350f62009-11-15 23:12:43 +000034064 done
cristy3ed852e2009-09-05 21:47:34 +000034065IFS=$as_save_IFS
34066
34067 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34068 ;;
34069esac
34070fi
34071PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34072if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034074$as_echo "$PGPDecodeDelegate" >&6; }
34075else
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "no" >&6; }
34078fi
34079
34080
34081# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34082set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034085if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034086 $as_echo_n "(cached) " >&6
34087else
34088 case $POVDelegate in
34089 [\\/]* | ?:[\\/]*)
34090 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34091 ;;
34092 *)
34093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34094for as_dir in $PATH
34095do
34096 IFS=$as_save_IFS
34097 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034098 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34100 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034102 break 2
34103 fi
34104done
cristy8b350f62009-11-15 23:12:43 +000034105 done
cristy3ed852e2009-09-05 21:47:34 +000034106IFS=$as_save_IFS
34107
34108 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34109 ;;
34110esac
34111fi
34112POVDelegate=$ac_cv_path_POVDelegate
34113if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034115$as_echo "$POVDelegate" >&6; }
34116else
cristy8b350f62009-11-15 23:12:43 +000034117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo "no" >&6; }
34119fi
34120
34121
34122for ac_prog in gsx gsc "$PSDelegateDefault"
34123do
34124 # Extract the first word of "$ac_prog", so it can be a program name with args.
34125set dummy $ac_prog; 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_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034129 $as_echo_n "(cached) " >&6
34130else
34131 case $PSDelegate in
34132 [\\/]* | ?:[\\/]*)
34133 ac_cv_path_PSDelegate="$PSDelegate" # 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_PSDelegate="$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 ;;
34152esac
34153fi
34154PSDelegate=$ac_cv_path_PSDelegate
34155if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157$as_echo "$PSDelegate" >&6; }
34158else
cristy8b350f62009-11-15 23:12:43 +000034159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034160$as_echo "no" >&6; }
34161fi
34162
34163
34164 test -n "$PSDelegate" && break
34165done
34166test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34167
34168# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34169set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034172if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034173 $as_echo_n "(cached) " >&6
34174else
34175 case $RLEEncodeDelegate in
34176 [\\/]* | ?:[\\/]*)
34177 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34178 ;;
34179 *)
34180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34181for as_dir in $PATH
34182do
34183 IFS=$as_save_IFS
34184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34187 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034189 break 2
34190 fi
34191done
cristy8b350f62009-11-15 23:12:43 +000034192 done
cristy3ed852e2009-09-05 21:47:34 +000034193IFS=$as_save_IFS
34194
34195 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34196 ;;
34197esac
34198fi
34199RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34200if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo "$RLEEncodeDelegate" >&6; }
34203else
cristy8b350f62009-11-15 23:12:43 +000034204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034205$as_echo "no" >&6; }
34206fi
34207
34208
34209# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34210set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034213if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034214 $as_echo_n "(cached) " >&6
34215else
34216 case $RMDelegate in
34217 [\\/]* | ?:[\\/]*)
34218 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34219 ;;
34220 *)
34221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34222for as_dir in $PATH
34223do
34224 IFS=$as_save_IFS
34225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34228 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230 break 2
34231 fi
34232done
cristy8b350f62009-11-15 23:12:43 +000034233 done
cristy3ed852e2009-09-05 21:47:34 +000034234IFS=$as_save_IFS
34235
34236 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34237 ;;
34238esac
34239fi
34240RMDelegate=$ac_cv_path_RMDelegate
34241if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034243$as_echo "$RMDelegate" >&6; }
34244else
cristy8b350f62009-11-15 23:12:43 +000034245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034246$as_echo "no" >&6; }
34247fi
34248
34249
cristy4689cf02010-02-17 21:15:45 +000034250# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34251set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34253$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034254if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034255 $as_echo_n "(cached) " >&6
34256else
34257 case $RSVGDecodeDelegate in
34258 [\\/]* | ?:[\\/]*)
34259 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34260 ;;
34261 *)
34262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34263for as_dir in $PATH
34264do
34265 IFS=$as_save_IFS
34266 test -z "$as_dir" && as_dir=.
34267 for ac_exec_ext in '' $ac_executable_extensions; do
34268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34269 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34271 break 2
34272 fi
34273done
34274 done
34275IFS=$as_save_IFS
34276
34277 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34278 ;;
34279esac
34280fi
34281RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34282if test -n "$RSVGDecodeDelegate"; then
34283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34284$as_echo "$RSVGDecodeDelegate" >&6; }
34285else
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34287$as_echo "no" >&6; }
34288fi
34289
34290
cristy3ed852e2009-09-05 21:47:34 +000034291# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34292set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034294$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034295if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034296 $as_echo_n "(cached) " >&6
34297else
34298 case $SCANDecodeDelegate in
34299 [\\/]* | ?:[\\/]*)
34300 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34301 ;;
34302 *)
34303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34304for as_dir in $PATH
34305do
34306 IFS=$as_save_IFS
34307 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034308 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34310 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312 break 2
34313 fi
34314done
cristy8b350f62009-11-15 23:12:43 +000034315 done
cristy3ed852e2009-09-05 21:47:34 +000034316IFS=$as_save_IFS
34317
34318 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34319 ;;
34320esac
34321fi
34322SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34323if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034325$as_echo "$SCANDecodeDelegate" >&6; }
34326else
cristy8b350f62009-11-15 23:12:43 +000034327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034328$as_echo "no" >&6; }
34329fi
34330
34331
34332# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34333set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034336if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034337 $as_echo_n "(cached) " >&6
34338else
34339 case $TXTDelegate in
34340 [\\/]* | ?:[\\/]*)
34341 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34342 ;;
34343 *)
34344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34345for as_dir in $PATH
34346do
34347 IFS=$as_save_IFS
34348 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034349 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34351 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034353 break 2
34354 fi
34355done
cristy8b350f62009-11-15 23:12:43 +000034356 done
cristy3ed852e2009-09-05 21:47:34 +000034357IFS=$as_save_IFS
34358
34359 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34360 ;;
34361esac
34362fi
34363TXTDelegate=$ac_cv_path_TXTDelegate
34364if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034366$as_echo "$TXTDelegate" >&6; }
34367else
cristy8b350f62009-11-15 23:12:43 +000034368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034369$as_echo "no" >&6; }
34370fi
34371
34372
cristy5ac9ac82010-07-29 13:24:24 +000034373# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34374set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34376$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034377if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034378 $as_echo_n "(cached) " >&6
34379else
34380 case $UniconvertorDelegate in
34381 [\\/]* | ?:[\\/]*)
34382 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34383 ;;
34384 *)
34385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34386for as_dir in $PATH
34387do
34388 IFS=$as_save_IFS
34389 test -z "$as_dir" && as_dir=.
34390 for ac_exec_ext in '' $ac_executable_extensions; do
34391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34392 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34394 break 2
34395 fi
34396done
34397 done
34398IFS=$as_save_IFS
34399
34400 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34401 ;;
34402esac
34403fi
34404UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34405if test -n "$UniconvertorDelegate"; then
34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34407$as_echo "$UniconvertorDelegate" >&6; }
34408else
34409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34410$as_echo "no" >&6; }
34411fi
34412
34413
cristy3ed852e2009-09-05 21:47:34 +000034414# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34415set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034418if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034419 $as_echo_n "(cached) " >&6
34420else
34421 case $WMFDecodeDelegate in
34422 [\\/]* | ?:[\\/]*)
34423 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34424 ;;
34425 *)
34426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34427for as_dir in $PATH
34428do
34429 IFS=$as_save_IFS
34430 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34433 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034435 break 2
34436 fi
34437done
cristy8b350f62009-11-15 23:12:43 +000034438 done
cristy3ed852e2009-09-05 21:47:34 +000034439IFS=$as_save_IFS
34440
34441 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34442 ;;
34443esac
34444fi
34445WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34446if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034448$as_echo "$WMFDecodeDelegate" >&6; }
34449else
cristy8b350f62009-11-15 23:12:43 +000034450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034451$as_echo "no" >&6; }
34452fi
34453
34454
34455# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34456set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034458$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034459if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034460 $as_echo_n "(cached) " >&6
34461else
34462 case $WWWDecodeDelegate in
34463 [\\/]* | ?:[\\/]*)
34464 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34465 ;;
34466 *)
34467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34468for as_dir in $PATH
34469do
34470 IFS=$as_save_IFS
34471 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34474 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034476 break 2
34477 fi
34478done
cristy8b350f62009-11-15 23:12:43 +000034479 done
cristy3ed852e2009-09-05 21:47:34 +000034480IFS=$as_save_IFS
34481
34482 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34483 ;;
34484esac
34485fi
34486WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34487if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034489$as_echo "$WWWDecodeDelegate" >&6; }
34490else
cristy8b350f62009-11-15 23:12:43 +000034491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034492$as_echo "no" >&6; }
34493fi
34494
34495
34496# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34497set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034499$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034500if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034501 $as_echo_n "(cached) " >&6
34502else
34503 case $XPSDelegate in
34504 [\\/]* | ?:[\\/]*)
34505 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34506 ;;
34507 *)
34508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34509for as_dir in $PATH
34510do
34511 IFS=$as_save_IFS
34512 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034513 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34515 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034517 break 2
34518 fi
34519done
cristy8b350f62009-11-15 23:12:43 +000034520 done
cristy3ed852e2009-09-05 21:47:34 +000034521IFS=$as_save_IFS
34522
34523 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34524 ;;
34525esac
34526fi
34527XPSDelegate=$ac_cv_path_XPSDelegate
34528if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034530$as_echo "$XPSDelegate" >&6; }
34531else
cristy8b350f62009-11-15 23:12:43 +000034532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034533$as_echo "no" >&6; }
34534fi
34535
34536
34537# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34538set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034541if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034542 $as_echo_n "(cached) " >&6
34543else
34544 case $ZipDelegate in
34545 [\\/]* | ?:[\\/]*)
34546 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34547 ;;
34548 *)
34549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34550for as_dir in $PATH
34551do
34552 IFS=$as_save_IFS
34553 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034554 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34556 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034558 break 2
34559 fi
34560done
cristy8b350f62009-11-15 23:12:43 +000034561 done
cristy3ed852e2009-09-05 21:47:34 +000034562IFS=$as_save_IFS
34563
34564 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34565 ;;
34566esac
34567fi
34568ZipDelegate=$ac_cv_path_ZipDelegate
34569if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034571$as_echo "$ZipDelegate" >&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
34579# Prefer lpr to lp; lp needs options tacked on.
34580if test "$LPRDelegate" != no; then
34581 PrintDelegate="$LPRDelegate"
34582else
34583 PrintDelegate="$LPDelegate -c -s"
34584fi
34585
34586
34587# Installed ImageMagick utiltity paths
34588ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34589DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34590MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34591
34592# Set delegate booleans
34593have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34594have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34595have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34596have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34597have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034598have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034599have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34600have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034601have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34602have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34603
34604#
34605# Test for font directories
34606#
34607type_include_files=''
34608
cristy430a7312010-01-21 20:44:04 +000034609# Dejavu fonts.
34610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34611$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34612dejavu_font_dir=''
34613if test "${with_dejavu_font_dir}" != 'default'; then
34614 dejavu_font_dir="${with_dejavu_font_dir}/"
34615else
34616 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34617 if test -f "${font_dir}DejaVuSerif.ttf"; then
34618 dejavu_font_dir="${font_dir}"
34619 break 1
34620 fi
34621 done
34622fi
34623if test "${dejavu_font_dir}x" != 'x'; then
34624 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034625 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34626$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034627else
cristy09b53e12011-10-14 12:47:22 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34629$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034630fi
34631
34632
cristy3ed852e2009-09-05 21:47:34 +000034633# Windows
34634windows_font_dir=''
34635if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34636 windows_font_dir="${with_windows_font_dir}/"
34637fi
cristy430a7312010-01-21 20:44:04 +000034638if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034639 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34640 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34641 fi
34642 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34643 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34644 fi
34645 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34646 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34647 fi
34648fi
cristy430a7312010-01-21 20:44:04 +000034649if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034650 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34651fi
34652
34653
34654# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34657ghostscript_font_dir=''
34658if test "${with_gs_font_dir}" != 'default'; then
34659 ghostscript_font_dir="${with_gs_font_dir}/"
34660else
34661 if test "${native_win32_build}" = 'yes'; then
34662 # Native Windows Build
34663 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34664 if test -f "${font_dir}a010013l.pfb"; then
34665 ghostscript_font_dir="$font_dir"
34666 break 1
34667 fi
34668 done
34669 if test "${PSDelegate}" != 'gswin32c'; then
34670 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34671 fi
34672 else
34673 # Linux / Mac OS X / Unix Build
34674 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
34675 if test -f "${font_dir}a010013l.pfb"; then
34676 ghostscript_font_dir="${font_dir}"
34677 break 1
34678 fi
34679 done
34680 if test "${ghostscript_font_dir}x" = 'x'; then
34681 if test "$PSDelegate" != 'gs'; then
34682 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34683 fi
34684 fi
34685 fi
34686fi
34687if test "${ghostscript_font_dir}x" != 'x'; then
34688 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034689 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34690$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034691else
cristy09b53e12011-10-14 12:47:22 +000034692 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34693$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034694fi
34695
34696case "${build_os}" in
34697 mingw* )
34698 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34699 ;;
34700esac
34701
34702
34703
34704#
34705# Handle case where user doesn't want frozen paths
34706#
34707if test "$with_frozenpaths" != 'yes'; then
34708 # Re-set delegate definitions to default (no paths)
34709 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034710 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34711 BZIPDelegate="$BZIPDelegateDefault"
34712 BrowseDelegate="$BrowseDelegateDefault"
34713 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34714 CatDelegate="$CatDelegateDefault"
34715 ConvertDelegate="$ConvertDelegateDefault"
34716 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34717 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34718 EchoDelegate="$EchoDelegateDefault"
34719 EditorDelegate="$EditorDelegateDefault"
34720 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34721 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34722 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34723 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34724 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34725 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34726 LPDelegate="$LPDelegateDefault"
34727 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34728 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34729 LaunchDelegate="$LaunchDelegateDefault"
34730 MANDelegate="$MANDelegateDefault"
34731 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34732 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034733 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034734 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34735 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034736 PCLDelegate="$PCLDelegateDefault"
34737 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34738 POVDelegate="$POVDelegateDefault"
34739 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034740 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34741 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034742 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034743 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34744 ShowImageDelegate="$ShowImageDelegateDefault"
34745 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034746 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034747 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34748 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34749 XPSDelegate="$XPSDelegateDefault"
34750 ZipDelegate="$ZipDelegateDefault"
34751fi
34752
34753# Delegate substitutions
34754
34755
34756
34757
34758
34759
34760
34761
34762
34763
34764
34765
34766
34767
34768
34769
34770
34771
34772
34773
34774
34775
34776
34777
34778
34779
34780
34781
34782
34783
34784
34785
34786
34787
34788
34789
34790
34791
34792
34793
34794
34795
34796#
34797# RPM support.
34798#
34799RPM=''
34800for ac_prog in gnutar gtar tar
34801do
34802 # Extract the first word of "$ac_prog", so it can be a program name with args.
34803set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034805$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034806if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034807 $as_echo_n "(cached) " >&6
34808else
34809 if test -n "$TAR"; then
34810 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34811else
34812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34813for as_dir in $PATH
34814do
34815 IFS=$as_save_IFS
34816 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034817 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34819 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034821 break 2
34822 fi
34823done
cristy8b350f62009-11-15 23:12:43 +000034824 done
cristy3ed852e2009-09-05 21:47:34 +000034825IFS=$as_save_IFS
34826
34827fi
34828fi
34829TAR=$ac_cv_prog_TAR
34830if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034832$as_echo "$TAR" >&6; }
34833else
cristy8b350f62009-11-15 23:12:43 +000034834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034835$as_echo "no" >&6; }
34836fi
34837
34838
34839 test -n "$TAR" && break
34840done
34841
34842for ac_prog in perl
34843do
34844 # Extract the first word of "$ac_prog", so it can be a program name with args.
34845set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034847$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034848if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034849 $as_echo_n "(cached) " >&6
34850else
34851 if test -n "$PERL"; then
34852 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34853else
34854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34855for as_dir in $PATH
34856do
34857 IFS=$as_save_IFS
34858 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034859 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34861 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034863 break 2
34864 fi
34865done
cristy8b350f62009-11-15 23:12:43 +000034866 done
cristy3ed852e2009-09-05 21:47:34 +000034867IFS=$as_save_IFS
34868
34869fi
34870fi
34871PERL=$ac_cv_prog_PERL
34872if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034874$as_echo "$PERL" >&6; }
34875else
cristy8b350f62009-11-15 23:12:43 +000034876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034877$as_echo "no" >&6; }
34878fi
34879
34880
34881 test -n "$PERL" && break
34882done
34883
34884for ac_prog in rpmbuild rpm
34885do
34886 # Extract the first word of "$ac_prog", so it can be a program name with args.
34887set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034890if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034891 $as_echo_n "(cached) " >&6
34892else
34893 if test -n "$RPM"; then
34894 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34895else
34896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34897for as_dir in $PATH
34898do
34899 IFS=$as_save_IFS
34900 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34903 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034905 break 2
34906 fi
34907done
cristy8b350f62009-11-15 23:12:43 +000034908 done
cristy3ed852e2009-09-05 21:47:34 +000034909IFS=$as_save_IFS
34910
34911fi
34912fi
34913RPM=$ac_cv_prog_RPM
34914if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916$as_echo "$RPM" >&6; }
34917else
cristy8b350f62009-11-15 23:12:43 +000034918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034919$as_echo "no" >&6; }
34920fi
34921
34922
34923 test -n "$RPM" && break
34924done
34925
34926
cristy73bd4a52010-10-05 11:24:23 +000034927ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34928
34929
34930AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34931
34932
34933AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34934
34935
34936AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34937
34938
34939 if test "x$RPM" != "x" ; then
34940 RPM_DELEGATE_TRUE=
34941 RPM_DELEGATE_FALSE='#'
34942else
34943 RPM_DELEGATE_TRUE='#'
34944 RPM_DELEGATE_FALSE=
34945fi
34946
cristy3ed852e2009-09-05 21:47:34 +000034947
34948#
34949# 7ZIP support (http://p7zip.sourceforge.net/)
34950#
34951P7ZIP=''
34952for ac_prog in 7za
34953do
34954 # Extract the first word of "$ac_prog", so it can be a program name with args.
34955set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034958if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034959 $as_echo_n "(cached) " >&6
34960else
34961 if test -n "$P7ZIP"; then
34962 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34963else
34964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34965for as_dir in $PATH
34966do
34967 IFS=$as_save_IFS
34968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000034970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34971 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034973 break 2
34974 fi
34975done
cristy8b350f62009-11-15 23:12:43 +000034976 done
cristy3ed852e2009-09-05 21:47:34 +000034977IFS=$as_save_IFS
34978
34979fi
34980fi
34981P7ZIP=$ac_cv_prog_P7ZIP
34982if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034984$as_echo "$P7ZIP" >&6; }
34985else
cristy8b350f62009-11-15 23:12:43 +000034986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034987$as_echo "no" >&6; }
34988fi
34989
34990
34991 test -n "$P7ZIP" && break
34992done
34993
34994
cristy73bd4a52010-10-05 11:24:23 +000034995 if test "x$P7ZIP" != "x" ; then
34996 P7ZIP_DELEGATE_TRUE=
34997 P7ZIP_DELEGATE_FALSE='#'
34998else
34999 P7ZIP_DELEGATE_TRUE='#'
35000 P7ZIP_DELEGATE_FALSE=
35001fi
35002
cristy3ed852e2009-09-05 21:47:34 +000035003
35004#
35005# ZIP support (http://www.info-zip.org/Zip.html)
35006#
35007ZIP=''
35008for ac_prog in zip
35009do
35010 # Extract the first word of "$ac_prog", so it can be a program name with args.
35011set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035013$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035014if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035015 $as_echo_n "(cached) " >&6
35016else
35017 if test -n "$ZIP"; then
35018 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35019else
35020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35021for as_dir in $PATH
35022do
35023 IFS=$as_save_IFS
35024 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035025 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35027 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035029 break 2
35030 fi
35031done
cristy8b350f62009-11-15 23:12:43 +000035032 done
cristy3ed852e2009-09-05 21:47:34 +000035033IFS=$as_save_IFS
35034
35035fi
35036fi
35037ZIP=$ac_cv_prog_ZIP
35038if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035040$as_echo "$ZIP" >&6; }
35041else
cristy8b350f62009-11-15 23:12:43 +000035042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035043$as_echo "no" >&6; }
35044fi
35045
35046
35047 test -n "$ZIP" && break
35048done
35049
35050
cristy73bd4a52010-10-05 11:24:23 +000035051 if test "x$ZIP" != "x" ; then
35052 ZIP_DELEGATE_TRUE=
35053 ZIP_DELEGATE_FALSE='#'
35054else
35055 ZIP_DELEGATE_TRUE='#'
35056 ZIP_DELEGATE_FALSE=
35057fi
35058
cristy3ed852e2009-09-05 21:47:34 +000035059
35060#
35061# GhostPCL related configuration.
35062#
35063PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035064PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035065PCLMonoDevice=pbmraw
35066if test -z "$PCLVersion"; then
35067 PCLVersion='unknown'
35068fi
35069if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035070 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35071$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035074 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35075$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035076 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035078$as_echo_n "checking for pcl color device... " >&6; }
35079 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35080 :
35081 else
35082 PCLColorDevice=ppmraw
35083 fi
cristy09b53e12011-10-14 12:47:22 +000035084 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35085$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035086
35087 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035089$as_echo_n "checking for pcl CMYK device... " >&6; }
35090 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35091 :
35092 else
35093 PCLCMYKDevice=$PCLColorDevice
35094 fi
cristy09b53e12011-10-14 12:47:22 +000035095 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35096$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035097
35098 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035100$as_echo_n "checking for pcl mono device... " >&6; }
35101 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35102 :
35103 else
35104 PCLMonoDevice=$PCLColorDevice
35105 fi
cristy09b53e12011-10-14 12:47:22 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35107$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035108fi
35109
35110
35111
35112
35113
35114
35115#
35116# GhostXPS related configuration.
35117#
35118XPSColorDevice=ppmraw
35119XPSCMYKDevice=bmpsep8
35120XPSMonoDevice=pbmraw
35121if test -z "$XPSVersion"; then
35122 XPSVersion='unknown'
35123fi
35124if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035125 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35126$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035128$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035129 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35130$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035131 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035133$as_echo_n "checking for xps color device... " >&6; }
35134 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35135 :
35136 else
35137 XPSColorDevice=ppmraw
35138 fi
cristy09b53e12011-10-14 12:47:22 +000035139 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35140$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035141
35142 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035144$as_echo_n "checking for xps CMYK device... " >&6; }
35145 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35146 :
35147 else
35148 XPSCMYKDevice=$XPSColorDevice
35149 fi
cristy09b53e12011-10-14 12:47:22 +000035150 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35151$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035152
35153 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035155$as_echo_n "checking for xps mono device... " >&6; }
35156 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35157 :
35158 else
35159 XPSMonoDevice=$XPSColorDevice
35160 fi
cristy09b53e12011-10-14 12:47:22 +000035161 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35162$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035163fi
35164
35165
35166
35167
35168
35169
35170#
35171# Ghostscript related configuration.
35172#
cristya97426c2011-02-04 01:41:27 +000035173GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035174GSColorDevice=pnmraw
35175GSCMYKDevice=pam
35176GSMonoDevice=pbmraw
35177GSPDFDevice=pdfwrite
35178GSPSDevice=pswrite
35179GSEPSDevice=epswrite
35180GSVersion='unknown'
35181if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035182 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35183$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035185$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035186 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35187$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035189$as_echo_n "checking for Ghostscript version... " >&6; }
35190 if GSVersion=`$PSDelegate --version`; then
35191 :
35192 else
35193 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35194 fi
cristy09b53e12011-10-14 12:47:22 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35196$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035197
35198 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for gs alpha device... " >&6; }
35201 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35202 :
35203 else
35204 GSAlphaDevice=pnmraw
35205 fi
cristy09b53e12011-10-14 12:47:22 +000035206 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35207$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035208
35209 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035211$as_echo_n "checking for gs color device... " >&6; }
35212 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35213 :
35214 else
35215 GSColorDevice=pnmraw
35216 fi
cristy09b53e12011-10-14 12:47:22 +000035217 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35218$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035219
35220 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222$as_echo_n "checking for gs CMYK device... " >&6; }
35223 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35224 :
35225 else
35226 GSCMYKDevice=bmpsep8
35227 fi
cristy09b53e12011-10-14 12:47:22 +000035228 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35229$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035230
35231 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035233$as_echo_n "checking for gs mono device... " >&6; }
35234 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35235 :
35236 else
35237 GSMonoDevice=$GSColorDevice
35238 fi
cristy09b53e12011-10-14 12:47:22 +000035239 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35240$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035241
35242 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035244$as_echo_n "checking for gs PDF writing device... " >&6; }
35245 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35246 :
35247 else
35248 GSPDFDevice=nodevice
35249 fi
cristy09b53e12011-10-14 12:47:22 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35251$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035252
35253 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035255$as_echo_n "checking for gs PS writing device... " >&6; }
35256 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35257 :
35258 else
35259 GSPSDevice=nodevice
35260 fi
cristy09b53e12011-10-14 12:47:22 +000035261 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35262$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035263
35264 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035266$as_echo_n "checking for gs EPS writing device... " >&6; }
35267 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35268 :
35269 else
35270 GSEPSDevice=nodevice
35271 fi
cristy09b53e12011-10-14 12:47:22 +000035272 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35273$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035274fi
35275
35276
35277
35278
35279
35280
35281
35282
35283
35284
35285#
35286# PerlMagick-related configuration
35287#
35288
35289# Look for PERL if PerlMagick requested
35290# If name/path of desired PERL interpreter is specified, look for that one first
35291have_perl='no'
35292if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035293 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35294$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035296$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035297 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35298$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035299 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035301$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035302if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035303 $as_echo_n "(cached) " >&6
35304else
35305 ac_cv_path_PERL="$with_perl"
35306fi
cristy8b350f62009-11-15 23:12:43 +000035307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035308$as_echo "$ac_cv_path_PERL" >&6; };
35309 PERL=$ac_cv_path_PERL
35310 have_perl="$ac_cv_path_PERL"
35311 else
35312 for ac_prog in perl perl5
35313do
35314 # Extract the first word of "$ac_prog", so it can be a program name with args.
35315set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035318if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035319 $as_echo_n "(cached) " >&6
35320else
35321 case $PERL in
35322 [\\/]* | ?:[\\/]*)
35323 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35324 ;;
35325 *)
35326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35327for as_dir in $PATH
35328do
35329 IFS=$as_save_IFS
35330 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy3ed852e2009-09-05 21:47:34 +000035332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35333 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035335 break 2
35336 fi
35337done
cristy8b350f62009-11-15 23:12:43 +000035338 done
cristy3ed852e2009-09-05 21:47:34 +000035339IFS=$as_save_IFS
35340
35341 ;;
35342esac
35343fi
35344PERL=$ac_cv_path_PERL
35345if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035347$as_echo "$PERL" >&6; }
35348else
cristy8b350f62009-11-15 23:12:43 +000035349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035350$as_echo "no" >&6; }
35351fi
35352
35353
35354 test -n "$PERL" && break
35355done
35356 if test "$ac_cv_path_PERL"; then
35357 have_perl="$ac_cv_path_PERL"
35358 fi
35359 fi
35360fi
35361
cristy949301e2010-01-06 01:38:40 +000035362if test "$with_perl" != 'yes' ; then
35363 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35364fi
35365
35366PERL_SUPPORTS_DESTDIR='no'
35367
cristy3ed852e2009-09-05 21:47:34 +000035368with_perl_static='no'
35369with_perl_dynamic='no'
35370if test "$have_perl" != 'no'; then
35371 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35372 with_perl_static='yes'
35373 fi
35374 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35375 with_perl_dynamic='yes'
35376 fi
35377 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035378
35379
35380
35381
35382 if test -n "$PERL"; then :
35383
35384 ax_perl_version="5.8.1"
35385
35386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35387$as_echo_n "checking for perl version... " >&6; }
35388
35389 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35390
35391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35392$as_echo "$perl_version" >&6; }
35393
35394 PERL_VERSION=$perl_version
35395
35396
35397
35398
35399
35400 # Used to indicate true or false condition
35401 ax_compare_version=false
35402
35403 # Convert the two version strings to be compared into a format that
35404 # allows a simple string comparison. The end result is that a version
35405 # string of the form 1.12.5-r617 will be converted to the form
35406 # 0001001200050617. In other words, each number is zero padded to four
35407 # digits, and non digits are removed.
35408
35409 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35410 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35411 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35412 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35413 -e 's/[^0-9]//g'`
35414
35415
35416 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35417 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35418 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35419 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35420 -e 's/[^0-9]//g'`
35421
35422
35423 ax_compare_version=`echo "x$ax_compare_version_A
35424x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35425
35426
35427
35428 if test "$ax_compare_version" = "true" ; then
35429
35430 :
35431 PERL_SUPPORTS_DESTDIR='yes'
35432
35433 else
35434 :
35435 PERL_SUPPORTS_DESTDIR='no'
35436
35437 fi
35438
35439
35440else
35441
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35443$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35444 PERL_SUPPORTS_DESTDIR='no'
35445
cristy3ed852e2009-09-05 21:47:34 +000035446fi
cristy73bd4a52010-10-05 11:24:23 +000035447
35448fi
35449 if test "$have_perl" != 'no'; then
35450 WITH_PERL_TRUE=
35451 WITH_PERL_FALSE='#'
35452else
35453 WITH_PERL_TRUE='#'
35454 WITH_PERL_FALSE=
35455fi
35456
35457 if test $with_perl_static = 'yes'; then
35458 WITH_PERL_STATIC_TRUE=
35459 WITH_PERL_STATIC_FALSE='#'
35460else
35461 WITH_PERL_STATIC_TRUE='#'
35462 WITH_PERL_STATIC_FALSE=
35463fi
35464
35465 if test $with_perl_dynamic = 'yes'; then
35466 WITH_PERL_DYNAMIC_TRUE=
35467 WITH_PERL_DYNAMIC_FALSE='#'
35468else
35469 WITH_PERL_DYNAMIC_TRUE='#'
35470 WITH_PERL_DYNAMIC_FALSE=
35471fi
35472
cristy3ed852e2009-09-05 21:47:34 +000035473
35474
35475# Determine path to pick up MagickCore library from for use with building PerlMagick
35476MAGICKCORE_PATH="${LIB_DIR}"
35477if test $with_perl_static = 'yes'; then
35478 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35479 libtool_objdir=$objdir
35480
35481 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035482 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035483fi
35484
35485
35486# Create a simple string containing format names for all delegate libraries
35487DELEGATES=''
35488if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35489if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35490if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35491if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35492if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35493if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35494if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35495if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35496if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35497if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35498if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35499if test "$have_jpeg" = 'yes'; then
35500 DELEGATES="$DELEGATES jpeg";
35501 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35502fi
35503if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035504if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035505if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35506if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035507if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035508if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35509if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
35510if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35511if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35512if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35513if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35514if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35515if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35516if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35517
35518
35519
35520#
35521# Handle special compiler flags
35522#
35523
35524# Add '-p' if prof source profiling support enabled
35525if test "$enable_prof" = 'yes'; then
35526 CFLAGS="-p $CFLAGS"
35527 CXXFLAGS="-p $CXXFLAGS"
35528 LDFLAGS="-p $LDFLAGS"
35529fi
35530
35531# Add '-pg' if gprof source profiling support enabled
35532if test "$enable_gprof" = 'yes'; then
35533 CFLAGS="-pg $CFLAGS"
35534 CXXFLAGS="-pg $CXXFLAGS"
35535 LDFLAGS="-pg $LDFLAGS"
35536fi
35537
35538# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35539# This is a gcc-specific feature
35540if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035542$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035543if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035544 $as_echo_n "(cached) " >&6
35545else
35546 ac_check_lib_save_LIBS=$LIBS
35547LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035549/* end confdefs.h. */
35550
35551/* Override any GCC internal prototype to avoid an error.
35552 Use char because int might match the return type of a GCC
35553 builtin and then its argument prototype would still apply. */
35554#ifdef __cplusplus
35555extern "C"
35556#endif
35557char _gcov_init ();
35558int
35559main ()
35560{
35561return _gcov_init ();
35562 ;
35563 return 0;
35564}
35565_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035566if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035567 ac_cv_lib_gcov__gcov_init=yes
35568else
cristy8b350f62009-11-15 23:12:43 +000035569 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035570fi
cristy8b350f62009-11-15 23:12:43 +000035571rm -f core conftest.err conftest.$ac_objext \
35572 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035573LIBS=$ac_check_lib_save_LIBS
35574fi
cristy8b350f62009-11-15 23:12:43 +000035575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035576$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035577if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035578 cat >>confdefs.h <<_ACEOF
35579#define HAVE_LIBGCOV 1
35580_ACEOF
35581
35582 LIBS="-lgcov $LIBS"
35583
35584fi
35585
cristy8b350f62009-11-15 23:12:43 +000035586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035587$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035588if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035589 $as_echo_n "(cached) " >&6
35590else
35591 ac_check_lib_save_LIBS=$LIBS
35592LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035594/* end confdefs.h. */
35595
35596/* Override any GCC internal prototype to avoid an error.
35597 Use char because int might match the return type of a GCC
35598 builtin and then its argument prototype would still apply. */
35599#ifdef __cplusplus
35600extern "C"
35601#endif
35602char __gcov_init ();
35603int
35604main ()
35605{
35606return __gcov_init ();
35607 ;
35608 return 0;
35609}
35610_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035611if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035612 ac_cv_lib_gcov___gcov_init=yes
35613else
cristy8b350f62009-11-15 23:12:43 +000035614 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035615fi
cristy8b350f62009-11-15 23:12:43 +000035616rm -f core conftest.err conftest.$ac_objext \
35617 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035618LIBS=$ac_check_lib_save_LIBS
35619fi
cristy8b350f62009-11-15 23:12:43 +000035620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035621$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035622if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035623 cat >>confdefs.h <<_ACEOF
35624#define HAVE_LIBGCOV 1
35625_ACEOF
35626
35627 LIBS="-lgcov $LIBS"
35628
35629fi
35630
35631 case "$target_os" in
35632 darwin*)
35633 OSX_GCOV_LDFLAG="-Wl,-single_module"
35634 ;;
35635 *)
35636 OSX_GCOV_LDFLAG=""
35637 ;;
35638 esac
35639
35640 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35641 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35642 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35643fi
35644
35645#
35646# Build library dependency list for libMagickCore
35647#
35648
35649MAGICK_LIBLTDL='' # Libltdl for build
35650MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35651MAGICK_LTDLDEPS='' # extra libltdl dependencies
35652if test "$with_ltdl" != 'no'
35653then
35654 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35655 MAGICK_API_LIBLTDL='-lltdl'
35656 fi
35657 MAGICK_LIBLTDL=${LIBLTDL}
35658 MAGICK_LTDLDEPS=${LTDLDEPS}
35659fi
35660
35661
35662
35663if test "$with_modules" != 'no'; then
cristyfbb0ef02010-12-19 02:32:11 +000035664 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 +000035665else
cristy41cbe8a2011-10-27 01:35:18 +000035666 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 +000035667fi
35668
35669
35670#
35671# Remove extraneous spaces from output variables (asthetic)
35672#
35673X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35674X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35675X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35676X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35677
35678CC=`echo $CC | sed -e 's/ */ /g'`
35679CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35680CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35681CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35682DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35683DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35684LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35685TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35686MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35687#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35688
35689# Pass only user-provided LIBS as "global" libraries
35690LIBS=$USER_LIBS
35691
35692#AC_SUBST(CPPFLAGS)
35693
35694#AC_SUBST(LDFLAGS)
35695#AC_SUBST(X_PRE_LIBS)
35696#AC_SUBST(X_LIBS)
35697#AC_SUBST(X_EXTRA_LIBS)
35698
35699MAGICK_CFLAGS=$CFLAGS
35700MAGICK_CXXFLAGS="$CXXFLAGS"
35701MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35702MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35703MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35704MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35705
35706
35707
35708
35709
35710
35711
35712
cristyfd9dcd42010-08-08 18:07:02 +000035713
cristy3ed852e2009-09-05 21:47:34 +000035714# Set configured scripts to executable.
35715ac_config_commands="$ac_config_commands default"
35716
35717ac_config_commands="$ac_config_commands MagickCore-config.in"
35718
cristy3ed852e2009-09-05 21:47:34 +000035719ac_config_commands="$ac_config_commands MagickWand-config.in"
35720
cristy3ed852e2009-09-05 21:47:34 +000035721ac_config_commands="$ac_config_commands Magick++-config.in"
35722
35723ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35724
35725
cristy09b53e12011-10-14 12:47:22 +000035726{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35727$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35728{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35729$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035730cat >confcache <<\_ACEOF
35731# This file is a shell script that caches the results of configure
35732# tests run on this system so they can be shared between configure
35733# scripts and configure runs, see configure's option --config-cache.
35734# It is not useful on other systems. If it contains results you don't
35735# want to keep, you may remove or edit it.
35736#
35737# config.status only pays attention to the cache file if you give it
35738# the --recheck option to rerun configure.
35739#
35740# `ac_cv_env_foo' variables (set or unset) will be overridden when
35741# loading this file, other *unset* `ac_cv_foo' will be assigned the
35742# following values.
35743
35744_ACEOF
35745
35746# The following way of writing the cache mishandles newlines in values,
35747# but we know of no workaround that is simple, portable, and efficient.
35748# So, we kill variables containing newlines.
35749# Ultrix sh set writes to stderr and can't be redirected directly,
35750# and sets the high bit in the cache file unless we assign to the vars.
35751(
35752 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35753 eval ac_val=\$$ac_var
35754 case $ac_val in #(
35755 *${as_nl}*)
35756 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035757 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035758$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35759 esac
35760 case $ac_var in #(
35761 _ | IFS | as_nl) ;; #(
35762 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035763 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035764 esac ;;
35765 esac
35766 done
35767
35768 (set) 2>&1 |
35769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35770 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035771 # `set' does not quote correctly, so add quotes: double-quote
35772 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035773 sed -n \
35774 "s/'/'\\\\''/g;
35775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35776 ;; #(
35777 *)
35778 # `set' quotes correctly as required by POSIX, so do not add quotes.
35779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35780 ;;
35781 esac |
35782 sort
35783) |
35784 sed '
35785 /^ac_cv_env_/b end
35786 t clear
35787 :clear
35788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35789 t end
35790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35791 :end' >>confcache
35792if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35793 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035794 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035795 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035796$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035797 if test ! -f "$cache_file" || test -h "$cache_file"; then
35798 cat confcache >"$cache_file"
35799 else
35800 case $cache_file in #(
35801 */* | ?:*)
35802 mv -f confcache "$cache_file"$$ &&
35803 mv -f "$cache_file"$$ "$cache_file" ;; #(
35804 *)
35805 mv -f confcache "$cache_file" ;;
35806 esac
35807 fi
35808 fi
cristy3ed852e2009-09-05 21:47:34 +000035809 else
cristy8b350f62009-11-15 23:12:43 +000035810 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035811$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35812 fi
35813fi
35814rm -f confcache
35815
35816test "x$prefix" = xNONE && prefix=$ac_default_prefix
35817# Let make expand exec_prefix.
35818test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35819
35820DEFS=-DHAVE_CONFIG_H
35821
35822ac_libobjs=
35823ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035824U=
cristy3ed852e2009-09-05 21:47:34 +000035825for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35826 # 1. Remove the extension, and $U if already installed.
35827 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35828 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35829 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35830 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035831 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35832 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035833done
35834LIBOBJS=$ac_libobjs
35835
35836LTLIBOBJS=$ac_ltlibobjs
35837
35838
cristy73bd4a52010-10-05 11:24:23 +000035839 if test -n "$EXEEXT"; then
35840 am__EXEEXT_TRUE=
35841 am__EXEEXT_FALSE='#'
35842else
35843 am__EXEEXT_TRUE='#'
35844 am__EXEEXT_FALSE=
35845fi
cristy3ed852e2009-09-05 21:47:34 +000035846
cristy73bd4a52010-10-05 11:24:23 +000035847if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035848 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035849Usually this means the macro was only invoked conditionally." "$LINENO" 5
35850fi
35851if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035852 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035853Usually this means the macro was only invoked conditionally." "$LINENO" 5
35854fi
35855if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035856 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035857Usually this means the macro was only invoked conditionally." "$LINENO" 5
35858fi
35859if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035860 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035861Usually this means the macro was only invoked conditionally." "$LINENO" 5
35862fi
35863if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035864 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035865Usually this means the macro was only invoked conditionally." "$LINENO" 5
35866fi
35867if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035868 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035869Usually this means the macro was only invoked conditionally." "$LINENO" 5
35870fi
35871if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035872 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035873Usually this means the macro was only invoked conditionally." "$LINENO" 5
35874fi
35875if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035876 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035877Usually this means the macro was only invoked conditionally." "$LINENO" 5
35878fi
cristy73bd4a52010-10-05 11:24:23 +000035879if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035880 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035881Usually this means the macro was only invoked conditionally." "$LINENO" 5
35882fi
35883if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035884 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035885Usually this means the macro was only invoked conditionally." "$LINENO" 5
35886fi
35887LT_CONFIG_H=config/config.h
35888
35889 _ltdl_libobjs=
35890 _ltdl_ltlibobjs=
35891 if test -n "$_LT_LIBOBJS"; then
35892 # Remove the extension.
35893 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35894 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35895 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35896 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35897 done
35898 fi
35899 ltdl_LIBOBJS=$_ltdl_libobjs
35900
35901 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35902
35903
35904if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035905 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035906Usually this means the macro was only invoked conditionally." "$LINENO" 5
35907fi
35908if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035909 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035910Usually this means the macro was only invoked conditionally." "$LINENO" 5
35911fi
35912if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035913 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035914Usually this means the macro was only invoked conditionally." "$LINENO" 5
35915fi
35916if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035917 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035918Usually this means the macro was only invoked conditionally." "$LINENO" 5
35919fi
35920
35921if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035922 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035923Usually this means the macro was only invoked conditionally." "$LINENO" 5
35924fi
35925if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035926 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035927Usually this means the macro was only invoked conditionally." "$LINENO" 5
35928fi
35929if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035930 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035931Usually this means the macro was only invoked conditionally." "$LINENO" 5
35932fi
35933if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035934 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035935Usually this means the macro was only invoked conditionally." "$LINENO" 5
35936fi
35937if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035938 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035939Usually this means the macro was only invoked conditionally." "$LINENO" 5
35940fi
35941if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035942 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035943Usually this means the macro was only invoked conditionally." "$LINENO" 5
35944fi
35945if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035946 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035947Usually this means the macro was only invoked conditionally." "$LINENO" 5
35948fi
35949if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035950 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035951Usually this means the macro was only invoked conditionally." "$LINENO" 5
35952fi
35953if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035954 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035955Usually this means the macro was only invoked conditionally." "$LINENO" 5
35956fi
35957if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035958 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035959Usually this means the macro was only invoked conditionally." "$LINENO" 5
35960fi
35961if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035962 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035963Usually this means the macro was only invoked conditionally." "$LINENO" 5
35964fi
35965if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035966 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035967Usually this means the macro was only invoked conditionally." "$LINENO" 5
35968fi
35969if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035970 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035971Usually this means the macro was only invoked conditionally." "$LINENO" 5
35972fi
35973if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035974 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035975Usually this means the macro was only invoked conditionally." "$LINENO" 5
35976fi
35977if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035978 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035979Usually this means the macro was only invoked conditionally." "$LINENO" 5
35980fi
35981if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035982 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035983Usually this means the macro was only invoked conditionally." "$LINENO" 5
35984fi
35985if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035986 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035987Usually this means the macro was only invoked conditionally." "$LINENO" 5
35988fi
35989if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035990 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035991Usually this means the macro was only invoked conditionally." "$LINENO" 5
35992fi
35993if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035994 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035995Usually this means the macro was only invoked conditionally." "$LINENO" 5
35996fi
35997if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035998 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035999Usually this means the macro was only invoked conditionally." "$LINENO" 5
36000fi
cristyfbb0ef02010-12-19 02:32:11 +000036001if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36002 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36003Usually this means the macro was only invoked conditionally." "$LINENO" 5
36004fi
cristy73bd4a52010-10-05 11:24:23 +000036005if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036006 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036007Usually this means the macro was only invoked conditionally." "$LINENO" 5
36008fi
cristy41cbe8a2011-10-27 01:35:18 +000036009if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36010 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36011Usually this means the macro was only invoked conditionally." "$LINENO" 5
36012fi
36013if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
36014 as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
36015Usually this means the macro was only invoked conditionally." "$LINENO" 5
36016fi
cristy73bd4a52010-10-05 11:24:23 +000036017if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036018 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036019Usually this means the macro was only invoked conditionally." "$LINENO" 5
36020fi
36021if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036022 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036023Usually this means the macro was only invoked conditionally." "$LINENO" 5
36024fi
36025if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036026 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036027Usually this means the macro was only invoked conditionally." "$LINENO" 5
36028fi
36029if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036030 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036031Usually this means the macro was only invoked conditionally." "$LINENO" 5
36032fi
cristyb1860752011-03-14 00:27:46 +000036033if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36034 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36035Usually this means the macro was only invoked conditionally." "$LINENO" 5
36036fi
cristy73bd4a52010-10-05 11:24:23 +000036037if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036038 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036039Usually this means the macro was only invoked conditionally." "$LINENO" 5
36040fi
36041if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036042 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036043Usually this means the macro was only invoked conditionally." "$LINENO" 5
36044fi
36045if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036046 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036047Usually this means the macro was only invoked conditionally." "$LINENO" 5
36048fi
36049if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036050 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036051Usually this means the macro was only invoked conditionally." "$LINENO" 5
36052fi
36053if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036054 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036055Usually this means the macro was only invoked conditionally." "$LINENO" 5
36056fi
36057if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036058 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036059Usually this means the macro was only invoked conditionally." "$LINENO" 5
36060fi
36061if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036062 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036063Usually this means the macro was only invoked conditionally." "$LINENO" 5
36064fi
36065if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036066 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036067Usually this means the macro was only invoked conditionally." "$LINENO" 5
36068fi
cristy3ed852e2009-09-05 21:47:34 +000036069
cristyda16f162011-02-19 23:52:17 +000036070: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036071ac_write_fail=0
36072ac_clean_files_save=$ac_clean_files
36073ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036074{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036075$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036076as_write_fail=0
36077cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036078#! $SHELL
36079# Generated by $as_me.
36080# Run this file to recreate the current configuration.
36081# Compiler output produced by configure, useful for debugging
36082# configure, is in config.log if it exists.
36083
36084debug=false
36085ac_cs_recheck=false
36086ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036087
cristy8b350f62009-11-15 23:12:43 +000036088SHELL=\${CONFIG_SHELL-$SHELL}
36089export SHELL
36090_ASEOF
36091cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36092## -------------------- ##
36093## M4sh Initialization. ##
36094## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036095
36096# Be more Bourne compatible
36097DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036098if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036099 emulate sh
36100 NULLCMD=:
36101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36102 # is contrary to our usage. Disable this feature.
36103 alias -g '${1+"$@"}'='"$@"'
36104 setopt NO_GLOB_SUBST
36105else
cristy8b350f62009-11-15 23:12:43 +000036106 case `(set -o) 2>/dev/null` in #(
36107 *posix*) :
36108 set -o posix ;; #(
36109 *) :
36110 ;;
cristy3ed852e2009-09-05 21:47:34 +000036111esac
cristy3ed852e2009-09-05 21:47:34 +000036112fi
36113
36114
cristy3ed852e2009-09-05 21:47:34 +000036115as_nl='
36116'
36117export as_nl
36118# Printing a long string crashes Solaris 7 /usr/bin/printf.
36119as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36120as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036122# Prefer a ksh shell builtin over an external printf program on Solaris,
36123# but without wasting forks for bash or zsh.
36124if test -z "$BASH_VERSION$ZSH_VERSION" \
36125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36126 as_echo='print -r --'
36127 as_echo_n='print -rn --'
36128elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036129 as_echo='printf %s\n'
36130 as_echo_n='printf %s'
36131else
36132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36134 as_echo_n='/usr/ucb/echo -n'
36135 else
36136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36137 as_echo_n_body='eval
36138 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036139 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036140 *"$as_nl"*)
36141 expr "X$arg" : "X\\(.*\\)$as_nl";
36142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36143 esac;
36144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36145 '
36146 export as_echo_n_body
36147 as_echo_n='sh -c $as_echo_n_body as_echo'
36148 fi
36149 export as_echo_body
36150 as_echo='sh -c $as_echo_body as_echo'
36151fi
36152
36153# The user is always right.
36154if test "${PATH_SEPARATOR+set}" != set; then
36155 PATH_SEPARATOR=:
36156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36158 PATH_SEPARATOR=';'
36159 }
36160fi
36161
cristy3ed852e2009-09-05 21:47:34 +000036162
36163# IFS
36164# We need space, tab and new line, in precisely that order. Quoting is
36165# there to prevent editors from complaining about space-tab.
36166# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36167# splitting by setting IFS to empty value.)
36168IFS=" "" $as_nl"
36169
36170# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036171as_myself=
cristy8b350f62009-11-15 23:12:43 +000036172case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036173 *[\\/]* ) as_myself=$0 ;;
36174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36175for as_dir in $PATH
36176do
36177 IFS=$as_save_IFS
36178 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36180 done
cristy3ed852e2009-09-05 21:47:34 +000036181IFS=$as_save_IFS
36182
36183 ;;
36184esac
36185# We did not find ourselves, most probably we were run as `sh COMMAND'
36186# in which case we are not to be found in the path.
36187if test "x$as_myself" = x; then
36188 as_myself=$0
36189fi
36190if test ! -f "$as_myself"; then
36191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036192 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036193fi
36194
cristy8b350f62009-11-15 23:12:43 +000036195# Unset variables that we do not need and which cause bugs (e.g. in
36196# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36197# suppresses any "Segmentation fault" message there. '((' could
36198# trigger a bug in pdksh 5.2.14.
36199for as_var in BASH_ENV ENV MAIL MAILPATH
36200do eval test x\${$as_var+set} = xset \
36201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036202done
36203PS1='$ '
36204PS2='> '
36205PS4='+ '
36206
36207# NLS nuisances.
36208LC_ALL=C
36209export LC_ALL
36210LANGUAGE=C
36211export LANGUAGE
36212
cristy8b350f62009-11-15 23:12:43 +000036213# CDPATH.
36214(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36215
36216
cristy98dddb52010-11-04 00:30:15 +000036217# as_fn_error STATUS ERROR [LINENO LOG_FD]
36218# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036219# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36220# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036221# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036222as_fn_error ()
36223{
cristy98dddb52010-11-04 00:30:15 +000036224 as_status=$1; test $as_status -eq 0 && as_status=1
36225 if test "$4"; then
36226 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036228 fi
cristy98dddb52010-11-04 00:30:15 +000036229 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036230 as_fn_exit $as_status
36231} # as_fn_error
36232
36233
36234# as_fn_set_status STATUS
36235# -----------------------
36236# Set $? to STATUS, without forking.
36237as_fn_set_status ()
36238{
36239 return $1
36240} # as_fn_set_status
36241
36242# as_fn_exit STATUS
36243# -----------------
36244# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36245as_fn_exit ()
36246{
36247 set +e
36248 as_fn_set_status $1
36249 exit $1
36250} # as_fn_exit
36251
36252# as_fn_unset VAR
36253# ---------------
36254# Portably unset VAR.
36255as_fn_unset ()
36256{
36257 { eval $1=; unset $1;}
36258}
36259as_unset=as_fn_unset
36260# as_fn_append VAR VALUE
36261# ----------------------
36262# Append the text in VALUE to the end of the definition contained in VAR. Take
36263# advantage of any shell optimizations that allow amortized linear growth over
36264# repeated appends, instead of the typical quadratic growth present in naive
36265# implementations.
36266if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36267 eval 'as_fn_append ()
36268 {
36269 eval $1+=\$2
36270 }'
36271else
36272 as_fn_append ()
36273 {
36274 eval $1=\$$1\$2
36275 }
36276fi # as_fn_append
36277
36278# as_fn_arith ARG...
36279# ------------------
36280# Perform arithmetic evaluation on the ARGs, and store the result in the
36281# global $as_val. Take advantage of shells that can avoid forks. The arguments
36282# must be portable across $(()) and expr.
36283if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36284 eval 'as_fn_arith ()
36285 {
36286 as_val=$(( $* ))
36287 }'
36288else
36289 as_fn_arith ()
36290 {
36291 as_val=`expr "$@" || test $? -eq 1`
36292 }
36293fi # as_fn_arith
36294
36295
cristy3ed852e2009-09-05 21:47:34 +000036296if expr a : '\(a\)' >/dev/null 2>&1 &&
36297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36298 as_expr=expr
36299else
36300 as_expr=false
36301fi
36302
36303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36304 as_basename=basename
36305else
36306 as_basename=false
36307fi
36308
cristy8b350f62009-11-15 23:12:43 +000036309if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36310 as_dirname=dirname
36311else
36312 as_dirname=false
36313fi
cristy3ed852e2009-09-05 21:47:34 +000036314
cristy3ed852e2009-09-05 21:47:34 +000036315as_me=`$as_basename -- "$0" ||
36316$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36317 X"$0" : 'X\(//\)$' \| \
36318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36319$as_echo X/"$0" |
36320 sed '/^.*\/\([^/][^/]*\)\/*$/{
36321 s//\1/
36322 q
36323 }
36324 /^X\/\(\/\/\)$/{
36325 s//\1/
36326 q
36327 }
36328 /^X\/\(\/\).*/{
36329 s//\1/
36330 q
36331 }
36332 s/.*/./; q'`
36333
cristy8b350f62009-11-15 23:12:43 +000036334# Avoid depending upon Character Ranges.
36335as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36336as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36337as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36338as_cr_digits='0123456789'
36339as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036340
36341ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036342case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036343-n*)
cristy8b350f62009-11-15 23:12:43 +000036344 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036346 xy) ECHO_C='\c';;
36347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36348 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036349 esac;;
36350*)
36351 ECHO_N='-n';;
36352esac
cristy3ed852e2009-09-05 21:47:34 +000036353
36354rm -f conf$$ conf$$.exe conf$$.file
36355if test -d conf$$.dir; then
36356 rm -f conf$$.dir/conf$$.file
36357else
36358 rm -f conf$$.dir
36359 mkdir conf$$.dir 2>/dev/null
36360fi
36361if (echo >conf$$.file) 2>/dev/null; then
36362 if ln -s conf$$.file conf$$ 2>/dev/null; then
36363 as_ln_s='ln -s'
36364 # ... but there are two gotchas:
36365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36367 # In both cases, we have to default to `cp -p'.
36368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
36369 as_ln_s='cp -p'
36370 elif ln conf$$.file conf$$ 2>/dev/null; then
36371 as_ln_s=ln
36372 else
36373 as_ln_s='cp -p'
36374 fi
36375else
36376 as_ln_s='cp -p'
36377fi
36378rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36379rmdir conf$$.dir 2>/dev/null
36380
cristy8b350f62009-11-15 23:12:43 +000036381
36382# as_fn_mkdir_p
36383# -------------
36384# Create "$as_dir" as a directory, including parents if necessary.
36385as_fn_mkdir_p ()
36386{
36387
36388 case $as_dir in #(
36389 -*) as_dir=./$as_dir;;
36390 esac
36391 test -d "$as_dir" || eval $as_mkdir_p || {
36392 as_dirs=
36393 while :; do
36394 case $as_dir in #(
36395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36396 *) as_qdir=$as_dir;;
36397 esac
36398 as_dirs="'$as_qdir' $as_dirs"
36399 as_dir=`$as_dirname -- "$as_dir" ||
36400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36401 X"$as_dir" : 'X\(//\)[^/]' \| \
36402 X"$as_dir" : 'X\(//\)$' \| \
36403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36404$as_echo X"$as_dir" |
36405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36406 s//\1/
36407 q
36408 }
36409 /^X\(\/\/\)[^/].*/{
36410 s//\1/
36411 q
36412 }
36413 /^X\(\/\/\)$/{
36414 s//\1/
36415 q
36416 }
36417 /^X\(\/\).*/{
36418 s//\1/
36419 q
36420 }
36421 s/.*/./; q'`
36422 test -d "$as_dir" && break
36423 done
36424 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036426
36427
36428} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036429if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036430 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036431else
36432 test -d ./-p && rmdir ./-p
36433 as_mkdir_p=false
36434fi
36435
36436if test -x / >/dev/null 2>&1; then
36437 as_test_x='test -x'
36438else
36439 if ls -dL / >/dev/null 2>&1; then
36440 as_ls_L_option=L
36441 else
36442 as_ls_L_option=
36443 fi
36444 as_test_x='
36445 eval sh -c '\''
36446 if test -d "$1"; then
36447 test -d "$1/.";
36448 else
cristy8b350f62009-11-15 23:12:43 +000036449 case $1 in #(
cristy3ed852e2009-09-05 21:47:34 +000036450 -*)set "./$1";;
36451 esac;
cristy8b350f62009-11-15 23:12:43 +000036452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
cristy3ed852e2009-09-05 21:47:34 +000036453 ???[sx]*):;;*)false;;esac;fi
36454 '\'' sh
36455 '
36456fi
36457as_executable_p=$as_test_x
36458
36459# Sed expression to map a string onto a valid CPP name.
36460as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36461
36462# Sed expression to map a string onto a valid variable name.
36463as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36464
36465
36466exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036467## ----------------------------------- ##
36468## Main body of $CONFIG_STATUS script. ##
36469## ----------------------------------- ##
36470_ASEOF
36471test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036472
cristy8b350f62009-11-15 23:12:43 +000036473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36474# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036475# report actual input values of CONFIG_FILES etc. instead of their
36476# values after options handling.
36477ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036478This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristyda16f162011-02-19 23:52:17 +000036479generated by GNU Autoconf 2.68. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036480
36481 CONFIG_FILES = $CONFIG_FILES
36482 CONFIG_HEADERS = $CONFIG_HEADERS
36483 CONFIG_LINKS = $CONFIG_LINKS
36484 CONFIG_COMMANDS = $CONFIG_COMMANDS
36485 $ $0 $@
36486
36487on `(hostname || uname -n) 2>/dev/null | sed 1q`
36488"
36489
36490_ACEOF
36491
36492case $ac_config_files in *"
36493"*) set x $ac_config_files; shift; ac_config_files=$*;;
36494esac
36495
36496case $ac_config_headers in *"
36497"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36498esac
36499
36500
36501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36502# Files that config.status was made for.
36503config_files="$ac_config_files"
36504config_headers="$ac_config_headers"
36505config_commands="$ac_config_commands"
36506
36507_ACEOF
36508
36509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36510ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036511\`$as_me' instantiates files and other configuration actions
36512from templates according to the current configuration. Unless the files
36513and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036514
cristy8b350f62009-11-15 23:12:43 +000036515Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036516
36517 -h, --help print this help, then exit
36518 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036519 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036520 -q, --quiet, --silent
36521 do not print progress messages
36522 -d, --debug don't remove temporary files
36523 --recheck update $as_me by reconfiguring in the same conditions
36524 --file=FILE[:TEMPLATE]
36525 instantiate the configuration file FILE
36526 --header=FILE[:TEMPLATE]
36527 instantiate the configuration header FILE
36528
36529Configuration files:
36530$config_files
36531
36532Configuration headers:
36533$config_headers
36534
36535Configuration commands:
36536$config_commands
36537
cristy8b350f62009-11-15 23:12:43 +000036538Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036539
36540_ACEOF
36541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036542ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036543ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036544ImageMagick config.status 7.0.0-0
cristyda16f162011-02-19 23:52:17 +000036545configured by $0, generated by GNU Autoconf 2.68,
cristycd4c5312009-11-22 01:19:08 +000036546 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036547
cristy98dddb52010-11-04 00:30:15 +000036548Copyright (C) 2010 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036549This config.status script is free software; the Free Software Foundation
36550gives unlimited permission to copy, distribute and modify it."
36551
36552ac_pwd='$ac_pwd'
36553srcdir='$srcdir'
36554INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036555MKDIR_P='$MKDIR_P'
36556AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036557test -n "\$AWK" || AWK=awk
36558_ACEOF
36559
36560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36561# The default lists apply if the user does not specify any file.
36562ac_need_defaults=:
36563while test $# != 0
36564do
36565 case $1 in
cristyda16f162011-02-19 23:52:17 +000036566 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36569 ac_shift=:
36570 ;;
cristyda16f162011-02-19 23:52:17 +000036571 --*=)
36572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36573 ac_optarg=
36574 ac_shift=:
36575 ;;
cristy3ed852e2009-09-05 21:47:34 +000036576 *)
36577 ac_option=$1
36578 ac_optarg=$2
36579 ac_shift=shift
36580 ;;
36581 esac
36582
36583 case $ac_option in
36584 # Handling of the options.
36585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36586 ac_cs_recheck=: ;;
36587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36588 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036589 --config | --confi | --conf | --con | --co | --c )
36590 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036591 --debug | --debu | --deb | --de | --d | -d )
36592 debug=: ;;
36593 --file | --fil | --fi | --f )
36594 $ac_shift
36595 case $ac_optarg in
36596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036597 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036598 esac
cristy8b350f62009-11-15 23:12:43 +000036599 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036600 ac_need_defaults=false;;
36601 --header | --heade | --head | --hea )
36602 $ac_shift
36603 case $ac_optarg in
36604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36605 esac
cristy8b350f62009-11-15 23:12:43 +000036606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036607 ac_need_defaults=false;;
36608 --he | --h)
36609 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036610 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036611Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036612 --help | --hel | -h )
36613 $as_echo "$ac_cs_usage"; exit ;;
36614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36616 ac_cs_silent=: ;;
36617
36618 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036619 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036620Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036621
cristy8b350f62009-11-15 23:12:43 +000036622 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036623 ac_need_defaults=false ;;
36624
36625 esac
36626 shift
36627done
36628
36629ac_configure_extra_args=
36630
36631if $ac_cs_silent; then
36632 exec 6>/dev/null
36633 ac_configure_extra_args="$ac_configure_extra_args --silent"
36634fi
36635
36636_ACEOF
36637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36638if \$ac_cs_recheck; then
36639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36640 shift
36641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36642 CONFIG_SHELL='$SHELL'
36643 export CONFIG_SHELL
36644 exec "\$@"
36645fi
36646
36647_ACEOF
36648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36649exec 5>>config.log
36650{
36651 echo
36652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36653## Running $as_me. ##
36654_ASBOX
36655 $as_echo "$ac_log"
36656} >&5
36657
36658_ACEOF
36659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036660#
36661# INIT-COMMANDS
36662#
36663PACKAGE="$PACKAGE"
36664AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36665
36666
36667# The HP-UX ksh and POSIX shell print the target directory to stdout
36668# if CDPATH is set.
36669(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36670
36671sed_quote_subst='$sed_quote_subst'
36672double_quote_subst='$double_quote_subst'
36673delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036674SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36675Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36676GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36677EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36678FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36679SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36680ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36681LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36682macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36683macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36684AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36685DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36686OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36687enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36688enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36689pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36690enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036691PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036692host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36693host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36694host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36695build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36696build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36697build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36698NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36699LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36700max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36701ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36702exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36703lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36704lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36705lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036706lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36707lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036708reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36709reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36710deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36711file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036712file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36713want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36714sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036715AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36716AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036717archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036718STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36719RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36720old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36721old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36722old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36723lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36724CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36725CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36726compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36727GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36728lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36729lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36730lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36731lt_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 +000036732nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36733lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036734objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36735MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36736lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036737lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036738lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036739lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36740lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36741need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036742MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036743DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36744NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36745LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36746OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36747OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36748libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36749shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36750extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36751archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36752enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36753export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36754whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36755compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36756old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36757old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36758archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36759archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36760module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36761module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36762with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36763allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36764no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36765hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036766hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36767hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36768hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36769hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36770hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36771hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36772inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36773link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036774always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36775export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36776exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36777include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36778prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036779postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036780file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36781variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36782need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36783need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36784version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36785runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36786shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36787shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36788libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36789library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36790soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36791install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36792postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36793postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36794finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36795finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36796hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36797sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36798sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36799hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36800enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36801enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36802enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36803old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36804striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36805compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36806predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36807postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36808predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36809postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36810compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36811LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36812reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36813reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36814old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36815compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36816GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36817lt_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 +000036818lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036819lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036820lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36821lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36822archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36823enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36824export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36825whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36826compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36827old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36828old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36829archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36830archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36831module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36832module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36833with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36834allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36835no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36836hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036837hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36838hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36839hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36840hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36841hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36842hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36843inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36844link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036845always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36846export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36847exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36848include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36849prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036850postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036851file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36852hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36853compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36854predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36855postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36856predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36857postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36858compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036859
36860LTCC='$LTCC'
36861LTCFLAGS='$LTCFLAGS'
36862compiler='$compiler_DEFAULT'
36863
cristy0c60a692010-11-04 01:09:47 +000036864# A function that is used when there is no print builtin or printf.
36865func_fallback_echo ()
36866{
36867 eval 'cat <<_LTECHO_EOF
36868\$1
36869_LTECHO_EOF'
36870}
36871
cristy73bd4a52010-10-05 11:24:23 +000036872# Quote evaled strings.
36873for var in SED \
36874GREP \
36875EGREP \
36876FGREP \
cristy0c60a692010-11-04 01:09:47 +000036877SHELL \
36878ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036879LD \
cristy0c60a692010-11-04 01:09:47 +000036880AS \
36881DLLTOOL \
36882OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036883PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036884NM \
36885LN_S \
36886lt_SP2NL \
36887lt_NL2SP \
36888reload_flag \
36889deplibs_check_method \
36890file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036891file_magic_glob \
36892want_nocaseglob \
36893sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036894AR \
36895AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036896archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036897STRIP \
36898RANLIB \
36899CC \
36900CFLAGS \
36901compiler \
36902lt_cv_sys_global_symbol_pipe \
36903lt_cv_sys_global_symbol_to_cdecl \
36904lt_cv_sys_global_symbol_to_c_name_address \
36905lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036906nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036907lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036908lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036909lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036910lt_prog_compiler_static \
36911lt_cv_prog_compiler_c_o \
36912need_locks \
cristyda16f162011-02-19 23:52:17 +000036913MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036914DSYMUTIL \
36915NMEDIT \
36916LIPO \
36917OTOOL \
36918OTOOL64 \
36919shrext_cmds \
36920export_dynamic_flag_spec \
36921whole_archive_flag_spec \
36922compiler_needs_object \
36923with_gnu_ld \
36924allow_undefined_flag \
36925no_undefined_flag \
36926hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036927hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036928exclude_expsyms \
36929include_expsyms \
36930file_list_spec \
36931variables_saved_for_relink \
36932libname_spec \
36933library_names_spec \
36934soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036935install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036936finish_eval \
36937old_striplib \
36938striplib \
36939compiler_lib_search_dirs \
36940predep_objects \
36941postdep_objects \
36942predeps \
36943postdeps \
36944compiler_lib_search_path \
36945LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036946reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036947compiler_CXX \
36948lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036949lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036950lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036951lt_prog_compiler_static_CXX \
36952lt_cv_prog_compiler_c_o_CXX \
36953export_dynamic_flag_spec_CXX \
36954whole_archive_flag_spec_CXX \
36955compiler_needs_object_CXX \
36956with_gnu_ld_CXX \
36957allow_undefined_flag_CXX \
36958no_undefined_flag_CXX \
36959hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036960hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036961exclude_expsyms_CXX \
36962include_expsyms_CXX \
36963file_list_spec_CXX \
36964compiler_lib_search_dirs_CXX \
36965predep_objects_CXX \
36966postdep_objects_CXX \
36967predeps_CXX \
36968postdeps_CXX \
36969compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036970 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036971 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036972 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036973 ;;
36974 *)
36975 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36976 ;;
36977 esac
36978done
36979
36980# Double-quote double-evaled strings.
36981for var in reload_cmds \
36982old_postinstall_cmds \
36983old_postuninstall_cmds \
36984old_archive_cmds \
36985extract_expsyms_cmds \
36986old_archive_from_new_cmds \
36987old_archive_from_expsyms_cmds \
36988archive_cmds \
36989archive_expsym_cmds \
36990module_cmds \
36991module_expsym_cmds \
36992export_symbols_cmds \
36993prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036994postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036995postinstall_cmds \
36996postuninstall_cmds \
36997finish_cmds \
36998sys_lib_search_path_spec \
36999sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037000reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037001old_archive_cmds_CXX \
37002old_archive_from_new_cmds_CXX \
37003old_archive_from_expsyms_cmds_CXX \
37004archive_cmds_CXX \
37005archive_expsym_cmds_CXX \
37006module_cmds_CXX \
37007module_expsym_cmds_CXX \
37008export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037009prelink_cmds_CXX \
37010postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037011 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037012 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037014 ;;
37015 *)
37016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37017 ;;
37018 esac
37019done
37020
cristy73bd4a52010-10-05 11:24:23 +000037021ac_aux_dir='$ac_aux_dir'
37022xsi_shell='$xsi_shell'
37023lt_shell_append='$lt_shell_append'
37024
37025# See if we are running on zsh, and set the options which allow our
37026# commands through without removal of \ escapes INIT.
37027if test -n "\${ZSH_VERSION+set}" ; then
37028 setopt NO_GLOB_SUBST
37029fi
37030
37031
37032 PACKAGE='$PACKAGE'
37033 VERSION='$VERSION'
37034 TIMESTAMP='$TIMESTAMP'
37035 RM='$RM'
37036 ofile='$ofile'
37037
37038
37039
37040
37041
37042
cristy3ed852e2009-09-05 21:47:34 +000037043_ACEOF
37044
37045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37046
37047# Handling of arguments.
37048for ac_config_target in $ac_config_targets
37049do
37050 case $ac_config_target in
37051 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037052 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037053 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37054 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37055 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37056 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37057 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037058 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037059 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37060 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37061 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37062 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37063 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037064 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037065 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37066 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037067 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37068 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37069 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37071 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37072 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37073 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37074 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37075 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37076 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37077 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37078 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37079 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37080 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37081 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37082 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37083 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37084 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37085 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37086 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037087 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37088 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037089 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37090 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037091 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37092 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037093 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037094 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37095 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37096
cristy98dddb52010-11-04 00:30:15 +000037097 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037098 esac
37099done
37100
37101
37102# If the user did not use the arguments to specify the items to instantiate,
37103# then the envvar interface is used. Set only those that are not.
37104# We use the long form for the default assignment because of an extremely
37105# bizarre bug on SunOS 4.1.3.
37106if $ac_need_defaults; then
37107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37110fi
37111
37112# Have a temporary directory for convenience. Make it in the build tree
37113# simply because there is no reason against having it here, and in addition,
37114# creating and moving files from /tmp can sometimes cause problems.
37115# Hook for its removal unless debugging.
37116# Note that there is a small window in which the directory will not be cleaned:
37117# after its creation but before its name has been assigned to `$tmp'.
37118$debug ||
37119{
cristyda16f162011-02-19 23:52:17 +000037120 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037121 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037122 : "${ac_tmp:=$tmp}"
37123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037124' 0
cristy8b350f62009-11-15 23:12:43 +000037125 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037126}
37127# Create a (secure) tmp directory for tmp files.
37128
37129{
37130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037131 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037132} ||
37133{
37134 tmp=./conf$$-$RANDOM
37135 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037136} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037137ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037138
37139# Set up the scripts for CONFIG_FILES section.
37140# No need to generate them if there are no CONFIG_FILES.
37141# This happens for instance with `./config.status config.h'.
37142if test -n "$CONFIG_FILES"; then
37143
37144
cristy8b350f62009-11-15 23:12:43 +000037145ac_cr=`echo X | tr X '\015'`
37146# On cygwin, bash can eat \r inside `` if the user requested igncr.
37147# But we know of no other shell where ac_cr would be empty at this
37148# point, so we can use a bashism as a fallback.
37149if test "x$ac_cr" = x; then
37150 eval ac_cr=\$\'\\r\'
37151fi
cristy3ed852e2009-09-05 21:47:34 +000037152ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37153if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037154 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037155else
37156 ac_cs_awk_cr=$ac_cr
37157fi
37158
cristyda16f162011-02-19 23:52:17 +000037159echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037160_ACEOF
37161
37162
37163{
37164 echo "cat >conf$$subs.awk <<_ACEOF" &&
37165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37166 echo "_ACEOF"
37167} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37169ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037170ac_delim='%!_!# '
37171for ac_last_try in false false false false false :; do
37172 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037174
37175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37176 if test $ac_delim_n = $ac_delim_num; then
37177 break
37178 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037180 else
37181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37182 fi
37183done
37184rm -f conf$$subs.sh
37185
37186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037187cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037188_ACEOF
37189sed -n '
37190h
37191s/^/S["/; s/!.*/"]=/
37192p
37193g
37194s/^[^!]*!//
37195:repl
37196t repl
37197s/'"$ac_delim"'$//
37198t delim
37199:nl
37200h
cristycd4c5312009-11-22 01:19:08 +000037201s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037202t more1
37203s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37204p
37205n
37206b repl
37207:more1
37208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37209p
37210g
37211s/.\{148\}//
37212t nl
37213:delim
37214h
cristycd4c5312009-11-22 01:19:08 +000037215s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037216t more2
37217s/["\\]/\\&/g; s/^/"/; s/$/"/
37218p
37219b
37220:more2
37221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37222p
37223g
37224s/.\{148\}//
37225t delim
37226' <conf$$subs.awk | sed '
37227/^[^""]/{
37228 N
37229 s/\n//
37230}
37231' >>$CONFIG_STATUS || ac_write_fail=1
37232rm -f conf$$subs.awk
37233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37234_ACAWK
cristyda16f162011-02-19 23:52:17 +000037235cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037236 for (key in S) S_is_set[key] = 1
37237 FS = ""
37238
37239}
37240{
37241 line = $ 0
37242 nfields = split(line, field, "@")
37243 substed = 0
37244 len = length(field[1])
37245 for (i = 2; i < nfields; i++) {
37246 key = field[i]
37247 keylen = length(key)
37248 if (S_is_set[key]) {
37249 value = S[key]
37250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37251 len += length(value) + length(field[++i])
37252 substed = 1
37253 } else
37254 len += 1 + keylen
37255 }
37256
37257 print line
37258}
37259
37260_ACAWK
37261_ACEOF
37262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37263if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37265else
37266 cat
cristyda16f162011-02-19 23:52:17 +000037267fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037269_ACEOF
37270
cristy98dddb52010-11-04 00:30:15 +000037271# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37272# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037273# trailing colons and then remove the whole line if VPATH becomes empty
37274# (actually we leave an empty line to preserve line numbers).
37275if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37277h
37278s///
37279s/^/:/
37280s/[ ]*$/:/
37281s/:\$(srcdir):/:/g
37282s/:\${srcdir}:/:/g
37283s/:@srcdir@:/:/g
37284s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037285s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037286x
37287s/\(=[ ]*\).*/\1/
37288G
37289s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037290s/^[^=]*=[ ]*$//
37291}'
37292fi
37293
37294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37295fi # test -n "$CONFIG_FILES"
37296
37297# Set up the scripts for CONFIG_HEADERS section.
37298# No need to generate them if there are no CONFIG_HEADERS.
37299# This happens for instance with `./config.status Makefile'.
37300if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037301cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037302BEGIN {
37303_ACEOF
37304
37305# Transform confdefs.h into an awk script `defines.awk', embedded as
37306# here-document in config.status, that substitutes the proper values into
37307# config.h.in to produce config.h.
37308
37309# Create a delimiter string that does not exist in confdefs.h, to ease
37310# handling of long lines.
37311ac_delim='%!_!# '
37312for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37314 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037315 break
37316 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037318 else
37319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37320 fi
37321done
37322
37323# For the awk script, D is an array of macro values keyed by name,
37324# likewise P contains macro parameters if any. Preserve backslash
37325# newline sequences.
37326
37327ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37328sed -n '
37329s/.\{148\}/&'"$ac_delim"'/g
37330t rset
37331:rset
37332s/^[ ]*#[ ]*define[ ][ ]*/ /
37333t def
37334d
37335:def
37336s/\\$//
37337t bsnl
37338s/["\\]/\\&/g
37339s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37340D["\1"]=" \3"/p
37341s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37342d
37343:bsnl
37344s/["\\]/\\&/g
37345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37346D["\1"]=" \3\\\\\\n"\\/p
37347t cont
37348s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37349t cont
37350d
37351:cont
37352n
37353s/.\{148\}/&'"$ac_delim"'/g
37354t clear
37355:clear
37356s/\\$//
37357t bsnlc
37358s/["\\]/\\&/g; s/^/"/; s/$/"/p
37359d
37360:bsnlc
37361s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37362b cont
37363' <confdefs.h | sed '
37364s/'"$ac_delim"'/"\\\
37365"/g' >>$CONFIG_STATUS || ac_write_fail=1
37366
37367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37368 for (key in D) D_is_set[key] = 1
37369 FS = ""
37370}
37371/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37372 line = \$ 0
37373 split(line, arg, " ")
37374 if (arg[1] == "#") {
37375 defundef = arg[2]
37376 mac1 = arg[3]
37377 } else {
37378 defundef = substr(arg[1], 2)
37379 mac1 = arg[2]
37380 }
37381 split(mac1, mac2, "(") #)
37382 macro = mac2[1]
37383 prefix = substr(line, 1, index(line, defundef) - 1)
37384 if (D_is_set[macro]) {
37385 # Preserve the white space surrounding the "#".
37386 print prefix "define", macro P[macro] D[macro]
37387 next
37388 } else {
37389 # Replace #undef with comments. This is necessary, for example,
37390 # in the case of _POSIX_SOURCE, which is predefined and required
37391 # on some systems where configure will not decide to define it.
37392 if (defundef == "undef") {
37393 print "/*", prefix defundef, macro, "*/"
37394 next
37395 }
37396 }
37397}
37398{ print }
37399_ACAWK
37400_ACEOF
37401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037403fi # test -n "$CONFIG_HEADERS"
37404
37405
37406eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37407shift
37408for ac_tag
37409do
37410 case $ac_tag in
37411 :[FHLC]) ac_mode=$ac_tag; continue;;
37412 esac
37413 case $ac_mode$ac_tag in
37414 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037416 :[FH]-) ac_tag=-:-;;
37417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37418 esac
37419 ac_save_IFS=$IFS
37420 IFS=:
37421 set x $ac_tag
37422 IFS=$ac_save_IFS
37423 shift
37424 ac_file=$1
37425 shift
37426
37427 case $ac_mode in
37428 :L) ac_source=$1;;
37429 :[FH])
37430 ac_file_inputs=
37431 for ac_f
37432 do
37433 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037434 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037435 *) # Look for the file first in the build tree, then in the source tree
37436 # (if the path is not absolute). The absolute path cannot be DOS-style,
37437 # because $ac_f cannot contain `:'.
37438 test -f "$ac_f" ||
37439 case $ac_f in
37440 [\\/$]*) false;;
37441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37442 esac ||
cristy98dddb52010-11-04 00:30:15 +000037443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037444 esac
37445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037446 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037447 done
37448
37449 # Let's still pretend it is `configure' which instantiates (i.e., don't
37450 # use $as_me), people would be surprised to read:
37451 # /* config.h. Generated by config.status. */
37452 configure_input='Generated from '`
37453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37454 `' by configure.'
37455 if test x"$ac_file" != x-; then
37456 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037458$as_echo "$as_me: creating $ac_file" >&6;}
37459 fi
37460 # Neutralize special characters interpreted by sed in replacement strings.
37461 case $configure_input in #(
37462 *\&* | *\|* | *\\* )
37463 ac_sed_conf_input=`$as_echo "$configure_input" |
37464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37465 *) ac_sed_conf_input=$configure_input;;
37466 esac
37467
37468 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037471 esac
37472 ;;
37473 esac
37474
37475 ac_dir=`$as_dirname -- "$ac_file" ||
37476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37477 X"$ac_file" : 'X\(//\)[^/]' \| \
37478 X"$ac_file" : 'X\(//\)$' \| \
37479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37480$as_echo X"$ac_file" |
37481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37482 s//\1/
37483 q
37484 }
37485 /^X\(\/\/\)[^/].*/{
37486 s//\1/
37487 q
37488 }
37489 /^X\(\/\/\)$/{
37490 s//\1/
37491 q
37492 }
37493 /^X\(\/\).*/{
37494 s//\1/
37495 q
37496 }
37497 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037498 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037499 ac_builddir=.
37500
37501case "$ac_dir" in
37502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37503*)
37504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37505 # A ".." for each directory in $ac_dir_suffix.
37506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37507 case $ac_top_builddir_sub in
37508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37510 esac ;;
37511esac
37512ac_abs_top_builddir=$ac_pwd
37513ac_abs_builddir=$ac_pwd$ac_dir_suffix
37514# for backward compatibility:
37515ac_top_builddir=$ac_top_build_prefix
37516
37517case $srcdir in
37518 .) # We are building in place.
37519 ac_srcdir=.
37520 ac_top_srcdir=$ac_top_builddir_sub
37521 ac_abs_top_srcdir=$ac_pwd ;;
37522 [\\/]* | ?:[\\/]* ) # Absolute name.
37523 ac_srcdir=$srcdir$ac_dir_suffix;
37524 ac_top_srcdir=$srcdir
37525 ac_abs_top_srcdir=$srcdir ;;
37526 *) # Relative name.
37527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37528 ac_top_srcdir=$ac_top_build_prefix$srcdir
37529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37530esac
37531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37532
37533
37534 case $ac_mode in
37535 :F)
37536 #
37537 # CONFIG_FILE
37538 #
37539
37540 case $INSTALL in
37541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37543 esac
cristy73bd4a52010-10-05 11:24:23 +000037544 ac_MKDIR_P=$MKDIR_P
37545 case $MKDIR_P in
37546 [\\/$]* | ?:[\\/]* ) ;;
37547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37548 esac
cristy3ed852e2009-09-05 21:47:34 +000037549_ACEOF
37550
37551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37552# If the template does not know about datarootdir, expand it.
37553# FIXME: This hack should be removed a few years after 2.60.
37554ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037555ac_sed_dataroot='
37556/datarootdir/ {
37557 p
37558 q
37559}
37560/@datadir@/p
37561/@docdir@/p
37562/@infodir@/p
37563/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037564/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037565case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37566*datarootdir*) ac_datarootdir_seen=yes;;
37567*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037569$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37570_ACEOF
37571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37572 ac_datarootdir_hack='
37573 s&@datadir@&$datadir&g
37574 s&@docdir@&$docdir&g
37575 s&@infodir@&$infodir&g
37576 s&@localedir@&$localedir&g
37577 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037578 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037579esac
37580_ACEOF
37581
37582# Neutralize VPATH when `$srcdir' = `.'.
37583# Shell code in configure.ac might set extrasub.
37584# FIXME: do we really want to maintain this feature?
37585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37586ac_sed_extra="$ac_vpsub
37587$extrasub
37588_ACEOF
37589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37590:t
37591/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37592s|@configure_input@|$ac_sed_conf_input|;t t
37593s&@top_builddir@&$ac_top_builddir_sub&;t t
37594s&@top_build_prefix@&$ac_top_build_prefix&;t t
37595s&@srcdir@&$ac_srcdir&;t t
37596s&@abs_srcdir@&$ac_abs_srcdir&;t t
37597s&@top_srcdir@&$ac_top_srcdir&;t t
37598s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37599s&@builddir@&$ac_builddir&;t t
37600s&@abs_builddir@&$ac_abs_builddir&;t t
37601s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37602s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037603s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037604$ac_datarootdir_hack
37605"
cristyda16f162011-02-19 23:52:17 +000037606eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37607 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037608
37609test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037610 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37612 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037614which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037615$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037616which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037617
cristyda16f162011-02-19 23:52:17 +000037618 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037619 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037620 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37621 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037622 esac \
cristy98dddb52010-11-04 00:30:15 +000037623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037624 ;;
37625 :H)
37626 #
37627 # CONFIG_HEADER
37628 #
37629 if test x"$ac_file" != x-; then
37630 {
37631 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37633 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037635 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037637$as_echo "$as_me: $ac_file is unchanged" >&6;}
37638 else
37639 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037640 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037642 fi
37643 else
37644 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037645 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037646 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037647 fi
cristy73bd4a52010-10-05 11:24:23 +000037648# Compute "$ac_file"'s index in $config_headers.
37649_am_arg="$ac_file"
37650_am_stamp_count=1
37651for _am_header in $config_headers :; do
37652 case $_am_header in
37653 $_am_arg | $_am_arg:* )
37654 break ;;
37655 * )
37656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37657 esac
37658done
37659echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37660$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37661 X"$_am_arg" : 'X\(//\)[^/]' \| \
37662 X"$_am_arg" : 'X\(//\)$' \| \
37663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37664$as_echo X"$_am_arg" |
37665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37666 s//\1/
37667 q
37668 }
37669 /^X\(\/\/\)[^/].*/{
37670 s//\1/
37671 q
37672 }
37673 /^X\(\/\/\)$/{
37674 s//\1/
37675 q
37676 }
37677 /^X\(\/\).*/{
37678 s//\1/
37679 q
37680 }
37681 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037682 ;;
37683
cristy8b350f62009-11-15 23:12:43 +000037684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037685$as_echo "$as_me: executing $ac_file commands" >&6;}
37686 ;;
37687 esac
37688
37689
37690 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037691 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037692ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37693ac_prefix_conf_PKG=`echo MagickCore`
37694ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37695ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37696ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37697if test ".$ac_prefix_conf_INP" = "."; then
37698 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37699 case "$ac_file" in
37700 *.h) ac_prefix_conf_INP=$ac_file ;;
37701 *)
37702 esac
37703 test ".$ac_prefix_conf_INP" != "." && break
37704 done
37705fi
37706if test ".$ac_prefix_conf_INP" = "."; then
37707 case "$ac_prefix_conf_OUT" in
37708 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37709 ;;
37710 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37711 ;;
37712 *) ac_prefix_conf_INP=config.h
37713 ;;
37714 esac
37715fi
37716if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037717 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037718else
37719 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37720 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37721 fi fi
37722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37723$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37724 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037725 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37726 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37727 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37728 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37729 $as_echo "#endif/" >> conftest.prefix
37730 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37731 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37732 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037733 # now executing _script on _DEF input to create _OUT output file
37734 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37735 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37736 echo ' ' >>$tmp/pconfig.h
37737 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37738
37739 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37740 echo ' ' >>$tmp/pconfig.h
37741 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37742 echo "#endif" >>$tmp/pconfig.h
37743 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37745$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37746 else
37747 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37748$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37749 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37750 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37751 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37752$as_echo X"$ac_prefix_conf_OUT" |
37753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37754 s//\1/
37755 q
37756 }
37757 /^X\(\/\/\)[^/].*/{
37758 s//\1/
37759 q
37760 }
37761 /^X\(\/\/\)$/{
37762 s//\1/
37763 q
37764 }
37765 /^X\(\/\).*/{
37766 s//\1/
37767 q
37768 }
37769 s/.*/./; q'`
37770 as_dir="$ac_dir"; as_fn_mkdir_p
37771 rm -f "$ac_prefix_conf_OUT"
37772 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37773 fi
37774 cp conftest.prefix _configs.sed
37775 else
cristy98dddb52010-11-04 00:30:15 +000037776 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 +000037777 fi
37778 rm -f conftest.*
37779fi
37780 ;;
37781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37782 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37783 # are listed without --file. Let's play safe and only enable the eval
37784 # if we detect the quoting.
37785 case $CONFIG_FILES in
37786 *\'*) eval set x "$CONFIG_FILES" ;;
37787 *) set x $CONFIG_FILES ;;
37788 esac
37789 shift
37790 for mf
37791 do
37792 # Strip MF so we end up with the name of the file.
37793 mf=`echo "$mf" | sed -e 's/:.*$//'`
37794 # Check whether this is an Automake generated Makefile or not.
37795 # We used to match only the files named `Makefile.in', but
37796 # some people rename them; so instead we look at the file content.
37797 # Grep'ing the first line is not enough: some people post-process
37798 # each Makefile.in and add a new line on top of each file to say so.
37799 # Grep'ing the whole file is not good either: AIX grep has a line
37800 # limit of 2048, but all sed's we know have understand at least 4000.
37801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37802 dirpart=`$as_dirname -- "$mf" ||
37803$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37804 X"$mf" : 'X\(//\)[^/]' \| \
37805 X"$mf" : 'X\(//\)$' \| \
37806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37807$as_echo X"$mf" |
37808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37809 s//\1/
37810 q
37811 }
37812 /^X\(\/\/\)[^/].*/{
37813 s//\1/
37814 q
37815 }
37816 /^X\(\/\/\)$/{
37817 s//\1/
37818 q
37819 }
37820 /^X\(\/\).*/{
37821 s//\1/
37822 q
37823 }
37824 s/.*/./; q'`
37825 else
37826 continue
37827 fi
37828 # Extract the definition of DEPDIR, am__include, and am__quote
37829 # from the Makefile without running `make'.
37830 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37831 test -z "$DEPDIR" && continue
37832 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37833 test -z "am__include" && continue
37834 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37835 # When using ansi2knr, U may be empty or an underscore; expand it
37836 U=`sed -n 's/^U = //p' < "$mf"`
37837 # Find all dependency output files, they are included files with
37838 # $(DEPDIR) in their names. We invoke sed twice because it is the
37839 # simplest approach to changing $(DEPDIR) to its actual value in the
37840 # expansion.
37841 for file in `sed -n "
37842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37844 # Make sure the directory exists.
37845 test -f "$dirpart/$file" && continue
37846 fdir=`$as_dirname -- "$file" ||
37847$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37848 X"$file" : 'X\(//\)[^/]' \| \
37849 X"$file" : 'X\(//\)$' \| \
37850 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37851$as_echo X"$file" |
37852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37853 s//\1/
37854 q
37855 }
37856 /^X\(\/\/\)[^/].*/{
37857 s//\1/
37858 q
37859 }
37860 /^X\(\/\/\)$/{
37861 s//\1/
37862 q
37863 }
37864 /^X\(\/\).*/{
37865 s//\1/
37866 q
37867 }
37868 s/.*/./; q'`
37869 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37870 # echo "creating $dirpart/$file"
37871 echo '# dummy' > "$dirpart/$file"
37872 done
37873 done
37874}
37875 ;;
37876 "libtool":C)
37877
37878 # See if we are running on zsh, and set the options which allow our
37879 # commands through without removal of \ escapes.
37880 if test -n "${ZSH_VERSION+set}" ; then
37881 setopt NO_GLOB_SUBST
37882 fi
37883
37884 cfgfile="${ofile}T"
37885 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37886 $RM "$cfgfile"
37887
37888 cat <<_LT_EOF >> "$cfgfile"
37889#! $SHELL
37890
37891# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37892# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37893# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37894# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37895#
37896# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037897# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37898# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037899# Written by Gordon Matzigkeit, 1996
37900#
37901# This file is part of GNU Libtool.
37902#
37903# GNU Libtool is free software; you can redistribute it and/or
37904# modify it under the terms of the GNU General Public License as
37905# published by the Free Software Foundation; either version 2 of
37906# the License, or (at your option) any later version.
37907#
37908# As a special exception to the GNU General Public License,
37909# if you distribute this file as part of a program or library that
37910# is built using GNU Libtool, you may include this file under the
37911# same distribution terms that you use for the rest of that program.
37912#
37913# GNU Libtool is distributed in the hope that it will be useful,
37914# but WITHOUT ANY WARRANTY; without even the implied warranty of
37915# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37916# GNU General Public License for more details.
37917#
37918# You should have received a copy of the GNU General Public License
37919# along with GNU Libtool; see the file COPYING. If not, a copy
37920# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37921# obtained by writing to the Free Software Foundation, Inc.,
37922# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37923
37924
37925# The names of the tagged configurations supported by this script.
37926available_tags="CXX "
37927
37928# ### BEGIN LIBTOOL CONFIG
37929
37930# A sed program that does not truncate output.
37931SED=$lt_SED
37932
37933# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37934Xsed="\$SED -e 1s/^X//"
37935
37936# A grep program that handles long lines.
37937GREP=$lt_GREP
37938
37939# An ERE matcher.
37940EGREP=$lt_EGREP
37941
37942# A literal string matcher.
37943FGREP=$lt_FGREP
37944
cristy0c60a692010-11-04 01:09:47 +000037945# Shell to use when invoking shell scripts.
37946SHELL=$lt_SHELL
37947
37948# An echo program that protects backslashes.
37949ECHO=$lt_ECHO
37950
cristy73bd4a52010-10-05 11:24:23 +000037951# Which release of libtool.m4 was used?
37952macro_version=$macro_version
37953macro_revision=$macro_revision
37954
37955# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037956AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037957
37958# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037959DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037960
37961# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037962OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037963
37964# Whether or not to build shared libraries.
37965build_libtool_libs=$enable_shared
37966
37967# Whether or not to build static libraries.
37968build_old_libs=$enable_static
37969
37970# What type of objects to build.
37971pic_mode=$pic_mode
37972
37973# Whether or not to optimize for fast installation.
37974fast_install=$enable_fast_install
37975
cristy99bd5232011-12-07 14:38:20 +000037976# The PATH separator for the build system.
37977PATH_SEPARATOR=$lt_PATH_SEPARATOR
37978
cristy73bd4a52010-10-05 11:24:23 +000037979# The host system.
37980host_alias=$host_alias
37981host=$host
37982host_os=$host_os
37983
37984# The build system.
37985build_alias=$build_alias
37986build=$build
37987build_os=$build_os
37988
37989# A BSD- or MS-compatible name lister.
37990NM=$lt_NM
37991
37992# Whether we need soft or hard links.
37993LN_S=$lt_LN_S
37994
37995# What is the maximum length of a command?
37996max_cmd_len=$max_cmd_len
37997
37998# Object file suffix (normally "o").
37999objext=$ac_objext
38000
38001# Executable file suffix (normally "").
38002exeext=$exeext
38003
38004# whether the shell understands "unset".
38005lt_unset=$lt_unset
38006
38007# turn spaces into newlines.
38008SP2NL=$lt_lt_SP2NL
38009
38010# turn newlines into spaces.
38011NL2SP=$lt_lt_NL2SP
38012
cristyda16f162011-02-19 23:52:17 +000038013# convert \$build file names to \$host format.
38014to_host_file_cmd=$lt_cv_to_host_file_cmd
38015
38016# convert \$build files to toolchain format.
38017to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38018
cristy73bd4a52010-10-05 11:24:23 +000038019# Method to check whether dependent libraries are shared objects.
38020deplibs_check_method=$lt_deplibs_check_method
38021
cristyda16f162011-02-19 23:52:17 +000038022# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038023file_magic_cmd=$lt_file_magic_cmd
38024
cristyda16f162011-02-19 23:52:17 +000038025# How to find potential files when deplibs_check_method = "file_magic".
38026file_magic_glob=$lt_file_magic_glob
38027
38028# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38029want_nocaseglob=$lt_want_nocaseglob
38030
38031# Command to associate shared and link libraries.
38032sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38033
cristy73bd4a52010-10-05 11:24:23 +000038034# The archiver.
38035AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038036
38037# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038038AR_FLAGS=$lt_AR_FLAGS
38039
cristyda16f162011-02-19 23:52:17 +000038040# How to feed a file listing to the archiver.
38041archiver_list_spec=$lt_archiver_list_spec
38042
cristy73bd4a52010-10-05 11:24:23 +000038043# A symbol stripping program.
38044STRIP=$lt_STRIP
38045
38046# Commands used to install an old-style archive.
38047RANLIB=$lt_RANLIB
38048old_postinstall_cmds=$lt_old_postinstall_cmds
38049old_postuninstall_cmds=$lt_old_postuninstall_cmds
38050
cristy0c60a692010-11-04 01:09:47 +000038051# Whether to use a lock for old archive extraction.
38052lock_old_archive_extraction=$lock_old_archive_extraction
38053
cristy73bd4a52010-10-05 11:24:23 +000038054# A C compiler.
38055LTCC=$lt_CC
38056
38057# LTCC compiler flags.
38058LTCFLAGS=$lt_CFLAGS
38059
38060# Take the output of nm and produce a listing of raw symbols and C names.
38061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38062
38063# Transform the output of nm in a proper C declaration.
38064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38065
38066# Transform the output of nm in a C name address pair.
38067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38068
38069# Transform the output of nm in a C name address pair when lib prefix is needed.
38070global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38071
cristyda16f162011-02-19 23:52:17 +000038072# Specify filename containing input files for \$NM.
38073nm_file_list_spec=$lt_nm_file_list_spec
38074
38075# The root where to search for dependent libraries,and in which our libraries should be installed.
38076lt_sysroot=$lt_sysroot
38077
cristy73bd4a52010-10-05 11:24:23 +000038078# The name of the directory that contains temporary libtool files.
38079objdir=$objdir
38080
cristy73bd4a52010-10-05 11:24:23 +000038081# Used to examine libraries when file_magic_cmd begins with "file".
38082MAGIC_CMD=$MAGIC_CMD
38083
38084# Must we lock files when doing compilation?
38085need_locks=$lt_need_locks
38086
cristyda16f162011-02-19 23:52:17 +000038087# Manifest tool.
38088MANIFEST_TOOL=$lt_MANIFEST_TOOL
38089
cristy73bd4a52010-10-05 11:24:23 +000038090# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38091DSYMUTIL=$lt_DSYMUTIL
38092
38093# Tool to change global to local symbols on Mac OS X.
38094NMEDIT=$lt_NMEDIT
38095
38096# Tool to manipulate fat objects and archives on Mac OS X.
38097LIPO=$lt_LIPO
38098
38099# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38100OTOOL=$lt_OTOOL
38101
38102# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38103OTOOL64=$lt_OTOOL64
38104
38105# Old archive suffix (normally "a").
38106libext=$libext
38107
38108# Shared library suffix (normally ".so").
38109shrext_cmds=$lt_shrext_cmds
38110
38111# The commands to extract the exported symbol list from a shared archive.
38112extract_expsyms_cmds=$lt_extract_expsyms_cmds
38113
38114# Variables whose values should be saved in libtool wrapper scripts and
38115# restored at link time.
38116variables_saved_for_relink=$lt_variables_saved_for_relink
38117
38118# Do we need the "lib" prefix for modules?
38119need_lib_prefix=$need_lib_prefix
38120
38121# Do we need a version for libraries?
38122need_version=$need_version
38123
38124# Library versioning type.
38125version_type=$version_type
38126
38127# Shared library runtime path variable.
38128runpath_var=$runpath_var
38129
38130# Shared library path variable.
38131shlibpath_var=$shlibpath_var
38132
38133# Is shlibpath searched before the hard-coded library search path?
38134shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38135
38136# Format of library name prefix.
38137libname_spec=$lt_libname_spec
38138
38139# List of archive names. First name is the real one, the rest are links.
38140# The last name is the one that the linker finds with -lNAME
38141library_names_spec=$lt_library_names_spec
38142
38143# The coded name of the library, if different from the real name.
38144soname_spec=$lt_soname_spec
38145
cristy0c60a692010-11-04 01:09:47 +000038146# Permission mode override for installation of shared libraries.
38147install_override_mode=$lt_install_override_mode
38148
cristy73bd4a52010-10-05 11:24:23 +000038149# Command to use after installation of a shared archive.
38150postinstall_cmds=$lt_postinstall_cmds
38151
38152# Command to use after uninstallation of a shared archive.
38153postuninstall_cmds=$lt_postuninstall_cmds
38154
38155# Commands used to finish a libtool library installation in a directory.
38156finish_cmds=$lt_finish_cmds
38157
38158# As "finish_cmds", except a single script fragment to be evaled but
38159# not shown.
38160finish_eval=$lt_finish_eval
38161
38162# Whether we should hardcode library paths into libraries.
38163hardcode_into_libs=$hardcode_into_libs
38164
38165# Compile-time system search path for libraries.
38166sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38167
38168# Run-time system search path for libraries.
38169sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38170
38171# Whether dlopen is supported.
38172dlopen_support=$enable_dlopen
38173
38174# Whether dlopen of programs is supported.
38175dlopen_self=$enable_dlopen_self
38176
38177# Whether dlopen of statically linked programs is supported.
38178dlopen_self_static=$enable_dlopen_self_static
38179
38180# Commands to strip libraries.
38181old_striplib=$lt_old_striplib
38182striplib=$lt_striplib
38183
38184
38185# The linker used to build libraries.
38186LD=$lt_LD
38187
cristy0c60a692010-11-04 01:09:47 +000038188# How to create reloadable object files.
38189reload_flag=$lt_reload_flag
38190reload_cmds=$lt_reload_cmds
38191
cristy73bd4a52010-10-05 11:24:23 +000038192# Commands used to build an old-style archive.
38193old_archive_cmds=$lt_old_archive_cmds
38194
38195# A language specific compiler.
38196CC=$lt_compiler
38197
38198# Is the compiler the GNU compiler?
38199with_gcc=$GCC
38200
38201# Compiler flag to turn off builtin functions.
38202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38203
cristy73bd4a52010-10-05 11:24:23 +000038204# Additional compiler flags for building library objects.
38205pic_flag=$lt_lt_prog_compiler_pic
38206
cristyda16f162011-02-19 23:52:17 +000038207# How to pass a linker flag through the compiler.
38208wl=$lt_lt_prog_compiler_wl
38209
cristy73bd4a52010-10-05 11:24:23 +000038210# Compiler flag to prevent dynamic linking.
38211link_static_flag=$lt_lt_prog_compiler_static
38212
38213# Does compiler simultaneously support -c and -o options?
38214compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38215
38216# Whether or not to add -lc for building shared libraries.
38217build_libtool_need_lc=$archive_cmds_need_lc
38218
38219# Whether or not to disallow shared libs when runtime libs are static.
38220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38221
38222# Compiler flag to allow reflexive dlopens.
38223export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38224
38225# Compiler flag to generate shared objects directly from archives.
38226whole_archive_flag_spec=$lt_whole_archive_flag_spec
38227
38228# Whether the compiler copes with passing no objects directly.
38229compiler_needs_object=$lt_compiler_needs_object
38230
38231# Create an old-style archive from a shared archive.
38232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38233
38234# Create a temporary old-style archive to link instead of a shared archive.
38235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38236
38237# Commands used to build a shared archive.
38238archive_cmds=$lt_archive_cmds
38239archive_expsym_cmds=$lt_archive_expsym_cmds
38240
38241# Commands used to build a loadable module if different from building
38242# a shared archive.
38243module_cmds=$lt_module_cmds
38244module_expsym_cmds=$lt_module_expsym_cmds
38245
38246# Whether we are building with GNU ld or not.
38247with_gnu_ld=$lt_with_gnu_ld
38248
38249# Flag that allows shared libraries with undefined symbols to be built.
38250allow_undefined_flag=$lt_allow_undefined_flag
38251
38252# Flag that enforces no undefined symbols.
38253no_undefined_flag=$lt_no_undefined_flag
38254
38255# Flag to hardcode \$libdir into a binary during linking.
38256# This must work even if \$libdir does not exist
38257hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38258
cristy73bd4a52010-10-05 11:24:23 +000038259# Whether we need a single "-rpath" flag with a separated argument.
38260hardcode_libdir_separator=$lt_hardcode_libdir_separator
38261
38262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38263# DIR into the resulting binary.
38264hardcode_direct=$hardcode_direct
38265
38266# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38267# DIR into the resulting binary and the resulting library dependency is
38268# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38269# library is relocated.
38270hardcode_direct_absolute=$hardcode_direct_absolute
38271
38272# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38273# into the resulting binary.
38274hardcode_minus_L=$hardcode_minus_L
38275
38276# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38277# into the resulting binary.
38278hardcode_shlibpath_var=$hardcode_shlibpath_var
38279
38280# Set to "yes" if building a shared library automatically hardcodes DIR
38281# into the library and all subsequent libraries and executables linked
38282# against it.
38283hardcode_automatic=$hardcode_automatic
38284
38285# Set to yes if linker adds runtime paths of dependent libraries
38286# to runtime path list.
38287inherit_rpath=$inherit_rpath
38288
38289# Whether libtool must link a program against all its dependency libraries.
38290link_all_deplibs=$link_all_deplibs
38291
cristy73bd4a52010-10-05 11:24:23 +000038292# Set to "yes" if exported symbols are required.
38293always_export_symbols=$always_export_symbols
38294
38295# The commands to list exported symbols.
38296export_symbols_cmds=$lt_export_symbols_cmds
38297
38298# Symbols that should not be listed in the preloaded symbols.
38299exclude_expsyms=$lt_exclude_expsyms
38300
38301# Symbols that must always be exported.
38302include_expsyms=$lt_include_expsyms
38303
38304# Commands necessary for linking programs (against libraries) with templates.
38305prelink_cmds=$lt_prelink_cmds
38306
cristyda16f162011-02-19 23:52:17 +000038307# Commands necessary for finishing linking programs.
38308postlink_cmds=$lt_postlink_cmds
38309
cristy73bd4a52010-10-05 11:24:23 +000038310# Specify filename containing input files.
38311file_list_spec=$lt_file_list_spec
38312
38313# How to hardcode a shared library path into an executable.
38314hardcode_action=$hardcode_action
38315
38316# The directories searched by this compiler when creating a shared library.
38317compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38318
38319# Dependencies to place before and after the objects being linked to
38320# create a shared library.
38321predep_objects=$lt_predep_objects
38322postdep_objects=$lt_postdep_objects
38323predeps=$lt_predeps
38324postdeps=$lt_postdeps
38325
38326# The library search path used internally by the compiler when linking
38327# a shared library.
38328compiler_lib_search_path=$lt_compiler_lib_search_path
38329
38330# ### END LIBTOOL CONFIG
38331
38332_LT_EOF
38333
38334 case $host_os in
38335 aix3*)
38336 cat <<\_LT_EOF >> "$cfgfile"
38337# AIX sometimes has problems with the GCC collect2 program. For some
38338# reason, if we set the COLLECT_NAMES environment variable, the problems
38339# vanish in a puff of smoke.
38340if test "X${COLLECT_NAMES+set}" != Xset; then
38341 COLLECT_NAMES=
38342 export COLLECT_NAMES
38343fi
38344_LT_EOF
38345 ;;
38346 esac
38347
38348
38349ltmain="$ac_aux_dir/ltmain.sh"
38350
38351
38352 # We use sed instead of cat because bash on DJGPP gets confused if
38353 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38354 # text mode, it properly converts lines to CR/LF. This bash problem
38355 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038356 sed '$q' "$ltmain" >> "$cfgfile" \
38357 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038358
cristyda16f162011-02-19 23:52:17 +000038359 if test x"$xsi_shell" = xyes; then
38360 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38361func_dirname ()\
38362{\
38363\ case ${1} in\
38364\ */*) func_dirname_result="${1%/*}${2}" ;;\
38365\ * ) func_dirname_result="${3}" ;;\
38366\ esac\
38367} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38368 && mv -f "$cfgfile.tmp" "$cfgfile" \
38369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38370test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038371
38372
cristyda16f162011-02-19 23:52:17 +000038373 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38374func_basename ()\
38375{\
38376\ func_basename_result="${1##*/}"\
38377} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38378 && mv -f "$cfgfile.tmp" "$cfgfile" \
38379 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38380test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038381
38382
cristyda16f162011-02-19 23:52:17 +000038383 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38384func_dirname_and_basename ()\
38385{\
38386\ case ${1} in\
38387\ */*) func_dirname_result="${1%/*}${2}" ;;\
38388\ * ) func_dirname_result="${3}" ;;\
38389\ esac\
38390\ func_basename_result="${1##*/}"\
38391} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38392 && mv -f "$cfgfile.tmp" "$cfgfile" \
38393 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38394test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038395
cristyda16f162011-02-19 23:52:17 +000038396
38397 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38398func_stripname ()\
38399{\
38400\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38401\ # positional parameters, so assign one to ordinary parameter first.\
38402\ func_stripname_result=${3}\
38403\ func_stripname_result=${func_stripname_result#"${1}"}\
38404\ func_stripname_result=${func_stripname_result%"${2}"}\
38405} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38406 && mv -f "$cfgfile.tmp" "$cfgfile" \
38407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38408test 0 -eq $? || _lt_function_replace_fail=:
38409
38410
38411 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38412func_split_long_opt ()\
38413{\
38414\ func_split_long_opt_name=${1%%=*}\
38415\ func_split_long_opt_arg=${1#*=}\
38416} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38417 && mv -f "$cfgfile.tmp" "$cfgfile" \
38418 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38419test 0 -eq $? || _lt_function_replace_fail=:
38420
38421
38422 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38423func_split_short_opt ()\
38424{\
38425\ func_split_short_opt_arg=${1#??}\
38426\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38427} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38428 && mv -f "$cfgfile.tmp" "$cfgfile" \
38429 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38430test 0 -eq $? || _lt_function_replace_fail=:
38431
38432
38433 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38434func_lo2o ()\
38435{\
38436\ case ${1} in\
38437\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38438\ *) func_lo2o_result=${1} ;;\
38439\ esac\
38440} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38441 && mv -f "$cfgfile.tmp" "$cfgfile" \
38442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38443test 0 -eq $? || _lt_function_replace_fail=:
38444
38445
38446 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38447func_xform ()\
38448{\
38449 func_xform_result=${1%.*}.lo\
38450} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38451 && mv -f "$cfgfile.tmp" "$cfgfile" \
38452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38453test 0 -eq $? || _lt_function_replace_fail=:
38454
38455
38456 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38457func_arith ()\
38458{\
38459 func_arith_result=$(( $* ))\
38460} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38461 && mv -f "$cfgfile.tmp" "$cfgfile" \
38462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38463test 0 -eq $? || _lt_function_replace_fail=:
38464
38465
38466 sed -e '/^func_len ()$/,/^} # func_len /c\
38467func_len ()\
38468{\
38469 func_len_result=${#1}\
38470} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38471 && mv -f "$cfgfile.tmp" "$cfgfile" \
38472 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38473test 0 -eq $? || _lt_function_replace_fail=:
38474
38475fi
38476
38477if test x"$lt_shell_append" = xyes; then
38478 sed -e '/^func_append ()$/,/^} # func_append /c\
38479func_append ()\
38480{\
38481 eval "${1}+=\\${2}"\
38482} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38483 && mv -f "$cfgfile.tmp" "$cfgfile" \
38484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38485test 0 -eq $? || _lt_function_replace_fail=:
38486
38487
38488 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38489func_append_quoted ()\
38490{\
38491\ func_quote_for_eval "${2}"\
38492\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38493} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38494 && mv -f "$cfgfile.tmp" "$cfgfile" \
38495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38496test 0 -eq $? || _lt_function_replace_fail=:
38497
38498
38499 # Save a `func_append' function call where possible by direct use of '+='
38500 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38501 && mv -f "$cfgfile.tmp" "$cfgfile" \
38502 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38503 test 0 -eq $? || _lt_function_replace_fail=:
38504else
38505 # Save a `func_append' function call even when '+=' is not available
38506 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38507 && mv -f "$cfgfile.tmp" "$cfgfile" \
38508 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38509 test 0 -eq $? || _lt_function_replace_fail=:
38510fi
38511
38512if test x"$_lt_function_replace_fail" = x":"; then
38513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38514$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38515fi
38516
38517
38518 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38520 chmod +x "$ofile"
38521
38522
38523 cat <<_LT_EOF >> "$ofile"
38524
38525# ### BEGIN LIBTOOL TAG CONFIG: CXX
38526
38527# The linker used to build libraries.
38528LD=$lt_LD_CXX
38529
cristy0c60a692010-11-04 01:09:47 +000038530# How to create reloadable object files.
38531reload_flag=$lt_reload_flag_CXX
38532reload_cmds=$lt_reload_cmds_CXX
38533
cristy73bd4a52010-10-05 11:24:23 +000038534# Commands used to build an old-style archive.
38535old_archive_cmds=$lt_old_archive_cmds_CXX
38536
38537# A language specific compiler.
38538CC=$lt_compiler_CXX
38539
38540# Is the compiler the GNU compiler?
38541with_gcc=$GCC_CXX
38542
38543# Compiler flag to turn off builtin functions.
38544no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38545
cristy73bd4a52010-10-05 11:24:23 +000038546# Additional compiler flags for building library objects.
38547pic_flag=$lt_lt_prog_compiler_pic_CXX
38548
cristyda16f162011-02-19 23:52:17 +000038549# How to pass a linker flag through the compiler.
38550wl=$lt_lt_prog_compiler_wl_CXX
38551
cristy73bd4a52010-10-05 11:24:23 +000038552# Compiler flag to prevent dynamic linking.
38553link_static_flag=$lt_lt_prog_compiler_static_CXX
38554
38555# Does compiler simultaneously support -c and -o options?
38556compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38557
38558# Whether or not to add -lc for building shared libraries.
38559build_libtool_need_lc=$archive_cmds_need_lc_CXX
38560
38561# Whether or not to disallow shared libs when runtime libs are static.
38562allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38563
38564# Compiler flag to allow reflexive dlopens.
38565export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38566
38567# Compiler flag to generate shared objects directly from archives.
38568whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38569
38570# Whether the compiler copes with passing no objects directly.
38571compiler_needs_object=$lt_compiler_needs_object_CXX
38572
38573# Create an old-style archive from a shared archive.
38574old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38575
38576# Create a temporary old-style archive to link instead of a shared archive.
38577old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38578
38579# Commands used to build a shared archive.
38580archive_cmds=$lt_archive_cmds_CXX
38581archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38582
38583# Commands used to build a loadable module if different from building
38584# a shared archive.
38585module_cmds=$lt_module_cmds_CXX
38586module_expsym_cmds=$lt_module_expsym_cmds_CXX
38587
38588# Whether we are building with GNU ld or not.
38589with_gnu_ld=$lt_with_gnu_ld_CXX
38590
38591# Flag that allows shared libraries with undefined symbols to be built.
38592allow_undefined_flag=$lt_allow_undefined_flag_CXX
38593
38594# Flag that enforces no undefined symbols.
38595no_undefined_flag=$lt_no_undefined_flag_CXX
38596
38597# Flag to hardcode \$libdir into a binary during linking.
38598# This must work even if \$libdir does not exist
38599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38600
cristy73bd4a52010-10-05 11:24:23 +000038601# Whether we need a single "-rpath" flag with a separated argument.
38602hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38603
38604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38605# DIR into the resulting binary.
38606hardcode_direct=$hardcode_direct_CXX
38607
38608# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38609# DIR into the resulting binary and the resulting library dependency is
38610# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38611# library is relocated.
38612hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38613
38614# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38615# into the resulting binary.
38616hardcode_minus_L=$hardcode_minus_L_CXX
38617
38618# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38619# into the resulting binary.
38620hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38621
38622# Set to "yes" if building a shared library automatically hardcodes DIR
38623# into the library and all subsequent libraries and executables linked
38624# against it.
38625hardcode_automatic=$hardcode_automatic_CXX
38626
38627# Set to yes if linker adds runtime paths of dependent libraries
38628# to runtime path list.
38629inherit_rpath=$inherit_rpath_CXX
38630
38631# Whether libtool must link a program against all its dependency libraries.
38632link_all_deplibs=$link_all_deplibs_CXX
38633
cristy73bd4a52010-10-05 11:24:23 +000038634# Set to "yes" if exported symbols are required.
38635always_export_symbols=$always_export_symbols_CXX
38636
38637# The commands to list exported symbols.
38638export_symbols_cmds=$lt_export_symbols_cmds_CXX
38639
38640# Symbols that should not be listed in the preloaded symbols.
38641exclude_expsyms=$lt_exclude_expsyms_CXX
38642
38643# Symbols that must always be exported.
38644include_expsyms=$lt_include_expsyms_CXX
38645
38646# Commands necessary for linking programs (against libraries) with templates.
38647prelink_cmds=$lt_prelink_cmds_CXX
38648
cristyda16f162011-02-19 23:52:17 +000038649# Commands necessary for finishing linking programs.
38650postlink_cmds=$lt_postlink_cmds_CXX
38651
cristy73bd4a52010-10-05 11:24:23 +000038652# Specify filename containing input files.
38653file_list_spec=$lt_file_list_spec_CXX
38654
38655# How to hardcode a shared library path into an executable.
38656hardcode_action=$hardcode_action_CXX
38657
38658# The directories searched by this compiler when creating a shared library.
38659compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38660
38661# Dependencies to place before and after the objects being linked to
38662# create a shared library.
38663predep_objects=$lt_predep_objects_CXX
38664postdep_objects=$lt_postdep_objects_CXX
38665predeps=$lt_predeps_CXX
38666postdeps=$lt_postdeps_CXX
38667
38668# The library search path used internally by the compiler when linking
38669# a shared library.
38670compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38671
38672# ### END LIBTOOL TAG CONFIG: CXX
38673_LT_EOF
38674
38675 ;;
cristy4c08aed2011-07-01 19:47:50 +000038676 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038677 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038678 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38679 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38680
38681 esac
38682done # for ac_tag
38683
38684
cristy8b350f62009-11-15 23:12:43 +000038685as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038686_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038687ac_clean_files=$ac_clean_files_save
38688
38689test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038690 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038691
38692
38693# configure is writing to config.log, and then calls config.status.
38694# config.status does its own redirection, appending to config.log.
38695# Unfortunately, on DOS this fails, as config.log is still kept open
38696# by configure, so config.status won't be able to write to it; its
38697# output is simply discarded. So we exec the FD to /dev/null,
38698# effectively closing config.log, so it can be properly (re)opened and
38699# appended to by config.status. When coming back to configure, we
38700# need to make the FD available again.
38701if test "$no_create" != yes; then
38702 ac_cs_success=:
38703 ac_config_status_args=
38704 test "$silent" = yes &&
38705 ac_config_status_args="$ac_config_status_args --quiet"
38706 exec 5>/dev/null
38707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38708 exec 5>>config.log
38709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38710 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038711 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038712fi
38713if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038715$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38716fi
38717
38718
38719rm -f magick-version
38720
cristy430a7312010-01-21 20:44:04 +000038721result_dejavu_font_dir='none'
38722if test "${dejavu_font_dir}x" != 'x'; then
38723 result_dejavu_font_dir=$dejavu_font_dir
38724fi
38725
cristy3ed852e2009-09-05 21:47:34 +000038726result_ghostscript_font_dir='none'
38727if test "${ghostscript_font_dir}x" != 'x'; then
38728 result_ghostscript_font_dir=$ghostscript_font_dir
38729fi
38730
38731result_windows_font_dir='none'
38732if test "${windows_font_dir}x" != 'x'; then
38733 result_windows_font_dir=${windows_font_dir}
38734fi
38735
cristy09b53e12011-10-14 12:47:22 +000038736{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038737ImageMagick is configured as follows. Please verify that this configuration
38738matches your expectations.
38739
38740Host system type: $host
38741Build system type: $build
38742
38743 Option Value
38744-------------------------------------------------------------------------------
38745Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38746Static libraries --enable-static=$enable_static $libtool_build_static_libs
38747Module support --with-modules=$with_modules $with_modules
38748GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38749Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38750High Dynamic Range Imagery
38751 --enable-hdri=$enable_hdri $enable_hdri
38752
38753Delegate Configuration:
38754BZLIB --with-bzlib=$with_bzlib $have_bzlib
38755Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038756Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038757DJVU --with-djvu=$with_djvu $have_djvu
38758DPS --with-dps=$with_dps $have_dps
38759FFTW --with-fftw=$with_fftw $have_fftw
38760FlashPIX --with-fpx=$with_fpx $have_fpx
38761FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38762FreeType --with-freetype=$with_freetype $have_freetype
38763GhostPCL None $PCLDelegate ($PCLVersion)
38764GhostXPS None $XPSDelegate ($XPSVersion)
38765Ghostscript None $PSDelegate ($GSVersion)
38766Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38767Ghostscript lib --with-gslib=$with_gslib $have_gslib
38768Graphviz --with-gvc=$with_gvc $have_gvc
38769JBIG --with-jbig=$with_jbig $have_jbig
38770JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38771JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038772LCMS v1 --with-lcms=$with_lcms $have_lcms
38773LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038774LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038775LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038776Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38777OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038778PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038779PERL --with-perl=$with_perl $have_perl
38780PNG --with-png=$with_png $have_png
38781RSVG --with-rsvg=$with_rsvg $have_rsvg
38782TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038783WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038784Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38785WMF --with-wmf=$with_wmf $have_wmf
38786X11 --with-x=$with_x $have_x
38787XML --with-xml=$with_xml $have_xml
38788ZLIB --with-zlib=$with_zlib $have_zlib
38789
38790X11 Configuration:
38791 X_CFLAGS = $X_CFLAGS
38792 X_PRE_LIBS = $X_PRE_LIBS
38793 X_LIBS = $X_LIBS
38794 X_EXTRA_LIBS = $X_EXTRA_LIBS
38795
38796Options used to compile and link:
38797 PREFIX = $PREFIX_DIR
38798 EXEC-PREFIX = $EXEC_PREFIX_DIR
38799 VERSION = $PACKAGE_VERSION
38800 CC = $CC
38801 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038802 CPPFLAGS = $MAGICK_CPPFLAGS
38803 PCFLAGS = $MAGICK_PCFLAGS
38804 DEFS = $DEFS
38805 LDFLAGS = $LDFLAGS
38806 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38807 LIBS = $MAGICK_LIBS
38808 CXX = $CXX
38809 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038810 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038811" >&5
cristy09b53e12011-10-14 12:47:22 +000038812$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038813ImageMagick is configured as follows. Please verify that this configuration
38814matches your expectations.
38815
38816Host system type: $host
38817Build system type: $build
38818
38819 Option Value
38820-------------------------------------------------------------------------------
38821Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38822Static libraries --enable-static=$enable_static $libtool_build_static_libs
38823Module support --with-modules=$with_modules $with_modules
38824GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38825Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38826High Dynamic Range Imagery
38827 --enable-hdri=$enable_hdri $enable_hdri
38828
38829Delegate Configuration:
38830BZLIB --with-bzlib=$with_bzlib $have_bzlib
38831Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038832Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038833DJVU --with-djvu=$with_djvu $have_djvu
38834DPS --with-dps=$with_dps $have_dps
38835FFTW --with-fftw=$with_fftw $have_fftw
38836FlashPIX --with-fpx=$with_fpx $have_fpx
38837FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38838FreeType --with-freetype=$with_freetype $have_freetype
38839GhostPCL None $PCLDelegate ($PCLVersion)
38840GhostXPS None $XPSDelegate ($XPSVersion)
38841Ghostscript None $PSDelegate ($GSVersion)
38842Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38843Ghostscript lib --with-gslib=$with_gslib $have_gslib
38844Graphviz --with-gvc=$with_gvc $have_gvc
38845JBIG --with-jbig=$with_jbig $have_jbig
38846JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38847JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038848LCMS v1 --with-lcms=$with_lcms $have_lcms
38849LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038850LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038851LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038852Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38853OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038854PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038855PERL --with-perl=$with_perl $have_perl
38856PNG --with-png=$with_png $have_png
38857RSVG --with-rsvg=$with_rsvg $have_rsvg
38858TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038859WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038860Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38861WMF --with-wmf=$with_wmf $have_wmf
38862X11 --with-x=$with_x $have_x
38863XML --with-xml=$with_xml $have_xml
38864ZLIB --with-zlib=$with_zlib $have_zlib
38865
38866X11 Configuration:
38867 X_CFLAGS = $X_CFLAGS
38868 X_PRE_LIBS = $X_PRE_LIBS
38869 X_LIBS = $X_LIBS
38870 X_EXTRA_LIBS = $X_EXTRA_LIBS
38871
38872Options used to compile and link:
38873 PREFIX = $PREFIX_DIR
38874 EXEC-PREFIX = $EXEC_PREFIX_DIR
38875 VERSION = $PACKAGE_VERSION
38876 CC = $CC
38877 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038878 CPPFLAGS = $MAGICK_CPPFLAGS
38879 PCFLAGS = $MAGICK_PCFLAGS
38880 DEFS = $DEFS
38881 LDFLAGS = $LDFLAGS
38882 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38883 LIBS = $MAGICK_LIBS
38884 CXX = $CXX
38885 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038886 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038887" >&6;}